Fix for a crasher due to misaligned stack on x86-32.
authorAlex Gaynor <alex.gaynor@gmail.com>
Thu, 14 Mar 2013 22:00:33 +0000 (15:00 -0700)
committerAlex Gaynor <alex.gaynor@gmail.com>
Thu, 14 Mar 2013 22:00:33 +0000 (15:00 -0700)
Full information on reproduction (using Python's ctypes available here: http://bugs.python.org/issue17423)

src/x86/ffi.c

index 3f466934c402f12b2fd9ca3cf1882550a590369d..0600414d458e9c0c9dd472a5a68053669a38f099 100644 (file)
@@ -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;
 }