[Bug 762766] New: PyMethodDef _gi_gst_functions array needs null object at the end

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Sat Feb 27 11:16:10 UTC 2016


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

            Bug ID: 762766
           Summary: PyMethodDef _gi_gst_functions array needs null object
                    at the end
    Classification: Platform
           Product: GStreamer
           Version: unspecified
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-python
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: hanno at hboeck.de
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

Created attachment 322521
  --> https://bugzilla.gnome.org/attachment.cgi?id=322521&action=edit
patch to null-terminate PyMethodDef array

PyMethodDef arrays are supposed to end with an entry full of NULL/0 values.
This is missing in gst-python in the file gstmodule.c.

This causes out of bounds memory reads which can be seen / tested by compiling
gst-python with address sanitizer (-fsanitize=address in CFLAGS/LDFLAGS).

Attached patch fixes this issue.

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