zlib: backport security fix for a reproducible crash in compressor
authorPetr Štetiar <ynezz@true.cz>
Thu, 24 Mar 2022 05:45:04 +0000 (06:45 +0100)
committerPetr Štetiar <ynezz@true.cz>
Thu, 24 Mar 2022 07:18:21 +0000 (08:18 +0100)
commit3965dda0fa70dc9408f1a2e55a3ddefde78bd50e
treec685b569ed0beda949e5fb8095b5de188ed3b560
parent68b008756fae2d05a46f684dd4908667389d217a
zlib: backport security fix for a reproducible crash in compressor

Tavis has just reported, that he was recently trying to track down a
reproducible crash in a compressor. Believe it or not, it really was a
bug in zlib-1.2.11 when compressing (not decompressing!) certain inputs.

Tavis has reported it upstream, but it turns out the issue has been
public since 2018, but the patch never made it into a release. As far as
he knows, nobody ever assigned it a CVE.

Suggested-by: Tavis Ormandy <taviso@gmail.com>
References: https://www.openwall.com/lists/oss-security/2022/03/24/1
Signed-off-by: Petr Štetiar <ynezz@true.cz>
(cherry picked from commit b3aa2909a79aeff20d594160b207a89dc807c033)
package/libs/zlib/Makefile
package/libs/zlib/patches/006-fix-compressor-crash-on-certain-inputs.patch [new file with mode: 0644]
tools/zlib/Makefile
tools/zlib/patches/006-fix-compressor-crash-on-certain-inputs.patch [new file with mode: 0644]