diff options
author | caryclark <caryclark@google.com> | 2016-08-23 07:38:48 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-23 07:38:49 -0700 |
commit | bb51f4a3a78ecb35cc4da24d50a440f58a0f8899 (patch) | |
tree | 918e46298783c094fb044c8a38978751bdb8bfb6 /src/pathops/SkOpSegment.h | |
parent | eb3c425f1b33836e116e8ed4eeb40e0c6d8dffb6 (diff) |
fix pathops fuzz
Extreme cubics may split so that one half is a point.
Discard this rather than generating a degenerate line.
TBR=reed@google.com
BUG=640025
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2276503002
Review-Url: https://codereview.chromium.org/2276503002
Diffstat (limited to 'src/pathops/SkOpSegment.h')
-rw-r--r-- | src/pathops/SkOpSegment.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pathops/SkOpSegment.h b/src/pathops/SkOpSegment.h index 7cf4b269f0..89af5a10fc 100644 --- a/src/pathops/SkOpSegment.h +++ b/src/pathops/SkOpSegment.h @@ -74,6 +74,7 @@ public: bool addExpanded(double newT, const SkOpSpanBase* test, bool* startOver); SkOpSegment* addLine(SkPoint pts[2], SkOpContour* parent) { + SkASSERT(pts[0] != pts[1]); init(pts, 1, parent, SkPath::kLine_Verb); fBounds.set(pts, 2); return this; |