Last active
February 24, 2022 11:03
-
-
Save aixxe/2288339f0be633300a8da85003de75bf to your computer and use it in GitHub Desktop.
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