erofs-utils: fix potential buffer overrun in __erofs_io_write()
authorGao Xiang <hsiangkao@linux.alibaba.com>
Mon, 17 Feb 2025 02:49:28 +0000 (10:49 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Mon, 17 Feb 2025 02:59:48 +0000 (10:59 +0800)
commitfc8a1d6ab51e56fc32742c73fcc02e23705bb23b
tree2b53b898af14d96e76be4975c2c603d64ce334cb
parent3051162fefef9af9f274266a2ad9d5d612d50ccc
erofs-utils: fix potential buffer overrun in __erofs_io_write()

.. due to short write, but it's almost impossible for most fses.

Coverity-id: 541575
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20250217024929.66658-1-hsiangkao@linux.alibaba.com
lib/io.c