]> git.ipfire.org Git - thirdparty/u-boot.git/commit
spl: legacy: Honor bl_len when decompressing
authorSean Anderson <seanga2@gmail.com>
Sat, 4 Nov 2023 20:37:43 +0000 (16:37 -0400)
committerTom Rini <trini@konsulko.com>
Thu, 16 Nov 2023 17:43:48 +0000 (12:43 -0500)
commit57d3da6fee1d4d8691a74d9b7bb5b7bc0d4e4e63
tree90c228d2d71b95eec6b4cbdd1db57c07bb923fa9
parentcdc0434ac06ad5cc0cb8361dcd5d4ab72a8db0c7
spl: legacy: Honor bl_len when decompressing

When allocating a buffer to load compressed data into, we need to ensure we
have enough space for over- and under-flow due to alignment. Otherwise we
will clobber the malloc bookkeeping data. Calculate the correct amount of
overhead and use it when determining the size.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
common/spl/spl_legacy.c