Currently not a bug but could lead to edge-case crash.
Basically, 5 bytes need to be added to the VirtualAlloc call so it guarantees room for the code that does the jump back into the hooked function.
|
BYTE* gateway = (BYTE*)VirtualAlloc(0, size, MEM_COMMIT | MEM_RESERVE, PAGE_EXECUTE_READWRITE); |
Currently not a bug but could lead to edge-case crash.
Basically, 5 bytes need to be added to the VirtualAlloc call so it guarantees room for the code that does the jump back into the hooked function.
RuntimePatchingSystem/CodeFunctions.cpp
Line 42 in 09fcf31