Searched refs:entry_size (Results 1 – 2 of 2) sorted by relevance
151 const size_t entry_size = dtohs(entry->size); in VerifyResTableEntry() local152 if (entry_size < sizeof(*entry)) { in VerifyResTableEntry()153 LOG(ERROR) << "ResTable_entry size " << entry_size << " at offset " << entry_offset in VerifyResTableEntry()158 if (entry_size > chunk_size || entry_offset > chunk_size - entry_size) { in VerifyResTableEntry()159 LOG(ERROR) << "ResTable_entry size " << entry_size << " at offset " << entry_offset in VerifyResTableEntry()164 if (entry_size < sizeof(ResTable_map_entry)) { in VerifyResTableEntry()166 if (entry_offset + entry_size > chunk_size - sizeof(Res_value)) { in VerifyResTableEntry()173 reinterpret_cast<const Res_value*>(reinterpret_cast<const uint8_t*>(entry) + entry_size); in VerifyResTableEntry()180 if (value_size > chunk_size || entry_offset + entry_size > chunk_size - value_size) { in VerifyResTableEntry()188 size_t map_entries_start = entry_offset + entry_size; in VerifyResTableEntry()
852 size_t entry_size = buffer.length(); in setString() local855 entry_size++; in setString()858 addVariableLengthEntry(ifd, tag, format, entry_size, entry_size); in setString()863 memcpy(entry->data, buffer.c_str(), entry_size); in setString()