diff options
author | Cristian Cadar <c.cadar@imperial.ac.uk> | 2018-07-05 12:17:02 +0100 |
---|---|---|
committer | MartinNowack <martin.nowack@gmail.com> | 2018-08-03 14:04:40 +0100 |
commit | dfefd9710a3a64c5a81936d86f8b87d7ebc2e0b7 (patch) | |
tree | 89bc77f1406dabf7a3bacd97c9e5cae0d2842c6a /runtime | |
parent | 4e4744750e623f07e8a8dfa4156ba7333e787647 (diff) | |
download | klee-dfefd9710a3a64c5a81936d86f8b87d7ebc2e0b7.tar.gz |
Fixed runtest library to handle the case of a NULL "name" argument in klee_make_symbolic. Changed a test case to check this feature.
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/Runtest/intrinsics.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/Runtest/intrinsics.c b/runtime/Runtest/intrinsics.c index ab441afc..2f9243f0 100644 --- a/runtime/Runtest/intrinsics.c +++ b/runtime/Runtest/intrinsics.c @@ -50,6 +50,10 @@ static void report_internal_error(const char *msg, ...) { } void klee_make_symbolic(void *array, size_t nbytes, const char *name) { + + if (!name) + name = "unnamed"; + static int rand_init = -1; if (rand_init == -1) { |