diff options
author | Frank Busse <bb0xfb@gmail.com> | 2018-04-05 19:52:52 +0100 |
---|---|---|
committer | MartinNowack <martin.nowack@gmail.com> | 2018-06-13 13:59:54 +0100 |
commit | 2675168486c738d9ec60c728d6a14789cddd0d17 (patch) | |
tree | ed169b85db00537b59faf09932fba44566cfb78a /lib | |
parent | c75e42a6bdf38e8dff13fd34f6cf160b437f2c84 (diff) | |
download | klee-2675168486c738d9ec60c728d6a14789cddd0d17.tar.gz |
klee_int: allow NULL as name
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Core/SpecialFunctionHandler.cpp | 2 |
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); |