DescriptionFix heap-use-after-free issue with WebAudioCapturerSource.
WebAudioCapturerSource registers with a blink WebMediaStreamSource.
When the audio track was stopped, the WebAudioCapturerSource was
destroyed and the WebMediaStreamSource was left with a dangling
pointer, which it tried to use, resulting in access to freed
memory and usually a crashed tab.
This CL makes WebAudioCapturerSource aware of the WebMediaStreamSource
with which it is registered, so that it can be deregistered when the
audio track is stopped.
BUG=473253
TEST=See testcase.html in crbug.com/473253
Committed: https://crrev.com/228cd9447121ede4d32ab48c8dfe066736cfdae2
Cr-Commit-Position: refs/heads/master@{#324622}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Minor style fix #Patch Set 3 : Improvements in comments, as suggested by henrika@ #Patch Set 4 : Improvements in the comments, as suggested by henrika@ #
Total comments: 1
Patch Set 5 : Add thread check to WebAudioCapturerSourcer destructor #
Messages
Total messages: 14 (4 generated)
|