Lines Matching refs:eocd_offset
281 zip_uint64_t eocd_offset = _zip_buffer_offset(buffer); in _zip_read_cdir() local
296 …if (eocd_offset >= EOCD64LOCLEN && memcmp(_zip_buffer_data(buffer) + eocd_offset - EOCD64LOCLEN, E… in _zip_read_cdir()
297 _zip_buffer_set_offset(buffer, eocd_offset - EOCD64LOCLEN); in _zip_read_cdir()
301 _zip_buffer_set_offset(buffer, eocd_offset); in _zip_read_cdir()
308 _zip_buffer_set_offset(buffer, eocd_offset + 20); in _zip_read_cdir()
311 if (cd->offset + cd->size > buf_offset + eocd_offset) { in _zip_read_cdir()
321 _zip_buffer_set_offset(buffer, eocd_offset + EOCDLEN); in _zip_read_cdir()
670 zip_uint64_t i, nentry, size, offset, eocd_offset; in _zip_read_eocd() local
677 eocd_offset = _zip_buffer_offset(buffer); in _zip_read_eocd()
704 if (offset+size > buf_offset + eocd_offset) { in _zip_read_eocd()
710 if ((flags & ZIP_CHECKCONS) && offset+size != buf_offset + eocd_offset) { in _zip_read_eocd()
731 zip_uint64_t eocd_offset; in _zip_read_eocd64() local
742 eocd_offset = _zip_buffer_get_64(buffer); in _zip_read_eocd64()
744 if (eocd_offset > ZIP_INT64_MAX || eocd_offset + EOCD64LEN < eocd_offset) { in _zip_read_eocd64()
749 if (eocd_offset + EOCD64LEN > eocdloc_offset + buf_offset) { in _zip_read_eocd64()
754 …if (eocd_offset >= buf_offset && eocd_offset + EOCD64LEN <= buf_offset + _zip_buffer_size(buffer))… in _zip_read_eocd64()
755 _zip_buffer_set_offset(buffer, eocd_offset - buf_offset); in _zip_read_eocd64()
759 if (zip_source_seek(src, (zip_int64_t)eocd_offset, SEEK_SET) < 0) { in _zip_read_eocd64()
779 if ((flags & ZIP_CHECKCONS) && size + eocd_offset + 12 != buf_offset + eocdloc_offset) { in _zip_read_eocd64()
840 if (offset+size > buf_offset + eocd_offset) { in _zip_read_eocd64()
845 if ((flags & ZIP_CHECKCONS) && offset+size != buf_offset + eocd_offset) { in _zip_read_eocd64()