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 788928 - Gstreamer: Fix for possible crash due to null pointer dereferencing in public GstQueueArray API:gst_queue_array_pop_head_struct
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 All
: Normal minor
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-10-13 10:40 UTC by Ashish Kumar
Modified: 2017-10-13 10:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[PATCH] Gstreamer: Fix for possible crash due to null pointer dereferencing in public GstQueueArray API:gst_queue_array_pop_head_struct (1003 bytes, patch)
2017-10-13 10:42 UTC, Ashish Kumar
none Details | Review

Description Ashish Kumar 2017-10-13 10:40:33 UTC
In 
File : gstqueuearray.c
Function : gpointer gst_queue_array_pop_head_struct (GstQueueArray * array))
Line No. 129

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

gpointer
gst_queue_array_pop_head_struct (GstQueueArray * array)
{
  gpointer p_struct;

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

Please review and share the feedback
Comment 2 Tim-Philipp Müller 2017-10-13 10:57:50 UTC
Please squash this with the patch in bug #788838, thanks.

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