A new package sanitizers
is now on CRAN.
It provides test cases for Address Sanitizers, and Undefined Behaviour
Sanitizers. These are two recent features of both g++ and clang++, and
described in the
Checking Memory Access
section of the Writing R Extension manual.
I set up a new web page for the sanitizers package
which illustrates their use case via pre-built
Docker images, similar to what I
presented at the end of my useR! 2014 keynote a few weeks ago.
So instead of repeating this over here, I invite you to read the detailed
discussion on the sanitizers page.