]> git.dujemihanovic.xyz Git - u-boot.git/commit
lib/zlib: Fix a bug when getting a gzip header extra field
authorOleksandr Suvorov <oleksandr.suvorov@foundries.io>
Thu, 15 Jun 2023 14:54:34 +0000 (17:54 +0300)
committerTom Rini <trini@konsulko.com>
Fri, 14 Jul 2023 19:21:08 +0000 (15:21 -0400)
commitef402577c2e3af6c3b967b2e4499b3796a37fde5
tree1cec4013d7f74e96d7fdb2e85e2c1184c2238cb8
parentedacf6a44d2383f9137a99ffdf61a24de4a47307
lib/zlib: Fix a bug when getting a gzip header extra field

This fixes CVE-2022-37434 [1] and bases on 2 commits from Mark
Adler's zlib master repo - the original fix of CVE bug [2] and
the fix for the fix [3].

[1]
https://github.com/advisories/GHSA-cfmr-vrgj-vqwv
[2]
https://github.com/madler/zlib/commit/eff308af425b67093bab25f80f1ae950166bece1
[3]
https://github.com/madler/zlib/commit/1eb7682f845ac9e9bf9ae35bbfb3bad5dacbd91d

Fixes: e89516f031d ("zlib: split up to match original source tree")
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io>
lib/zlib/inflate.c