]> git.ipfire.org Git - thirdparty/zlib-ng.git/commit
Fix pending buffer overflow assert with LIT_MEM allocation.
authorHans Wennborg <hans@chromium.org>
Tue, 30 Jan 2024 00:39:52 +0000 (16:39 -0800)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Wed, 7 Feb 2024 18:15:56 +0000 (19:15 +0100)
commit101589d3503d956ca79b7e41714fdfcb616e429b
tree273b2d3f62fb5d590ede27f5ab6de93de82fc33e
parent43300cc4169793dbe528825bfca6d064f7a5e7fd
Fix pending buffer overflow assert with LIT_MEM allocation.

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

Fixes madler/zlib#897

madler/zlib#ee474ff2d11715485a87b123edbdd615ba218b88
trees.c