]> www.infradead.org Git - users/jedix/linux-maple.git/commit
fs/ntfs3: Fix a couple integer overflows on 32bit systems
authorDan Carpenter <dan.carpenter@linaro.org>
Sun, 16 Feb 2025 20:52:00 +0000 (23:52 +0300)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Thu, 6 Mar 2025 16:53:24 +0000 (19:53 +0300)
commit5ad414f4df2294b28836b5b7b69787659d6aa708
treee0c06512de25004cbf5afe9b0feb2e2e43277727
parentb432163ebd15a0fb74051949cb61456d6c55ccbd
fs/ntfs3: Fix a couple integer overflows on 32bit systems

On 32bit systems the "off + sizeof(struct NTFS_DE)" addition can
have an integer wrapping issue.  Fix it by using size_add().

Fixes: 82cae269cfa9 ("fs/ntfs3: Add initialization of super block")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
fs/ntfs3/index.c