mirror of https://github.com/mpv-player/mpv
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:
parent
1c3f09270f
commit
b982027b64
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue