From: Tim-Philipp Müller Date: Fri, 16 Jun 2017 10:18:16 +0000 (+0100) Subject: rtph265depay: fix crash with empty sprops-parameters X-Git-Tag: 1.19.3~509^2~1815 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=289882497a8c840f019d7b27d965148f1dbb153c;p=platform%2Fupstream%2Fgstreamer.git rtph265depay: fix crash with empty sprops-parameters https://bugzilla.gnome.org/show_bug.cgi?id=780040 --- diff --git a/gst/rtp/gstrtph265depay.c b/gst/rtp/gstrtph265depay.c index c6545c0..47a137d 100644 --- a/gst/rtp/gstrtph265depay.c +++ b/gst/rtp/gstrtph265depay.c @@ -842,6 +842,10 @@ gst_rtp_h265_depay_setcaps (GstRTPBaseDepayload * depayload, GstCaps * caps) gint state = 0; nal_len = strlen (params[i]); + if (nal_len == 0) { + GST_WARNING_OBJECT (depayload, "empty param '%s' (#%d)", params[i], i); + continue; + } nal = gst_buffer_new_and_alloc (nal_len); gst_buffer_map (nal, &nalmap, GST_MAP_READWRITE);