diff options
author | 2016-08-17 06:14:06 -0700 | |
---|---|---|
committer | 2016-08-17 06:14:06 -0700 | |
commit | 8ccc075a90e827810916a3eb3a823e5897cb2c8a (patch) | |
tree | 9172a4a092a6f6f538b52166b2ecc1f5949871db /src/pathops | |
parent | 422310ddbe4db616200a949adcac2c560685030c (diff) |
fix fuzz
TBR=reed@google.com
BUG=638496
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2250413002
Review-Url: https://codereview.chromium.org/2250413002
Diffstat (limited to 'src/pathops')
-rw-r--r-- | src/pathops/SkPathOpsCommon.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pathops/SkPathOpsCommon.cpp b/src/pathops/SkPathOpsCommon.cpp index 52de8c1e07..82b93f4072 100644 --- a/src/pathops/SkPathOpsCommon.cpp +++ b/src/pathops/SkPathOpsCommon.cpp @@ -124,6 +124,9 @@ SkOpSegment* FindChase(SkTDArray<SkOpSpanBase*>* chase, SkOpSpanBase** startPtr, int winding; bool sortable; const SkOpAngle* angle = AngleWinding(*startPtr, *endPtr, &winding, &sortable); + if (!angle) { + return nullptr; + } if (winding == SK_MinS32) { continue; } |