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

Issue 1685743003: Avoid overflow in WebRtcSpl_Sqrt (Closed)

Created:
4 years, 10 months ago by hlundin-webrtc
Modified:
4 years, 10 months ago
Reviewers:
kwiberg-webrtc
CC:
webrtc-reviews_webrtc.org, Andrew MacDonald, tterriberry_mozilla.com, audio-team_agora.io, peah-webrtc, minyue-webrtc, aluebs-webrtc, bjornv1
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Avoid overflow in WebRtcSpl_Sqrt When the input to WebRtcSpl_Sqrt was the maximum negative value (-2147483648), the calculations would overflow. This is now solved by nudging this particular input value one step. BUG=webrtc:5512 Committed: https://crrev.com/71e92dc5e8f56da447865a66df2076e4095a7348 Cr-Commit-Position: refs/heads/master@{#11631}

Patch Set 1 #

Total comments: 2

Patch Set 2 : After review #

Patch Set 3 : Patch set 2 didn't work - fixing it #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -2 lines) Patch
M webrtc/common_audio/signal_processing/spl_sqrt.c View 1 2 1 chunk +13 lines, -2 lines 0 comments Download

Messages

Total messages: 26 (10 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1685743003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1685743003/1
4 years, 10 months ago (2016-02-10 15:23:54 UTC) #2
commit-bot: I haz the power
Dry run: Exceeded global retry quota
4 years, 10 months ago (2016-02-10 15:33:08 UTC) #4
hlundin-webrtc
Karl, Please, take a look. Thanks!
4 years, 10 months ago (2016-02-11 07:59:19 UTC) #6
kwiberg-webrtc
lgtm https://codereview.webrtc.org/1685743003/diff/1/webrtc/common_audio/signal_processing/spl_sqrt.c File webrtc/common_audio/signal_processing/spl_sqrt.c (right): https://codereview.webrtc.org/1685743003/diff/1/webrtc/common_audio/signal_processing/spl_sqrt.c#newcode150 webrtc/common_audio/signal_processing/spl_sqrt.c:150: } The optimizer may already be doing this ...
4 years, 10 months ago (2016-02-11 09:28:10 UTC) #7
hlundin-webrtc
After review
4 years, 10 months ago (2016-02-11 21:57:42 UTC) #8
hlundin-webrtc
https://codereview.webrtc.org/1685743003/diff/1/webrtc/common_audio/signal_processing/spl_sqrt.c File webrtc/common_audio/signal_processing/spl_sqrt.c (right): https://codereview.webrtc.org/1685743003/diff/1/webrtc/common_audio/signal_processing/spl_sqrt.c#newcode150 webrtc/common_audio/signal_processing/spl_sqrt.c:150: } On 2016/02/11 09:28:10, kwiberg-webrtc wrote: > The optimizer ...
4 years, 10 months ago (2016-02-11 22:02:29 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1685743003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1685743003/20001
4 years, 10 months ago (2016-02-11 22:02:47 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win_compile_dbg on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_compile_dbg/builds/2990)
4 years, 10 months ago (2016-02-11 22:05:09 UTC) #14
hlundin-webrtc
Try again
4 years, 10 months ago (2016-02-15 15:09:08 UTC) #15
hlundin-webrtc
Fixing it again
4 years, 10 months ago (2016-02-15 15:20:31 UTC) #16
hlundin-webrtc
Patch set 2 didn't work - fixing it
4 years, 10 months ago (2016-02-15 15:22:42 UTC) #18
hlundin-webrtc
Karl, your suggestion with COMPILE_ASSERT didn't compile on some bots (see patch set 2). So, ...
4 years, 10 months ago (2016-02-15 15:24:07 UTC) #20
kwiberg-webrtc
On 2016/02/15 15:24:07, hlundin-webrtc wrote: > Karl, your suggestion with COMPILE_ASSERT didn't compile on some ...
4 years, 10 months ago (2016-02-15 18:28:22 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1685743003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1685743003/80001
4 years, 10 months ago (2016-02-15 19:07:16 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:80001)
4 years, 10 months ago (2016-02-15 20:38:12 UTC) #24
commit-bot: I haz the power
4 years, 10 months ago (2016-02-15 20:38:18 UTC) #26
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/71e92dc5e8f56da447865a66df2076e4095a7348
Cr-Commit-Position: refs/heads/master@{#11631}

Powered by Google App Engine
This is Rietveld 408576698