linux/fs/ntfs3
Colin Ian King 71eeb6ace8
fs/ntfs3: Fix integer overflow in multiplication
The multiplication of the u32 data_size with a int is being performed
using 32 bit arithmetic however the results is being assigned to the
variable nbits that is a size_t (64 bit) value. Fix a potential
integer overflow by casting the u32 value to a size_t before the
multiply to use a size_t sized bit multiply operation.

Addresses-Coverity: ("Unintentional integer overflow")
Fixes: 82cae269cf ("fs/ntfs3: Add initialization of super block")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
2021-08-27 17:05:10 +03:00
..
lib fs/ntfs3: Fix various spelling mistakes 2021-08-27 17:04:45 +03:00
attrib.c fs/ntfs3: Add attrib operations 2021-08-13 07:55:55 -07:00
attrlist.c fs/ntfs3: Add attrib operations 2021-08-13 07:55:55 -07:00
bitfunc.c fs/ntfs3: Add bitmap 2021-08-13 07:55:41 -07:00
bitmap.c fs/ntfs3: Add bitmap 2021-08-13 07:55:41 -07:00
debug.h fs/ntfs3: Add ifndef + define to all header files 2021-08-27 17:05:10 +03:00
dir.c fs/ntfs3: Add file operations and implementation 2021-08-13 07:55:49 -07:00
file.c fs/ntfs3: Add file operations and implementation 2021-08-13 07:55:49 -07:00
frecord.c fs/ntfs3: Add file operations and implementation 2021-08-13 07:55:49 -07:00
fslog.c fs/ntfs3: Add NTFS journal 2021-08-13 07:56:05 -07:00
fsntfs.c
index.c fs/ntfs3: Fix integer overflow in multiplication 2021-08-27 17:05:10 +03:00
inode.c
Kconfig fs/ntfs3: Add Kconfig, Makefile and doc 2021-08-13 07:56:37 -07:00
lznt.c fs/ntfs3: Add compression 2021-08-13 07:56:00 -07:00
Makefile fs/ntfs3: Add Kconfig, Makefile and doc 2021-08-13 07:56:37 -07:00
namei.c fs/ntfs3: Add file operations and implementation 2021-08-13 07:55:49 -07:00
ntfs_fs.h fs/ntfs3: Add ifndef + define to all header files 2021-08-27 17:05:10 +03:00
ntfs.h fs/ntfs3: Add ifndef + define to all header files 2021-08-27 17:05:10 +03:00
record.c fs/ntfs3: Add file operations and implementation 2021-08-13 07:55:49 -07:00
run.c fs/ntfs3: Use linux/log2 is_power_of_2 function 2021-08-27 17:05:09 +03:00
super.c fs/ntfs3: Use linux/log2 is_power_of_2 function 2021-08-27 17:05:09 +03:00
upcase.c fs/ntfs3: Fix various spelling mistakes 2021-08-27 17:04:45 +03:00
xattr.c fs/ntfs3: Add attrib operations 2021-08-13 07:55:55 -07:00