]> git.ipfire.org Git - thirdparty/zlib-ng.git/commit
Fix inflateInit2() bug when windowBits is 16 or 32.
authorMark Adler <madler@alumni.caltech.edu>
Wed, 29 Jul 2015 04:41:20 +0000 (21:41 -0700)
committerMark Adler <madler@alumni.caltech.edu>
Wed, 29 Jul 2015 04:41:20 +0000 (21:41 -0700)
commit0db8fd371477f42c280ddeee29e6de092fabf948
treeb145f597894d1c211554d94e63d96af64042604b
parentb56d1c62ee1ff9705026c94a780dd6e4577cda02
Fix inflateInit2() bug when windowBits is 16 or 32.

A windowBits value of 0, 16, or 32 gets the window bits from the
zlib header.  However there is no zlib header for 16, or for 32
when the input is gzip.  This commit sets the window bits for
inflate to 15 if a gzip stream is detected and windowBits was 16
or 32.
inflate.c