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

Issue 1979973003: Fix UBSan errors (left shift of negative value, left shift overflows int) (Closed)

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

Description

Fix UBSan errors (left shift of negative value, left shift overflows int) BUG=chromium:603498 Committed: https://crrev.com/89f237cedcb8204f2c5553673669f55a41a9e2d9 Cr-Commit-Position: refs/heads/master@{#12787}

Patch Set 1 #

Total comments: 6

Patch Set 2 : variable name #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -7 lines) Patch
M webrtc/modules/audio_coding/codecs/isac/main/source/arith_routines_hist.c View 1 chunk +4 lines, -4 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/isac/main/source/entropy_coding.c View 1 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
kwiberg-webrtc
https://codereview.webrtc.org/1979973003/diff/1/webrtc/modules/audio_coding/codecs/isac/main/source/arith_routines_hist.c File webrtc/modules/audio_coding/codecs/isac/main/source/arith_routines_hist.c (right): https://codereview.webrtc.org/1979973003/diff/1/webrtc/modules/audio_coding/codecs/isac/main/source/arith_routines_hist.c#newcode220 webrtc/modules/audio_coding/codecs/isac/main/source/arith_routines_hist.c:220: streamval |= (uint32_t)(*++stream_ptr); In the first line, *stream_ptr was ...
4 years, 7 months ago (2016-05-16 14:05:38 UTC) #2
tlegrand-webrtc
One nit, and then LGTM https://codereview.webrtc.org/1979973003/diff/1/webrtc/modules/audio_coding/codecs/isac/main/source/entropy_coding.c File webrtc/modules/audio_coding/codecs/isac/main/source/entropy_coding.c (right): https://codereview.webrtc.org/1979973003/diff/1/webrtc/modules/audio_coding/codecs/isac/main/source/entropy_coding.c#newcode165 webrtc/modules/audio_coding/codecs/isac/main/source/entropy_coding.c:165: int32_t d = (int32_t)((uint32_t)(diffQ16[k]) ...
4 years, 7 months ago (2016-05-17 12:43:37 UTC) #3
kwiberg-webrtc
https://codereview.webrtc.org/1979973003/diff/1/webrtc/modules/audio_coding/codecs/isac/main/source/entropy_coding.c File webrtc/modules/audio_coding/codecs/isac/main/source/entropy_coding.c (right): https://codereview.webrtc.org/1979973003/diff/1/webrtc/modules/audio_coding/codecs/isac/main/source/entropy_coding.c#newcode165 webrtc/modules/audio_coding/codecs/isac/main/source/entropy_coding.c:165: int32_t d = (int32_t)((uint32_t)(diffQ16[k]) << shftVal); On 2016/05/17 12:43:37, ...
4 years, 7 months ago (2016-05-17 13:10:39 UTC) #4
tlegrand-webrtc
Yupp, still want you to change the variable name. :) https://codereview.webrtc.org/1979973003/diff/1/webrtc/modules/audio_coding/codecs/isac/main/source/entropy_coding.c File webrtc/modules/audio_coding/codecs/isac/main/source/entropy_coding.c (right): https://codereview.webrtc.org/1979973003/diff/1/webrtc/modules/audio_coding/codecs/isac/main/source/entropy_coding.c#newcode165 ...
4 years, 7 months ago (2016-05-17 14:01:07 UTC) #5
kwiberg-webrtc
https://codereview.webrtc.org/1979973003/diff/1/webrtc/modules/audio_coding/codecs/isac/main/source/entropy_coding.c File webrtc/modules/audio_coding/codecs/isac/main/source/entropy_coding.c (right): https://codereview.webrtc.org/1979973003/diff/1/webrtc/modules/audio_coding/codecs/isac/main/source/entropy_coding.c#newcode165 webrtc/modules/audio_coding/codecs/isac/main/source/entropy_coding.c:165: int32_t d = (int32_t)((uint32_t)(diffQ16[k]) << shftVal); On 2016/05/17 14:01:06, ...
4 years, 7 months ago (2016-05-18 08:21:07 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1979973003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1979973003/20001
4 years, 7 months ago (2016-05-18 08:21:19 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 7 months ago (2016-05-18 09:20:32 UTC) #10
commit-bot: I haz the power
4 years, 7 months ago (2016-05-18 09:20:42 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/89f237cedcb8204f2c5553673669f55a41a9e2d9
Cr-Commit-Position: refs/heads/master@{#12787}

Powered by Google App Engine
This is Rietveld 408576698