This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients amaury.forgeotdarc, meador.inge, ned.deily, ogre, ronaldoussoren
Date 2012-03-18.11:16:51
SpamBayes Score 3.8653657e-06
Marked as misclassified No
Message-id <1332069412.3.0.0443195422248.issue14354@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-03-18 11:16:52amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, ronaldoussoren, ned.deily, meador.inge, ogre
2012-03-18 11:16:52amaury.forgeotdarcsetmessageid: <1332069412.3.0.0443195422248.issue14354@psf.upfronthosting.co.za>
2012-03-18 11:16:51amaury.forgeotdarclinkissue14354 messages
2012-03-18 11:16:51amaury.forgeotdarccreate