Lines Matching refs:eocd
143 /* Returns 0 on success, -EINVAL on error and -ENOTSUP if the eocd indicates the
149 struct end_of_cd_record *eocd;
152 eocd = check_access(archive, offset, sizeof(*eocd));
153 if (!eocd || eocd->magic != END_OF_CD_RECORD_MAGIC)
156 comment_length = eocd->comment_length;
157 if (offset + sizeof(*eocd) + comment_length != archive->size)
160 cd_records = eocd->cd_records;
161 if (eocd->this_disk != 0 || eocd->cd_disk != 0 || eocd->cd_records_total != cd_records)
162 /* This is a valid eocd, but we only support single-file non-ZIP64 archives. */
165 cd_offset = eocd->cd_offset;
166 cd_size = eocd->cd_size;