2009-05-15 12:38:02 UTC
"padding" around things like arrays. What I have not been able to figure out
is what needs to be done to catch this condition.
I am using VS 2005, C++ unmanaged code.
Let's assume the following: If I have the classic "hello world" program
(with no asserts, debug statements, etc.) compiled as debug build and also
have a line that uses strcpy to overrun the an array in the program.
When I run this in the VS debugger, how do I make use of the padding to
detect the overrun? OR what else do I have to do to the source code to catch
Any thorough links/tutorals on suing the features of the debug build would
be greatly appreciated. Thanks.