linux-yocto/lib/lzo
Herbert Xu 7caad075ac crypto: lzo - Fix compression buffer overrun
[ Upstream commit cc47f07234 ]

Unlike the decompression code, the compression code in LZO never
checked for output overruns.  It instead assumes that the caller
always provides enough buffer space, disregarding the buffer length
provided by the caller.

Add a safe compression interface that checks for the end of buffer
before each write.  Use the safe interface in crypto/lzo.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-05-29 11:02:25 +02:00
..
lzo1x_compress_safe.c crypto: lzo - Fix compression buffer overrun 2025-05-29 11:02:25 +02:00
lzo1x_compress.c crypto: lzo - Fix compression buffer overrun 2025-05-29 11:02:25 +02:00
lzo1x_decompress_safe.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
lzodefs.h
Makefile crypto: lzo - Fix compression buffer overrun 2025-05-29 11:02:25 +02:00