From a35ab3e6e024d0b548ded26a2e3b8ecd838ead93 Mon Sep 17 00:00:00 2001 From: caryclark Date: Thu, 20 Oct 2016 08:32:18 -0700 Subject: fix fuzzers Many old pathops-related fuzz failures have built up while the codebase was under a state a flux. Now that the code is stable, address these failures. Most of the CL plumbs the debug global state to downstream routines so that, if the data is not trusted (ala fuzzed) the function can safely exit without asserting. TBR=reed@google.com GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2426173002 Review-Url: https://chromiumcodereview.appspot.com/2426173002 --- tests/PathOpsQuadIntersectionTestData.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/PathOpsQuadIntersectionTestData.h') diff --git a/tests/PathOpsQuadIntersectionTestData.h b/tests/PathOpsQuadIntersectionTestData.h index 3090fc96dd..be46a33310 100644 --- a/tests/PathOpsQuadIntersectionTestData.h +++ b/tests/PathOpsQuadIntersectionTestData.h @@ -4,12 +4,12 @@ * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ -#include "SkPathOpsQuad.h" +#include "PathOpsTestCommon.h" -extern const SkDQuad quadraticLines[]; -extern const SkDQuad quadraticPoints[]; -extern const SkDQuad quadraticModEpsilonLines[]; -extern const SkDQuad quadraticTests[][2]; +extern const QuadPts quadraticLines[]; +extern const QuadPts quadraticPoints[]; +extern const QuadPts quadraticModEpsilonLines[]; +extern const QuadPts quadraticTests[][2]; extern const size_t quadraticLines_count; extern const size_t quadraticPoints_count; -- cgit v1.2.3