mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 12:53:14 +01:00
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 <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
7 lines
242 B
Makefile
7 lines
242 B
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
lzo_compress-objs := lzo1x_compress.o lzo1x_compress_safe.o
|
|
lzo_decompress-objs := lzo1x_decompress_safe.o
|
|
|
|
obj-$(CONFIG_LZO_COMPRESS) += lzo_compress.o
|
|
obj-$(CONFIG_LZO_DECOMPRESS) += lzo_decompress.o
|