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

Issue 1439483002: Fix code that left shifts a negative value. This has undefined behavior. (Closed)

Created:
5 years, 1 month ago by dogben
Modified:
5 years, 1 month ago
Reviewers:
mtklein, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Fix code that left shifts a negative value. This has undefined behavior. Patched from internal cl/107515669 by rtrieu and added comments. BUG=skia:2481 Committed: https://skia.googlesource.com/skia/+/0b2a18922146c6134515d42baf5935b71bba03c3

Patch Set 1 #

Patch Set 2 : Add comment about unsigned cast. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -5 lines) Patch
M include/core/SkFixed.h View 1 1 chunk +7 lines, -3 lines 0 comments Download
M tests/ClampRangeTest.cpp View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1439483002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1439483002/1
5 years, 1 month ago (2015-11-11 02:34:12 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-11-11 02:46:22 UTC) #4
dogben
Not sure if this change fixed ClampRangeTest or even if the CQ dry run runs ...
5 years, 1 month ago (2015-11-11 02:52:39 UTC) #6
reed1
If we really need those casts in SkFixed.h, I think we should add a comment ...
5 years, 1 month ago (2015-11-11 04:20:49 UTC) #7
reed1
If we really need those casts in SkFixed.h, I think we should add a comment ...
5 years, 1 month ago (2015-11-11 04:20:51 UTC) #8
dogben
On 2015/11/11 at 04:20:51, reed wrote: > If we really need those casts in SkFixed.h, ...
5 years, 1 month ago (2015-11-11 15:18:07 UTC) #10
reed1
lgtm
5 years, 1 month ago (2015-11-11 15:40:51 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1439483002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1439483002/20001
5 years, 1 month ago (2015-11-11 16:34:24 UTC) #13
commit-bot: I haz the power
5 years, 1 month ago (2015-11-11 16:46:39 UTC) #14
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://skia.googlesource.com/skia/+/0b2a18922146c6134515d42baf5935b71bba03c3

Powered by Google App Engine
This is Rietveld 408576698