summaryrefslogtreecommitdiff
path: root/gzlib.c
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2015-11-26 22:52:25 -0800
committerMark Adler <madler@alumni.caltech.edu>2015-11-26 22:52:25 -0800
commit6cef1de7403b553ce8f7e790e38531da6529f34f (patch)
tree10aa1505aa3bf4c35cf8cc5ca69ab926c8276aa9 /gzlib.c
parent8f1b3744e52b2adb6475c3cd7a07ff9331e9c2fa (diff)
downloadzlib-6cef1de7403b553ce8f7e790e38531da6529f34f.tar.gz
Fix bug that accepted invalid zlib header when windowBits is zero.
When windowBits is zero, the size of the sliding window comes from the zlib header. The allowed values of the four-bit field are 0..7, but when windowBits is zero, values greater than 7 are permitted and acted upon, resulting in large, mostly unused memory allocations. This fix rejects such invalid zlib headers.
Diffstat (limited to 'gzlib.c')
0 files changed, 0 insertions, 0 deletions