diff options
Diffstat (limited to 'fuzz/oss_fuzz/FuzzGradients.cpp')
-rw-r--r-- | fuzz/oss_fuzz/FuzzGradients.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/fuzz/oss_fuzz/FuzzGradients.cpp b/fuzz/oss_fuzz/FuzzGradients.cpp new file mode 100644 index 0000000000..06948021b3 --- /dev/null +++ b/fuzz/oss_fuzz/FuzzGradients.cpp @@ -0,0 +1,17 @@ +/* + * 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_Gradients(Fuzz* f); + +bool FLAGS_verbose = false; +extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { + auto fuzz = Fuzz(SkData::MakeWithoutCopy(data, size)); + fuzz_Gradients(&fuzz); + return 0; +} |