Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Helper function to resolve RIP relative addresses.
inline uintptr_t GetAbsoluteAddress(uintptr_t instruction_ptr, int offset, int size) {
return instruction_ptr + *reinterpret_cast<uint32_t*>(instruction_ptr + offset) + size;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment