about summary refs log tree commit diff homepage
path: root/lib
diff options
context:
space:
mode:
authorFrank Busse <bb0xfb@gmail.com>2018-04-05 19:52:52 +0100
committerMartinNowack <martin.nowack@gmail.com>2018-06-13 13:59:54 +0100
commit2675168486c738d9ec60c728d6a14789cddd0d17 (patch)
treeed169b85db00537b59faf09932fba44566cfb78a /lib
parentc75e42a6bdf38e8dff13fd34f6cf160b437f2c84 (diff)
downloadklee-2675168486c738d9ec60c728d6a14789cddd0d17.tar.gz
klee_int: allow NULL as name
Diffstat (limited to 'lib')
-rw-r--r--lib/Core/SpecialFunctionHandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Core/SpecialFunctionHandler.cpp b/lib/Core/SpecialFunctionHandler.cpp
index d85c5e93..11a73da3 100644
--- a/lib/Core/SpecialFunctionHandler.cpp
+++ b/lib/Core/SpecialFunctionHandler.cpp
@@ -762,7 +762,7 @@ void SpecialFunctionHandler::handleMakeSymbolic(ExecutionState &state,
       klee_warning("klee_make_symbolic: deprecated number of arguments (2 instead of 3)");
       break;
     case 3:
-      name = readStringAtAddress(state, arguments[2]);
+      name = arguments[2]->isZero() ? "" : readStringAtAddress(state, arguments[2]);
       break;
     default:
       executor.terminateStateOnError(state, "illegal number of arguments to klee_make_symbolic(void*, size_t, char*)", Executor::User);