mirror of
https://github.com/partic2/libffi
synced 2026-11-11 02:27:19 +00:00
i386: Fix missing break; in case statement leading to incorrectly returned FFI_BAD_ABI (#437)
* i386: Add missing break triggering dead store static analyzer checks. Register calling sequence is being reported as bad ABI instead of working as intended. Found-by: Clang Static Analysis Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@macports.org> * Mark ffi arm sysv entry points as private_extern. Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@macports.org> * x86_64: Add implementation of compact unwind for ffi_call_unix64. Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
This commit is contained in:
committed by
Anthony Green
parent
b55baf0b50
commit
1d704051b2
@@ -545,6 +545,7 @@ ffi_prep_closure_loc (ffi_closure* closure,
|
||||
case FFI_REGISTER:
|
||||
dest = ffi_closure_REGISTER;
|
||||
op = 0x68; /* pushl imm */
|
||||
break;
|
||||
default:
|
||||
return FFI_BAD_ABI;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user