diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-02-09 08:36:40 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-02-09 08:36:40 +0000 |
commit | 14fabaafba1f6703c7eb4d3403a44f9669206709 (patch) | |
tree | 08fff3565323d283ad7edd0c95b9a7a336a2746b /lib/Core | |
parent | defa6b37735ab7daf7df69c7f62337c070a34fe4 (diff) | |
download | klee-14fabaafba1f6703c7eb4d3403a44f9669206709.tar.gz |
Fix PR6211, the comparison was created with the wrong width. Patch by Stefan
Bucur! git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@95659 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Core')
-rw-r--r-- | lib/Core/Executor.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Core/Executor.cpp b/lib/Core/Executor.cpp index a2ad843c..87e6bb29 100644 --- a/lib/Core/Executor.cpp +++ b/lib/Core/Executor.cpp @@ -2770,8 +2770,7 @@ void Executor::executeAlloc(ExecutionState &state, // malloc will fail for it, so lets fork and return 0. StatePair hugeSize = fork(*fixedSize.second, - UltExpr::create(ConstantExpr::alloc(1<<31, Expr::Int32), - size), + UltExpr::create(ConstantExpr::alloc(1<<31, W), size), true); if (hugeSize.first) { klee_message("NOTE: found huge malloc, returing 0"); |