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

Issue 27039002: Fix crash when the OfflineAudioContext constructor is given 0 as numberOfFrames (Closed)

Created:
7 years, 2 months ago by Inactive
Modified:
7 years, 2 months ago
CC:
blink-reviews
Visibility:
Public.

Description

Fix crash when the OfflineAudioContext constructor is given 0 as numberOfFrames Fix crash when the OfflineAudioContext constructor is given 0 as numberOfFrames. The constructor now throws an exception in this case since we cannot construct an AudioBuffer with zero frames. R=kbr@chromium.org BUG=306536 TEST=webaudio/offlineaudiocontext-constructor.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=159499

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fix nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -3 lines) Patch
A + LayoutTests/webaudio/offlineaudiocontext-constructor.html View 1 1 chunk +4 lines, -3 lines 0 comments Download
A LayoutTests/webaudio/offlineaudiocontext-constructor-expected.txt View 1 1 chunk +10 lines, -0 lines 0 comments Download
M Source/modules/webaudio/AudioContext.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/modules/webaudio/OfflineAudioContext.cpp View 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Inactive
See associated bug for stack trace.
7 years, 2 months ago (2013-10-11 16:01:11 UTC) #1
Ken Russell (switch to Gerrit)
LGTM, but please wait for review from rtoy as well. It looks like the error ...
7 years, 2 months ago (2013-10-11 18:57:43 UTC) #2
Raymond Toy (Google)
https://codereview.chromium.org/27039002/diff/1/LayoutTests/webaudio/offlineaudiocontext-constructor-crash.html File LayoutTests/webaudio/offlineaudiocontext-constructor-crash.html (right): https://codereview.chromium.org/27039002/diff/1/LayoutTests/webaudio/offlineaudiocontext-constructor-crash.html#newcode8 LayoutTests/webaudio/offlineaudiocontext-constructor-crash.html:8: description("Checks that the OfflineAudioContext does not crash on bad ...
7 years, 2 months ago (2013-10-11 20:04:39 UTC) #3
Inactive
https://codereview.chromium.org/27039002/diff/1/Source/modules/webaudio/AudioContext.cpp File Source/modules/webaudio/AudioContext.cpp (right): https://codereview.chromium.org/27039002/diff/1/Source/modules/webaudio/AudioContext.cpp#newcode159 Source/modules/webaudio/AudioContext.cpp:159: ASSERT(m_destinationNode); On 2013/10/11 20:04:40, rtoy wrote: > Did these ...
7 years, 2 months ago (2013-10-11 20:14:30 UTC) #4
Inactive
https://codereview.chromium.org/27039002/diff/1/LayoutTests/webaudio/offlineaudiocontext-constructor-crash.html File LayoutTests/webaudio/offlineaudiocontext-constructor-crash.html (right): https://codereview.chromium.org/27039002/diff/1/LayoutTests/webaudio/offlineaudiocontext-constructor-crash.html#newcode8 LayoutTests/webaudio/offlineaudiocontext-constructor-crash.html:8: description("Checks that the OfflineAudioContext does not crash on bad ...
7 years, 2 months ago (2013-10-11 20:48:17 UTC) #5
Raymond Toy (Google)
On 2013/10/11 20:14:30, Chris Dumez wrote: > https://codereview.chromium.org/27039002/diff/1/Source/modules/webaudio/AudioContext.cpp > File Source/modules/webaudio/AudioContext.cpp (right): > > https://codereview.chromium.org/27039002/diff/1/Source/modules/webaudio/AudioContext.cpp#newcode159 ...
7 years, 2 months ago (2013-10-11 21:02:08 UTC) #6
Raymond Toy (Google)
On 2013/10/11 20:48:17, Chris Dumez wrote: > https://codereview.chromium.org/27039002/diff/1/LayoutTests/webaudio/offlineaudiocontext-constructor-crash.html > File LayoutTests/webaudio/offlineaudiocontext-constructor-crash.html (right): > > https://codereview.chromium.org/27039002/diff/1/LayoutTests/webaudio/offlineaudiocontext-constructor-crash.html#newcode8 ...
7 years, 2 months ago (2013-10-11 21:02:32 UTC) #7
Inactive
On 2013/10/11 21:02:08, rtoy wrote: > On 2013/10/11 20:14:30, Chris Dumez wrote: > > > ...
7 years, 2 months ago (2013-10-11 21:22:12 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/27039002/10001
7 years, 2 months ago (2013-10-11 21:23:19 UTC) #9
commit-bot: I haz the power
7 years, 2 months ago (2013-10-12 05:16:27 UTC) #10
Message was sent while issue was closed.
Change committed as 159499

Powered by Google App Engine
This is Rietveld 408576698