mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 03:29:50 +00:00
b7ef52c515
hlsdemux causes a null pointer dereference if the media playlist does not contain any media files. The gst_m3u8_client_get_duration function assumes that demux->client->current->files is valid when computing duration. gst_m3u8_client_update needed to be modified to check for the case of downloading an M3U8 file that doesn't contain any media files, and returning an error to gsthlsdemux.c This bug can be reproduced by creating a master m3u8 file that contains one media playlist that points back to the master m3u8 file. For example create a file called bug725134.m3u8: #EXTM3U #EXT-X-VERSION:4 #EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=1251135, CODECS="avc1.42001f mp4a.40.2", RESOLUTION=640x352 bug725134.m3u8 https://bugzilla.gnome.org/show_bug.cgi?id=725134 |
||
---|---|---|
.. | ||
gstfragmented.h | ||
gstfragmentedplugin.c | ||
gsthlsdemux.c | ||
gsthlsdemux.h | ||
gsthlssink.c | ||
gsthlssink.h | ||
gstm3u8playlist.c | ||
gstm3u8playlist.h | ||
m3u8.c | ||
m3u8.h | ||
Makefile.am |