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

Issue 2816943004: cc: Fix bugs found by fuzzer due to floating point imprecision. (Closed)

Created:
3 years, 8 months ago by vmpstr
Modified:
3 years, 7 months ago
Reviewers:
danakj, trchen, enne (OOO)
CC:
cc-bugs_chromium.org, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Fix bugs found by fuzzer due to floating point imprecision. This patch changes two things: - For scales that are within epsilon value of 1, we use 1 directly since minute differences could cause changes when multiplied by large values - Changed the index generation to consider the fact that using wanted pixels might grab more tiles than needed. BUG=707430 R=enne@chromium.org, danakj@chromium.org CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2816943004 Cr-Commit-Position: refs/heads/master@{#471342} Committed: https://chromium.googlesource.com/chromium/src/+/7ff1f0e4e9ad3eef8f4a1e36c08b95237a1c4dcf

Patch Set 1 #

Total comments: 12

Patch Set 2 : update #

Patch Set 3 : update #

Patch Set 4 : layouttests #

Messages

Total messages: 52 (25 generated)
vmpstr
Please take a look.
3 years, 8 months ago (2017-04-13 21:37:53 UTC) #2
enne (OOO)
+trchen for opinions about tiling texel math https://codereview.chromium.org/2816943004/diff/1/cc/tiles/picture_layer_tiling.cc File cc/tiles/picture_layer_tiling.cc (right): https://codereview.chromium.org/2816943004/diff/1/cc/tiles/picture_layer_tiling.cc#newcode455 cc/tiles/picture_layer_tiling.cc:455: while (!content_rect.Intersects(data.TexelExtent(right_, ...
3 years, 8 months ago (2017-04-14 05:35:56 UTC) #4
vmpstr
https://codereview.chromium.org/2816943004/diff/1/cc/tiles/picture_layer_tiling.cc File cc/tiles/picture_layer_tiling.cc (right): https://codereview.chromium.org/2816943004/diff/1/cc/tiles/picture_layer_tiling.cc#newcode455 cc/tiles/picture_layer_tiling.cc:455: while (!content_rect.Intersects(data.TexelExtent(right_, top_)) && On 2017/04/14 05:35:56, enne wrote: ...
3 years, 8 months ago (2017-04-14 18:17:42 UTC) #5
trchen
https://codereview.chromium.org/2816943004/diff/1/cc/tiles/picture_layer_tiling.cc File cc/tiles/picture_layer_tiling.cc (right): https://codereview.chromium.org/2816943004/diff/1/cc/tiles/picture_layer_tiling.cc#newcode36 cc/tiles/picture_layer_tiling.cc:36: } I doubt this function works as intended... By ...
3 years, 8 months ago (2017-04-14 22:07:33 UTC) #6
vmpstr
https://codereview.chromium.org/2816943004/diff/1/cc/tiles/picture_layer_tiling.cc File cc/tiles/picture_layer_tiling.cc (right): https://codereview.chromium.org/2816943004/diff/1/cc/tiles/picture_layer_tiling.cc#newcode36 cc/tiles/picture_layer_tiling.cc:36: } On 2017/04/14 22:07:33, trchen wrote: > I doubt ...
3 years, 8 months ago (2017-04-14 23:36:26 UTC) #7
trchen
https://codereview.chromium.org/2816943004/diff/1/cc/tiles/picture_layer_tiling.cc File cc/tiles/picture_layer_tiling.cc (right): https://codereview.chromium.org/2816943004/diff/1/cc/tiles/picture_layer_tiling.cc#newcode36 cc/tiles/picture_layer_tiling.cc:36: } On 2017/04/14 23:36:26, vmpstr wrote: > On 2017/04/14 ...
3 years, 8 months ago (2017-04-14 23:53:43 UTC) #8
vmpstr
https://codereview.chromium.org/2816943004/diff/1/cc/tiles/picture_layer_tiling.cc File cc/tiles/picture_layer_tiling.cc (right): https://codereview.chromium.org/2816943004/diff/1/cc/tiles/picture_layer_tiling.cc#newcode36 cc/tiles/picture_layer_tiling.cc:36: } On 2017/04/14 23:53:43, trchen wrote: > On 2017/04/14 ...
3 years, 8 months ago (2017-04-15 00:31:25 UTC) #9
enne (OOO)
Discussed some with trchen in person. lgtm to do this like this. Thanks for the ...
3 years, 8 months ago (2017-04-18 20:50:02 UTC) #10
trchen
https://codereview.chromium.org/2816943004/diff/1/cc/tiles/picture_layer_tiling.cc File cc/tiles/picture_layer_tiling.cc (right): https://codereview.chromium.org/2816943004/diff/1/cc/tiles/picture_layer_tiling.cc#newcode36 cc/tiles/picture_layer_tiling.cc:36: } On 2017/04/15 00:31:24, vmpstr wrote: > On 2017/04/14 ...
3 years, 8 months ago (2017-04-18 21:13:46 UTC) #11
vmpstr
Please take a look. I've changed the implementation a bit to do the comparison in ...
3 years, 8 months ago (2017-04-20 19:53:21 UTC) #12
vmpstr
ping
3 years, 7 months ago (2017-04-27 17:34:50 UTC) #13
trchen
My apologies, didn't notice it. The new approach lgtm. The loop looks a bit awkward ...
3 years, 7 months ago (2017-04-27 18:18:14 UTC) #14
enne (OOO)
lgtm
3 years, 7 months ago (2017-04-27 18:22:20 UTC) #15
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/2816943004/40001
3 years, 7 months ago (2017-04-27 18:59:22 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_trusty_blink_rel on master.tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_trusty_blink_rel/builds/8614)
3 years, 7 months ago (2017-04-27 19:34:20 UTC) #19
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/2816943004/40001
3 years, 7 months ago (2017-04-28 16:45:16 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_trusty_blink_rel on master.tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_trusty_blink_rel/builds/8705)
3 years, 7 months ago (2017-04-28 18:47:43 UTC) #23
vmpstr
I've had to rebaseline some tests. I believe this is due to the different scaling ...
3 years, 7 months ago (2017-05-01 20:20:04 UTC) #28
enne (OOO)
I think the rebaseline looks not worrisome, but I'm kind of surprised anything would change ...
3 years, 7 months ago (2017-05-01 20:22:29 UTC) #29
vmpstr
On 2017/05/01 20:22:29, enne wrote: > I think the rebaseline looks not worrisome, but I'm ...
3 years, 7 months ago (2017-05-01 20:32:56 UTC) #30
vmpstr
Sorry, this kind of dropped off. It seems that undoing the scale changes does "fix" ...
3 years, 7 months ago (2017-05-08 20:54:24 UTC) #31
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/2816943004/60001
3 years, 7 months ago (2017-05-09 21:51:36 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_TIMED_OUT, build has not started yet; ...
3 years, 7 months ago (2017-05-09 23:54:01 UTC) #43
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/2816943004/60001
3 years, 7 months ago (2017-05-11 20:38:10 UTC) #45
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/424374)
3 years, 7 months ago (2017-05-11 22:22:00 UTC) #47
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/2816943004/60001
3 years, 7 months ago (2017-05-12 16:01:09 UTC) #49
commit-bot: I haz the power
3 years, 7 months ago (2017-05-12 17:00:46 UTC) #52
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/7ff1f0e4e9ad3eef8f4a1e36c08b...

Powered by Google App Engine
This is Rietveld 408576698