diff options
author | caryclark <caryclark@google.com> | 2016-08-16 10:25:29 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-16 10:25:29 -0700 |
commit | a1b42d91a5726683d7933b81a6e00ed28649e7ed (patch) | |
tree | a8bd7c5adb504fbb169600625aa4c51815fd839b /src/pathops/SkPathOpsTSect.h | |
parent | 3287588a467ee579c3947fe13c6add5048b14aa9 (diff) |
fix fuzz bug
TBR=reed@google.com
BUG=637968, 638002
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2250573003
Review-Url: https://codereview.chromium.org/2250573003
Diffstat (limited to 'src/pathops/SkPathOpsTSect.h')
-rw-r--r-- | src/pathops/SkPathOpsTSect.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pathops/SkPathOpsTSect.h b/src/pathops/SkPathOpsTSect.h index 8a4c2a9ea7..85d3b10d95 100644 --- a/src/pathops/SkPathOpsTSect.h +++ b/src/pathops/SkPathOpsTSect.h @@ -1159,7 +1159,7 @@ SkTSpan<TCurve, OppCurve>* SkTSect<TCurve, OppCurve>::extractCoincident( SkTSect<OppCurve, TCurve>* sect2, SkTSpan<TCurve, OppCurve>* first, SkTSpan<TCurve, OppCurve>* last) { first = findCoincidentRun(first, &last); - if (!first) { + if (!first || !last) { return nullptr; } // march outwards to find limit of coincidence from here to previous and next spans |