From 3683c6e894f8a61116158bfb221f8ed38d63dc81 Mon Sep 17 00:00:00 2001 From: boykopovar Date: Wed, 9 Sep 2026 10:18:32 +0300 Subject: [PATCH] fix(codegen): classify FF 3 and FF 5 as indirect call instead of return --- core/codegen/src/x86/X64InstructionDecoder.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/codegen/src/x86/X64InstructionDecoder.cpp b/core/codegen/src/x86/X64InstructionDecoder.cpp index 906d49956..c367e3577 100644 --- a/core/codegen/src/x86/X64InstructionDecoder.cpp +++ b/core/codegen/src/x86/X64InstructionDecoder.cpp @@ -431,7 +431,11 @@ DecodedInstructionInfo X64InstructionDecoder::DecodeInstruction( return info; } if (reg == 3) { - info.FlowKind = ControlFlowKind::Return; + info.FlowKind = ControlFlowKind::IndirectCall; + return info; + } + if (reg == 5) { + info.FlowKind = ControlFlowKind::IndirectJump; return info; } }