Limit input size in exif fuzzer

Probably still too much...
This commit is contained in:
Nikita Popov 2019-10-01 18:29:23 +02:00
parent 7d90f4864d
commit 872a759f88

View file

@ -35,6 +35,12 @@ int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
char *filename;
int filedes;
if (Size > 256 * 1024) {
/* Large inputs have a large impact on fuzzer performance,
* but are unlikely to be necessary to reach new codepaths. */
return 0;
}
if (fuzzer_request_startup() == FAILURE) {
return 0;
}