diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2023-11-03 20:37:59 +0100 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2023-11-03 22:35:32 +0100 |
commit | b0d446b381e4a5e2263c754c1c7d739fd4637d50 (patch) | |
tree | 977fd7b7001ab6af890296bd0ba404164ce92431 /src/fuzz | |
parent | Update NEWS (diff) | |
download | systemd-b0d446b381e4a5e2263c754c1c7d739fd4637d50.tar.xz systemd-b0d446b381e4a5e2263c754c1c7d739fd4637d50.zip |
fuzz: limit the interface definition input size to 64K
To avoid timeouts with larger inputs.
Resolves: #29856
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)); |