commit | 89c59368343965bf563f217f3bcb1f2e664a9dc7 | [log] [tgz] |
---|---|---|
author | Gao Xiang <hsiangkao@linux.alibaba.com> | Thu Feb 13 19:28:47 2025 +0800 |
committer | Tom Rini <trini@konsulko.com> | Tue Feb 18 12:32:07 2025 -0600 |
tree | 94033c48c83cfd548c735cd484856ef0f563844f | |
parent | 8b493a2a061843e9261d5bbb5ee2f5c97be85a1a [diff] |
fs/erofs: fix an integer overflow in symlink resolution See the original report [1], otherwise len + 1 will be overflowed. Note that EROFS archive can record arbitary symlink sizes in principle, so we don't assume a short number like 4096. [1] https://lore.kernel.org/r/20250210164151.GN1233568@bill-the-cat Fixes: 830613f8f5bb ("fs/erofs: add erofs filesystem support") Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>