diff options
Diffstat (limited to 'src/fuzz')
-rw-r--r-- | src/fuzz/fuzz-varlink-idl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fuzz/fuzz-varlink-idl.c b/src/fuzz/fuzz-varlink-idl.c index 7ad0f28413..2436342a4d 100644 --- a/src/fuzz/fuzz-varlink-idl.c +++ b/src/fuzz/fuzz-varlink-idl.c @@ -14,6 +14,9 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { _cleanup_free_ char *str = NULL, *dump = NULL; int r; + if (outside_size_range(size, 0, 64 * 1024)) + return 0; + fuzz_setup_logging(); assert_se(str = memdup_suffix0(data, size)); |