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

Issue 1678913002: msan: define BREAK_IF_DEBUGGING_AND_OUT_OF_RANGE in piex (Closed)

Created:
4 years, 10 months ago by mtklein_C
Modified:
4 years, 10 months ago
Reviewers:
msarett, mtklein
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

msan: define BREAK_IF_DEBUGGING_AND_OUT_OF_RANGE in piex This should assert(false) if we're in the error case of RangeCheckedBytePtr::extractBytes: > #ifdef BREAK_IF_DEBUGGING_AND_OUT_OF_RANGE > #define BREAK_IF_DEBUGGING() assert(false) > #else > #define BREAK_IF_DEBUGGING() assert(true) > #endif ... > std::vector<unsigned char> RangeCheckedBytePtr::extractBytes(size_t pos, size_t length) const { > std::vector<unsigned char> result; > if (pos + length < pos /* overflow */ || remainingLength() < pos + length) { > BREAK_IF_DEBUGGING(); > error_flag_ = RANGE_CHECKED_BYTE_ERROR_OVERFLOW; > return result; > } ... BUG=skia:4903 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1678913002 Committed: https://skia.googlesource.com/skia/+/6fd4e44e238755f8f81d007c8281c8fd63f03b3b

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M gyp/piex.gyp View 1 chunk +1 line, -0 lines 2 comments Download

Messages

Total messages: 16 (7 generated)
mtklein_C
4 years, 10 months ago (2016-02-08 16:56:18 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1678913002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1678913002/1
4 years, 10 months ago (2016-02-08 16:56:24 UTC) #5
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
4 years, 10 months ago (2016-02-08 16:56:26 UTC) #6
msarett
https://codereview.chromium.org/1678913002/diff/1/gyp/piex.gyp File gyp/piex.gyp (right): https://codereview.chromium.org/1678913002/diff/1/gyp/piex.gyp#newcode38 gyp/piex.gyp:38: 'defines': [ 'BREAK_IF_DEBUGGING_AND_OUT_OF_RANGE' ], Do we want to define ...
4 years, 10 months ago (2016-02-08 17:02:23 UTC) #7
mtklein
https://codereview.chromium.org/1678913002/diff/1/gyp/piex.gyp File gyp/piex.gyp (right): https://codereview.chromium.org/1678913002/diff/1/gyp/piex.gyp#newcode38 gyp/piex.gyp:38: 'defines': [ 'BREAK_IF_DEBUGGING_AND_OUT_OF_RANGE' ], On 2016/02/08 17:02:23, msarett wrote: ...
4 years, 10 months ago (2016-02-08 17:22:24 UTC) #9
msarett
lgtm
4 years, 10 months ago (2016-02-08 17:23:15 UTC) #11
mtklein_C
Looks like we can rule this out as an explanation. Nice to have that there ...
4 years, 10 months ago (2016-02-08 17:32:20 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1678913002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1678913002/1
4 years, 10 months ago (2016-02-08 17:34:21 UTC) #14
commit-bot: I haz the power
4 years, 10 months ago (2016-02-08 17:35:08 UTC) #16
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://skia.googlesource.com/skia/+/6fd4e44e238755f8f81d007c8281c8fd63f03b3b

Powered by Google App Engine
This is Rietveld 408576698