8000 chore: cherry-pick 85f708fa7ab8 from chromium by nornagon · Pull Request #23047 · electron/electron · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

chore: cherry-pick 85f708fa7ab8 from chromium #23047

New issue < 8000 button aria-label="Close dialog" data-close-dialog="" type="button" data-view-component="true" class="Link--muted btn-link position-absolute p-4 right-0">

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 13, 2020

Conversation

nornagon
Copy link
Contributor
@nornagon nornagon commented Apr 9, 2020

Use KeepSelfAlive on AudioContext to keep it alive until rendering stops

When an ExecutionContext is abruptly/unexpectedly destroyed (e.g.
shutting down of document or iframe), an AudioContext can also
go away. This type of shutdown can be problematic because the render
thread still might be touching resources in the AudioContext allocated
by the main thread.

This CL introduces a self-referencing pointer to the AudioContext,
and it is cleared after the underlying render thread is stopped. In
that way, the destruction of AudioContext can be done safely.

Test: Locally confirmed the repro case doesn't crash (UAP) after 1hr.
Bug: 1043446
Change-Id: I2e40b7d58ca9d647eed8a5971fc69dc87ee3d1fe
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2049912
Reviewed-by: Raymond Toy rtoy@chromium.org
Reviewed-by: Michael Lippautz mlippautz@chromium.org
Commit-Queue: Hongchan Choi hongchan@chromium.org
Cr-Commit-Position: refs/heads/master@{#742338}

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

@nornagon nornagon requested a review from a team as a code owner April 9, 2020 00:43
@electron-cation electron-cation bot added the new-pr 🌱 PR opened recently label Apr 9, 2020
@nornagon nornagon added 8-x-y backport-check-skip Skip trop's backport validity checking labels Apr 9, 2020
@electron-cation electron-cation bot added new-pr 🌱 PR opened recently and removed new-pr 🌱 PR opened recently labels Apr 9, 2020
Copy link
Member
@jkleinsc jkleinsc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jkleinsc
Copy link
Member

Merging as CI failure is known flake unrelated to PR change.

@jkleinsc jkleinsc merged commit c3340ad into 8-x-y Apr 13, 2020
@release-clerk
Copy link
release-clerk bot commented Apr 13, 2020

Release Notes Persisted

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

@jkleinsc jkleinsc deleted the cherry-pick/8-x-y/chromium/85f708fa7ab8 branch April 13, 2020 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8-x-y backport-check-skip Skip trop's backport validity checking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0