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

Issue 2571483002: Fix for integer overflow in NetEq. (Closed)

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

Description

Fix for integer overflow in NetEq. BUG=chromium:668736 Review-Url: https://codereview.webrtc.org/2571483002 Cr-Commit-Position: refs/heads/master@{#15654} Committed: https://chromium.googlesource.com/external/webrtc/+/ffecbbf5d0602147d644c94ee9a8f25e6c25733d

Patch Set 1 #

Total comments: 6

Patch Set 2 : Changed int32_t to int64_t #

Patch Set 3 : Used different approach to fix the issue. #

Total comments: 3

Patch Set 4 : Improved version of the fix. #

Patch Set 5 : Update to bitexactness tests. #

Patch Set 6 : Update to BitExactness for arm64. #

Total comments: 6

Patch Set 7 : Comments by kwiberg. #

Total comments: 2

Patch Set 8 : More comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -30 lines) Patch
M webrtc/modules/audio_coding/acm2/audio_coding_module_unittest.cc View 1 2 3 4 5 2 chunks +20 lines, -20 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/expand.cc View 1 2 3 4 5 6 7 1 chunk +14 lines, -6 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/neteq_unittest.cc View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 35 (11 generated)
ivoc
Hi Henrik, PTAL.
4 years ago (2016-12-12 15:27:36 UTC) #2
hlundin-webrtc
LGTM, provided I'm wrong... :) https://codereview.webrtc.org/2571483002/diff/1/webrtc/modules/audio_coding/neteq/expand.cc File webrtc/modules/audio_coding/neteq/expand.cc (right): https://codereview.webrtc.org/2571483002/diff/1/webrtc/modules/audio_coding/neteq/expand.cc#newcode684 webrtc/modules/audio_coding/neteq/expand.cc:684: int32_t unvoiced_energy = WebRtcSpl_DotProductWithScale_64b( ...
4 years ago (2016-12-12 21:40:42 UTC) #3
ivoc
https://codereview.webrtc.org/2571483002/diff/1/webrtc/modules/audio_coding/neteq/expand.cc File webrtc/modules/audio_coding/neteq/expand.cc (right): https://codereview.webrtc.org/2571483002/diff/1/webrtc/modules/audio_coding/neteq/expand.cc#newcode684 webrtc/modules/audio_coding/neteq/expand.cc:684: int32_t unvoiced_energy = WebRtcSpl_DotProductWithScale_64b( On 2016/12/12 21:40:41, hlundin-webrtc wrote: ...
4 years ago (2016-12-13 08:43:09 UTC) #4
kwiberg-webrtc
https://codereview.webrtc.org/2571483002/diff/1/webrtc/common_audio/signal_processing/dot_product_with_scale.c File webrtc/common_audio/signal_processing/dot_product_with_scale.c (right): https://codereview.webrtc.org/2571483002/diff/1/webrtc/common_audio/signal_processing/dot_product_with_scale.c#newcode52 webrtc/common_audio/signal_processing/dot_product_with_scale.c:52: return sum; IIUC, the reason for having the right ...
4 years ago (2016-12-13 08:45:36 UTC) #6
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/2571483002/20001
4 years ago (2016-12-13 08:46:21 UTC) #9
ivoc
I used a different approach to fix the problem now. The problem with the previous ...
4 years ago (2016-12-13 12:50:11 UTC) #11
hlundin-webrtc
lgtm
4 years ago (2016-12-13 12:56:11 UTC) #12
kwiberg-webrtc
lgtm. Following the train of thought I suggested is optional. https://codereview.webrtc.org/2571483002/diff/40001/webrtc/modules/audio_coding/neteq/expand.cc File webrtc/modules/audio_coding/neteq/expand.cc (right): https://codereview.webrtc.org/2571483002/diff/40001/webrtc/modules/audio_coding/neteq/expand.cc#newcode681 ...
4 years ago (2016-12-13 13:09:46 UTC) #13
ivoc
On 2016/12/13 13:09:46, kwiberg-webrtc wrote: > lgtm. Following the train of thought I suggested is ...
4 years ago (2016-12-13 13:36:15 UTC) #14
ivoc
On 2016/12/13 13:36:15, ivoc wrote: > On 2016/12/13 13:09:46, kwiberg-webrtc wrote: > > lgtm. Following ...
4 years ago (2016-12-13 13:41:56 UTC) #15
kwiberg-webrtc
On 2016/12/13 13:41:56, ivoc wrote: > On 2016/12/13 13:36:15, ivoc wrote: > > On 2016/12/13 ...
4 years ago (2016-12-13 14:42:39 UTC) #16
ivoc
On 2016/12/13 14:42:39, kwiberg-webrtc wrote: > On 2016/12/13 13:41:56, ivoc wrote: > > On 2016/12/13 ...
4 years ago (2016-12-13 15:44:59 UTC) #17
kwiberg-webrtc
On 2016/12/13 15:44:59, ivoc wrote: > On 2016/12/13 14:42:39, kwiberg-webrtc wrote: > > On 2016/12/13 ...
4 years ago (2016-12-14 09:15:19 UTC) #18
ivoc
On 2016/12/14 09:15:19, kwiberg-webrtc wrote: > On 2016/12/13 15:44:59, ivoc wrote: > > On 2016/12/13 ...
4 years ago (2016-12-15 13:09:48 UTC) #19
hlundin-webrtc
lgtm
4 years ago (2016-12-15 13:14:38 UTC) #20
kwiberg-webrtc
https://codereview.webrtc.org/2571483002/diff/100001/webrtc/modules/audio_coding/neteq/expand.cc File webrtc/modules/audio_coding/neteq/expand.cc (right): https://codereview.webrtc.org/2571483002/diff/100001/webrtc/modules/audio_coding/neteq/expand.cc#newcode678 webrtc/modules/audio_coding/neteq/expand.cc:678: int16_t unvoiced_max_abs = WebRtcSpl_MaxAbsValueW16(unvoiced_vector, 128); const? Also, won't the ...
4 years ago (2016-12-15 14:11:16 UTC) #21
ivoc
https://codereview.webrtc.org/2571483002/diff/100001/webrtc/modules/audio_coding/neteq/expand.cc File webrtc/modules/audio_coding/neteq/expand.cc (right): https://codereview.webrtc.org/2571483002/diff/100001/webrtc/modules/audio_coding/neteq/expand.cc#newcode678 webrtc/modules/audio_coding/neteq/expand.cc:678: int16_t unvoiced_max_abs = WebRtcSpl_MaxAbsValueW16(unvoiced_vector, 128); On 2016/12/15 14:11:16, kwiberg-webrtc ...
4 years ago (2016-12-15 15:12:20 UTC) #22
kwiberg-webrtc
https://codereview.webrtc.org/2571483002/diff/120001/webrtc/modules/audio_coding/neteq/expand.cc File webrtc/modules/audio_coding/neteq/expand.cc (right): https://codereview.webrtc.org/2571483002/diff/120001/webrtc/modules/audio_coding/neteq/expand.cc#newcode690 webrtc/modules/audio_coding/neteq/expand.cc:690: unvoiced_prescale++; Wouldn't you need to add 2, not just ...
4 years ago (2016-12-16 10:23:32 UTC) #23
ivoc
https://codereview.webrtc.org/2571483002/diff/120001/webrtc/modules/audio_coding/neteq/expand.cc File webrtc/modules/audio_coding/neteq/expand.cc (right): https://codereview.webrtc.org/2571483002/diff/120001/webrtc/modules/audio_coding/neteq/expand.cc#newcode690 webrtc/modules/audio_coding/neteq/expand.cc:690: unvoiced_prescale++; On 2016/12/16 10:23:32, kwiberg-webrtc wrote: > Wouldn't you ...
4 years ago (2016-12-16 11:45:01 UTC) #24
kwiberg-webrtc
On 2016/12/16 11:45:01, ivoc wrote: > https://codereview.webrtc.org/2571483002/diff/120001/webrtc/modules/audio_coding/neteq/expand.cc > File webrtc/modules/audio_coding/neteq/expand.cc (right): > > https://codereview.webrtc.org/2571483002/diff/120001/webrtc/modules/audio_coding/neteq/expand.cc#newcode690 > ...
4 years ago (2016-12-16 11:57:11 UTC) #25
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/2571483002/140001
4 years ago (2016-12-16 13:15:35 UTC) #28
commit-bot: I haz the power
CLs for remote refs other than refs/pending/heads/master must contain NOTRY=true and NOPRESUBMIT=true in order for ...
4 years ago (2016-12-16 13:15:37 UTC) #30
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/2571483002/140001
4 years ago (2016-12-16 13:50:15 UTC) #32
commit-bot: I haz the power
4 years ago (2016-12-16 13:51:54 UTC) #35
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/external/webrtc/+/ffecbbf5d0602147d644c94ee...

Powered by Google App Engine
This is Rietveld 408576698