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

Issue 2717123004: Avoid overflow in WebRtcSpl_DotProductWithScale (Closed)

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

Description

Avoid overflow in WebRtcSpl_DotProductWithScale BUG=chromium:676935 Review-Url: https://codereview.webrtc.org/2717123004 Cr-Commit-Position: refs/heads/master@{#17091} Committed: https://chromium.googlesource.com/external/webrtc/+/d461ffce2ac65ceaa6e6e4bb8d1abe2b0be87bd7

Patch Set 1 #

Total comments: 2

Patch Set 2 : Convert to C++ and use saturated_cast #

Total comments: 2

Patch Set 3 : Move to separate target #

Total comments: 6

Patch Set 4 : Remove old comment #

Patch Set 5 : Rebase #

Patch Set 6 : Fixing deps problems #

Total comments: 3

Patch Set 7 : Remove wd4334 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -52 lines) Patch
M webrtc/common_audio/BUILD.gn View 1 2 3 4 5 6 2 chunks +16 lines, -1 line 0 comments Download
A webrtc/common_audio/signal_processing/dot_product_with_scale.h View 1 2 1 chunk +41 lines, -0 lines 0 comments Download
M webrtc/common_audio/signal_processing/dot_product_with_scale.c View 1 1 chunk +0 lines, -32 lines 0 comments Download
A + webrtc/common_audio/signal_processing/dot_product_with_scale.cc View 1 2 2 chunks +5 lines, -3 lines 0 comments Download
M webrtc/common_audio/signal_processing/include/signal_processing_library.h View 1 2 3 2 chunks +1 line, -16 lines 0 comments Download

Messages

Total messages: 34 (14 generated)
hlundin-webrtc
kwiberg@, ptal
3 years, 9 months ago (2017-02-27 13:11:11 UTC) #2
kwiberg-webrtc
https://codereview.webrtc.org/2717123004/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/2717123004/diff/1/webrtc/common_audio/signal_processing/dot_product_with_scale.c#newcode31 webrtc/common_audio/signal_processing/dot_product_with_scale.c:31: return (int32_t) sum; You'll get garbage if this cast ...
3 years, 9 months ago (2017-02-28 10:07:48 UTC) #3
hlundin-webrtc
PTAL again. https://codereview.webrtc.org/2717123004/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/2717123004/diff/1/webrtc/common_audio/signal_processing/dot_product_with_scale.c#newcode31 webrtc/common_audio/signal_processing/dot_product_with_scale.c:31: return (int32_t) sum; On 2017/02/28 10:07:47, kwiberg-webrtc ...
3 years, 9 months ago (2017-02-28 11:58:45 UTC) #4
kwiberg-webrtc
https://codereview.webrtc.org/2717123004/diff/20001/webrtc/common_audio/BUILD.gn File webrtc/common_audio/BUILD.gn (right): https://codereview.webrtc.org/2717123004/diff/20001/webrtc/common_audio/BUILD.gn#newcode50 webrtc/common_audio/BUILD.gn:50: "signal_processing/dot_product_with_scale.cc", The header file is still in common_audio_c, and ...
3 years, 9 months ago (2017-02-28 12:11:21 UTC) #5
hlundin-webrtc
PTAL again. https://codereview.webrtc.org/2717123004/diff/20001/webrtc/common_audio/BUILD.gn File webrtc/common_audio/BUILD.gn (right): https://codereview.webrtc.org/2717123004/diff/20001/webrtc/common_audio/BUILD.gn#newcode50 webrtc/common_audio/BUILD.gn:50: "signal_processing/dot_product_with_scale.cc", On 2017/02/28 12:11:21, kwiberg-webrtc wrote: > ...
3 years, 9 months ago (2017-02-28 12:35:17 UTC) #6
kwiberg-webrtc
https://codereview.webrtc.org/2717123004/diff/40001/webrtc/common_audio/BUILD.gn File webrtc/common_audio/BUILD.gn (right): https://codereview.webrtc.org/2717123004/diff/40001/webrtc/common_audio/BUILD.gn#newcode215 webrtc/common_audio/BUILD.gn:215: cflags = [ "/wd4334" ] # Ignore warning on ...
3 years, 9 months ago (2017-02-28 12:51:02 UTC) #7
hlundin-webrtc
https://codereview.webrtc.org/2717123004/diff/40001/webrtc/common_audio/signal_processing/include/signal_processing_library.h File webrtc/common_audio/signal_processing/include/signal_processing_library.h (right): https://codereview.webrtc.org/2717123004/diff/40001/webrtc/common_audio/signal_processing/include/signal_processing_library.h#newcode612 webrtc/common_audio/signal_processing/include/signal_processing_library.h:612: // int32_t WebRtcSpl_DotProductWithScale(const int16_t* vector1, On 2017/02/28 12:51:01, kwiberg-webrtc ...
3 years, 9 months ago (2017-03-06 12:43:26 UTC) #8
kwiberg-webrtc
https://codereview.webrtc.org/2717123004/diff/40001/webrtc/common_audio/signal_processing/include/signal_processing_library.h File webrtc/common_audio/signal_processing/include/signal_processing_library.h (right): https://codereview.webrtc.org/2717123004/diff/40001/webrtc/common_audio/signal_processing/include/signal_processing_library.h#newcode612 webrtc/common_audio/signal_processing/include/signal_processing_library.h:612: // int32_t WebRtcSpl_DotProductWithScale(const int16_t* vector1, On 2017/03/06 12:43:26, hlundin-webrtc ...
3 years, 9 months ago (2017-03-06 14:35:50 UTC) #9
hlundin-webrtc
https://codereview.webrtc.org/2717123004/diff/40001/webrtc/common_audio/signal_processing/include/signal_processing_library.h File webrtc/common_audio/signal_processing/include/signal_processing_library.h (right): https://codereview.webrtc.org/2717123004/diff/40001/webrtc/common_audio/signal_processing/include/signal_processing_library.h#newcode612 webrtc/common_audio/signal_processing/include/signal_processing_library.h:612: // int32_t WebRtcSpl_DotProductWithScale(const int16_t* vector1, On 2017/03/06 14:35:50, kwiberg-webrtc ...
3 years, 9 months ago (2017-03-06 15:44:23 UTC) #10
kwiberg-webrtc
lgtm Thanks for indulging me...
3 years, 9 months ago (2017-03-06 17:59:51 UTC) #11
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/2717123004/60001
3 years, 9 months ago (2017-03-07 09:32:19 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: ios32_sim_ios9_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/ios32_sim_ios9_dbg/builds/2267) ios64_sim_ios9_dbg on master.tryserver.webrtc (JOB_FAILED, ...
3 years, 9 months ago (2017-03-07 09:34:18 UTC) #15
hlundin-webrtc
Rebase
3 years, 9 months ago (2017-03-07 09:42:40 UTC) #16
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/2717123004/80001
3 years, 9 months ago (2017-03-07 09:43:39 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_arm on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_arm/builds/6504)
3 years, 9 months ago (2017-03-07 09:45:51 UTC) #21
kwiberg-webrtc
lgtm https://codereview.webrtc.org/2717123004/diff/100001/webrtc/common_audio/BUILD.gn File webrtc/common_audio/BUILD.gn (right): https://codereview.webrtc.org/2717123004/diff/100001/webrtc/common_audio/BUILD.gn#newcode220 webrtc/common_audio/BUILD.gn:220: cflags = [ "/wd4334" ] # Ignore warning ...
3 years, 9 months ago (2017-03-07 10:27:21 UTC) #24
hlundin-webrtc
https://codereview.webrtc.org/2717123004/diff/100001/webrtc/common_audio/BUILD.gn File webrtc/common_audio/BUILD.gn (right): https://codereview.webrtc.org/2717123004/diff/100001/webrtc/common_audio/BUILD.gn#newcode220 webrtc/common_audio/BUILD.gn:220: cflags = [ "/wd4334" ] # Ignore warning on ...
3 years, 9 months ago (2017-03-07 11:40:05 UTC) #27
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/2717123004/120001
3 years, 9 months ago (2017-03-07 11:40:21 UTC) #30
kwiberg-webrtc
https://codereview.webrtc.org/2717123004/diff/100001/webrtc/common_audio/BUILD.gn File webrtc/common_audio/BUILD.gn (right): https://codereview.webrtc.org/2717123004/diff/100001/webrtc/common_audio/BUILD.gn#newcode220 webrtc/common_audio/BUILD.gn:220: cflags = [ "/wd4334" ] # Ignore warning on ...
3 years, 9 months ago (2017-03-07 11:54:51 UTC) #31
commit-bot: I haz the power
3 years, 9 months ago (2017-03-07 12:02:52 UTC) #34
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/external/webrtc/+/d461ffce2ac65ceaa6e6e4bb8...

Powered by Google App Engine
This is Rietveld 408576698