about summary refs log tree commit diff homepage
path: root/test/regression
diff options
context:
space:
mode:
authorFrank Busse <bb0xfb@gmail.com>2018-05-17 23:12:24 +0100
committerCristian Cadar <c.cadar@imperial.ac.uk>2018-06-29 11:33:11 +0100
commit4c15d279e4d92b204275e973f2cedb76f63b0ac3 (patch)
treee52f242dba1b04b6f12f8cea19773730c050520e /test/regression
parent2ef1fa8fc2afd74236180e23ec77f6948e5295d6 (diff)
downloadklee-4c15d279e4d92b204275e973f2cedb76f63b0ac3.tar.gz
fix out of range access in KleeHandler::getKTestFilesInDir
Diffstat (limited to 'test/regression')
-rw-r--r--test/regression/2018-05-17-replay-short-names.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/regression/2018-05-17-replay-short-names.c b/test/regression/2018-05-17-replay-short-names.c
new file mode 100644
index 00000000..c0b9023f
--- /dev/null
+++ b/test/regression/2018-05-17-replay-short-names.c
@@ -0,0 +1,11 @@
+// RUN: rm -rf a
+// RUN: mkdir a
+// RUN: touch a/b
+// RUN: %llvmgcc %s -emit-llvm -O0 -g -c -o %t1.bc
+// RUN: rm -rf %t.klee-out
+// RUN: %klee -replay-ktest-dir=a --output-dir=%t.klee-out %t1.bc 2>&1
+//
+
+#include "klee/klee.h"
+
+int main(int argc, char * argv[]) {}