From 9364511bd17d7414efc5df3ee38faa78c6f89eb1 Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Thu, 26 Jul 2012 16:11:47 +0000 Subject: [PATCH] reject any paths that are not finite. git-svn-id: http://skia.googlecode.com/svn/trunk@4785 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/core/SkCanvas.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp index 4b0c1d9a74..17f8b83567 100644 --- a/src/core/SkCanvas.cpp +++ b/src/core/SkCanvas.cpp @@ -1497,6 +1497,10 @@ void SkCanvas::drawRect(const SkRect& r, const SkPaint& paint) { } void SkCanvas::drawPath(const SkPath& path, const SkPaint& paint) { + if (!path.isFinite()) { + return; + } + if (!path.isInverseFillType() && paint.canComputeFastBounds()) { SkRect storage; const SkRect& bounds = path.getBounds(); -- 2.34.1