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.
Unified · Split
| @@ -456,14 +456,18 @@ static const m_option_t mp_opts[] = { · 455 unmodified lines | |||
| 456 | // handled in command line pre-parser (parse_commandline.c) | 456 | // handled in command line pre-parser (parse_commandline.c) |
| 457 | {"v", &m_option_type_dummy_flag, M_OPT_NOCFG | M_OPT_NOPROP, | 457 | {"v", &m_option_type_dummy_flag, M_OPT_NOCFG | M_OPT_NOPROP, |
| 458 | .offset = -1}, | 458 | .offset = -1}, |
| 459 | #ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION | ||
| 459 | {"playlist", CONF_TYPE_STRING, M_OPT_NOCFG | M_OPT_FILE, .offset = -1}, | 460 | {"playlist", CONF_TYPE_STRING, M_OPT_NOCFG | M_OPT_FILE, .offset = -1}, |
| 461 | #endif | ||
| 460 | {"{", &m_option_type_dummy_flag, M_OPT_NOCFG | M_OPT_NOPROP, | 462 | {"{", &m_option_type_dummy_flag, M_OPT_NOCFG | M_OPT_NOPROP, |
| 461 | .offset = -1}, | 463 | .offset = -1}, |
| 462 | {"}", &m_option_type_dummy_flag, M_OPT_NOCFG | M_OPT_NOPROP, | 464 | {"}", &m_option_type_dummy_flag, M_OPT_NOCFG | M_OPT_NOPROP, |
| 463 | .offset = -1}, | 465 | .offset = -1}, |
| 464 | 466 | ||
| 465 | // handled in m_config.c | 467 | // handled in m_config.c |
| 468 | #ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION | ||
| 466 | {"include", CONF_TYPE_STRING, M_OPT_FILE, .offset = -1}, | 469 | {"include", CONF_TYPE_STRING, M_OPT_FILE, .offset = -1}, |
| 470 | #endif | ||
| 467 | {"profile", CONF_TYPE_STRING_LIST, 0, .offset = -1}, | 471 | {"profile", CONF_TYPE_STRING_LIST, 0, .offset = -1}, |
| 468 | {"show-profile", CONF_TYPE_STRING, M_OPT_NOCFG | M_OPT_NOPROP | | 472 | {"show-profile", CONF_TYPE_STRING, M_OPT_NOCFG | M_OPT_NOPROP | |
| 469 | M_OPT_OPTIONAL_PARAM, .offset = -1}, | 473 | M_OPT_OPTIONAL_PARAM, .offset = -1}, |