about summary refs log tree commit diff homepage
path: root/tools
diff options
context:
space:
mode:
authorDaniel Schemmel <daniel@schemmel.net>2023-02-16 16:33:02 +0000
committerCristian Cadar <c.cadar@imperial.ac.uk>2023-02-17 10:48:11 +0000
commit7e0e773b5c2fa00ab09f0756d4dadadc5b6f37eb (patch)
tree18f9f6aeecdd63f9367fab4944cbdc8c4efed06a /tools
parent5389bec800997d58b0660c87615fd4d68c7cefd2 (diff)
downloadklee-7e0e773b5c2fa00ab09f0756d4dadadc5b6f37eb.tar.gz
Fix integer overflow
Diffstat (limited to 'tools')
-rw-r--r--tools/klee/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/klee/main.cpp b/tools/klee/main.cpp
index 7d938ab2..5e8ce864 100644
--- a/tools/klee/main.cpp
+++ b/tools/klee/main.cpp
@@ -367,7 +367,7 @@ KleeHandler::KleeHandler(int argc, char **argv)
   } else {
     // "klee-out-<i>"
     int i = 0;
-    for (; i <= INT_MAX; ++i) {
+    for (; i < INT_MAX; ++i) {
       SmallString<128> d(directory);
       llvm::sys::path::append(d, "klee-out-");
       raw_svector_ostream ds(d);