I am investigating a crash due to heap corruption. As this issue is non-trivial and involves analyzing the stack and dump results, I have decided to do a code review of files related to the crash.
To be frank, I don't have in-depth knowledge of when the heap could be corrupted.
I would appreciate if you could suggest scenarios which could lead to heap corruption.
Platform: Windows XP
Language: C++
Compiler: VC6
Common scenarios include:
char *stuff = new char[10]; stuff[10] = 3;
)[EDIT] From the comments, a few more: