After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 788929 - Gstreamer: Fix for possible crash due to null pointer dereferencing in public GstQueueArray API:gst_queue_array_pop_head
Gstreamer: Fix for possible crash due to null pointer dereferencing in public...
Status: RESOLVED DUPLICATE of bug 788838
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
1.12.3
Other Windows
: Normal minor
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-10-13 10:57 UTC by Ashish Kumar
Modified: 2017-10-13 11:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Gstreamer: Fix for possible crash due to null pointer dereferencing in public GstQueueArray API:gst_queue_array_pop_head (882 bytes, patch)
2017-10-13 10:58 UTC, Ashish Kumar
none Details | Review

Description Ashish Kumar 2017-10-13 10:57:14 UTC
In 
File : gstqueuearray.c
Function : gpointer gst_queue_array_pop_head (GstQueueArray * array))
Line No. 158

There is a possibility of crash if array is null, due to dereferencing of null pointer.

gpointer
gst_queue_array_pop_head (GstQueueArray * array)
{
  gpointer p_struct;

  /* empty array */
  if (G_UNLIKELY (array->length == 0))
    return NULL;
Comment 1 Ashish Kumar 2017-10-13 10:58:23 UTC
Created attachment 361504 [details] [review]
Gstreamer: Fix for possible crash due to null pointer dereferencing in public GstQueueArray API:gst_queue_array_pop_head

Please review and share the feedback
Comment 2 Tim-Philipp Müller 2017-10-13 11:05:44 UTC
This is the same as bug #788838, please make one single patch for all.

*** This bug has been marked as a duplicate of bug 788838 ***