Searched refs:entry_offset (Results 1 – 1 of 1) sorted by relevance
128 static bool VerifyResTableEntry(const ResTable_type* type, uint32_t entry_offset) { in VerifyResTableEntry() argument130 if (entry_offset & 0x03) { in VerifyResTableEntry()131 LOG(ERROR) << "Entry at offset " << entry_offset << " is not 4-byte aligned."; in VerifyResTableEntry()136 if (entry_offset > std::numeric_limits<uint32_t>::max() - dtohl(type->entriesStart)) { in VerifyResTableEntry()138 LOG(ERROR) << "Entry at offset " << entry_offset << " is too large."; in VerifyResTableEntry()144 entry_offset += dtohl(type->entriesStart); in VerifyResTableEntry()145 if (entry_offset > chunk_size - sizeof(ResTable_entry)) { in VerifyResTableEntry()146 LOG(ERROR) << "Entry at offset " << entry_offset in VerifyResTableEntry()152 reinterpret_cast<const uint8_t*>(type) + entry_offset); in VerifyResTableEntry()156 LOG(ERROR) << "ResTable_entry size " << entry_size << " at offset " << entry_offset in VerifyResTableEntry()[all …]