Chromium Code Reviews
Descriptioncc: 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 : . #
Messages
Total messages: 20 (15 generated)
|
||||||||||||||||||||||||||||