1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-23 23:32:26 +00:00

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

View File

@ -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)