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

Issue 2314413002: iSAC fix: Ignore overflow in signed left shift (Closed)

Created:
4 years, 3 months ago by kwiberg-webrtc
Modified:
4 years, 3 months ago
CC:
webrtc-reviews_webrtc.org, kwiberg-webrtc, Andrew MacDonald, tlegrand-webrtc, tterriberry_mozilla.com, audio-team_agora.io, hlundin-webrtc, peah-webrtc, minyue-webrtc, aluebs-webrtc, bjornv1
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

iSAC fix: Ignore overflow in signed left shift A left shift by 10 was assumed to never overflow, since "[s]imulation of the 25 files shows that maximum value in the vector gain_lo_hiQ17[] is 441344, which means that it is log2((2^31)/441344) = 12.2 shifting bits from saturation." However, a fuzzer test succeeded in provoking an overflow, which we ignore in this CL on the theory that only "abnormal" inputs cause overflow. Also had to replace a "foo << 1" with "foo * (1 << 1)" in WEBRTC_SPL_MUL_16_32_RSFT15 because foo could be negative; this problem showed up as soon as I'd asked UBSan to ignore the overflow discussed above. BUG=chromium:615819 Committed: https://crrev.com/2b1b7a83ad377b8540096d96c472f12bceed8172 Cr-Commit-Position: refs/heads/master@{#14162}

Patch Set 1 #

Patch Set 2 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -13 lines) Patch
M webrtc/common_audio/signal_processing/include/signal_processing_library.h View 1 chunk +3 lines, -3 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/isac/fix/source/lattice.c View 3 chunks +16 lines, -10 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
kwiberg-webrtc
4 years, 3 months ago (2016-09-07 12:12:52 UTC) #2
hlundin-webrtc
lgtm
4 years, 3 months ago (2016-09-07 20:51:35 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2314413002/1
4 years, 3 months ago (2016-09-08 08:20:11 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: ios_api_framework on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/ios_api_framework/builds/2474)
4 years, 3 months ago (2016-09-08 08:24:21 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2314413002/20001
4 years, 3 months ago (2016-09-09 12:00:18 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-09 12:51:36 UTC) #11
commit-bot: I haz the power
4 years, 3 months ago (2016-09-09 12:51:48 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/2b1b7a83ad377b8540096d96c472f12bceed8172
Cr-Commit-Position: refs/heads/master@{#14162}

Powered by Google App Engine
This is Rietveld 408576698