From db29a0bba74b672cdf4b8fef4d94ffa6ab845e6d Mon Sep 17 00:00:00 2001 From: Martin Nowack Date: Mon, 3 Feb 2014 15:42:05 +0100 Subject: [tools] Added fortified version wrapper for fprintf --- tools/klee/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/klee/main.cpp b/tools/klee/main.cpp index 8a246685..08eacac1 100644 --- a/tools/klee/main.cpp +++ b/tools/klee/main.cpp @@ -1092,6 +1092,8 @@ 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. -- cgit 1.4.1