From d6803c45183b18637e603eb1997c4ffbcc434616 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Wed, 8 May 2024 18:07:48 +0200 Subject: [PATCH] demux_edl: make protocol comparison case insensitive Else nested edl protocol causes infinite recursion, when loading. Found by OSS-Fuzz. --- demux/demux_edl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demux/demux_edl.c b/demux/demux_edl.c index 356b7eefb5..55af553661 100644 --- a/demux/demux_edl.c +++ b/demux/demux_edl.c @@ -567,7 +567,7 @@ error: static void fix_filenames(struct tl_parts *parts, char *source_path) { - if (bstr_equals0(mp_split_proto(bstr0(source_path), NULL), "edl")) + if (!bstrcasecmp0(mp_split_proto(bstr0(source_path), NULL), "edl")) return; struct bstr dirname = mp_dirname(source_path); for (int n = 0; n < parts->num_parts; n++) {