Skip to content

Commit

Permalink
Permit bit 11 of the flags in a zip entry header to be set.
Browse files Browse the repository at this point in the history
pigz would unfairly reject zip files with bit 11 set. That bit
indicates that the filename and comment fields are encoded using
UTF-8.
  • Loading branch information
madler committed Jun 14, 2018
1 parent 5b86ed0 commit 13c1f55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pigz.c
Expand Up @@ -2750,7 +2750,7 @@ local int get_header(int save) {
return -4; // not a local header
SKIP(2);
flags = GET2();
if (flags & 0xfff0)
if (flags & 0xf7f0)
return -4;
method = GET(); // return low byte of method or 256
if (GET() != 0 || flags & 1)
Expand Down

0 comments on commit 13c1f55

Please sign in to comment.