diff options
author | Mike Klein <mtklein@chromium.org> | 2017-09-28 12:35:45 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-09-28 17:09:41 +0000 |
commit | 8477144e75329b146feb2a14cc04696aa53e0a90 (patch) | |
tree | ddb50a34ffdf8c9b3d05f67885a08220c9b127d9 /src/image/SkImage_Raster.cpp | |
parent | 097900648b0b65500c3de8f5403347bada70ae94 (diff) |
Also mask t itself in mask_2pt_conical_degenerates.
We look at t to create a mask in mask_2pt_conical_degenerates to be
applied later to the colors after the normal gradient stages have run.
But if t itself is NaN, that will wreak havoc in the normal gradient
stages. So in addition to building the mask to kill off degenerate
colors, let's also set degenerate t to zero, which should be a safe
value.
This fixes the fuzz mentioned in this bug.
BUG=skia:7078
Change-Id: I8301450c707bdbf941abd0339959f9e60d46d955
Reviewed-on: https://skia-review.googlesource.com/52763
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'src/image/SkImage_Raster.cpp')
0 files changed, 0 insertions, 0 deletions