Skip to content

Commit

Permalink
fix the funnies
Browse files Browse the repository at this point in the history
  • Loading branch information
altalk23 committed Jun 2, 2024
1 parent 4f9015e commit 60af071
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/generator/X64Generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,5 +418,12 @@ Result<> X64HandlerGenerator::relocateBranchInstruction(cs_insn* insn, uint8_t*
a.label("skip-branch");

a.updateLabels();

auto bytes = std::move(a.m_buffer);
std::memcpy(buffer, bytes.data(), bytes.size());

trampolineAddress += bytes.size();
originalAddress += size;
}
return Ok();
}

0 comments on commit 60af071

Please sign in to comment.