Skip to content

ZipInputStream class doesn't process correctly no compression entries with flag Bit 3 set #15

@nekobul

Description

@nekobul

The PKZIP documentation here states for general purpose flag Bit 3:

"If this bit is set, the fields crc-32, compressed size and uncompressed size are set to zero in the local header. The correct values are put in the data descriptor immediately following the compressed data. (Note: PKZIP version 2.04g for DOS only recognizes this bit for method 8 compression, newer versions of PKZIP recognize this bit for any compression method.)".


The CRC, compressed and uncompressed size will be 0 and the extraction fails.

Metadata

Metadata

Assignees

Labels

bugzipRelated to ZIP file format

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions