madler / zlib

A massively spiffy yet delicately unobtrusive compression library.
http://zlib.net/
Other
5.55k stars 2.42k forks source link

Fix "pendingBuf overflow" assert in LIT_MEM mode #898

Closed zmodem closed 8 months ago

zmodem commented 8 months ago

Since each element in s->d_buf is 2 bytes, the sx index should be multiplied by 2 in the assert.

Fixes #897

Neustradamus commented 8 months ago

@madler: I think that some commits are missing since 2023-11-15, can you push it? Thanks in advance.

@zmodem Issue: https://github.com/madler/zlib/issues/897

Neustradamus commented 7 months ago

Merged commit: