commit | a7ab79d0afdee2c450f5c517d101d8db980a632e | [log] [tgz] |
---|---|---|
author | buzbee <buzbee@google.com> | Tue Jun 28 16:07:35 2011 -0700 |
committer | buzbee <buzbee@google.com> | Tue Jun 28 16:07:35 2011 -0700 |
tree | 91516afa011915380a5eb7c334cd48b7babbbaa6 | |
parent | 3ee755da5c1c17b6a29052d171a8a63c0eb0b052 [diff] [blame] |
Add check to inst visitor Just tripped on this, a malformed instruction region could make you endlessly loopy. Change-Id: Ib65e147c4cd8fe02328bc62aee2bbecfde604455
diff --git a/src/dex_instruction_visitor.h b/src/dex_instruction_visitor.h index 1a8325c..172fc4f 100644 --- a/src/dex_instruction_visitor.h +++ b/src/dex_instruction_visitor.h
@@ -29,6 +29,7 @@ CHECK(true); } ptr += inst->Size(); + CHECK_LE(ptr, end); } }