Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(254)

Issue 2740103005: Fix premature access on m_fifo in AudioDestination. (Closed)

Created:
3 years, 9 months ago by hongchan
Modified:
3 years, 9 months ago
Reviewers:
Raymond Toy, amineer
CC:
chromium-reviews, blink-reviews, kinuko+watch, Raymond Toy, hongchan
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix premature access on m_fifo in AudioDestination. In the AudioDestination construction process, WebAudioDevice can start the thread even before m_fifo is ready. This may result a crash when render() method is called by AudioDeviceThread. This CL implements a speculative fix of the incorrect order of initialization. BUG=692423 TEST=(none) Review-Url: https://codereview.chromium.org/2740103005 Cr-Commit-Position: refs/heads/master@{#456204} Committed: https://chromium.googlesource.com/chromium/src/+/9d2ce527f901bc5c2175c783082ca8e8b964f1ad

Patch Set 1 : Initial commit #

Total comments: 8

Patch Set 2 : Addressing feedback #

Patch Set 3 : Reverting changes in PushPullFIFO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -9 lines) Patch
M third_party/WebKit/Source/platform/audio/AudioDestination.cpp View 1 3 chunks +13 lines, -9 lines 0 comments Download

Messages

Total messages: 22 (12 generated)
hongchan
PTAL.
3 years, 9 months ago (2017-03-10 19:29:16 UTC) #3
Raymond Toy
https://codereview.chromium.org/2740103005/diff/1/third_party/WebKit/Source/platform/audio/AudioDestination.cpp File third_party/WebKit/Source/platform/audio/AudioDestination.cpp (right): https://codereview.chromium.org/2740103005/diff/1/third_party/WebKit/Source/platform/audio/AudioDestination.cpp#newcode51 third_party/WebKit/Source/platform/audio/AudioDestination.cpp:51: #else Why change this now? No one has ever ...
3 years, 9 months ago (2017-03-10 19:34:55 UTC) #5
hongchan
https://codereview.chromium.org/2740103005/diff/1/third_party/WebKit/Source/platform/audio/AudioDestination.cpp File third_party/WebKit/Source/platform/audio/AudioDestination.cpp (right): https://codereview.chromium.org/2740103005/diff/1/third_party/WebKit/Source/platform/audio/AudioDestination.cpp#newcode51 third_party/WebKit/Source/platform/audio/AudioDestination.cpp:51: #else On 2017/03/10 19:34:55, Raymond Toy wrote: > Why ...
3 years, 9 months ago (2017-03-10 20:57:36 UTC) #6
Raymond Toy
https://codereview.chromium.org/2740103005/diff/1/third_party/WebKit/Source/platform/audio/AudioDestination.cpp File third_party/WebKit/Source/platform/audio/AudioDestination.cpp (right): https://codereview.chromium.org/2740103005/diff/1/third_party/WebKit/Source/platform/audio/AudioDestination.cpp#newcode80 third_party/WebKit/Source/platform/audio/AudioDestination.cpp:80: CHECK(m_fifo); On 2017/03/10 20:57:36, hongchan wrote: > On 2017/03/10 ...
3 years, 9 months ago (2017-03-10 21:11:10 UTC) #7
hongchan
https://codereview.chromium.org/2740103005/diff/1/third_party/WebKit/Source/platform/audio/AudioDestination.cpp File third_party/WebKit/Source/platform/audio/AudioDestination.cpp (right): https://codereview.chromium.org/2740103005/diff/1/third_party/WebKit/Source/platform/audio/AudioDestination.cpp#newcode80 third_party/WebKit/Source/platform/audio/AudioDestination.cpp:80: CHECK(m_fifo); On 2017/03/10 21:11:09, Raymond Toy wrote: > On ...
3 years, 9 months ago (2017-03-10 21:13:55 UTC) #8
hongchan
3 years, 9 months ago (2017-03-10 21:21:44 UTC) #9
hongchan
amineer@ Could you take a look at this CL and merge if okay?
3 years, 9 months ago (2017-03-10 21:24:01 UTC) #12
Raymond Toy
lgtm
3 years, 9 months ago (2017-03-10 21:26:24 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2740103005/40001
3 years, 9 months ago (2017-03-10 22:48:44 UTC) #19
commit-bot: I haz the power
3 years, 9 months ago (2017-03-10 22:54:51 UTC) #22
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/9d2ce527f901bc5c2175c783082c...

Powered by Google App Engine
This is Rietveld 408576698