]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
ctypes callback functions only support 'fundamental' result types.
authorThomas Heller <theller@ctypes.org>
Tue, 17 Oct 2006 19:30:48 +0000 (19:30 +0000)
committerThomas Heller <theller@ctypes.org>
Tue, 17 Oct 2006 19:30:48 +0000 (19:30 +0000)
commitd2ea4a258401dd97a5084398803ee8193f4f9c7a
treed50ed8d8d690616d05239f77eb6944de1cc79b1e
parentfefbc2029cf131cabb32fe4540fdbac12d40a271
ctypes callback functions only support 'fundamental' result types.
Check this and raise an error when something else is used - before
this change ctypes would hang or crash when such a callback was
called.  This is a partial fix for #1574584.

Will backport to release25-maint.
Lib/ctypes/test/test_callbacks.py
Misc/NEWS
Modules/_ctypes/callbacks.c