Skip to content

Conversation

@nornagon
Copy link
Contributor

@nornagon nornagon commented Apr 8, 2020

Use WeakPtr for cross-thread posting

{IIR,Biquad}FilterNodes check the state of the filter and notify the
main thread when it goes bad. In this process, the associated context
can be collected when a posted task is performed sometime later
in the task runner's queue.

By using WeakPtr, the task runner will not perform a scheduled task
in the queue when the target object is invalid anymore.

Test: Locally confirmed that the repro case does not crash after 30 min.
Bug: 1055788
Change-Id: Icdb3a7378d0345936b5b50e12ec2b187e58a611c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2074807
Commit-Queue: Hongchan Choi hongchan@chromium.org
Reviewed-by: Raymond Toy rtoy@chromium.org
Reviewed-by: Kentaro Hara haraken@chromium.org
Cr-Commit-Position: refs/heads/master@{#744936}

Notes: Security: backported fix for CVE-2020-6427: Use after free in audio.

@nornagon nornagon requested a review from a team as a code owner April 8, 2020 00:43
@nornagon nornagon added 7-2-x backport-check-skip Skip trop's backport validity checking labels Apr 8, 2020
@electron-cation electron-cation bot added new-pr 🌱 PR opened recently and removed new-pr 🌱 PR opened recently labels Apr 8, 2020
@nornagon
Copy link
Contributor Author

Skipping most CI as minimal changes since last green.

@nornagon nornagon merged commit 6e94fb3 into 7-2-x Apr 10, 2020
@release-clerk
Copy link

release-clerk bot commented Apr 10, 2020

Release Notes Persisted

Security: backported fix for CVE-2020-6427: Use after free in audio.

@nornagon nornagon deleted the cherry-pick/7-2-x/chromium/2cd0af7ea205 branch April 10, 2020 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

7-2-x backport-check-skip Skip trop's backport validity checking

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants