openwrt-6.x/package
Mieczyslaw Nalewaj 225622e0f9 mt76: replace strlcpy with strscpy
Change deprecated function strlcpy to strscpy
for compatibility with kernel 6.12.

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().

Direct replacement is safe here since DEV_ASSIGN is only used by
TRACE macros and the return values are ignored.

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

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/18927
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2025-06-19 22:03:30 +02:00
..
base-files sysupgrade: create 10_disable_services w/ fixed modified time 2025-05-31 11:18:50 -06:00
boot sunxi: add support for OrangePi Zero 2W 2025-06-16 23:10:54 +02:00
devel perf: disable slang support 2025-06-16 23:22:59 +02:00
firmware linux-firmware: update to 20250613 2025-06-14 09:39:09 +02:00
kernel mt76: replace strlcpy with strscpy 2025-06-19 22:03:30 +02:00
libs gmp: fix compilation with GCC 15.1 2025-06-08 12:46:17 +02:00
network iproute2: point KERNEL_INCLUDE to toolchain headers 2025-06-18 10:46:35 +02:00
system apk-tools: update to git HEAD (2025-06-06) 2025-06-11 10:41:01 +02:00
utils ucode-mod-bpf: switch to ucv_resource_create_ex 2025-06-13 10:16:06 +02:00
Makefile package: rework contents of package index.json 2025-06-11 16:55:31 +02:00