aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/dev_api.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2025-02-16 20:52:10 +0000
committerKonstantin Komarov <[email protected]>2025-03-06 16:53:26 +0000
commit6bb81b94f7a9cba6bde9a905cef52a65317a8b04 (patch)
tree14d93697555cf412eff87750bfcc73ddd4fcbbae /net/core/dev_api.c
parentfs/ntfs3: Fix a couple integer overflows on 32bit systems (diff)
downloadkernel-6bb81b94f7a9cba6bde9a905cef52a65317a8b04.tar.gz
kernel-6bb81b94f7a9cba6bde9a905cef52a65317a8b04.zip
fs/ntfs3: Prevent integer overflow in hdr_first_de()
The "de_off" and "used" variables come from the disk so they both need to check. The problem is that on 32bit systems if they're both greater than UINT_MAX - 16 then the check does work as intended because of an integer overflow. Fixes: 60ce8dfde035 ("fs/ntfs3: Fix wrong if in hdr_first_de") Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Konstantin Komarov <[email protected]>
Diffstat (limited to 'net/core/dev_api.c')
0 files changed, 0 insertions, 0 deletions