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:15:26 +0000 (08:15 +0200)
commitb93327c4692e605649ff1afade98899a9c4aa1ca
treea74a75b42f54534f23b0167a14b90888f6b4ac0b
parent5f189f2f333b25aec20bbf4cc9d5d8ca488ec895
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)
(cherry picked from commit 707ec48ab3db6d08bd022df1bc720aee68b3b99d)
package/libs/zlib/Makefile
package/libs/zlib/patches/007-fix-null-dereference-in-fix-CVE-2022-37434.patch [new file with mode: 0644]