History

demux_playlist: add data:// to self-expanding protocols

Found by OSS-Fuzz.

Kacper Michajłow committed 2 years ago

Commit eb161691 parent de42e111 file · +1 −1Browse files

Unified · Split

demux/demux_playlist.c+1−1
@@ -685,7 +685,7 @@ static int open_file(struct demuxer *demuxer, enum demux_check check) · 684 unmodified lines
685685 bstr proto = mp_split_proto(bstr0(demuxer->filename), NULL);
686686 // Don't add base path to self-expanding protocols
687687 if (bstrcasecmp0(proto, "memory") && bstrcasecmp0(proto, "lavf") &&
688− bstrcasecmp0(proto, "hex"))
688+ bstrcasecmp0(proto, "hex") && bstrcasecmp0(proto, "data"))
689689 {
690690 playlist_add_base_path(p->pl, mp_dirname(demuxer->filename));
691691 }

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