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

Issue 2616363003: Fix for left-shift of potentially negative values in NetEq. (Closed)

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

Description

Fix for left-shift of potentially negative values in NetEq. Left shifting negative integers is undefined behavior, and should be prevented. This CL fixes one such instance in the NetEq Expand function. BUG=chromium:677106 Review-Url: https://codereview.webrtc.org/2616363003 Cr-Commit-Position: refs/heads/master@{#15966} Committed: https://chromium.googlesource.com/external/webrtc/+/4843dd13aa3426d9a3caee768fc015d8731c5d18

Patch Set 1 #

Total comments: 3

Patch Set 2 : Update with Karl's suggestion. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M webrtc/modules/audio_coding/neteq/expand.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (7 generated)
ivoc
Hi Henrik, PTAL. The values in this shift operation (peak values of a cross correlation) ...
3 years, 11 months ago (2017-01-09 14:02:50 UTC) #2
kwiberg-webrtc
lgtm https://codereview.webrtc.org/2616363003/diff/1/webrtc/modules/audio_coding/neteq/expand.cc File webrtc/modules/audio_coding/neteq/expand.cc (right): https://codereview.webrtc.org/2616363003/diff/1/webrtc/modules/audio_coding/neteq/expand.cc#newcode444 webrtc/modules/audio_coding/neteq/expand.cc:444: ratio = (best_correlation[i] * 65536) / best_distortion[i]; Since ...
3 years, 11 months ago (2017-01-09 14:07:14 UTC) #5
hlundin-webrtc
lgtm with Karl's suggestion. https://codereview.webrtc.org/2616363003/diff/1/webrtc/modules/audio_coding/neteq/expand.cc File webrtc/modules/audio_coding/neteq/expand.cc (right): https://codereview.webrtc.org/2616363003/diff/1/webrtc/modules/audio_coding/neteq/expand.cc#newcode444 webrtc/modules/audio_coding/neteq/expand.cc:444: ratio = (best_correlation[i] * 65536) ...
3 years, 11 months ago (2017-01-09 14:12:08 UTC) #6
ivoc
https://codereview.webrtc.org/2616363003/diff/1/webrtc/modules/audio_coding/neteq/expand.cc File webrtc/modules/audio_coding/neteq/expand.cc (right): https://codereview.webrtc.org/2616363003/diff/1/webrtc/modules/audio_coding/neteq/expand.cc#newcode444 webrtc/modules/audio_coding/neteq/expand.cc:444: ratio = (best_correlation[i] * 65536) / best_distortion[i]; On 2017/01/09 ...
3 years, 11 months ago (2017-01-09 14:39:53 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/2616363003/20001
3 years, 11 months ago (2017-01-09 14:40:28 UTC) #10
commit-bot: I haz the power
3 years, 11 months ago (2017-01-09 16:31:46 UTC) #13
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/external/webrtc/+/4843dd13aa3426d9a3caee768...

Powered by Google App Engine
This is Rietveld 408576698