From 8055aff448f1505e764d60ab10f7a202ee702761 Mon Sep 17 00:00:00 2001 From: Luca Dariz Date: Fri, 5 Sep 2014 14:43:52 +0200 Subject: 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 --- tools/klee/main.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools') 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[] = { -- cgit 1.4.1