summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sapi/fuzzer/fuzzer-exif.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sapi/fuzzer/fuzzer-exif.c b/sapi/fuzzer/fuzzer-exif.c
index 0bcffbb334..6591a68888 100644
--- a/sapi/fuzzer/fuzzer-exif.c
+++ b/sapi/fuzzer/fuzzer-exif.c
@@ -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;
}