about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorHristina Palikareva <h.palikareva@imperial.ac.uk>2013-08-06 19:08:41 +0100
committerHristina Palikareva <h.palikareva@imperial.ac.uk>2013-08-06 19:08:41 +0100
commit6eae8c62e620c86ef5c95839e899d39e003c13eb (patch)
tree401ac982d724dd13a4d075818a200c75ada50e6a
parent4a426569a38760b9ecf34af46b4eeca76e21e8e6 (diff)
downloadklee-6eae8c62e620c86ef5c95839e899d39e003c13eb.tar.gz
ObjectState::concreteStore initialised.
-rw-r--r--lib/Core/Memory.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Core/Memory.cpp b/lib/Core/Memory.cpp
index 7b3655f8..08c95d48 100644
--- a/lib/Core/Memory.cpp
+++ b/lib/Core/Memory.cpp
@@ -110,6 +110,7 @@ ObjectState::ObjectState(const MemoryObject *mo)
     const Array *array = new Array("tmp_arr" + llvm::utostr(++id), size);
     updates = UpdateList(array, 0);
   }
+  memset(concreteStore, 0, size);
 }
 
 
@@ -126,6 +127,7 @@ ObjectState::ObjectState(const MemoryObject *mo, const Array *array)
     readOnly(false) {
   mo->refCount++;
   makeSymbolic();
+  memset(concreteStore, 0, size);
 }
 
 ObjectState::ObjectState(const ObjectState &os)