diff options
Diffstat (limited to 'lib/uzlib/header.c')
| -rw-r--r-- | lib/uzlib/header.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/uzlib/header.c b/lib/uzlib/header.c index edd2b08ab..9c48d9139 100644 --- a/lib/uzlib/header.c +++ b/lib/uzlib/header.c @@ -108,6 +108,10 @@ int uzlib_parse_zlib_gzip_header(uzlib_uncomp_t *d, int *wbits) d->checksum_type = UZLIB_CHKSUM_CRC; d->checksum = ~0; + /* gzip does not include the window size in the header, as it is expected that a + compressor will use wbits=15 (32kiB).*/ + *wbits = 15; + return UZLIB_HEADER_GZIP; } else { /* check checksum */ |
