Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(330)

Unified Diff: src/utils/SkDashPathPriv.h

Issue 2165013002: limit the number of points in SkDashPathEffect::asPoints (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: fix SpecialLineRec point count overflow Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/utils/SkDashPathPriv.h
diff --git a/src/utils/SkDashPathPriv.h b/src/utils/SkDashPathPriv.h
index 115128131f6e810c2f77b8aaeac7dcc97f939655..752b59dbea9b4426e4d0891ceb9a116558720d46 100644
--- a/src/utils/SkDashPathPriv.h
+++ b/src/utils/SkDashPathPriv.h
@@ -26,6 +26,8 @@ namespace SkDashPath {
bool FilterDashPath(SkPath* dst, const SkPath& src, SkStrokeRec*, const SkRect*,
const SkPathEffect::DashInfo& info);
+ const SkScalar kMaxDashCount = 1000000;
+
/** See comments for InternalFilter */
enum class StrokeRecApplication {
kDisallow,

Powered by Google App Engine
This is Rietveld 408576698