Posted: Tue Mar 22, 2011 1:44 pm Post subject: how to check validity of a pointer in AA?
how to check .. if a pointer is valid or not..
like
Code:
mov eax,[ebx] // suppose [ebx] contains a pointer
or eax,eax
je here
.............
.........
here:
the above code checks that eax is 0 or not..
But how to check for a pointer that is ?? (i mean non existent. not even zero.. structure not existent)..
Is there any NULL keyword in AA
Use IsBadReadPtr. If you don't want to make use of the Windows API, you could set-up your own exception handler and try reading the memory at the address.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum