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

Unified Diff: tests/PathOpsOpTest.cpp

Issue 1730293002: fix path ops fuzz bug (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « src/pathops/SkPathOpsCommon.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/PathOpsOpTest.cpp
diff --git a/tests/PathOpsOpTest.cpp b/tests/PathOpsOpTest.cpp
index 7639cd9e8f24b956173eec422e3beac2f3178067..359271ad511a542d36eac1d1c9b42aeadbcbe76c 100644
--- a/tests/PathOpsOpTest.cpp
+++ b/tests/PathOpsOpTest.cpp
@@ -5564,6 +5564,18 @@ DEF_TEST(PathOpsOp, reporter) {
}
}
+static void fuzz535151(skiatest::Reporter* reporter, const char* filename) {
+ SkPath one;
+ one.setFillType(SkPath::kWinding_FillType);
+ SkPath two;
+ two.setFillType(SkPath::kWinding_FillType);
+ two.moveTo(0, 0);
+ two.lineTo(0, 50);
+ two.lineTo(4.29497e+09f, 50);
+ SkPath dummy;
+ REPORTER_ASSERT(reporter, !Op(one, two, kIntersect_SkPathOp, &dummy));
+}
+
static void bufferOverflow(skiatest::Reporter* reporter, const char* filename) {
SkPath path;
path.addRect(0,0, 300,170141183460469231731687303715884105728.f);
@@ -5781,6 +5793,7 @@ path.lineTo(SkBits2Float(0x40f8fbe0), SkBits2Float(0xcf223cc0)); // 7.78075f, -
}
static struct TestDesc failTests[] = {
+ TEST(fuzz535151),
TEST(fuzz753_91),
TEST(fuzz714),
TEST(fuzz487a),
« no previous file with comments | « src/pathops/SkPathOpsCommon.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698