mirror of
https://github.com/corda/corda.git
synced 2025-02-08 20:10:22 +00:00
fix unsafe stack pointer adjustment in vmInvoke
This commit is contained in:
parent
1ed7c0d94c
commit
5354e36530
@ -129,11 +129,10 @@ LOCAL(test):
|
|||||||
// call function
|
// call function
|
||||||
call *12(%ebp)
|
call *12(%ebp)
|
||||||
|
|
||||||
// restore stack pointer
|
// restore stack pointer and callee-saved registers
|
||||||
movl %ebp,%esp
|
movl %ebp,%ecx
|
||||||
|
subl $16,%ecx
|
||||||
// restore callee-saved registers
|
movl %ecx,%esp
|
||||||
subl $16,%esp
|
|
||||||
|
|
||||||
movl 0(%esp),%ebx
|
movl 0(%esp),%ebx
|
||||||
movl 4(%esp),%esi
|
movl 4(%esp),%esi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user