6

Can I detect integer overflow flaws with valgrind? and which tool in it can do that?

Syrena
  • 95
  • 4

1 Answers1

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