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

Issue 1744183002: Fix some signed overflow errors causing undefined behavior (in theory). (Closed)

Created:
4 years, 9 months ago by terelius
Modified:
4 years, 9 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Fix some signed overflow errors causing undefined behavior (in theory). BUG=webrtc:5491 Committed: https://crrev.com/d802b5b7c3f6b5e667bc7bf296de76010d4531e3 Cr-Commit-Position: refs/heads/master@{#11832}

Patch Set 1 #

Patch Set 2 : Expand negation into bit complement and addition #

Total comments: 1

Patch Set 3 : Format and comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -8 lines) Patch
M webrtc/base/ipaddress.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M webrtc/base/mathutils.h View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
M webrtc/base/random_unittest.cc View 5 chunks +5 lines, -4 lines 0 comments Download
M webrtc/base/rollingaccumulator.h View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (9 generated)
terelius
Please take a look at this CL which fixes the signed overflow errors detected by ...
4 years, 9 months ago (2016-02-29 13:23:45 UTC) #3
kjellander_webrtc
Please address win compile errors
4 years, 9 months ago (2016-02-29 14:22:41 UTC) #4
kjellander_webrtc
On 2016/02/29 14:22:41, kjellander (webrtc) wrote: > Please address win compile errors (modules_unittests failures were ...
4 years, 9 months ago (2016-02-29 14:23:12 UTC) #5
terelius
On 2016/02/29 14:23:12, kjellander (webrtc) wrote: > On 2016/02/29 14:22:41, kjellander (webrtc) wrote: > > ...
4 years, 9 months ago (2016-02-29 15:31:13 UTC) #6
kjellander_webrtc
lgtm but Per kan probably spot errors better than I in this code.
4 years, 9 months ago (2016-02-29 15:32:15 UTC) #7
perkj_webrtc
Torbjörn, can you do this review?
4 years, 9 months ago (2016-03-01 10:18:28 UTC) #9
terelius
On 2016/03/01 10:18:28, perkj_webrtc wrote: > Torbjörn, can you do this review? I believe I ...
4 years, 9 months ago (2016-03-01 10:49:25 UTC) #10
torbjorng (webrtc)
lgtm https://codereview.webrtc.org/1744183002/diff/20001/webrtc/base/ipaddress.cc File webrtc/base/ipaddress.cc (right): https://codereview.webrtc.org/1744183002/diff/20001/webrtc/base/ipaddress.cc#newcode415 webrtc/base/ipaddress.cc:415: word_to_count &= ~word_to_count + 1; // Isolate lowest ...
4 years, 9 months ago (2016-03-01 13:26:43 UTC) #11
perkj_webrtc
On 2016/03/01 13:26:43, torbjorng (webrtc) wrote: > lgtm > > https://codereview.webrtc.org/1744183002/diff/20001/webrtc/base/ipaddress.cc > File webrtc/base/ipaddress.cc (right): ...
4 years, 9 months ago (2016-03-01 13:47:48 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1744183002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1744183002/40001
4 years, 9 months ago (2016-03-01 17:00:10 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL) win_baremetal on ...
4 years, 9 months ago (2016-03-01 17:02:56 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1744183002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1744183002/40001
4 years, 9 months ago (2016-03-01 18:14:52 UTC) #19
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 9 months ago (2016-03-01 19:07:38 UTC) #21
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/d802b5b7c3f6b5e667bc7bf296de76010d4531e3 Cr-Commit-Position: refs/heads/master@{#11832}
4 years, 9 months ago (2016-03-01 19:07:47 UTC) #23
kjellander_webrtc
4 years, 9 months ago (2016-03-01 21:04:53 UTC) #24
Message was sent while issue was closed.
In order to benefit from these fixes, you'll need to also re-enable the disabled
tests in https://codereview.webrtc.org/1727233005 that were disabled because of
these errors. 
Can you take care of that in a follow-up CL? 
It's possible we can now revert that whole CL, but I'm not sure. Give it a try
locally before sending it to the CQ at least (and only the linux_ubsan bot
should be enough to run).

Powered by Google App Engine
This is Rietveld 408576698