Submitter | phabricator |
---|---|
Date | Jan. 9, 2019, 9:49 a.m. |
Message ID | <30813d5e58a475c0e81ec131c7865e7f@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/37571/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/contrib/fuzz/xdiff.cc b/contrib/fuzz/xdiff.cc --- a/contrib/fuzz/xdiff.cc +++ b/contrib/fuzz/xdiff.cc @@ -22,6 +22,11 @@ int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { + // Don't allow fuzzer inputs larger than 100k, since we'll just bog + // down and not accomplish much. + if (Size > 100000) { + return 0; + } auto maybe_inputs = SplitInputs(Data, Size); if (!maybe_inputs) { return 0;