about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorCristian Cadar <c.cadar@imperial.ac.uk>2017-07-26 12:11:38 +0100
committerCristian Cadar <c.cadar@imperial.ac.uk>2017-07-26 12:11:38 +0100
commit0281f0fe881ac108f754cb3b3066bb829eb31257 (patch)
treea27e6576f0c4de58496aa2b7e314d3dabdd24431
parent26d0fcbccd09143307c1e0f0a95cacbee7d3a940 (diff)
downloadklee-0281f0fe881ac108f754cb3b3066bb829eb31257.tar.gz
This reverts incorrect patch https://github.com/klee/klee/commit/db29a0bba74b672cdf4b8fef4d94ffa6ab845e6d
__fprintf_chk has a different prototype than fprintf
-rw-r--r--tools/klee/main.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/tools/klee/main.cpp b/tools/klee/main.cpp
index 586c13ec..8e3431d3 100644
--- a/tools/klee/main.cpp
+++ b/tools/klee/main.cpp
@@ -1073,9 +1073,6 @@ static llvm::Module *linkWithUclibc(llvm::Module *mainModule, StringRef libDir)
   replaceOrRenameFunction(mainModule, "__libc_open", "open");
   replaceOrRenameFunction(mainModule, "__libc_fcntl", "fcntl");
 
-  // Take care of fortified functions
-  replaceOrRenameFunction(mainModule, "__fprintf_chk", "fprintf");
-
   // XXX we need to rearchitect so this can also be used with
   // programs externally linked with uclibc.