History

options: disable playlist and include for fuzzing

Both of this options reads files, so there is not much to test there and only creates problems with timeouts when too much is read.

Kacper Michajłow committed 1 year ago

Commit c14af4e1 parent 9c81c671 file · +4 −0Browse files

Unified · Split

options/options.c+4−0
@@ -456,14 +456,18 @@ static const m_option_t mp_opts[] = { · 455 unmodified lines
456456 // handled in command line pre-parser (parse_commandline.c)
457457 {"v", &m_option_type_dummy_flag, M_OPT_NOCFG | M_OPT_NOPROP,
458458 .offset = -1},
459+#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
459460 {"playlist", CONF_TYPE_STRING, M_OPT_NOCFG | M_OPT_FILE, .offset = -1},
461+#endif
460462 {"{", &m_option_type_dummy_flag, M_OPT_NOCFG | M_OPT_NOPROP,
461463 .offset = -1},
462464 {"}", &m_option_type_dummy_flag, M_OPT_NOCFG | M_OPT_NOPROP,
463465 .offset = -1},
464466
465467 // handled in m_config.c
468+#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
466469 {"include", CONF_TYPE_STRING, M_OPT_FILE, .offset = -1},
470+#endif
467471 {"profile", CONF_TYPE_STRING_LIST, 0, .offset = -1},
468472 {"show-profile", CONF_TYPE_STRING, M_OPT_NOCFG | M_OPT_NOPROP |
469473 M_OPT_OPTIONAL_PARAM, .offset = -1},

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t