stevemk14ebr / PolyHook

x86/x64 C++ Hooking Library
MIT License
886 stars 172 forks source link

Relocation can go out of bounds #1

Open stevemk14ebr opened 9 years ago

stevemk14ebr commented 9 years ago

if code is relocated greater than the max displacement size of the operand then relocation will fail, this case is currently not handled. Ex: if relocation is >2GB 32bit instructions may fail, attempts are made to prevent this case but it is a possibility.