From aa35f2e4bd51f7036a07163a8178d3ebb1536cbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Sat, 3 Aug 2024 10:25:43 +0200 Subject: [PATCH] demux_mf: disable glob for fuzzing --- demux/demux_mf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demux/demux_mf.c b/demux/demux_mf.c index 4711fb550c..6f624f8697 100644 --- a/demux/demux_mf.c +++ b/demux/demux_mf.c @@ -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,