From 14fabaafba1f6703c7eb4d3403a44f9669206709 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Tue, 9 Feb 2010 08:36:40 +0000 Subject: 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 --- lib/Core/Executor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/Core/Executor.cpp') 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"); -- cgit 1.4.1