commit | 652277d9b2cf528ffec27db9b4e31568a4721a42 | [log] [tgz] |
---|---|---|
author | Joao Marcos Costa <joaomarcos.costa@bootlin.com> | Wed Feb 19 11:16:33 2025 +0100 |
committer | Tom Rini <trini@konsulko.com> | Mon Feb 24 08:49:04 2025 -0600 |
tree | e30a0d341111f0eb8cae3dd52c2f18ca02bfd2a7 | |
parent | 10ecdd554962b8544f2309f3f886207f2436efe6 [diff] |
fs/squashfs: fix potential integer overflows The length of buffers used to read inode tables, directory tables, and reading a file are calculated as: number of blocks * block size, and such plain multiplication is prone to overflowing (thus unsafe). Replace it by __builtin_mul_overflow, i.e. safe math. Signed-off-by: Joao Marcos Costa <joaomarcos.costa@bootlin.com>