Commit ee18766b169811426c14b011fbb46d81e344f926

Alex Gaynor 2013-03-14T15:00:33

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)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;
 }