options: disallow log-file when fuzzing

To avoid leaving garbage files behind. It even managed to open log file
itself and stuck in infinite reading loop.
This commit is contained in:
Kacper Michajłow 2024-11-01 13:54:22 +01:00
parent eb16169b27
commit 0a5d656c20
1 changed files with 2 additions and 0 deletions

View File

@ -538,8 +538,10 @@ static const m_option_t mp_opts[] = {
{"dump-stats", OPT_STRING(dump_stats),
.flags = UPDATE_TERM | CONF_PRE_PARSE | M_OPT_FILE},
{"msg-color", OPT_BOOL(msg_color), .flags = CONF_PRE_PARSE | UPDATE_TERM},
#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
{"log-file", OPT_STRING(log_file),
.flags = CONF_PRE_PARSE | M_OPT_FILE | UPDATE_TERM},
#endif
{"msg-module", OPT_BOOL(msg_module), .flags = UPDATE_TERM},
{"msg-time", OPT_BOOL(msg_time), .flags = UPDATE_TERM},
#if HAVE_WIN32_DESKTOP