Skip to content

Commit

Permalink
fuzz: limit input size even more
Browse files Browse the repository at this point in the history
we're still hitting an OOM condition
  • Loading branch information
flavorjones committed Jul 20, 2024
1 parent 8005c10 commit cb89f72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gumbo-parser/fuzzer/parse_fuzzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ int SanityCheckPointers(const char* input, size_t input_length, const GumboNode*

extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
/* arbitrary upper size limit to avoid "out-of-memory in parse_fuzzer" reports */
if (size < 10 | size > 100000)
if (size < 10 | size > 50000)
{
return 0;
}
Expand Down

0 comments on commit cb89f72

Please sign in to comment.