History

demux_edl: make protocol comparison case insensitive

Else nested edl protocol causes infinite recursion, when loading. Found by OSS-Fuzz.

Kacper Michajłow committed 2 years ago

Commit d6803c41 parent 49cb0391 file · +1 −1Browse files

Unified · Split

demux/demux_edl.c+1−1
@@ -567,7 +567,7 @@ error: · 566 unmodified lines
567567
568568 static void fix_filenames(struct tl_parts *parts, char *source_path)
569569 {
570− if (bstr_equals0(mp_split_proto(bstr0(source_path), NULL), "edl"))
570+ if (!bstrcasecmp0(mp_split_proto(bstr0(source_path), NULL), "edl"))
571571 return;
572572 struct bstr dirname = mp_dirname(source_path);
573573 for (int n = 0; n < parts->num_parts; n++) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t