Skip to content

Commit 90f01af

Browse files
captain5050acmel
authored andcommitted
perf ui browser: Avoid SEGV on title
If the title is NULL then it can lead to a SEGV. Fixes: 769e6a1 ("perf ui browser: Don't save pointer to stack memory") Signed-off-by: Ian Rogers <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: James Clark <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Kan Liang <[email protected]> Cc: Leo Yan <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 187c219 commit 90f01af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/perf/ui/browser.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ void ui_browser__refresh_dimensions(struct ui_browser *browser)
203203
void ui_browser__handle_resize(struct ui_browser *browser)
204204
{
205205
ui__refresh_dimensions(false);
206-
ui_browser__show(browser, browser->title, ui_helpline__current);
206+
ui_browser__show(browser, browser->title ?: "", ui_helpline__current);
207207
ui_browser__refresh(browser);
208208
}
209209

0 commit comments

Comments
 (0)