diff options
author | 2016-11-09 11:58:10 -0800 | |
---|---|---|
committer | 2016-11-09 11:58:10 -0800 | |
commit | 8ffb3e5d4c3731d02b3502a89c7a7eb18daf398c (patch) | |
tree | 97586a512b02a272d2f86d647754190a1be531ca /tests/SkSLErrorTest.cpp | |
parent | 792079cf332d953eb7a9c96eec667b049e0103b2 (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