diff options
author | Richard Weinberger <richard@nod.at> | 2024-08-02 18:36:45 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-08-15 16:14:36 -0600 |
commit | c8e929e5758999933f9e905049ef2bf3fe6b140d (patch) | |
tree | 58747ceff98fb274c86f85454f04db1304364371 /drivers/ddr/imx/imx8m/ddr_init.c | |
parent | 233945eba63e24061dffeeaeb7cd6fe985278356 (diff) |
squashfs: Fix integer overflow in sqfs_inode_size()
A carefully crafted squashfs filesystem can exhibit an extremly large
inode size and overflow the calculation in sqfs_inode_size().
As a consequence, the squashfs driver will read from wrong locations.
Fix by using __builtin_add_overflow() to detect the overflow.
Signed-off-by: Richard Weinberger <richard@nod.at>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'drivers/ddr/imx/imx8m/ddr_init.c')
0 files changed, 0 insertions, 0 deletions