From 4b93a3ecf7514d181730f5a8f8bfe7e086160b4c Mon Sep 17 00:00:00 2001 From: Julian Büning Date: Mon, 1 Oct 2018 10:33:34 +0200 Subject: remove klee_alias_function() this function can be used to modify the control flow of the program on different paths, enabling self-modifying code. --- test/Feature/AliasFunctionExit.c | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 test/Feature/AliasFunctionExit.c (limited to 'test/Feature/AliasFunctionExit.c') diff --git a/test/Feature/AliasFunctionExit.c b/test/Feature/AliasFunctionExit.c deleted file mode 100644 index 1f863de1..00000000 --- a/test/Feature/AliasFunctionExit.c +++ /dev/null @@ -1,31 +0,0 @@ -// RUN: %clang %s -emit-llvm %O0opt -c -o %t1.bc -// RUN: rm -rf %t.klee-out -// RUN: %klee --output-dir=%t.klee-out %t1.bc > %t1.log -// RUN: grep -c START %t1.log | grep 1 -// RUN: grep -c END %t1.log | grep 2 - -#include -#include -#include - -void start(int x) { - printf("START\n"); - if (x == 53) - exit(1); -} - -void __attribute__ ((noinline)) end(int status) { - klee_alias_function("exit", "exit"); - printf("END: status = %d\n", status); - exit(status); -} - - -int main() { - int x; - klee_make_symbolic(&x, sizeof(x), "x"); - - klee_alias_function("exit", "end"); - start(x); - end(0); -} -- cgit 1.4.1