aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/PathOpsConicQuadIntersectionTest.cpp
diff options
context:
space:
mode:
authorGravatar Cary Clark <caryclark@skia.org>2018-03-09 07:38:47 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-03-09 14:54:30 +0000
commit74b429086122e19e82fe090fc999120ed48d3532 (patch)
tree0e9ee4be41ba35dafbd82c42ac7d40213de81250 /tests/PathOpsConicQuadIntersectionTest.cpp
parentb537879c7214efd87840c9a7267ab3b3facda873 (diff)
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 <kjlubick@google.com> Commit-Queue: Cary Clark <caryclark@skia.org>
Diffstat (limited to 'tests/PathOpsConicQuadIntersectionTest.cpp')
-rw-r--r--tests/PathOpsConicQuadIntersectionTest.cpp9
1 files changed, 8 insertions, 1 deletions
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);
}