zlib: backport null dereference fix
authorPetr Štetiar <ynezz@true.cz>
Tue, 9 Aug 2022 05:50:19 +0000 (07:50 +0200)
committerPetr Štetiar <ynezz@true.cz>
Tue, 9 Aug 2022 06:12:46 +0000 (08:12 +0200)
commit707ec48ab3db6d08bd022df1bc720aee68b3b99d
tree6dbd5b0067642ab56224ba12791a21f8b5186adf
parent5e0173de51eb7b68f0dd476b7915ca89d0c8ebca
zlib: backport null dereference fix

The curl developers found test case that crashed in their testing when
using zlib patched against CVE-2022-37434, same patch we've backported
in commit 7df6795d4c25 ("zlib: backport fix for heap-based buffer
over-read (CVE-2022-37434)"). So we need to backport following patch in
order to fix issue introduced in that previous CVE-2022-37434 fix.

References: https://github.com/curl/curl/issues/9271
Fixes: 7df6795d4c25 ("zlib: backport fix for heap-based buffer over-read (CVE-2022-37434)")
Signed-off-by: Petr Štetiar <ynezz@true.cz>
(cherry picked from commit f443e9de7003c00a935b9ea12f168e09e83b48cd)
package/libs/zlib/Makefile
package/libs/zlib/patches/007-fix-null-dereference-in-fix-CVE-2022-37434.patch [new file with mode: 0644]