commit | eff308af425b67093bab25f80f1ae950166bece1 | [log] [tgz] |
---|---|---|
author | Mark Adler <fork@madler.net> | Sat Jul 30 15:51:11 2022 -0700 |
committer | Mark Adler <fork@madler.net> | Sat Jul 30 15:58:02 2022 -0700 |
tree | 9608b2d62ef5d0568ed68123152e9e46d8077f6d | |
parent | b8bd09801f4a2c224655e14edffc5793943a33d2 [diff] |
Fix a bug when getting a gzip header extra field with inflate(). If the extra field was larger than the space the user provided with inflateGetHeader(), and if multiple calls of inflate() delivered the extra header data, then there could be a buffer overflow of the provided space. This commit assures that provided space is not exceeded.