summaryrefslogtreecommitdiff
path: root/scripts/include/array_size.h
diff options
context:
space:
mode:
authorNitin Joshi <nitjoshi@gmail.com>2025-01-07 05:15:07 +0300
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2025-01-09 14:40:15 +0300
commit053c409951db96ca3043e568572b940a99d2464f (patch)
tree53307a08d6f80556944bb1d63417db79fec74f30 /scripts/include/array_size.h
parent595c4b67249330bed1c936f6e2c8e8784f9f08ca (diff)
downloadlinux-053c409951db96ca3043e568572b940a99d2464f.tar.xz
platform/x86: thinkpad-acpi: replace strcpy with strscpy
strcpy() performs no bounds checking on the destination buffer. This could result in linear overflows beyond the end of the buffer, leading to all kinds of misbehaviors.[1] [1]: https://www.kernel.org/doc/html/latest/process/deprecated.html#strcpy Signed-off-by: Nitin Joshi <nitjoshi@gmail.com> Reviewed-by: Mark Pearson <mpearson-lenovo@squebb.ca> Link: https://lore.kernel.org/r/20250107021507.4786-1-nitjoshi@gmail.com Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'scripts/include/array_size.h')
0 files changed, 0 insertions, 0 deletions