Lines Matching defs:size
130 __u32 size;
135 static void *check_access(struct zip_archive *archive, __u32 offset, __u32 size)
137 if (offset + size > archive->size || offset > offset + size)
157 if (offset + sizeof(*eocd) + comment_length != archive->size)
180 if (archive->size <= sizeof(struct end_of_cd_record))
187 offset = archive->size - sizeof(struct end_of_cd_record);
202 off_t size;
209 size = lseek(fd, 0, SEEK_END);
210 if (size == (off_t)-1 || size > UINT32_MAX) {
215 data = mmap(NULL, size, PROT_READ, MAP_PRIVATE, fd, 0);
224 munmap(data, size);
229 archive->size = size;
233 munmap(data, size);
243 munmap(archive->data, archive->size);