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

Issue 1591793002: breakpad: fix unittest failure when building with clang. (Closed)

Created:
4 years, 11 months ago by rahulchaudhry
Modified:
4 years, 11 months ago
Reviewers:
vapier
CC:
google-breakpad-dev_googlegroups.com
Base URL:
https://chromium.googlesource.com/breakpad/breakpad.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

breakpad: fix unittest failure when building with clang. In C/C++, the result of signed integer overflow is undefined. The expression "base + size - 1" is parsed as "(base + size) - 1", and "base + size" can overflow even if "base + (size - 1)" <= INT_MAX. See http://g/c-compiler-chrome/461JohPKakE/JI3rEBg6FwAJ for more. BUG=None TEST='CC=clang CXX=clang++ ./configure && make check' R=vapier@chromium.org Committed: https://chromium.googlesource.com/breakpad/breakpad/+/fc134c412a724052188913de6eac99537eb97116

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M src/processor/range_map-inl.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5 (2 generated)
rahulchaudhry
4 years, 11 months ago (2016-01-15 18:22:02 UTC) #2
vapier
lgtm
4 years, 11 months ago (2016-01-15 18:29:08 UTC) #3
vapier
4 years, 11 months ago (2016-01-15 18:29:37 UTC) #5
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
fc134c412a724052188913de6eac99537eb97116 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698