GNOME Bugzilla – Bug 604472
[PATCH] prevent segfault in g_function_info_invoke
Last modified: 2015-02-07 16:49:28 UTC
Created attachment 149648 [details] [review] 0001-protect-on-null-retval.patch ffi_call does not protect against retval being NULL, resulting in a segfault. The attached patch asserts that retval is a valid address (!NULL). The second patch updates the test cases.
Created attachment 149649 [details] [review] 0002-fix-invoke-tests.patch
Both patches looks good, I'm just wondering though, ffi might not protect against retval being NULL but we could do that in our api if we wanted to.
The following fixes have been pushed: 27c66d0 fix invoke tests eef0aba protect on null retval
Created attachment 149760 [details] [review] fix invoke tests retval should be a valid pointer
Created attachment 149761 [details] [review] protect on null retval ffi_call does not protect against retval being NULL, resulting in a segfault.
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]