summaryrefslogtreecommitdiff
path: root/scripts/objdiff
diff options
context:
space:
mode:
authorTanushree Shah <tshah@linux.ibm.com>2026-07-26 00:19:49 +0530
committerNamhyung Kim <namhyung@kernel.org>2026-08-06 09:13:15 -0700
commit1121a7af1833f8b5723f1e32685b461614353d5d (patch)
tree5c218efebd6b4e118fec6230007c31051a8c1c1e /scripts/objdiff
parent6d421f609bba7b0b1a11741ec4b19feadfd27051 (diff)
downloadlinux-1121a7af1833f8b5723f1e32685b461614353d5d.tar.gz
linux-1121a7af1833f8b5723f1e32685b461614353d5d.zip
perf trace-event: Fix buffer overflow in read_string()
read_string() writes into buf[BUFSIZ] one byte at a time without checking 'size' against the buffer bound before each write. A string longer than BUFSIZ in the input overflows the stack buffer. Add a bounds check before each write to prevent overflow. On overflow the function returns NULL, matching its other error paths. Fixes: 9215545e99d8 ("perf: Convert perf tracing data into a tracing_data event") Signed-off-by: Tanushree Shah <tshah@linux.ibm.com> Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions