Re: [PATCH] fs/squashfs: fix potential integer overflows

2025-02-24 Thread Tom Rini
On Wed, 19 Feb 2025 11:16:33 +0100, joaomarcos.co...@bootlin.com wrote: > 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

[PATCH] fs/squashfs: fix potential integer overflows

2025-02-19 Thread joaomarcos . costa
From: Joao Marcos Costa 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-b