diff options
author | MartinNowack <martin.nowack@gmail.com> | 2016-07-09 00:37:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-09 00:37:31 +0200 |
commit | e87e5bd478d8dad5a7c164197b9e39da3873442d (patch) | |
tree | 871185f3c85fcdf3f626cb39db642534308c5a6f /lib/Core/AddressSpace.cpp | |
parent | f4363713c97769f392b7d85c4782f6e1aeb1a137 (diff) | |
parent | 05a0962a50fede85aae254667d5dac1586744eb3 (diff) | |
download | klee-e87e5bd478d8dad5a7c164197b9e39da3873442d.tar.gz |
Merge pull request #363 from MartinNowack/feat_determ_allocator
Add support for deterministic allocation
Diffstat (limited to 'lib/Core/AddressSpace.cpp')
-rw-r--r-- | lib/Core/AddressSpace.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Core/AddressSpace.cpp b/lib/Core/AddressSpace.cpp index 25418c13..811e52c3 100644 --- a/lib/Core/AddressSpace.cpp +++ b/lib/Core/AddressSpace.cpp @@ -58,6 +58,8 @@ bool AddressSpace::resolveOne(const ref<ConstantExpr> &addr, if (const MemoryMap::value_type *res = objects.lookup_previous(&hack)) { const MemoryObject *mo = res->first; + // Check if the provided address is between start and end of the object + // [mo->address, mo->address + mo->size) or the object is a 0-sized object. if ((mo->size==0 && address==mo->address) || (address - mo->address < mo->size)) { result = *res; |