Loading libs/androidfw/ResourceTypes.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -5832,7 +5832,7 @@ status_t ResTable::getEntry( } if (static_cast<size_t>(realEntryIndex) >= typeSpec->entryCount) { ALOGW("For resource 0x%08x, entry index(%d) is beyond type entryCount(%d)", ALOGV("For resource 0x%08x, entry index(%d) is beyond type entryCount(%d)", Res_MAKEID(packageGroup->id - 1, typeIndex, entryIndex), entryIndex, static_cast<int>(typeSpec->entryCount)); // We should normally abort here, but some legacy apps declare Loading Loading @@ -6102,7 +6102,7 @@ status_t ResTable::parsePackage(const ResTable_package* const pkg, if (!typeList.isEmpty()) { const Type* existingType = typeList[0]; if (existingType->entryCount != newEntryCount && idmapIndex < 0) { ALOGW("ResTable_typeSpec entry count inconsistent: given %d, previously %d", ALOGV("ResTable_typeSpec entry count inconsistent: given %d, previously %d", (int) newEntryCount, (int) existingType->entryCount); // We should normally abort here, but some legacy apps declare // resources in the 'android' package (old bug in AAPT). Loading Loading
libs/androidfw/ResourceTypes.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -5832,7 +5832,7 @@ status_t ResTable::getEntry( } if (static_cast<size_t>(realEntryIndex) >= typeSpec->entryCount) { ALOGW("For resource 0x%08x, entry index(%d) is beyond type entryCount(%d)", ALOGV("For resource 0x%08x, entry index(%d) is beyond type entryCount(%d)", Res_MAKEID(packageGroup->id - 1, typeIndex, entryIndex), entryIndex, static_cast<int>(typeSpec->entryCount)); // We should normally abort here, but some legacy apps declare Loading Loading @@ -6102,7 +6102,7 @@ status_t ResTable::parsePackage(const ResTable_package* const pkg, if (!typeList.isEmpty()) { const Type* existingType = typeList[0]; if (existingType->entryCount != newEntryCount && idmapIndex < 0) { ALOGW("ResTable_typeSpec entry count inconsistent: given %d, previously %d", ALOGV("ResTable_typeSpec entry count inconsistent: given %d, previously %d", (int) newEntryCount, (int) existingType->entryCount); // We should normally abort here, but some legacy apps declare // resources in the 'android' package (old bug in AAPT). Loading