Files
linux/net/wireless
Thorsten Blum 23add15a3f wifi: cfg80211: use strscpy in cfg80211_wext_giwname
strcpy() has been deprecated [1] because it performs no bounds checking
on the destination buffer, which can lead to buffer overflows.

While the current code works correctly, replace strcpy() with the safer
strscpy() to follow secure coding best practices.

[1] https://www.kernel.org/doc/html/latest/process/deprecated.html#strcpy

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20260528001049.1394078-2-thorsten.blum@linux.dev
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2026-05-28 09:50:42 +02:00
..
2023-09-11 11:27:23 +02:00
2023-09-11 11:27:23 +02:00