C++ crash on getting pointer -
i'm guessing it's leading nowhere, null pointer or something, i'm checking beforehand
both of these snippets crash:
//snippet 1 dword *address = (dword*)(base + 0x54); if (address) address = (dword*)(*address + 0xc); if (address) address = (dword*)(*address + 0x8); //crashes here //snippet 2 dword address = *(dword*)(base + 0x54); if (address) address = *(dword*)(address + 0xc); if (address) address = *(dword*)(address + 0x8); //crashes here
am doing wrong? in advance
access violation!
you're touching parts of memory forbidden program. dereferencing pointer points unknown place undefined behavior.
Comments
Post a Comment