In my application, I have already redefine malloc and free with keil. Now I hope that the program will be stopped immediately at the exact location at which the program wrote beyond theallocated data. Is there any idea to achieve it?
I'd add a virgin pattern before and after each allocated chunk. A heap scan can check these.
DTW is actually more practical for the stack.