Index: src/pathops/SkIntersections.h |
diff --git a/src/pathops/SkIntersections.h b/src/pathops/SkIntersections.h |
index c12db38b6c436f5aa3f28507c379fb4e75d0e318..60cbc8efaec8c32052d36b0eeb4dd82380637a89 100644 |
--- a/src/pathops/SkIntersections.h |
+++ b/src/pathops/SkIntersections.h |
@@ -188,6 +188,7 @@ public: |
} |
void setMax(int max) { |
+ SkASSERT(max <= SK_ARRAY_COUNT(fPt)); |
fMax = max; |
} |
@@ -286,9 +287,9 @@ private: |
void cleanUpParallelLines(bool parallel); |
void computePoints(const SkDLine& line, int used); |
- SkDPoint fPt[10]; // FIXME: since scans store points as SkPoint, this should also |
+ SkDPoint fPt[12]; // FIXME: since scans store points as SkPoint, this should also |
SkDPoint fPt2[2]; // used by nearly same to store alternate intersection point |
- double fT[2][10]; |
+ double fT[2][12]; |
uint16_t fIsCoincident[2]; // bit set for each curve's coincident T |
bool fNearlySame[2]; // true if end points nearly match |
unsigned char fUsed; |