diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2013-03-14 15:00:33 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2013-03-14 15:00:33 -0700 |
commit | ee18766b169811426c14b011fbb46d81e344f926 (patch) | |
tree | 3656b629640b6708b2641d3d82ebe61fd67a5761 | |
parent | f308faf1eabaf8dc24966ab17fbf94368f46b9c7 (diff) | |
download | libffi-ee18766b169811426c14b011fbb46d81e344f926.tar.gz |
Fix for a crasher due to misaligned stack on x86-32.
Full information on reproduction (using Python's ctypes available here: http://bugs.python.org/issue17423)
-rw-r--r-- | src/x86/ffi.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/x86/ffi.c b/src/x86/ffi.c index 3f46693..0600414 100644 --- a/src/x86/ffi.c +++ b/src/x86/ffi.c @@ -315,9 +315,7 @@ ffi_status ffi_prep_cif_machdep(ffi_cif *cif) cif->bytes += 4 * sizeof(ffi_arg); #endif -#ifdef X86_DARWIN cif->bytes = (cif->bytes + 15) & ~0xF; -#endif return FFI_OK; } |