We've covered some powerful memory debug tools and techniques, but at the end of the day, by itself these tools are not enough. Today's developer must keep alert—there are some remaining key points to mention briefly, which will serve to round off this chapter.
Some key points
Code coverage while testing
A key point to remember using dynamic analysis tools (we covered using Valgrind's Memcheck tool and ASan/MSan) is that it only really helps the effort if complete code coverage is achieved when running the tool(s) over the test cases!
This point cannot be stressed enough. What use is running a fantastic tool or compiler instrumentation, such as the Sanitizers, over your program if the buggy part of the...