1
mirror of https://github.com/flipperdevices/flipperzero-firmware.git synced 2025-12-13 05:19:50 +04:00

Fix NULL dereference in CLI completions (#4184)

* cli_completions: fix null dereference

* cli: mark free_blocks as parallel safe

* codeowners: add me to co-owners of cli
This commit is contained in:
Anna Antonenko
2025-04-12 02:38:28 +04:00
committed by GitHub
parent 096c088bf1
commit e1bccf66b3
3 changed files with 5 additions and 2 deletions

View File

@@ -265,6 +265,7 @@ void cli_shell_completions_render(
}
} else if(action == CliShellCompletionsActionSelectNoClose) {
if(!CommandCompletions_size(completions->variants)) return;
// insert selection into prompt
CliShellCompletionSegment segment = cli_shell_completions_segment(completions);
FuriString* input = cli_shell_line_get_selected(completions->line);