5
我可以使用valgrind检测整数溢出缺陷吗?以及哪个工具可以做到这一点?我可以使用valgrind检测整数溢出缺陷吗?
我可以使用valgrind检测整数溢出缺陷吗?以及哪个工具可以做到这一点?我可以使用valgrind检测整数溢出缺陷吗?
Valgrind没有可以检测整数溢出的工具。 你可以使用gcc的选项可能赶上这些错误:
-ftrapv This option generates traps for signed overflow on addition, subtraction, multiplication
operations.
非常感谢您! – Syrena
http://comments.gmane.org/gmane.comp.debugging.valgrind/7475 – perreal