diff options
author | Florin Malita <fmalita@chromium.org> | 2017-02-17 12:58:41 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-02-17 18:47:30 +0000 |
commit | ef0a15b1642668f072d84a43d3bc99443e1701d8 (patch) | |
tree | 4bb15b7d49789c6737e347545c3aa59d6aeef82f /fuzz/FuzzDrawFunctions.cpp | |
parent | 7d07d4663822c05e421f1f50460a985ab43adac4 (diff) |
Fix TAP ASAN failure.
The current SkFixed3232 pinning logic in SkClampRange is not safe:
SkFixed3232ToFloat(SkFixed3232Max) and SkFixed3232ToFloat(SkFixed3232Min)
are not exactly representable in float, so they are not good SkTPin
limits.
Use the next representable float value towards zero. Constants computed
with nextafterf(..., 0).
Change-Id: I8e2eb35b22f65077e8ce6055d670d90d2a163bae
Reviewed-on: https://skia-review.googlesource.com/8662
Commit-Queue: Florin Malita <fmalita@chromium.org>
Reviewed-by: Mike Reed <reed@google.com>
Diffstat (limited to 'fuzz/FuzzDrawFunctions.cpp')
0 files changed, 0 insertions, 0 deletions