Home
last modified time | relevance | path

Searched refs:entry_size (Results 1 – 1 of 1) sorted by relevance

/frameworks/base/libs/androidfw/
DLoadedArsc.cpp154 const size_t entry_size = dtohs(entry->size); in VerifyResTableEntry() local
155 if (entry_size < sizeof(*entry)) { in VerifyResTableEntry()
156 LOG(ERROR) << "ResTable_entry size " << entry_size << " at offset " << entry_offset in VerifyResTableEntry()
161 if (entry_size > chunk_size || entry_offset > chunk_size - entry_size) { in VerifyResTableEntry()
162 LOG(ERROR) << "ResTable_entry size " << entry_size << " at offset " << entry_offset in VerifyResTableEntry()
167 if (entry_size < sizeof(ResTable_map_entry)) { in VerifyResTableEntry()
169 if (entry_offset + entry_size > chunk_size - sizeof(Res_value)) { in VerifyResTableEntry()
176 reinterpret_cast<const Res_value*>(reinterpret_cast<const uint8_t*>(entry) + entry_size); in VerifyResTableEntry()
183 if (value_size > chunk_size || entry_offset + entry_size > chunk_size - value_size) { in VerifyResTableEntry()
191 size_t map_entries_start = entry_offset + entry_size; in VerifyResTableEntry()