Skip to content

Commit

Permalink
adjust input size
Browse files Browse the repository at this point in the history
  • Loading branch information
Zepeng Hu committed Jun 12, 2020
1 parent 13260a9 commit abd7476
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fuzz/oss_fuzz/FuzzSVG.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ void FuzzSVG(sk_sp<SkData> bytes) {

#if defined(IS_FUZZING_WITH_LIBFUZZER)
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
if (size > 30000) {
return 0;
}
auto bytes = SkData::MakeWithoutCopy(data, size);
FuzzSVG(bytes);
return 0;
Expand Down

0 comments on commit abd7476

Please sign in to comment.