Hardened the IR interpreter to prevent it from

reading non-standard value sizes.

<rdar://problem/14081292>

llvm-svn: 183448
This commit is contained in:
Sean Callanan
2013-06-06 21:14:35 +00:00
parent e5f6a8f649
commit 544053e353

View File

@@ -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());