summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRichard Weinberger <[email protected]>2024-08-02 18:36:45 +0200
committerTom Rini <[email protected]>2024-08-15 16:14:36 -0600
commitc8e929e5758999933f9e905049ef2bf3fe6b140d (patch)
tree58747ceff98fb274c86f85454f04db1304364371 /include
parent233945eba63e24061dffeeaeb7cd6fe985278356 (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')
0 files changed, 0 insertions, 0 deletions