aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/SkSLErrorTest.cpp
diff options
context:
space:
mode:
authorGravatar fmalita <fmalita@chromium.org>2016-11-09 11:58:10 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-11-09 11:58:10 -0800
commit8ffb3e5d4c3731d02b3502a89c7a7eb18daf398c (patch)
tree97586a512b02a272d2f86d647754190a1be531ca /tests/SkSLErrorTest.cpp
parent792079cf332d953eb7a9c96eec667b049e0103b2 (diff)
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 Review-Url: https://codereview.chromium.org/2472763002
Diffstat (limited to 'tests/SkSLErrorTest.cpp')
0 files changed, 0 insertions, 0 deletions