NULL-terminate PyMethodDef array
authorHanno Boeck <hanno@hboeck.de>
Sat, 27 Feb 2016 11:16:00 +0000 (11:16 +0000)
committerSebastian Dröge <sebastian@centricular.com>
Sat, 27 Feb 2016 11:52:07 +0000 (13:52 +0200)
commit58c324e0ccc21498a7e29d82dc00ed008050d26c
treeb8177e1dd8fad3f6440b743466694755c0724ccf
parentb2077dcfab80f837fc3c4ee7c098cf66659cc698
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
gi/overrides/gstmodule.c