GNOME Bugzilla – Bug 780040
rtph264depay: segfault if empty sprop-parameters are provided in caps
Last modified: 2017-03-16 11:50:05 UTC
Created attachment 347928 [details] [review] proposed fix a pipeline like this: rtspsrc ! rtph264depay ! fakesink segfaults with some rtsp stream, it seems that nal buffer can have NULL data, the actual code segfault this way:
+ Trace 237263
Any chance you could provide the capture of an input stream (pcap or gdp-protocol) that reproduces the issue? The g_debug() thing has been removed in master. map.data should never be NULL. You probably want to check the return value of gst_buffer_map() instead. But the question is still why the mapping fails here!
Created attachment 347931 [details] gdp capture using filesrc ! gdpdepay ! rtph264depay ! fakesink you can reproduce the issue, gst_buffer_map does not fail it returns TRUE
Created attachment 348049 [details] [review] rtph264depay: fix crash with empty sprops-parameters How about this?
Also, what sends/creates this? Clearly broken.
(In reply to Tim-Philipp Müller from comment #3) > Created attachment 348049 [details] [review] [review] > rtph264depay: fix crash with empty sprops-parameters > > How about this? this fix the issue as well, thanks!
(In reply to Tim-Philipp Müller from comment #4) > Also, what sends/creates this? Clearly broken. another broken ganz dvr :)
Okay, thanks. I'll push my version then since it fixes the issue closer to the source. commit c8f094cf7de014c5cf72d782cd67e18c5c3deffa Author: Tim-Philipp Müller <tim@centricular.com> Date: Thu Mar 16 00:41:44 2017 +0000 rtph264depay: fix crash with empty sprops-parameters https://bugzilla.gnome.org/show_bug.cgi?id=780040