Last active
February 24, 2022 11:03
Star
You must be signed in to star a gist
Helper function to resolve RIP relative addresses.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inline uintptr_t GetAbsoluteAddress(uintptr_t instruction_ptr, int offset, int size) { | |
return instruction_ptr + *reinterpret_cast<int32_t*>(instruction_ptr + offset) + size; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment