Index: src/pathops/SkPathOpsOp.cpp |
diff --git a/src/pathops/SkPathOpsOp.cpp b/src/pathops/SkPathOpsOp.cpp |
index 4c6923abb60b46d75d53dc13edeed9183a70480c..72efb89d101409c24a858813df1c3b1bf607d139 100644 |
--- a/src/pathops/SkPathOpsOp.cpp |
+++ b/src/pathops/SkPathOpsOp.cpp |
@@ -270,6 +270,9 @@ bool Op(const SkPath& one, const SkPath& two, SkPathOp op, SkPath* result) { |
SkTArray<SkOpContour> contours; |
// FIXME: add self-intersecting cubics' T values to segment |
SkOpEdgeBuilder builder(*minuend, contours); |
+ if (builder.unparseable()) { |
+ return false; |
+ } |
const int xorMask = builder.xorMask(); |
builder.addOperand(*subtrahend); |
if (!builder.finish()) { |