summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2026-07-22 21:59:45 -0700
committerNamhyung Kim <namhyung@kernel.org>2026-07-27 17:13:08 -0700
commit08b0cd02e91d4602e8224c301b47c9d670a04c0d (patch)
treee3e40487bedc3b1b29a43e4c3484e6a74691abec /tools/perf/scripts/python/bin
parentad7620a2b9455874884234b0cdae62e1be0ea1f3 (diff)
perf ui hists: Guard against NULL hist_entry in add_script_opt()
In add_script_opt(), when the browser selection has no valid hist_entry (for example, when all entries are filtered out or the trace is empty), hist_browser__selected_entry() returns NULL. Add an explicit check for he == NULL prior to accessing he->time to avoid a potential NULL pointer dereference crash. Assisted-by: Antigravity:gemini-3.5-flash Signed-off-by: Ian Rogers <irogers@google.com> Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions