Webinar 2014 My code doesn’t crash -- why should I still use Valgrind

From SHARCNETHelp
Revision as of 11:15, 11 March 2021 by Syam (talk | contribs) (Created page with "This talk is an introduction to subtle programmings bugs (ones that don’t always cause your program to crash), how they arise, and how to use Valgrind’s memcheck tool to d...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

This talk is an introduction to subtle programmings bugs (ones that don’t always cause your program to crash), how they arise, and how to use Valgrind’s memcheck tool to detect them in your code:

- access memory you shouldn’t (overrun/underun allocated blocks),

- use undefined values in such a way that your program depends on the results,

- overlap source and destination pointer in memcpy and related functions, and

- free memory incorrectly (don’t free, double free, free with wrong function).