Skip to content

Commit

Permalink
more test
Browse files Browse the repository at this point in the history
  • Loading branch information
altalk23 committed Jun 2, 2024
1 parent c12e7f7 commit 0bda789
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generator/X64Generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ Result<> X64HandlerGenerator::generateTrampoline(uint64_t target) {

auto difference = a.currentAddress() - reinterpret_cast<int64_t>(m_address) + 5 - code.m_originalOffset;

a.int3();
a.ret();
if (difference <= 0x7fffffffll && difference >= -0x80000000ll) {
std::cout << "short jmp offset " << code.m_originalOffset << std::endl;
a.jmp(reinterpret_cast<uint64_t>(m_address) + code.m_originalOffset);
Expand Down

0 comments on commit 0bda789

Please sign in to comment.