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.
This commit is contained in:
Kacper Michajłow 2024-11-13 02:01:35 +01:00
parent 1c3f09270f
commit b982027b64
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@
int mpv_initialize_opts(mpv_handle *ctx, char **options); 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 #define MAX_OPTS_NUM 10000
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)