erofs-utils: avoid overly large temporary buffers for compressed data
authorGao Xiang <hsiangkao@linux.alibaba.com>
Fri, 14 Feb 2025 16:36:21 +0000 (00:36 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Sat, 15 Feb 2025 01:01:15 +0000 (09:01 +0800)
commita26cd36a5e87095aa3396a9cb65e74c6242ef825
treeae9d60327984240ee3ad35520cc5044fb3d633a6
parent5115db2f754563674a8f5baf4107beccbd0baed9
erofs-utils: avoid overly large temporary buffers for compressed data

... and use `EROFS_MAX_BLOCK_SIZE * 2` to avoid potential issues
with buggy compressors.

Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20250214163621.4109215-2-hsiangkao@linux.alibaba.com
lib/compress.c