Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix stack overwrite bug on AArch64 #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/mprompt/asm/longjmp_arm64.S
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ mp_stack_enter:
.cfi_startproc
.cfi_signal_frame /* needed or else gdb does not allow switching frames to a lower address in the backtrace */

stp fp, lr, [sp, #16]! /* link frame (seems needed for libunwind) */
stp fp, lr, [sp, #-16]! /* link frame (seems needed for libunwind) */
.cfi_adjust_cfa_offset 32
.cfi_rel_offset lr, 24
.cfi_rel_offset fp, 16
Expand Down