C ++ - out-of-band access detection

I would like to analyze my C ++ code to find poor access to vectors and arrays (out of access range), is there a tool for this?

early

+3
source share
4 answers

You can compile with _GLIBCXX_DEBUG and _GLIBXX_DEBUG_PEDANTIC if you are using gcc. This will increase the validity of glibc claims if access is requested outside the boundaries.

Testing with valgrind :: memcheck will also show bad memory reads

+10
source

, :

klockwork

coverity

IBM Rational .

+2

.... .

0

All Articles