aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/PathOpsOpCircleThreadedTest.cpp
diff options
context:
space:
mode:
authorGravatar caryclark <caryclark@google.com>2016-05-26 09:01:47 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-05-26 09:01:47 -0700
commit2bec26a71698105729c6a7cb0163f499b4361840 (patch)
treee6627c0fd699afa390c6fa1525b4db89c03cb283 /tests/PathOpsOpCircleThreadedTest.cpp
parent99e22fbe569ef3525d4de07eceaca2200a3d6e50 (diff)
fix security bug
This fix is a tradeoff. It changes intersection to treat a case where one coincident run is intersected at one point and the other edge is not as continuing to be a span. The old code tried to treat this as a single point. The old code is probably right, but this change alone made the data structures inconsistent. Later, extending the coincident runs would fail by incorrectly discarding the single point intersection. As a result, this fixes the security test and one other, but makes a different test fail. Isolating the failure uncovered a reduced case that fails with and without the change, so there are more serious problems here. Those problems are addressed in a separate CL. Many of the test edits below remove ill-thought out debugging messaging that fire off global state, which isn't usable in a multi-threaded test environment. In the end, with this fix, all existing tests (modulo one new failure and one new non-failure) pass in debug and in the extended release test suites. TBR=reed@google.com BUG=614248 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2018513003 Review-Url: https://codereview.chromium.org/2018513003
Diffstat (limited to 'tests/PathOpsOpCircleThreadedTest.cpp')
-rw-r--r--tests/PathOpsOpCircleThreadedTest.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/PathOpsOpCircleThreadedTest.cpp b/tests/PathOpsOpCircleThreadedTest.cpp
index 30b1603589..fac767720b 100644
--- a/tests/PathOpsOpCircleThreadedTest.cpp
+++ b/tests/PathOpsOpCircleThreadedTest.cpp
@@ -79,5 +79,4 @@ DEF_TEST(PathOpsOpCircleThreaded, reporter) {
}
finish:
testRunner.render();
- ShowTestArray("circleOp");
}