]> git.ipfire.org Git - thirdparty/linux.git/commit
EDAC/{skx_common,i10nm}: Use scnprintf() for safer buffer handling
authorWang Haoran <haoranwangsec@gmail.com>
Tue, 15 Jul 2025 13:17:00 +0000 (21:17 +0800)
committerTony Luck <tony.luck@intel.com>
Tue, 15 Jul 2025 17:06:58 +0000 (10:06 -0700)
commit35928bc38db69a2af26624e35a250c1e0f9a6a3f
treef447febc4d143e67988f3630683bcc699b2dd437
parentb1dc7f097b78eb8d25b071ead2384b07a549692b
EDAC/{skx_common,i10nm}: Use scnprintf() for safer buffer handling

snprintf() is fragile when its return value will be used to append
additional data to a buffer. Use scnprintf() instead.

Signed-off-by: Wang Haoran <haoranwangsec@gmail.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Tested-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Reviewed-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Link: https://lore.kernel.org/r/20250715131700.1092720-1-haoranwangsec@gmail.com
drivers/edac/i10nm_base.c
drivers/edac/skx_common.c