7845b9700e
This simplifies the fuzzer (since the important logic is in FuzzCommon.cpp). As requested by https://chromium-review.googlesource.com/c/chromium/src/+/2597075 Change-Id: Ia73f88ec584a2147f110755f98542e610100cfff Reviewed-on: https://skia-review.googlesource.com/c/skia/+/389736 Commit-Queue: Weston Tracey <westont@google.com> Auto-Submit: Kevin Lubick <kjlubick@google.com> Reviewed-by: Weston Tracey <westont@google.com>
20 lines
421 B
C++
20 lines
421 B
C++
/*
|
|
* Copyright 2021 Google, LLC
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
#include "fuzz/Fuzz.h"
|
|
|
|
void fuzz_RegionOp(Fuzz* f);
|
|
|
|
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
|
if (size > 8000) {
|
|
return 0;
|
|
}
|
|
auto fuzz = Fuzz(SkData::MakeWithoutCopy(data, size));
|
|
fuzz_RegionOp(&fuzz);
|
|
return 0;
|
|
}
|