mirror of
https://github.com/mpv-player/mpv
synced 2025-02-08 16:07:16 +00:00
fuzzers: set network-timeout to 1 second
We don't expect any data to actually access, so timeout as soon as possible.
This commit is contained in:
parent
aa3cf6d57b
commit
c1d5f0e9c8
@ -53,6 +53,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
|
||||
check_error(mpv_set_option_string(ctx, "untimed", "yes"));
|
||||
check_error(mpv_set_option_string(ctx, "video-osd", "no"));
|
||||
check_error(mpv_set_option_string(ctx, "msg-level", "all=trace"));
|
||||
check_error(mpv_set_option_string(ctx, "network-timeout", "1"));
|
||||
|
||||
check_error(mpv_initialize(ctx));
|
||||
|
||||
|
@ -53,6 +53,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
|
||||
check_error(mpv_set_option_string(ctx, "untimed", "yes"));
|
||||
check_error(mpv_set_option_string(ctx, "video-osd", "no"));
|
||||
check_error(mpv_set_option_string(ctx, "msg-level", "all=trace"));
|
||||
check_error(mpv_set_option_string(ctx, "network-timeout", "1"));
|
||||
|
||||
check_error(mpv_initialize(ctx));
|
||||
|
||||
|
@ -68,6 +68,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
|
||||
check_error(mpv_set_option_string(ctx, "untimed", "yes"));
|
||||
check_error(mpv_set_option_string(ctx, "video-osd", "no"));
|
||||
check_error(mpv_set_option_string(ctx, "msg-level", "all=trace"));
|
||||
check_error(mpv_set_option_string(ctx, "network-timeout", "1"));
|
||||
|
||||
check_error(mpv_initialize(ctx));
|
||||
|
||||
|
@ -57,13 +57,15 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
|
||||
if (!ctx)
|
||||
exit(1);
|
||||
|
||||
check_error(mpv_set_option_string(ctx, "msg-level", "all=trace"));
|
||||
check_error(mpv_set_option_string(ctx, "network-timeout", "1"));
|
||||
|
||||
#if MPV_RUN
|
||||
check_error(mpv_set_option_string(ctx, "vo", "null"));
|
||||
check_error(mpv_set_option_string(ctx, "ao", "null"));
|
||||
check_error(mpv_set_option_string(ctx, "ao-null-untimed", "yes"));
|
||||
check_error(mpv_set_option_string(ctx, "untimed", "yes"));
|
||||
check_error(mpv_set_option_string(ctx, "video-osd", "no"));
|
||||
check_error(mpv_set_option_string(ctx, "msg-level", "all=trace"));
|
||||
|
||||
check_error(mpv_initialize(ctx));
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user