[Bug 797075] hls segfaults

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Sat Sep 8 15:28:16 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=797075

--- Comment #5 from Nicolas Dufresne (ndufresne) <nicolas at ndufresne.ca> ---
It's not calling into the binary case. gst_hls_src_buf_to_utf8_playlist() runs
g_utf8_validate() which would detect this case.

After that, we clearly have gone passed g_str_has_prefix (data, "#EXTM3U")) and
g_strrstr (data, "\n#EXT-X-STREAM-INF:") validation, so the file is probably
not that corrupted.

So I can only blame the hand written parser that follow this code. If you
manage to reproduce, got to frame 6, and and print "data". Attach the output
here. We can then plug that data into our unit test and easily reproduce (and
fix) that bug.

For the refefence:
 gdb) f 6
 gdb) printf "%s",data

-- 
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