Skip to content

Commit 872a759

Browse files
committed
Limit input size in exif fuzzer
Probably still too much...
1 parent 7d90f48 commit 872a759

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sapi/fuzzer/fuzzer-exif.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
3535
char *filename;
3636
int filedes;
3737

38+
if (Size > 256 * 1024) {
39+
/* Large inputs have a large impact on fuzzer performance,
40+
* but are unlikely to be necessary to reach new codepaths. */
41+
return 0;
42+
}
43+
3844
if (fuzzer_request_startup() == FAILURE) {
3945
return 0;
4046
}

0 commit comments

Comments
 (0)