Jump to content
Tuts 4 You

Found the crash bug


DMichael

Recommended Posts

member @GIV at this topic posted aunpackme that causes to crash im have debugged it and found it happen in this function:


bool IATSearch::findIATStartAndSize(DWORD_PTR address, DWORD_PTR * addressIAT, DWORD * sizeIAT)


 


in this code:



dataBuffer = new BYTE[baseSize * (sizeof(DWORD_PTR)*3)];
if (!dataBuffer)
return false;

fix:



dataBuffer = new (std::nothrow) BYTE[baseSize * (sizeof(DWORD_PTR)*3)];
if (!dataBuffer)
return false;

Edited by DMichael
  • Like 3
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...