linux-stable/fs/befs
Azeem Shaikh 7391928025 befs: Replace all non-returning strlcpy with strscpy
strlcpy() reads the entire source buffer first.
This read may exceed the destination size limit.
This is both inefficient and can lead to linear read
overflows if a source string is not NUL-terminated.
In an effort to remove strlcpy() completely, replace
strlcpy() here with strscpy().
No return values were used, so direct replacement is safe.

[1] https://www.kernel.org/doc/html/latest/process/deprecated.html#strlcpy
[2] https://github.com/KSPP/linux/issues/89

Signed-off-by: Azeem Shaikh <azeemshaikh38@gmail.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20230509014136.2095900-1-azeemshaikh38@gmail.com
2023-05-30 16:42:00 -07:00
..
befs.h
befs_fs_types.h
btree.c befs: Replace all non-returning strlcpy with strscpy 2023-05-30 16:42:00 -07:00
btree.h
ChangeLog fix a series of Documentation/ broken file name references 2018-06-15 18:10:01 -03:00
datastream.c
datastream.h
debug.c isystem: ship and use stdarg.h 2021-08-19 09:02:55 +09:00
endian.h
inode.c
inode.h
io.c
io.h
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
linuxvfs.c befs: Replace all non-returning strlcpy with strscpy 2023-05-30 16:42:00 -07:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
super.c
super.h