Fix multiplication of maxIterations in PolyUtils
Bug: oss-fuzz:11546
Change-Id: Icb08cfeb685d3992d99df8f98336093a79295ed0
Reviewed-on: https://skia-review.googlesource.com/c/172869
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Commit-Queue: Kevin Lubick <kjlubick@google.com>
diff --git a/src/utils/SkPolyUtils.cpp b/src/utils/SkPolyUtils.cpp
index a37814a..b450b9c 100644
--- a/src/utils/SkPolyUtils.cpp
+++ b/src/utils/SkPolyUtils.cpp
@@ -1262,7 +1262,7 @@
auto currEdge = head;
unsigned int offsetVertexCount = numEdges;
unsigned long long iterations = 0;
- unsigned long long maxIterations = (unsigned long long)(numEdges*numEdges);
+ unsigned long long maxIterations = (unsigned long long)(numEdges) * numEdges;
while (head && prevEdge != currEdge && offsetVertexCount > 0) {
++iterations;
// we should check each edge against each other edge at most once