diff options
Diffstat (limited to 'src/core/fuzz-execute-serialize.c')
-rw-r--r-- | src/core/fuzz-execute-serialize.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/fuzz-execute-serialize.c b/src/core/fuzz-execute-serialize.c index 862b525974..6069efd519 100644 --- a/src/core/fuzz-execute-serialize.c +++ b/src/core/fuzz-execute-serialize.c @@ -75,6 +75,9 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { _cleanup_fclose_ FILE *f = NULL; _cleanup_fdset_free_ FDSet *fdset = NULL; + if (outside_size_range(size, 0, 128 * 1024)) + return 0; + fuzz_setup_logging(); assert_se(fdset = fdset_new()); |