[Lldb-commits] [lldb] r183448 - Hardened the IR interpreter to prevent it from
Sean Callanan
scallanan at apple.com
Thu Jun 6 14:14:35 PDT 2013
Author: spyffe
Date: Thu Jun 6 16:14:35 2013
New Revision: 183448
URL: http://llvm.org/viewvc/llvm-project?rev=183448&view=rev
Log:
Hardened the IR interpreter to prevent it from
reading non-standard value sizes.
<rdar://problem/14081292>
Modified:
lldb/trunk/source/Expression/IRInterpreter.cpp
Modified: lldb/trunk/source/Expression/IRInterpreter.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/IRInterpreter.cpp?rev=183448&r1=183447&r2=183448&view=diff
==============================================================================
--- lldb/trunk/source/Expression/IRInterpreter.cpp (original)
+++ lldb/trunk/source/Expression/IRInterpreter.cpp Thu Jun 6 16:14:35 2013
@@ -172,7 +172,7 @@ public:
return false;
lldb::offset_t offset = 0;
- if (value_size <= 8)
+ if (value_size == 1 || value_size == 2 || value_size == 4 || value_size == 8)
{
uint64_t u64value = value_extractor.GetMaxU64(&offset, value_size);
return AssignToMatchType(scalar, u64value, value->getType());
More information about the lldb-commits
mailing list