Tool to debug buffer overflows in C++ program with Visual Studio? [closed]

别等时光非礼了梦想. 提交于 2019-12-05 22:50:31

There's a few useful tools for debugging buffer overflows and other memory corruption issues that are either included out of the box with Visual Studio or are available as free downloads from Microsoft:

  • CRT Debug Heap (this may be what you were thinking of from your description).
  • Application Verifier is now part of the Debugging Tools for Windows, download from the 'Standalone Debugging Tools for Windows (WinDbg)' link towards the bottom of that page. The 'page heap' functionality of the heap verifier is a very powerful tool for finding buffer overflows on the heap.
  • /GS and /sdl compiler options.

Outside of Windows, valgrind and clang's Address Sanitizer are both powerful tools.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!