mirror of
https://github.com/corda/corda.git
synced 2025-01-19 11:16:54 +00:00
avoid reading below the stack pointer in vmInvoke, since it upsets valgrind
This commit is contained in:
parent
538e23c642
commit
b871f430d0
@ -133,16 +133,17 @@ LOCAL(test):
|
||||
movl %ebp,%esp
|
||||
|
||||
// restore callee-saved registers
|
||||
movl %esp,%ecx
|
||||
subl $16,%ecx
|
||||
subl $16,%esp
|
||||
|
||||
movl 0(%ecx),%ebx
|
||||
movl 4(%ecx),%esi
|
||||
movl 8(%ecx),%edi
|
||||
movl 0(%esp),%ebx
|
||||
movl 4(%esp),%esi
|
||||
movl 8(%esp),%edi
|
||||
|
||||
// handle return value based on expected type
|
||||
movl 28(%ebp),%ecx
|
||||
|
||||
addl $16,%esp
|
||||
|
||||
LOCAL(void):
|
||||
cmpl $VOID_TYPE,%ecx
|
||||
jne LOCAL(int64)
|
||||
|
Loading…
Reference in New Issue
Block a user