Simulate CPP heap corruption
There is an old application crashing due to heap corruptions and we want to investigate it. At the moment, dumps are created after every crash but the problem is that heap corruptions do not necessarily crash the application the moment it happens. I want to create an informative dump the moment a heap corruption occurs (using GFlags) even if doesn't crash the application.
To test the GFlags functionality I'm writing a simple CPP application. I'm trying to stimulate a simple heap corruption that doesn't necessarily crash the application and see that a dump is created. However, I have no knowledge in CPP and I can't find a simple example for such corruption which will prove me that GFlags works and does create a dump the moment the heap corruption occurs.
Is there a quick example that could help me?
链接地址: http://www.djcxy.com/p/82348.html上一篇: 使用Windows GFlags应用程序检测堆损坏
下一篇: 模拟CPP堆损坏