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

Issue 2472763002: Fix fuzzer assert in GradientShaderBase4fContext::TSampler (Closed)

Created:
4 years, 1 month ago by f(malita)
Modified:
4 years, 1 month ago
Reviewers:
herb_g, reed1
CC:
reviews_skia.org
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Fix fuzzer assert in GradientShaderBase4fContext::TSampler The arithmetic in tileProc<kMirror> may cause the result to snap to the open interval value - which violates invariants down the line. We need to clamp the result to nextafterf(2, 0) to ensure it stays less than two. BUG=skia:5913 R=reed@google.com,herb@google.com GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2472763002 Committed: https://skia.googlesource.com/skia/+/8ffb3e5d4c3731d02b3502a89c7a7eb18daf398c

Patch Set 1 #

Patch Set 2 : Win build fix #

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

Messages

Total messages: 19 (11 generated)
f(malita)
4 years, 1 month ago (2016-11-02 19:08:15 UTC) #2
f(malita)
4 years, 1 month ago (2016-11-04 14:43:36 UTC) #11
herb_g
https://codereview.chromium.org/2472763002/diff/20001/src/effects/gradients/Sk4fGradientBase.cpp File src/effects/gradients/Sk4fGradientBase.cpp (right): https://codereview.chromium.org/2472763002/diff/20001/src/effects/gradients/Sk4fGradientBase.cpp#newcode440 src/effects/gradients/Sk4fGradientBase.cpp:440: SkScalar fLargestLessThanTwo; Can this be static constexpr?
4 years, 1 month ago (2016-11-04 14:58:44 UTC) #12
f(malita)
https://codereview.chromium.org/2472763002/diff/20001/src/effects/gradients/Sk4fGradientBase.cpp File src/effects/gradients/Sk4fGradientBase.cpp (right): https://codereview.chromium.org/2472763002/diff/20001/src/effects/gradients/Sk4fGradientBase.cpp#newcode440 src/effects/gradients/Sk4fGradientBase.cpp:440: SkScalar fLargestLessThanTwo; On 2016/11/04 14:58:44, herb_g wrote: > Can ...
4 years, 1 month ago (2016-11-04 15:05:54 UTC) #13
f(malita)
4 years, 1 month ago (2016-11-09 19:06:33 UTC) #14
herb_g
lgtm
4 years, 1 month ago (2016-11-09 19:10:52 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/2472763002/20001
4 years, 1 month ago (2016-11-09 19:20:26 UTC) #17
commit-bot: I haz the power
4 years, 1 month ago (2016-11-09 19:58:13 UTC) #19
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://skia.googlesource.com/skia/+/8ffb3e5d4c3731d02b3502a89c7a7eb18daf398c

Powered by Google App Engine
This is Rietveld 408576698