linux/include
Azeem Shaikh ba7bdec3cb net: Replace 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 [1].
In an effort to remove strlcpy() completely [2], 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>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-07-04 19:40:16 +01:00
..
acpi
asm-generic
clocksource
crypto Networking changes for 6.5. 2023-06-28 16:43:10 -07:00
drm
dt-bindings
keys
kunit
kvm
linux Networking changes for 6.5. 2023-06-28 16:43:10 -07:00
math-emu
media
memory
misc
net Bluetooth: ISO: Rework sync_interval to be sync_factor 2023-06-29 10:52:18 -07:00
pcmcia
ras
rdma
rv
scsi
soc net: mscc: ocelot: don't keep PTP configuration of all ports in single structure 2023-06-29 12:40:27 +02:00
sound
target
trace net: Replace strlcpy with strscpy 2023-07-04 19:40:16 +01:00
uapi Networking changes for 6.5. 2023-06-28 16:43:10 -07:00
ufs
vdso
video
xen