diff options
author | Yuqian Li <liyuqian@google.com> | 2016-11-29 15:02:49 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2016-11-29 20:37:40 +0000 |
commit | 79252f7997f2f5b90a72d2c7bd5f6aa8a58ee640 (patch) | |
tree | 23e9429c0a0f921397413071f3678bc371f2f643 /tests/PathTest.cpp | |
parent | 1edc5b92fecefb79f01cf0e302646eacf32b06c7 (diff) |
Add the missing shift to the dy
This is identical to https://skia-review.googlesource.com/c/5266/ except for
the SK_ANALYTIC_AA_GUARD flag.
BUG=chromium:668907
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=5302
Change-Id: I3fc225a925d21fe615c46a4a0be7fe33c5790766
Reviewed-on: https://skia-review.googlesource.com/5302
Commit-Queue: Yuqian Li <liyuqian@google.com>
Reviewed-by: Cary Clark <caryclark@google.com>
Diffstat (limited to 'tests/PathTest.cpp')
-rw-r--r-- | tests/PathTest.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/PathTest.cpp b/tests/PathTest.cpp index 81ec1187cb..f28130092a 100644 --- a/tests/PathTest.cpp +++ b/tests/PathTest.cpp @@ -216,6 +216,20 @@ static void test_mask_overflow() { canvas->drawPath(path, paint); } +static void test_fuzz_crbug_668907() { + auto surface(SkSurface::MakeRasterN32Premul(400, 500)); + SkCanvas* canvas = surface->getCanvas(); + SkPaint paint; + paint.setAntiAlias(true); + SkPath path; + path.moveTo(SkBits2Float(0x46313741), SkBits2Float(0x3b00e540)); // 11341.8f, 0.00196679f + path.quadTo(SkBits2Float(0x41410041), SkBits2Float(0xc1414141), SkBits2Float(0x41414141), + SkBits2Float(0x414100ff)); // 12.0626f, -12.0784f, 12.0784f, 12.0627f + path.lineTo(SkBits2Float(0x46313741), SkBits2Float(0x3b00e540)); // 11341.8f, 0.00196679f + path.close(); + canvas->drawPath(path, paint); +} + /** * In debug mode, this path was causing an assertion to fail in * SkPathStroker::preJoinTo() and, in Release, the use of an unitialized value. @@ -4415,6 +4429,7 @@ DEF_TEST(Paths, reporter) { test_fuzz_crbug_662780(); test_mask_overflow(); test_path_crbugskia6003(); + test_fuzz_crbug_668907(); SkTSize<SkScalar>::Make(3,4); |