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

Issue 2593583005: cc: Prevent float-cast-overflow in MapRectInternal. (Closed)

Created:
4 years ago by jbroman
Modified:
4 years ago
Reviewers:
danakj
CC:
cc-bugs_chromium.org, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Prevent float-cast-overflow in MapRectInternal. This changes from using ints to express the blur spread, to keeping the arithmetic as floats until producing the result, using ToEnclosingRect (which uses saturated_cast to convert). This is similar to how the drop shadow code works. The CL that enabled -fsanitize=float-cast-overflow has since been reverted: https://codereview.chromium.org/2598813002/ But I'd already written this before I realized that. BUG=675177 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Committed: https://crrev.com/d52ae8cb7575fab9f7904475299e872e6c013570 Cr-Commit-Position: refs/heads/master@{#440530}

Patch Set 1 #

Patch Set 2 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -2 lines) Patch
M cc/output/filter_operation.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M cc/output/filter_operations_unittest.cc View 1 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (15 generated)
jbroman
4 years ago (2016-12-22 21:09:01 UTC) #11
danakj
LGTM
4 years ago (2016-12-22 21:11:29 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2593583005/20001
4 years ago (2016-12-22 21:13:53 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-22 22:45:03 UTC) #18
commit-bot: I haz the power
4 years ago (2016-12-22 22:47:23 UTC) #20
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/d52ae8cb7575fab9f7904475299e872e6c013570
Cr-Commit-Position: refs/heads/master@{#440530}

Powered by Google App Engine
This is Rietveld 408576698