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

Issue 3005003002: Make UBSan warnings fatal and fix the existing ones (Closed)

Created:
3 years, 3 months ago by oprypin_webrtc
Modified:
3 years, 3 months ago
CC:
webrtc-reviews_webrtc.org
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Make UBSan warnings fatal and fix the existing ones The warnings were (all signed integer overflow): webrtc/common_audio/signal_processing/levinson_durbin.c:46:25 12 * 268435456 cannot be represented in type 'int' webrtc/modules/audio_processing/aecm/aecm_core.cc:930:69 522240 * 6115 cannot be represented in type 'int' webrtc/modules/audio_processing/aecm/aecm_core_c.cc:455:36 72293096 * 50 cannot be represented in type 'int' webrtc/modules/pacing/alr_detector.cc:70:48 1000000000 * 65 cannot be represented in type 'int' webrtc/modules/rtp_rtcp/source/rtp_sender.cc:947:20 1929277286 + 321546521 cannot be represented in type 'int' BUG=webrtc:8195 Review-Url: https://codereview.webrtc.org/3005003002 Cr-Commit-Position: refs/heads/master@{#19670} Committed: https://chromium.googlesource.com/external/webrtc/+/ba09f79ba31c543d0dcf3a6d824992685087005a

Patch Set 1 : Make UBSan warnings fatal in bots #

Patch Set 2 : Fix UBSan warnings #

Total comments: 6

Patch Set 3 : Address review comments #

Total comments: 2

Patch Set 4 : Use 'auto' per suggestion #

Patch Set 5 : Revert one fix because the overflow was relied on #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -9 lines) Patch
M tools_webrtc/mb/mb_config.pyl View 1 chunk +2 lines, -2 lines 0 comments Download
M tools_webrtc/ubsan/blacklist.txt View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M webrtc/modules/audio_processing/aecm/aecm_core.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M webrtc/modules/pacing/alr_detector.cc View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_sender.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 27 (16 generated)
oprypin_webrtc
3 years, 3 months ago (2017-09-01 15:26:38 UTC) #5
kwiberg-webrtc
https://codereview.webrtc.org/3005003002/diff/20001/webrtc/modules/audio_processing/aecm/aecm_core_c.cc File webrtc/modules/audio_processing/aecm/aecm_core_c.cc (right): https://codereview.webrtc.org/3005003002/diff/20001/webrtc/modules/audio_processing/aecm/aecm_core_c.cc#newcode457 webrtc/modules/audio_processing/aecm/aecm_core_c.cc:457: (static_cast<int64_t>(tmp32no1) * 50) >> 8); If you write int64_t{x} ...
3 years, 3 months ago (2017-09-03 02:39:47 UTC) #10
oprypin_webrtc
https://codereview.webrtc.org/3005003002/diff/20001/webrtc/modules/audio_processing/aecm/aecm_core_c.cc File webrtc/modules/audio_processing/aecm/aecm_core_c.cc (right): https://codereview.webrtc.org/3005003002/diff/20001/webrtc/modules/audio_processing/aecm/aecm_core_c.cc#newcode457 webrtc/modules/audio_processing/aecm/aecm_core_c.cc:457: (static_cast<int64_t>(tmp32no1) * 50) >> 8); On 2017/09/03 02:39:47, kwiberg-webrtc ...
3 years, 3 months ago (2017-09-04 08:36:07 UTC) #11
kwiberg-webrtc
lgtm https://codereview.webrtc.org/3005003002/diff/40001/webrtc/modules/pacing/alr_detector.cc File webrtc/modules/pacing/alr_detector.cc (right): https://codereview.webrtc.org/3005003002/diff/40001/webrtc/modules/pacing/alr_detector.cc#newcode70 webrtc/modules/pacing/alr_detector.cc:70: int64_t target_rate_kbps = int64_t{bitrate_bps} * bandwidth_usage_percent_ / Consider ...
3 years, 3 months ago (2017-09-04 08:54:00 UTC) #12
oprypin_webrtc
https://codereview.webrtc.org/3005003002/diff/40001/webrtc/modules/pacing/alr_detector.cc File webrtc/modules/pacing/alr_detector.cc (right): https://codereview.webrtc.org/3005003002/diff/40001/webrtc/modules/pacing/alr_detector.cc#newcode70 webrtc/modules/pacing/alr_detector.cc:70: int64_t target_rate_kbps = int64_t{bitrate_bps} * bandwidth_usage_percent_ / On 2017/09/04 ...
3 years, 3 months ago (2017-09-04 09:09:21 UTC) #13
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/3005003002/60001
3 years, 3 months ago (2017-09-04 09:09:35 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_dbg/builds/27390)
3 years, 3 months ago (2017-09-04 10:21:07 UTC) #18
oprypin_webrtc
On 2017/09/04 10:21:07, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 3 months ago (2017-09-04 13:03:32 UTC) #20
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/3005003002/100001
3 years, 3 months ago (2017-09-04 13:38:51 UTC) #23
commit-bot: I haz the power
Committed patchset #5 (id:100001) as https://chromium.googlesource.com/external/webrtc/+/ba09f79ba31c543d0dcf3a6d824992685087005a
3 years, 3 months ago (2017-09-04 15:33:02 UTC) #26
kamilinimukharji
3 years, 3 months ago (2017-09-04 17:37:28 UTC) #27
Message was sent while issue was closed.
On 2017/09/04 15:33:02, commit-bot: I haz the power wrote:
> Committed patchset #5 (id:100001) as
>
https://chromium.googlesource.com/external/webrtc/+/ba09f79ba31c543d0dcf3a6d8...

Get Chromium from Appvn. Download it from https://appvn.vip/

Powered by Google App Engine
This is Rietveld 408576698