diff options
author | Kevin Lubick <kjlubick@google.com> | 2018-08-30 12:12:21 -0400 |
---|---|---|
committer | Kevin Lubick <kjlubick@google.com> | 2018-08-30 16:47:13 +0000 |
commit | 549ed8874e4ff01a8bffb1c0a56593680505bc49 (patch) | |
tree | f71e50d840fc844cfefa1ccb2b739e7486bf1369 /fuzz | |
parent | 7ed0eae0cd13d3d687f7855b0620a0faad2ab5b3 (diff) | |
download | skqp-549ed8874e4ff01a8bffb1c0a56593680505bc49.tar.gz |
Add FuzzPathop to oss-fuzz
With the fixes in https://skia-review.googlesource.com/c/skia/+/150465
this should allow us to fuzz Pathop on oss-fuzz.
Bug: skia:
Change-Id: Id5df511f850f23b5aad0bcb39664d18f639ddb69
Reviewed-on: https://skia-review.googlesource.com/150560
Auto-Submit: Kevin Lubick <kjlubick@google.com>
Reviewed-by: Cary Clark <caryclark@google.com>
Commit-Queue: Cary Clark <caryclark@google.com>
Diffstat (limited to 'fuzz')
-rw-r--r-- | fuzz/oss_fuzz/FuzzPathop.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/fuzz/oss_fuzz/FuzzPathop.cpp b/fuzz/oss_fuzz/FuzzPathop.cpp new file mode 100644 index 0000000000..d4ddddbfe2 --- /dev/null +++ b/fuzz/oss_fuzz/FuzzPathop.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_Pathop(Fuzz* f); + +extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { + auto fuzz = Fuzz(SkData::MakeWithoutCopy(data, size)); + fuzz_Pathop(&fuzz); + return 0; +} |