chore: cherry-pick d795ac1209c8 and 919dd0c1244a from chromium #23788
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backports the 2-part fix to https://crbug.com/1068084
===
Avoid nullptr dereference in RTCPeerConnectionHandler
Bug: 1071327
Change-Id: Icf4189905dc5c95854b5af4b3e5e25e0607dd39e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2153325
Reviewed-by: Harald Alvestrand hta@chromium.org
Commit-Queue: Dan McArdle dmcardle@chromium.org
Cr-Commit-Position: refs/heads/master@{#759775}
===
Onstate handler is allowed to close a PeerConnection.
Bug: chromium:1068084
Change-Id: Icd3f70b6784ac22ef4e3bc1c99233f51145a917f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2146542
Commit-Queue: Harald Alvestrand hta@chromium.org
Reviewed-by: Guido Urdaneta guidou@chromium.org
Cr-Commit-Position: refs/heads/master@{#759242}
===
Release Notes
Notes: backported the fix for CVE-2020-6467: UAF in WebRTC.