aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2015-07-28 21:41:20 -0700
committerMark Adler <madler@alumni.caltech.edu>2015-07-28 21:41:20 -0700
commit0db8fd371477f42c280ddeee29e6de092fabf948 (patch)
treeb145f597894d1c211554d94e63d96af64042604b /test
parentb56d1c62ee1ff9705026c94a780dd6e4577cda02 (diff)
downloadzlib-0db8fd371477f42c280ddeee29e6de092fabf948.tar.gz
zlib-0db8fd371477f42c280ddeee29e6de092fabf948.tar.bz2
zlib-0db8fd371477f42c280ddeee29e6de092fabf948.zip
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.
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions