From 74b429086122e19e82fe090fc999120ed48d3532 Mon Sep 17 00:00:00 2001 From: Cary Clark Date: Fri, 9 Mar 2018 07:38:47 -0500 Subject: some fuzzer fixes should fix three or four of the PathOp asserts triggered by the fuzzer tool. R=kjlubick@google.com Bug: skia: Change-Id: I470895addf1e922da6a7c41d44d54eca92e68fb6 Reviewed-on: https://skia-review.googlesource.com/113163 Reviewed-by: Kevin Lubick Commit-Queue: Cary Clark --- tests/PathOpsConicQuadIntersectionTest.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'tests/PathOpsConicQuadIntersectionTest.cpp') diff --git a/tests/PathOpsConicQuadIntersectionTest.cpp b/tests/PathOpsConicQuadIntersectionTest.cpp index 99411dc98c..bdf1d42d37 100644 --- a/tests/PathOpsConicQuadIntersectionTest.cpp +++ b/tests/PathOpsConicQuadIntersectionTest.cpp @@ -15,6 +15,13 @@ static struct conicQuad { ConicPts conic; QuadPts quad; } conicQuadTests[] = { + {{{{{0.00000000000000000, -1.8135968446731567 }, + {0.00000000000000000, -1.0033817291259766 }, + {-0.0073835160583257675, 0.00000000000000000 }}}, 2.26585215e+11f}, + {{{0.00000000000000000, -1.0000113248825073 }, + {-2.4824290449032560e-05, -1.0000115633010864 }, + {-0.0073835160583257675, 0.00000000000000000 }}}}, + {{{{{494.348663,224.583771}, {494.365143,224.633194}, {494.376404,224.684067}}}, 0.998645842f}, {{{494.30481,224.474213}, {494.334961,224.538284}, {494.355774,224.605927}}}}, @@ -69,5 +76,5 @@ DEF_TEST(PathOpsConicQuadIntersection, reporter) { } DEF_TEST(PathOpsConicQuadIntersectionOneOff, reporter) { - conicQuadIntersection(reporter, 1); + conicQuadIntersection(reporter, 0); } -- cgit v1.2.3