projects
/
platform
/
upstream
/
libffi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f308faf
)
Fix for a crasher due to misaligned stack on x86-32.
author
Alex Gaynor
<alex.gaynor@gmail.com>
Thu, 14 Mar 2013 22:00:33 +0000
(15:00 -0700)
committer
Alex 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
patch
|
blob
|
history
diff --git
a/src/x86/ffi.c
b/src/x86/ffi.c
index 3f466934c402f12b2fd9ca3cf1882550a590369d..0600414d458e9c0c9dd472a5a68053669a38f099 100644
(file)
--- 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;
}