Amaury Forgeot d'Arc <amaur...@gmail.com> added the comment:

There is a out-of-bounds error in Modules/_ctypes/libffi/src/x86/ffi64.c:
at line 225, classes[i + pos] can go outside the allocated memory for classes 
(MAX_CLASSES=4).
This code is not prepared to received "structures" with a small size (<32bytes) 
but where individual elements total more than 32bytes.

libffi support for unions is weak; at least ctypes should not use 
FFI_TYPE_STRUCT for unions.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14354>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to