Searched refs:entry_offset (Results 1 – 1 of 1) sorted by relevance
125 static bool VerifyResTableEntry(const ResTable_type* type, uint32_t entry_offset) { in VerifyResTableEntry() argument127 if (entry_offset & 0x03) { in VerifyResTableEntry()128 LOG(ERROR) << "Entry at offset " << entry_offset << " is not 4-byte aligned."; in VerifyResTableEntry()133 if (entry_offset > std::numeric_limits<uint32_t>::max() - dtohl(type->entriesStart)) { in VerifyResTableEntry()135 LOG(ERROR) << "Entry at offset " << entry_offset << " is too large."; in VerifyResTableEntry()141 entry_offset += dtohl(type->entriesStart); in VerifyResTableEntry()142 if (entry_offset > chunk_size - sizeof(ResTable_entry)) { in VerifyResTableEntry()143 LOG(ERROR) << "Entry at offset " << entry_offset in VerifyResTableEntry()149 reinterpret_cast<const uint8_t*>(type) + entry_offset); in VerifyResTableEntry()153 LOG(ERROR) << "ResTable_entry size " << entry_size << " at offset " << entry_offset in VerifyResTableEntry()[all …]