aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/sancov_plugin.c
diff options
context:
space:
mode:
authorAhmed Salem <[email protected]>2025-05-29 15:43:13 +0000
committerRafael J. Wysocki <[email protected]>2025-05-29 19:19:10 +0000
commitd0b29661a95bbf804b6fe9bdff1d8927206c9f38 (patch)
tree43a983b482f8ecad7b0e7ce9053759ceef0a56b1 /scripts/gcc-plugins/sancov_plugin.c
parentACPICA: Update copyright year (diff)
downloadkernel-d0b29661a95bbf804b6fe9bdff1d8927206c9f38.tar.gz
kernel-d0b29661a95bbf804b6fe9bdff1d8927206c9f38.zip
ACPICA: Switch back to using strncpy() in acpi_ut_safe_strncpy()
ACPICA commit b90d0d65ec97ff8279ad826f4102e0d31c5f662a I mistakenly replaced strncpy() with memcpy() in commit ebf27765421c ("ACPICA: Replace strncpy() with memcpy()"), not realizing the entire context behind *why* strncpy() was used. In this safer implementation of strncpy(), it does not make sense to use memcpy() only to null-terminate strings passed to acpi_ut_safe_strncpy() one byte early. The consequences of doing so are understandably *bad*, as was evident by the kernel test bot reporting problems [1]. Fixes: ebf27765421c ("ACPICA: Replace strncpy() with memcpy()") Link: https://lore.kernel.org/all/[email protected] [1] Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-lkp/[email protected] Link: https://github.com/acpica/acpica/commit/b90d0d65 Signed-off-by: Ahmed Salem <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]> Link: https://patch.msgid.link/[email protected]
Diffstat (limited to 'scripts/gcc-plugins/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions