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

Issue 1657593003: Carefully handle large end time values in AudioParam automations (Closed)

Created:
4 years, 10 months ago by Raymond Toy
Modified:
4 years, 10 months ago
Reviewers:
hongchan
CC:
chromium-reviews, blink-reviews, Raymond Toy
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Carefully handle large end time values in AudioParam automations The computation of fillToEndFrame invokes undefined behavior when casting a huge value to a size_t when the value doesn't fit in a size_t. BUG=582701 TEST=audioparam-large-endtime.html Committed: https://crrev.com/559fdab922a8d82f82824657e6b211d8c778bf60 Cr-Commit-Position: refs/heads/master@{#373003}

Patch Set 1 #

Patch Set 2 : Add test #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -1 line) Patch
A third_party/WebKit/LayoutTests/webaudio/audioparam-large-endtime.html View 1 1 chunk +75 lines, -0 lines 4 comments Download
A third_party/WebKit/LayoutTests/webaudio/audioparam-large-endtime-expected.txt View 1 1 chunk +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.cpp View 1 chunk +8 lines, -1 line 0 comments Download

Messages

Total messages: 11 (3 generated)
Raymond Toy
PTAL
4 years, 10 months ago (2016-02-01 19:23:47 UTC) #2
hongchan
https://codereview.chromium.org/1657593003/diff/20001/third_party/WebKit/LayoutTests/webaudio/audioparam-large-endtime.html File third_party/WebKit/LayoutTests/webaudio/audioparam-large-endtime.html (right): https://codereview.chromium.org/1657593003/diff/20001/third_party/WebKit/LayoutTests/webaudio/audioparam-large-endtime.html#newcode23 third_party/WebKit/LayoutTests/webaudio/audioparam-large-endtime.html:23: // See crbug.com/582701. Create an audioparam with a huge ...
4 years, 10 months ago (2016-02-02 17:07:43 UTC) #3
Raymond Toy
https://codereview.chromium.org/1657593003/diff/20001/third_party/WebKit/LayoutTests/webaudio/audioparam-large-endtime.html File third_party/WebKit/LayoutTests/webaudio/audioparam-large-endtime.html (right): https://codereview.chromium.org/1657593003/diff/20001/third_party/WebKit/LayoutTests/webaudio/audioparam-large-endtime.html#newcode23 third_party/WebKit/LayoutTests/webaudio/audioparam-large-endtime.html:23: // See crbug.com/582701. Create an audioparam with a huge ...
4 years, 10 months ago (2016-02-02 17:34:47 UTC) #4
hongchan
On 2016/02/02 17:34:47, Raymond Toy wrote: > https://codereview.chromium.org/1657593003/diff/20001/third_party/WebKit/LayoutTests/webaudio/audioparam-large-endtime.html > File third_party/WebKit/LayoutTests/webaudio/audioparam-large-endtime.html > (right): > > ...
4 years, 10 months ago (2016-02-02 17:54:38 UTC) #5
hongchan
lgtm
4 years, 10 months ago (2016-02-02 17:54:48 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1657593003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1657593003/20001
4 years, 10 months ago (2016-02-02 17:57:40 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 10 months ago (2016-02-02 19:27:22 UTC) #9
commit-bot: I haz the power
4 years, 10 months ago (2016-02-02 19:28:20 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/559fdab922a8d82f82824657e6b211d8c778bf60
Cr-Commit-Position: refs/heads/master@{#373003}

Powered by Google App Engine
This is Rietveld 408576698