summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorShixiong Ou <oushixiong@kylinos.cn>2026-07-29 16:45:17 +0800
committerJocelyn Falempe <jfalempe@redhat.com>2026-08-13 15:47:50 +0200
commit60baa179ed1333535f6e2da4133511db55278ee4 (patch)
treee9e9469dc9dc9af56822a75b7c6bd9598b3c53f5 /tools/perf/scripts/python/bin/stackcollapse-record
parent921ac6cb066d09b5765db892d0db0ffaffa98767 (diff)
drm/log: Fix out-of-bounds read on empty message length
drm_log_draw_kmsg_record() accesses s[len - 1] to strip the trailing newline, but len is unsigned int. If len is 0, the subtraction wraps to UINT_MAX, causing an out-of-bounds read. Add an early return when len is 0. Fixes: 25e2c2a3eff5 ("drm/log: Color the timestamp, to improve readability") Signed-off-by: Shixiong Ou <oushixiong@kylinos.cn> Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com> Link: https://patch.msgid.link/20260729084520.688087-1-oushixiong1025@163.com Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions