aarch64: fix setjmp overrun

The assembly code uses fixed offsets into the jmp_buf and leaves an 8 byte
gap between the GPRs and the FPRs, but the jmp_buf structure was not laid
out to account for this so the code would overrun the jmp_buf by 8 bytes.

Found-by: Oskar Engen <oskar.engen@gmail.com>
Signed-off-by: Dwight Engen <dwight.engen@gmail.com>
This commit is contained in:
Dwight Engen 2022-08-03 09:26:40 -04:00 committed by Nigel Croxon
parent 8b018e6721
commit 4a566dd746

View File

@ -18,6 +18,7 @@ typedef struct {
UINT64 FP;
UINT64 LR;
UINT64 IP0;
UINT64 _pad1;
/* FP regs */
UINT64 D8;