From 544053e353e38443c8cc992ff3a5f1fa8cb46234 Mon Sep 17 00:00:00 2001 From: Sean Callanan Date: Thu, 6 Jun 2013 21:14:35 +0000 Subject: Hardened the IR interpreter to prevent it from reading non-standard value sizes. llvm-svn: 183448 --- lldb/source/Expression/IRInterpreter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Expression/IRInterpreter.cpp') diff --git a/lldb/source/Expression/IRInterpreter.cpp b/lldb/source/Expression/IRInterpreter.cpp index 9cb7bc0a29a..449f0e8bef4 100644 --- a/lldb/source/Expression/IRInterpreter.cpp +++ b/lldb/source/Expression/IRInterpreter.cpp @@ -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()); -- cgit v1.2.3