diff options
| author | David Laight <david.laight.linux@gmail.com> | 2026-06-08 10:55:21 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-07-10 15:13:38 +0200 |
| commit | 057df423bf4747091cf942af57307627e941e1fb (patch) | |
| tree | defce5b5b945c4730af10faed45a627b0e7a4e4c /tools/perf/scripts/python/stackcollapse.py | |
| parent | 0f0ea552cd215a01baca1e99eec02e2f8df0c897 (diff) | |
usb_string_copy: Use kzalloc() to avoid leaking old data
If the string is read while being updated (which is why the copy is done
in place) and the new string is longer than the old one, then the reader
can read memory that isnt part of either string.
Use memcpy() to copy the known length string instead of strcpy.
Signed-off-by: David Laight <david.laight.linux@gmail.com>
Link: https://patch.msgid.link/20260608095523.2606-37-david.laight.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
