commit | 45f04b8ea8256476d87c677e23d9efbcb0ab937e | [log] [tgz] |
---|---|---|
author | caryclark <caryclark@google.com> | Wed Sep 21 08:46:56 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Wed Sep 21 08:46:56 2016 -0700 |
tree | 07991a55e31bfb683190566e85749c583c040d99 | |
parent | 67fa4e31d885acf74514527a2cc3ed759c05d3c4 [diff] [blame] |
fix skia pathops fuzzers Add isolated tests. R=kjlubick@google.com BUG=skia:5775 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2358043002 Review-Url: https://codereview.chromium.org/2358043002
diff --git a/src/pathops/SkOpSpan.cpp b/src/pathops/SkOpSpan.cpp index 26c6f25..0c47b68 100755 --- a/src/pathops/SkOpSpan.cpp +++ b/src/pathops/SkOpSpan.cpp
@@ -471,6 +471,7 @@ if (!ordered) { const SkOpSpanBase* spanEnd = fNext->contains(segment)->span(); const SkOpPtT* start = base->ptT()->starter(spanEnd->ptT()); + FAIL_IF(!start->span()->upCastable()); span = const_cast<SkOpSpan*>(start->span()->upCast()); } else if (flipped) { span = base->prev();