mirror of
https://github.com/intel/llvm.git
synced 2026-02-06 15:18:53 +08:00
Hardened the IR interpreter to prevent it from
reading non-standard value sizes. <rdar://problem/14081292> llvm-svn: 183448
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user