Home
last modified time | relevance | path

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

/system/libziparchive/
Dzip_archive.cc247 auto eocd = reinterpret_cast<const EocdRecord*>(scan_buffer.data() + i); in FindCentralDirectoryInfo() local
252 const off64_t calculated_length = eocd_offset + sizeof(EocdRecord) + eocd->comment_length; in FindCentralDirectoryInfo()
260 if (eocd->cd_size == UINT32_MAX || eocd->cd_start_offset == UINT32_MAX) { in FindCentralDirectoryInfo()
262 eocd->cd_size, eocd->cd_start_offset); in FindCentralDirectoryInfo()
270 if (static_cast<off64_t>(eocd->cd_start_offset) + eocd->cd_size > eocd_offset) { in FindCentralDirectoryInfo()
272 eocd->cd_start_offset, eocd->cd_size, static_cast<int64_t>(eocd_offset)); in FindCentralDirectoryInfo()
276 *cdInfo = {.num_records = eocd->num_records, in FindCentralDirectoryInfo()
277 .cd_size = eocd->cd_size, in FindCentralDirectoryInfo()
278 .cd_start_offset = eocd->cd_start_offset}; in FindCentralDirectoryInfo()
Dzip_archive_test.cc1149 EocdRecord eocd = {}; in ConstructEocd() local
1150 eocd.eocd_signature = EocdRecord::kSignature, in ConstructEocd()
1151 eocd.num_records = file_entries_.size() > UINT16_MAX in ConstructEocd()
1154 eocd.cd_size = UINT32_MAX; in ConstructEocd()
1155 eocd.cd_start_offset = UINT32_MAX; in ConstructEocd()
1156 eocd_record_ = std::vector<uint8_t>(reinterpret_cast<uint8_t*>(&eocd), in ConstructEocd()
1157 reinterpret_cast<uint8_t*>(&eocd) + sizeof(EocdRecord)); in ConstructEocd()