Can I detect integer overflow flaws with valgrind? and which tool in it can do that?
Asked
Active
Viewed 1,369 times
6
-
1http://comments.gmane.org/gmane.comp.debugging.valgrind/7475 – perreal Dec 28 '12 at 08:20
1 Answers
7
Valgrind has no tool which can detect integer overflow. You might maybe catch these bugs using the gcc option:
-ftrapv This option generates traps for signed overflow on addition, subtraction, multiplication
operations.

phd
- 111
- 1