From 05cb229e58efa052db5acf33be0441f4b4a28e7c Mon Sep 17 00:00:00 2001 From: Kevin Lubick Date: Mon, 12 Mar 2018 14:01:09 -0400 Subject: Add oss-fuzz endpoint for PathMeasure Bug: skia: Change-Id: I3e051cefd6861b63bab33a1812674eacf67a35dd Reviewed-on: https://skia-review.googlesource.com/113748 Reviewed-by: Mike Klein Commit-Queue: Kevin Lubick --- fuzz/oss_fuzz/FuzzPathMeasure.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 fuzz/oss_fuzz/FuzzPathMeasure.cpp (limited to 'fuzz') diff --git a/fuzz/oss_fuzz/FuzzPathMeasure.cpp b/fuzz/oss_fuzz/FuzzPathMeasure.cpp new file mode 100644 index 0000000000..2713942921 --- /dev/null +++ b/fuzz/oss_fuzz/FuzzPathMeasure.cpp @@ -0,0 +1,16 @@ +/* + * Copyright 2018 Google, LLC + * + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#include "../Fuzz.h" + +void fuzz_PathMeasure(Fuzz* f); + +extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { + auto fuzz = Fuzz(SkData::MakeWithoutCopy(data, size)); + fuzz_PathMeasure(&fuzz); + return 0; +} -- cgit v1.2.3