From 9feb6326d0c5407247ed1e3d8fade2f86b233001 Mon Sep 17 00:00:00 2001 From: caryclark Date: Tue, 25 Oct 2016 08:58:26 -0700 Subject: fix fuzz Abort early if fuzz data breaks intersection. R=kjlubick@google.com GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2444333002 Review-Url: https://codereview.chromium.org/2444333002 --- src/pathops/SkPathOpsTSect.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/pathops/SkPathOpsTSect.h b/src/pathops/SkPathOpsTSect.h index fbfb8c138f..f3402daa67 100644 --- a/src/pathops/SkPathOpsTSect.h +++ b/src/pathops/SkPathOpsTSect.h @@ -992,6 +992,9 @@ SkTSpan* SkTSect::boundsMax() const { template bool SkTSect::coincidentCheck(SkTSect* sect2) { SkTSpan* first = fHead; + if (!first) { + return false; + } SkTSpan* last, * next; do { int consecutive = this->countConsecutiveSpans(first, &last); -- cgit v1.2.3