erofs-utils: lib: fix global-buffer-overflow due to invalid device
authorGao Xiang <hsiangkao@linux.alibaba.com>
Thu, 8 Aug 2024 16:03:43 +0000 (00:03 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Thu, 8 Aug 2024 17:26:49 +0000 (01:26 +0800)
commit89dfe997c2eedc06cc7943a100bc72acbc647821
tree9cfe3539cee5143b6d12bc5c3ac731d976afdc5d
parent44ef438be514cb050ae037d197ff3312fb759050
erofs-utils: lib: fix global-buffer-overflow due to invalid device

Fuzzer generates an image with crafted chunks of some invalid device.
Also refine the printed message of EOD.

Closes: https://github.com/erofs/erofsnightly/actions/runs/10172576269/job/28135408276
Closes: https://github.com/erofs/erofs-utils/issues/11
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20240808160343.2544426-1-hsiangkao@linux.alibaba.com
lib/io.c