diff options
author | Matthieu Baerts (NGI0) <[email protected]> | 2024-05-13 18:13:29 -0700 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2024-05-13 18:29:23 -0700 |
commit | 5eae7a8202f368a77ff0148729a9fa73cc24033a (patch) | |
tree | f33cc109811e609407169dc5deb3cd0054fb1d20 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 73c900aa3660dae2050af456d1031d098ab4cb1d (diff) |
mptcp: prefer strscpy over strcpy
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. The safe replacement is strscpy() [1].
This is in preparation of a possible future step where all strcpy() uses
will be removed in favour of strscpy() [2].
This fixes CheckPatch warnings:
WARNING: Prefer strscpy over strcpy
Link: https://www.kernel.org/doc/html/latest/process/deprecated.html#strcpy [1]
Link: https://github.com/KSPP/linux/issues/88 [2]
Reviewed-by: Geliang Tang <[email protected]>
Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions