WSL2-Linux-Kernel/fs/ntfs3
Dan Carpenter e001e60869
fs/ntfs3: Harden against integer overflows
Smatch complains that the "add_bytes" is not to be trusted.  Use
size_add() to prevent an integer overflow.

Fixes: be71b5cba2 ("fs/ntfs3: Add attrib operations")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
2022-09-30 17:39:53 +03:00
..
lib
Kconfig
Makefile
attrib.c fs/ntfs3: Fix attr_punch_hole() null pointer derenference 2022-09-30 17:39:50 +03:00
attrlist.c fs/ntfs3: Validate data run offset 2022-09-30 17:39:49 +03:00
bitfunc.c
bitmap.c fs/ntfs3: Use kmalloc_array for allocating multiple elements 2022-09-30 17:39:51 +03:00
debug.h
dir.c
file.c ntfs3 for 6.0 2022-08-17 14:51:22 -07:00
frecord.c fs/ntfs3: Validate data run offset 2022-09-30 17:39:49 +03:00
fslog.c fs/ntfs3: Validate data run offset 2022-09-30 17:39:49 +03:00
fsntfs.c ntfs3 for 6.0 2022-08-17 14:51:22 -07:00
index.c fs/ntfs3: Add option "nocase" 2022-09-30 17:39:47 +03:00
inode.c fs/ntfs3: Validate attribute name offset 2022-09-30 17:39:53 +03:00
lznt.c
namei.c fs/ntfs3: Add option "nocase" 2022-09-30 17:39:47 +03:00
ntfs.h
ntfs_fs.h fs/ntfs3: Add option "nocase" 2022-09-30 17:39:47 +03:00
record.c fs/ntfs3: Add overflow check for attribute size 2022-09-30 17:39:49 +03:00
run.c fs/ntfs3: Refactoring attr_punch_hole to restore after errors 2022-08-03 18:25:09 +03:00
super.c fs/ntfs3: Add null pointer check for inode operations 2022-09-30 17:39:53 +03:00
upcase.c fs/ntfs3: Add option "nocase" 2022-09-30 17:39:47 +03:00
xattr.c fs/ntfs3: Harden against integer overflows 2022-09-30 17:39:53 +03:00