Skip to content

Commit

Permalink
demux_edl: make protocol comparison case insensitive
Browse files Browse the repository at this point in the history
Else nested edl protocol causes infinite recursion, when loading.

Found by OSS-Fuzz.
  • Loading branch information
kasper93 committed May 8, 2024
1 parent 49cb039 commit d6803c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demux/demux_edl.c
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ static struct timeline_par *build_timeline(struct timeline *root,

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++) {
Expand Down

0 comments on commit d6803c4

Please sign in to comment.