Lothar Behrens <
lothar....@lollisoft.de> writes:
> I have cases where a pointer to something has a value = 0x7 and thus
> it will crash. My question now is how to detect bogus pointers?
There's no general way to do detect invalid pointers. You have a bug
somewhere in your program that results in this pointer having this
value. Tools such as valgrind or a static analyser can help find such
bugs.
--
http://www.greenend.org.uk/rjk/