diff options
| author | Richard Weinberger <[email protected]> | 2024-08-02 18:36:45 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-08-15 16:14:36 -0600 |
| commit | c8e929e5758999933f9e905049ef2bf3fe6b140d (patch) | |
| tree | 58747ceff98fb274c86f85454f04db1304364371 /include/linux | |
| 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 <[email protected]>
Reviewed-by: Miquel Raynal <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
