aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/export-to-postgresql-report
diff options
context:
space:
mode:
authorAzeem Shaikh <[email protected]>2023-06-15 18:05:04 +0000
committerGreg Kroah-Hartman <[email protected]>2023-06-23 09:54:32 +0200
commit61d52f64ac58f917e47175cbc5bb54ee9a672209 (patch)
tree8b03ac4e43231dfff39122f291482d7c7774d9fe /tools/perf/scripts/python/bin/export-to-postgresql-report
parentc0aabed9cabe057309779a9e26fe86a113d24dad (diff)
usbip: usbip_host: Replace strlcpy with strscpy
strlcpy() reads the entire source buffer first. This read may exceed the destination size limit. This is both inefficient and can lead to linear read overflows if a source string is not NUL-terminated [1]. In an effort to remove strlcpy() completely [2], replace strlcpy() here with strscpy(). Direct replacement is safe here since return value of -errno is used to check for truncation instead of sizeof(dest). [1] https://www.kernel.org/doc/html/latest/process/deprecated.html#strlcpy [2] https://github.com/KSPP/linux/issues/89 Signed-off-by: Azeem Shaikh <[email protected]> Reviewed-by: Kees Cook <[email protected]> Acked-by: Shuah Khan <[email protected]> Message-ID: <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions