summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnthony Green <green@moxielogic.com>2022-05-23 21:42:52 -0400
committerGitHub <noreply@github.com>2022-05-23 21:42:52 -0400
commit7e93ded9302d7e6e3cc77b39e8eec4b323e63585 (patch)
tree8be7fc733813416d3348b2597b257f6469464e49 /src
parent432384b6d47087d144d3e947b62c48ddc6e4740b (diff)
downloadlibffi-7e93ded9302d7e6e3cc77b39e8eec4b323e63585.tar.gz
Revert "Don't dereference beyond the last array entry. (#667)" (#715)
This reverts commit 92d77d0e87a5f2a8c9c9b2431ffd264cb664e17a.
Diffstat (limited to 'src')
-rw-r--r--src/moxie/ffi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/moxie/ffi.c b/src/moxie/ffi.c
index 41e20fe..1a65660 100644
--- a/src/moxie/ffi.c
+++ b/src/moxie/ffi.c
@@ -245,7 +245,7 @@ void ffi_closure_eabi (unsigned arg1, unsigned arg2, unsigned arg3,
start looking at the those passed on the stack. */
if (ptr == (char *) &register_args[6])
ptr = stack_args;
- else if (ptr == (register_args + sizeof(register_args)))
+ else if (ptr == (char *) &register_args[7])
ptr = stack_args + 4;
}