]> git.dujemihanovic.xyz Git - u-boot.git/commit
fs/erofs: fix an overflow issue of unmapped extents
authorJianan Huang <jnhuang95@gmail.com>
Wed, 5 Jun 2024 14:05:54 +0000 (14:05 +0000)
committerTom Rini <trini@konsulko.com>
Fri, 14 Jun 2024 18:59:06 +0000 (12:59 -0600)
commit2c9690e79c76807468e34f34d2065ade2d727227
tree947bb52b825ca3349ed634cfcc0f31169fe0f873
parent49c046802568863e751971785421baec62f346e5
fs/erofs: fix an overflow issue of unmapped extents

Here the size should be `length - skip`, otherwise it could cause
the destination buffer overflow.

Reported-by: jianqiang wang <wjq.sec@gmail.com>
Fixes: 65cb73057b65 ("fs/erofs: add lz4 decompression support")
Signed-off-by: Jianan Huang <jnhuang95@gmail.com>
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
fs/erofs/data.c