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

Issue 2013243002: Silence ASAN int32 overflow warning (Closed)

Created:
4 years, 6 months ago by f(malita)
Modified:
4 years, 6 months ago
Reviewers:
mtklein, reed1
CC:
reviews_skia.org
Base URL:
https://chromium.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Silence ASAN int32 overflow warning It's fine to overflow SK_MaxS32 by one, the subsequent cast ensures correct clamping. But we need to cast earlier in order to make ASAN happy. TBR=mtklein@google.com,reed@google.com GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2013243002 Committed: https://skia.googlesource.com/skia/+/7dcb131935bda4aada0e37085c9f5e1f6a8f3842

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -2 lines) Patch
M src/effects/gradients/SkLinearGradient.cpp View 2 chunks +4 lines, -2 lines 1 comment Download

Messages

Total messages: 18 (9 generated)
f(malita)
4 years, 6 months ago (2016-05-26 23:39:07 UTC) #2
f(malita)
Looks like it's working, so I'll TBR to hush the bot.
4 years, 6 months ago (2016-05-27 00:57:03 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2013243002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2013243002/1
4 years, 6 months ago (2016-05-27 00:57:23 UTC) #8
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
4 years, 6 months ago (2016-05-27 00:57:24 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2013243002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2013243002/1
4 years, 6 months ago (2016-05-27 00:57:54 UTC) #13
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://skia.googlesource.com/skia/+/7dcb131935bda4aada0e37085c9f5e1f6a8f3842
4 years, 6 months ago (2016-05-27 01:10:36 UTC) #15
mtklein
https://codereview.chromium.org/2013243002/diff/1/src/effects/gradients/SkLinearGradient.cpp File src/effects/gradients/SkLinearGradient.cpp (right): https://codereview.chromium.org/2013243002/diff/1/src/effects/gradients/SkLinearGradient.cpp#newcode615 src/effects/gradients/SkLinearGradient.cpp:615: int n = SkTMin<uint32_t>(static_cast<uint32_t>(SkFloatToIntFloor(-fx * invDx)) + 1, See ...
4 years, 6 months ago (2016-05-27 05:17:03 UTC) #16
f(malita)
On 2016/05/27 05:17:03, mtklein wrote: > https://codereview.chromium.org/2013243002/diff/1/src/effects/gradients/SkLinearGradient.cpp > File src/effects/gradients/SkLinearGradient.cpp (right): > > https://codereview.chromium.org/2013243002/diff/1/src/effects/gradients/SkLinearGradient.cpp#newcode615 > ...
4 years, 6 months ago (2016-05-27 12:56:04 UTC) #17
mtklein
4 years, 6 months ago (2016-05-27 14:00:29 UTC) #18
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698