summaryrefslogtreecommitdiff
path: root/include/linux/stringify.h
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2026-05-28 03:10:50 +0300
committerJohannes Berg <johannes.berg@intel.com>2026-05-28 10:50:42 +0300
commit23add15a3f66ace513e3b8b3f434d135d33b2e7b (patch)
treed18b8aace716887601ad535d46e1713d64f0bf80 /include/linux/stringify.h
parentf1a389fcc3f13a00c1202b0f63e073a2054184cc (diff)
downloadlinux-23add15a3f66ace513e3b8b3f434d135d33b2e7b.tar.xz
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>
Diffstat (limited to 'include/linux/stringify.h')
0 files changed, 0 insertions, 0 deletions