GNOME Bugzilla – Bug 762766
PyMethodDef _gi_gst_functions array needs null object at the end
Last modified: 2016-02-27 11:55:16 UTC
Created attachment 322521 [details] [review] 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.
commit 58c324e0ccc21498a7e29d82dc00ed008050d26c Author: Hanno Boeck <hanno@hboeck.de> Date: Sat Feb 27 11:16:00 2016 +0000 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). https://bugzilla.gnome.org/show_bug.cgi?id=762766