mirror of https://github.com/mpv-player/mpv
demux_edl: disallow nested edl to avoid infinite loop
Found by OSS-Fuzz.
This commit is contained in:
parent
1a522b4a72
commit
de42e11662
|
@ -0,0 +1 @@
|
|||
nested edl are no longer supported; flatten the edl or use a playlist with multiple edl entries
|
|
@ -451,6 +451,10 @@ static struct timeline_par *build_timeline(struct timeline *root,
|
|||
struct tl_part *part = &parts->parts[n];
|
||||
struct demuxer *source = NULL;
|
||||
|
||||
if (!bstrcasecmp0(mp_split_proto(bstr0(part->filename), NULL), "edl")) {
|
||||
MP_ERR(root, "Nested EDL is not allowed.\n");
|
||||
goto error;
|
||||
}
|
||||
if (tl->dash) {
|
||||
part->offset = starttime;
|
||||
if (part->length <= 0)
|
||||
|
|
Loading…
Reference in New Issue