_CrtIsValidHeapPointer
-
Hello, Hello, MSDN says this[^] about
_CrtIsValidHeapPointer
I use that function to verify that an address is not valid after a function call. The only problem is that this function jumps into the debugger when it finds out that the address is not valid. So this function returns TRUE or it jumps into the debugger and never returns FALSE, which is exactly what I need.. Is there some alternative of this function that does return FALSE instead jumping into the debuffer? Blog[^] -
Hello, Hello, MSDN says this[^] about
_CrtIsValidHeapPointer
I use that function to verify that an address is not valid after a function call. The only problem is that this function jumps into the debugger when it finds out that the address is not valid. So this function returns TRUE or it jumps into the debugger and never returns FALSE, which is exactly what I need.. Is there some alternative of this function that does return FALSE instead jumping into the debuffer? Blog[^]You can find the code in dbgheap.c under \crt\src see what can be done It mainly uses IsBadReadPtr, IsBadWritePtr and HeapValidate or __sbh_verify_block depending on the OS and if the CRT is statically or dynamically linked Papa while (TRUE) Papa.WillLove ( Bebe ) ;
-
You can find the code in dbgheap.c under \crt\src see what can be done It mainly uses IsBadReadPtr, IsBadWritePtr and HeapValidate or __sbh_verify_block depending on the OS and if the CRT is statically or dynamically linked Papa while (TRUE) Papa.WillLove ( Bebe ) ;