about summary refs log tree commit diff homepage
path: root/tools
diff options
context:
space:
mode:
authorLuca Dariz <l.dariz@imamoter.cnr.t>2014-09-05 14:43:52 +0200
committerCristian Cadar <c.cadar@imperial.ac.uk>2015-02-13 18:49:49 +0000
commit8055aff448f1505e764d60ab10f7a202ee702761 (patch)
tree11ddbe787923f068170a31530865115702a8c160 /tools
parentd026e99496355647665af965e27d8baf244e62d3 (diff)
downloadklee-8055aff448f1505e764d60ab10f7a202ee702761.tar.gz
Detect overflow of unsigned add, sub and mul operations
This requires clang with -fsanitize=unsigned-integer-overflow
tested with clang and llvm 3.4.2
Diffstat (limited to 'tools')
-rw-r--r--tools/klee/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/klee/main.cpp b/tools/klee/main.cpp
index 23c07f03..decf586d 100644
--- a/tools/klee/main.cpp
+++ b/tools/klee/main.cpp
@@ -765,6 +765,9 @@ static const char *modelledExternals[] = {
   "_Znwj", 
   "_Znam", 
   "_Znwm", 
+  "__ubsan_handle_add_overflow",
+  "__ubsan_handle_sub_overflow",
+  "__ubsan_handle_mul_overflow",
 };
 // Symbols we aren't going to warn about
 static const char *dontCareExternals[] = {