From eb16169b27843450d0d3e04e55fce2ff4538fa40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Fri, 1 Nov 2024 13:53:56 +0100 Subject: [PATCH] demux_playlist: add data:// to self-expanding protocols Found by OSS-Fuzz. --- demux/demux_playlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demux/demux_playlist.c b/demux/demux_playlist.c index 4c0859df3b..94c2ede594 100644 --- a/demux/demux_playlist.c +++ b/demux/demux_playlist.c @@ -685,7 +685,7 @@ static int open_file(struct demuxer *demuxer, enum demux_check check) bstr proto = mp_split_proto(bstr0(demuxer->filename), NULL); // Don't add base path to self-expanding protocols if (bstrcasecmp0(proto, "memory") && bstrcasecmp0(proto, "lavf") && - bstrcasecmp0(proto, "hex")) + bstrcasecmp0(proto, "hex") && bstrcasecmp0(proto, "data")) { playlist_add_base_path(p->pl, mp_dirname(demuxer->filename)); }