diff options
author | Joao Marcos Costa <joaomarcos.costa@bootlin.com> | 2025-02-19 11:16:33 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-02-24 08:49:04 -0600 |
commit | 59fd62d71c6a04b3ab9db848414a7c386cfd2cfb (patch) | |
tree | e30a0d341111f0eb8cae3dd52c2f18ca02bfd2a7 /lib/mbedtls/port/mbedtls_options.h | |
parent | 5061eab96acd60d28149e080f3a37fbe7220ca54 (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>
Diffstat (limited to 'lib/mbedtls/port/mbedtls_options.h')
0 files changed, 0 insertions, 0 deletions