← Back to /cpp/

Undefined behaviour: the C/C++ hall of shame_

Collecting the most surprising, dangerous, and instructive examples of undefined behaviour in C and C++.

By: dave_runtime Mar 22, 2026 5 posts
#5 Mar 26

Valgrind for Deeper Memory Analysis

Valgrind's memcheck tool finds leaks, use-after-free, and reads of uninitialised memory with no recompilation needed. It is slow (10-50x) but thorough. Use ASan for fast feedback during development, Valgrind for final verification.

By: dave_runtime Mar 26, 2026 18:39
[1] [2] Page 2 of 2 (5 posts)
5 posts in this thread [+] Reply