[Bug 725134] hlsdemux null pointer deref if media playlist contains no media
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Sat Mar 1 07:13:37 PST 2014
https://bugzilla.gnome.org/show_bug.cgi?id=725134
GStreamer | gst-plugins-bad | git
Sebastian Dröge (slomo) <slomo> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|HEAD |1.3.1
--- Comment #9 from Sebastian Dröge (slomo) <slomo at coaxion.net> 2014-03-01 15:35:33 UTC ---
Thanks for updating the patch :)
commit b7ef52c515d9de53a08c450eef84492ba79796b3
Author: Alex Ashley <bugzilla at ashley-family.net>
Date: Tue Feb 25 11:45:46 2014 +0000
hlsdemux: Segfaults if playlist has no media files
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", RESOLUTIO
bug725134.m3u8
https://bugzilla.gnome.org/show_bug.cgi?id=725134
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list