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

Issue 1734883003: iSAC entropy coder: Avoid signed integer overflow (Closed)

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

Description

iSAC entropy coder: Avoid signed integer overflow By doing an unsigned instead of a signed addition, we get the exact same machine code (in non-UBSan builds), but no longer trigger undefined behavior since unsigned overflow is defined behavior. BUG=webrtc:5485 Committed: https://crrev.com/806706875dac634a974f2ede1c4926a2e549fe47 Cr-Commit-Position: refs/heads/master@{#11776}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -11 lines) Patch
M tools/ubsan/blacklist.txt View 2 chunks +1 line, -4 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/isac/fix/source/entropy_coding.c View 2 chunks +3 lines, -3 lines 2 comments Download
M webrtc/modules/audio_coding/codecs/isac/main/source/entropy_coding.c View 3 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 13 (5 generated)
kwiberg-webrtc
Except in one place (where I have a comment), this CL just changes a signed ...
4 years, 10 months ago (2016-02-25 11:57:00 UTC) #2
kjellander_webrtc
lgtm for tools/ubsan/blacklist.txt passing the rest to Mr. Lundin
4 years, 10 months ago (2016-02-25 12:02:10 UTC) #3
hlundin-webrtc
This lgtm, I suppose, but I have no idea what the changed range for the ...
4 years, 10 months ago (2016-02-25 14:40:04 UTC) #6
kwiberg-webrtc
On 2016/02/25 14:40:04, hlundin-webrtc wrote: > This lgtm, I suppose, but I have no idea ...
4 years, 10 months ago (2016-02-25 14:49:15 UTC) #7
tlegrand-webrtc
I think the dither change is safe to do, given that the result is still ...
4 years, 10 months ago (2016-02-26 10:21:41 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1734883003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1734883003/1
4 years, 10 months ago (2016-02-26 10:50:41 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 10 months ago (2016-02-26 10:52:14 UTC) #11
commit-bot: I haz the power
4 years, 10 months ago (2016-02-26 10:52:22 UTC) #13
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/806706875dac634a974f2ede1c4926a2e549fe47
Cr-Commit-Position: refs/heads/master@{#11776}

Powered by Google App Engine
This is Rietveld 408576698