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
Thank you for the feedback, this actually lead me into a rabbit hole. Not using HeapAlloc was a typo/mistake from my end. However, trying to get the PoC working with HeapCreate and HeapAlloc was unsuccessful due to AccessViolationException. I tried debugging the problem, but was not able to solve it.
The solution I came up with was to drop HeapAlloc and just simply use HeapCreate. Since I'm a beginner in using unmanaged code like c/c++ (or winapi), I'm not sure why this works. I always thought you need to first create the private heap object with HeapCreate, and then allocate memory inside that private heap object using HeapAlloc.
If anyone knows about this, please let me know.
Thank you again for providing feedback; I didn't realize this mistake before, quite embarrassing.
Why not use HeapAlloc?
The text was updated successfully, but these errors were encountered: