You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The follow statement will cause crash when allocate the second block trampoline area in win7 x64.
// last entry points to the current head of the free list
pRetVal[trampolineCount - 1].pNextTrampoline = g_pFreeList;
in mhook.cpp BlockAlloc function.This statement repeat use the first trampoline in the first block.
The text was updated successfully, but these errors were encountered:
Fix for anyone who stumbles upon the same problem:
// last entry points to the current head of the free list
pRetVal[trampolineCount - 1].pNextTrampoline = g_pFreeList;
+if (g_pFreeList) {
+ g_pFreeList->pPrevTrampoline = &pRetVal[trampolineCount - 1];
+}
poizan42
added a commit
to poizan42/mhook
that referenced
this issue
Feb 7, 2016
The follow statement will cause crash when allocate the second block trampoline area in win7 x64.
// last entry points to the current head of the free list
pRetVal[trampolineCount - 1].pNextTrampoline = g_pFreeList;
in mhook.cpp BlockAlloc function.This statement repeat use the first trampoline in the first block.
The text was updated successfully, but these errors were encountered: