Searched refs:entry_size (Results 1 – 2 of 2) sorted by relevance
154 const size_t entry_size = dtohs(entry->size); in VerifyResTableEntry() local155 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()
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()