<name>Buffer 'var' is being written before its old content has been used</name>
Buffer 'var' is being written before its old content has been used.
Just tell valgrind to generate XML output. The 'tool' option isn't necessary as 'memcheck' is the default one. Make sure the binaries contain debug info.
Extension of rats rules is possible by using [SonarQubeTM install dir]/extensions/rules/rats. See Extending Rules in C++ Analysers on how to create the rules
Please The Pc-Lint XML output needs to be formated to fit SonarQubeTM.
// XML options for SONAR. -v // Turn off verbosity -width(0,0) // Don't break long lines +xml(?xml version="1.0" ?) // add version information +xml(results) // Turn on XML escapes -"format=<issue file =\q%f\q line = \q%l\q number = \q%n\q desc = \q%m\q/>" -"format_specific= " -hFs1 // The height of a message should be 1 i.e. don't output the line in error -e900 // 'Successful completion message' confuses ALOA
This formating has been verifed with Pc-Lint 9.0i.
For further details on how to configure Pc-Lint please refer to product page (Official Site)