mirror of https://github.com/mpv-player/mpv
demux_mf: disable glob for fuzzing
This commit is contained in:
parent
5f768a688b
commit
aa35f2e4bd
|
@ -126,7 +126,7 @@ static mf_t *open_mf_pattern(void *talloc_ctx, struct demuxer *d, char *filename
|
|||
size_t fname_avail = bfilename.len + 32;
|
||||
char *fname = talloc_size(mf, fname_avail);
|
||||
|
||||
#if HAVE_GLOB
|
||||
#if HAVE_GLOB && !defined(FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION)
|
||||
if (!strchr(filename, '%')) {
|
||||
// append * if none present
|
||||
snprintf(fname, fname_avail, "%s%c", filename,
|
||||
|
|
Loading…
Reference in New Issue