Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 3225742

Browse files
ayuckhulkjanvorli
authored andcommitted
Fix Linux/x86 FuncEvalHijack stack alignment (#17143)
1 parent 16d1f63 commit 3225742

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/debug/ee/i386/dbghelpers.S

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,14 @@
99

1010
// @dbgtodo- once we port Funceval, use the ExceptionHijack stub instead of this func-eval stub.
1111
NESTED_ENTRY FuncEvalHijack, _TEXT, UnhandledExceptionHandlerUnix
12+
#define STK_ALIGN_PADDING 12
13+
sub esp, STK_ALIGN_PADDING
1214
push eax // the ptr to the DebuggerEval
15+
CHECK_STACK_ALIGNMENT
1316
call C_FUNC(FuncEvalHijackWorker)
17+
add esp, (4 + STK_ALIGN_PADDING)
1418
jmp eax // return is the patch addresss to jmp to
15-
19+
#undef STK_ALIGN_PADDING
1620
NESTED_END FuncEvalHijack, _TEXT
1721

1822
//

0 commit comments

Comments
 (0)