aboutsummaryrefslogtreecommitdiffhomepage
path: root/fuzz
diff options
context:
space:
mode:
authorGravatar Kevin Lubick <kjlubick@google.com>2018-03-12 14:01:09 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-03-12 18:43:38 +0000
commit05cb229e58efa052db5acf33be0441f4b4a28e7c (patch)
tree021185279272a5c899b9b8a21e071c52096f0bdf /fuzz
parent7611ed53b9ef7decd7d0580df8a6a02c5c178857 (diff)
Add oss-fuzz endpoint for PathMeasure
Bug: skia: Change-Id: I3e051cefd6861b63bab33a1812674eacf67a35dd Reviewed-on: https://skia-review.googlesource.com/113748 Reviewed-by: Mike Klein <mtklein@google.com> Commit-Queue: Kevin Lubick <kjlubick@google.com>
Diffstat (limited to 'fuzz')
-rw-r--r--fuzz/oss_fuzz/FuzzPathMeasure.cpp16
1 files changed, 16 insertions, 0 deletions
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;
+}