Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/lldb/source/Utility/
H A DZipFile.cpp93 auto eocd = reinterpret_cast<const EocdRecord *>(p); in FindEocdRecord() local
94 if (::memcmp(eocd->signature, EocdRecord::kSignature, in FindEocdRecord()
97 if (eocd->cd_records * sizeof(CdRecord) > eocd->cd_size || in FindEocdRecord()
98 zip_data->GetBytes() + eocd->cd_offset + eocd->cd_size > p) in FindEocdRecord()
102 return eocd; in FindEocdRecord()
131 bool FindFile(lldb::DataBufferSP zip_data, const EocdRecord *eocd, in FindFile() argument
136 eocd->cd_offset); in FindFile()
137 size_t cd_records = eocd->cd_records; in FindFile()
147 if (file_name + file_name_length >= reinterpret_cast<const char *>(eocd) || in FindFile()
163 reinterpret_cast<const char *>(eocd)) in FindFile()
[all …]
/freebsd/contrib/libarchive/libarchive/test/
H A Dtest_write_format_zip_large.c337 const char *cd_start, *zip64_eocd, *zip64_locator, *eocd; in DEFINE_TEST() local
436 eocd = p - 22; in DEFINE_TEST()
437 assertEqualMem(eocd, "PK\005\006\0\0\0\0", 8); in DEFINE_TEST()
438 assertEqualMem(eocd + 8, "\010\0\010\0", 4); /* 8 entries total */ in DEFINE_TEST()
439 cd_size = le32(eocd + 12); in DEFINE_TEST()
441 assertEqualMem(eocd + 16, "\xff\xff\xff\xff", 4); in DEFINE_TEST()
442 assertEqualMem(eocd + 20, "\0\0", 2); /* No Zip comment */ in DEFINE_TEST()
H A Dtest_write_format_zip_file_zip64.c88 unsigned char *central_header, *local_header, *eocd, *eocd_record; in DEFINE_TEST()
142 eocd = buff + i4(p + 12) + i4(p + 16); in DEFINE_TEST()
202 assertEqualAddress(p, eocd); in DEFINE_TEST()
204 /* After Central dir, we find Zip64 eocd and Zip64 eocd locator. */ in DEFINE_TEST()
205 assertEqualMem(p, "PK\006\006", 4); /* Zip64 eocd */ in DEFINE_TEST()
206 assertEqualInt(i8(p + 4), 44); /* We're using v1 Zip64 eocd */ in DEFINE_TEST()
213 assertEqualInt(i8(p + 40), eocd - central_header); /* size of cd */ in DEFINE_TEST()
217 assertEqualMem(p, "PK\006\007", 4); /* Zip64 eocd locator */ in DEFINE_TEST()
218 assertEqualInt(i4(p + 4), 0); /* Zip64 eocd i in DEFINE_TEST()
89 unsigned char *central_header, *local_header, *eocd, *eocd_record; DEFINE_TEST() local
[all...]
H A Dtest_write_format_zip_stream.c82 unsigned char *central_header, *local_header, *eocd, *eocd_record; in DEFINE_TEST() local
128 eocd = buff + i4(p + 12) + i4(p + 16); in DEFINE_TEST()
192 assert(p == eocd); in DEFINE_TEST()
H A Dtest_write_format_zip_file.c86 unsigned char *central_header, *local_header, *eocd, *eocd_record; in DEFINE_TEST()
139 eocd = buff + i4(p + 12) + i4(p + 16); in DEFINE_TEST()
193 assertEqualAddress(p, eocd); in DEFINE_TEST()
87 unsigned char *central_header, *local_header, *eocd, *eocd_record; DEFINE_TEST() local
/freebsd/contrib/sqlite3/
H A Dshell.c9654 ZipfileEOCD eocd; /* Parse of central directory record */ member
10282 i64 iEof = pCsr->eocd.iOffset + pCsr->eocd.nSize; in zipfileNext()
10605 ZipfileEOCD eocd; in zipfileLoadDirectory() local
10610 rc = zipfileReadEOCD(pTab, aBlob, nBlob, pTab->pWriteFd, &eocd); in zipfileLoadDirectory()
10611 iOff = eocd.iOffset; in zipfileLoadDirectory()
10612 for(i=0; rc==SQLITE_OK && i<eocd.nEntry; i++){ in zipfileLoadDirectory()
10673 rc = zipfileReadEOCD(pTab, 0, 0, pCsr->pFile, &pCsr->eocd); in zipfileFilter()
10675 if( pCsr->eocd.nEntry==0 ){ in zipfileFilter()
10678 pCsr->iNextOff = pCsr->eocd.iOffset; in zipfileFilter()
11205 ZipfileEOCD eocd; in zipfileCommit() local
[all …]