在c++中检测缓冲区溢出源的最佳方法是什么?

what is the best way to detect the source of buffer overflow in c++ for windows?

本文关键字:最佳 方法 是什么 溢出 c++ 检测 缓冲区      更新时间:2023-10-16

我想知道在c++中检测缓冲区溢出的最佳方法是什么。我想找到缓冲区溢出的堆栈以及堆。

根据您所面临的具体问题,这可能会有所帮助。

http://code.google.com/p/electric-fence-win32/

我在Linux上使用过电栅栏,效果很好。http://en.wikipedia.org/wiki/Electric_Fence