From b982027b6457e74f95f8e4abf9121a49ede7b772 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Wed, 13 Nov 2024 02:01:35 +0100 Subject: [PATCH] fuzzer_options_parser: limit input size to 2048 bytes To encourage fuzzing to mutate shorter test cases, avoid continuously adding more elements into a single input. --- fuzzers/fuzzer_options_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fuzzers/fuzzer_options_parser.c b/fuzzers/fuzzer_options_parser.c index e62c16f27a..c759a099ec 100644 --- a/fuzzers/fuzzer_options_parser.c +++ b/fuzzers/fuzzer_options_parser.c @@ -23,7 +23,7 @@ int mpv_initialize_opts(mpv_handle *ctx, char **options); -#define MAX_INPUT_SIZE (1 << 20) +#define MAX_INPUT_SIZE 2048 #define MAX_OPTS_NUM 10000 int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)