We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ac58c9 commit 149df3eCopy full SHA for 149df3e
1 file changed
src/e9patch/e9api.cpp
@@ -634,6 +634,7 @@ static void parseReserve(Binary *B, const Message &msg)
634
length = getTrampolineSize(B, bytes, nullptr);
635
size_t length_lo = address % PAGE_SIZE;
636
size_t length_hi = PAGE_SIZE - (length_lo + length) % PAGE_SIZE;
637
+ length_hi = (length_hi == PAGE_SIZE? 0: length_hi);
638
intptr_t address_lo = address - length_lo;
639
intptr_t address_hi = address + length;
640
const unsigned num_trampolines = 3;
0 commit comments