Lines Matching refs:cd_size
134 uint64_t cd_size; member
197 if (zip64EocdOffset <= zip64EocdRecord.cd_size || in FindCentralDirectoryInfoForZip64()
198 zip64EocdRecord.cd_start_offset > zip64EocdOffset - zip64EocdRecord.cd_size) { in FindCentralDirectoryInfoForZip64()
201 debugFileName, zip64EocdRecord.cd_start_offset, zip64EocdRecord.cd_size, zip64EocdOffset); in FindCentralDirectoryInfoForZip64()
206 .cd_size = zip64EocdRecord.cd_size, in FindCentralDirectoryInfoForZip64()
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()
277 .cd_size = eocd->cd_size, in FindCentralDirectoryInfo()
338 if (cdInfo.cd_size >= SIZE_MAX) { in MapCentralDirectory()
340 cdInfo.cd_size); in MapCentralDirectory()
345 cdInfo.cd_size, cdInfo.cd_start_offset); in MapCentralDirectory()
349 static_cast<size_t>(cdInfo.cd_size))) { in MapCentralDirectory()
1536 size_t cd_size) { in Initialize() argument
1538 length_ = cd_size; in Initialize()
1541 bool ZipArchive::InitializeCentralDirectory(off64_t cd_start_offset, size_t cd_size) { in InitializeCentralDirectory() argument
1545 cd_size, PROT_READ); in InitializeCentralDirectory()
1548 cd_start_offset, cd_size, strerror(errno)); in InitializeCentralDirectory()
1552 CHECK_EQ(directory_map->size(), cd_size); in InitializeCentralDirectory()
1553 central_directory.Initialize(directory_map->data(), 0 /*offset*/, cd_size); in InitializeCentralDirectory()
1559 if (static_cast<off64_t>(cd_start_offset) + static_cast<off64_t>(cd_size) > in InitializeCentralDirectory()
1564 static_cast<int64_t>(cd_start_offset), cd_size, mapped_zip.GetFileLength()); in InitializeCentralDirectory()
1568 central_directory.Initialize(mapped_zip.GetBasePtr(), cd_start_offset, cd_size); in InitializeCentralDirectory()