ART: Fix typo
Bug: 17327877
(cherry picked from commit b373ba1bf7e67d4dd8286df08065ac76aa8ac1ee)
Change-Id: I6132a8afb4b69c8d22a01b477f6f324c789ed666
diff --git a/runtime/dex_file_verifier.cc b/runtime/dex_file_verifier.cc
index 0782045..d7d541a 100644
--- a/runtime/dex_file_verifier.cc
+++ b/runtime/dex_file_verifier.cc
@@ -1046,7 +1046,8 @@
return true;
}
-bool DexFileVerifier::CheckIntraSectionIterate(size_t offset, uint32_t count, uint16_t type) {
+bool DexFileVerifier::CheckIntraSectionIterate(size_t offset, uint32_t section_count,
+ uint16_t type) {
// Get the right alignment mask for the type of section.
size_t alignment_mask;
switch (type) {
@@ -1063,7 +1064,7 @@
}
// Iterate through the items in the section.
- for (uint32_t i = 0; i < count; i++) {
+ for (uint32_t i = 0; i < section_count; i++) {
size_t aligned_offset = (offset + alignment_mask) & ~alignment_mask;
// Check the padding between items.
@@ -1129,7 +1130,7 @@
return false;
}
- ptr_ += count;
+ ptr_ += list_size;
break;
}
case DexFile::kDexTypeAnnotationSetRefList: {