summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorHrishikesh Suresh <hrishikesh123s@gmail.com>2025-11-20 07:16:10 +0300
committerNamhyung Kim <namhyung@kernel.org>2025-11-20 22:13:04 +0300
commit9bef5cead63d5d8fad3ba7ebaf26f3f4ee172c82 (patch)
tree805117f19ec20f2b786d5d19e30386f47746025b /tools/lib/python
parent3ce77655f026a316442f23d47da6c5cd89c1fdac (diff)
downloadlinux-9bef5cead63d5d8fad3ba7ebaf26f3f4ee172c82.tar.xz
perf: replace strcpy() with strncpy() in util/jitdump.c
Usage of strcpy() can lead to buffer overflows. Therefore, it has been replaced with strncpy(). The output file path is provided as a parameter and might be restricted by command-line by default. But this defensive patch will prevent any potential overflow, making the code more robust against future changes in input handling. Testing: - ran perf test from tools/perf and did not observe any regression with the earlier code Signed-off-by: Hrishikesh Suresh <hrishikesh123s@gmail.com> Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions