This fixes two bugs in LZ4 decompression. The first is a bug we derived from Linux and was fixed there back in 2014. The second is a general bug in uncompress_fd_to_fd() but seems to hit only in the LZ4 case. Both bugs are relevant only for the uncompress command, but not when LZ4 is used for compiled in binaries.
Signed-off-by: Sascha Hauer <s.ha...@pengutronix.de> --- Sascha Hauer (2): initrd: fix lz4 decompress with initrd uncompress: fix prebuffering lib/decompress_unlz4.c | 65 +++++++++++++++++++++++++++++++++----------------- lib/uncompress.c | 7 +++--- 2 files changed, 47 insertions(+), 25 deletions(-) --- base-commit: dbc28aa3aad573f6ed0199c4fb85295b95e3bd11 change-id: 20250522-uncompress-fixes-d94b645acaad Best regards, -- Sascha Hauer <s.ha...@pengutronix.de>