keywords: C++, Memory Address Issues, memory leak, memory overflow, MSVC, 内存泄漏检测, 内存溢出检测, 数组越界

Memory Issues Detecter

AddressSanitizer, ThreadSanitizer, MemorySanitizer
https://github.com/google/sanitizers

Address Sanitizer Now in “Early Release” for Xbox Developers(Recommended)
https://devblogs.microsoft.com/cppblog/address-sanitizer-now-in-early-release-for-xbox-developers/

Finding Bugs with AddressSanitizer: Patterns from Open Source Projects
https://devblogs.microsoft.com/cppblog/finding-bugs-with-addresssanitizer-patterns-from-open-source-projects/

Visual Leak Detector for Visual C++ 2008-2015
https://github.com/KindDragon/vld

Finding Memory Leaks Using the CRT Library
https://msdn.microsoft.com/en-us/library/x98tx3cf.aspx

Dr. Memory is a memory monitoring tool capable of identifying memory-related programming errors such as accesses of uninitialized memory, accesses to unaddressable memory (including outside of allocated heap units and heap underflow and overflow), accesses to freed memory, double frees, memory leaks, and (on Windows) handle leaks, GDI API usage errors, and accesses to un-reserved thread local storage slots.
https://drmemory.org/index.html

Crash Reporting

Mirror of Google Breakpad project
https://github.com/google/breakpad

Advanced, cross-platform crash management solution for C/C++ applications running in every environment.
https://backtrace.io/

Callstack Trace

boost::stacktrace
http://boostorg.github.io/stacktrace/stacktrace/getting_started.html
Configuration and Build
http://boostorg.github.io/stacktrace/stacktrace/configuration_and_build.html

RtlCaptureStackBackTrace function (ntifs.h)
https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/ntifs/nf-ntifs-rtlcapturestackbacktrace
RtlCaptureContext function (winnt.h)
https://docs.microsoft.com/en-us/windows/win32/api/winnt/nf-winnt-rtlcapturecontext