From a27d092d518102f386f43014de0bdf6d87b7e2b4 Mon Sep 17 00:00:00 2001 From: WillyJL Date: Wed, 23 Jul 2025 00:01:00 +0200 Subject: [PATCH] Fix use after free crash --- applications/services/cli/cli_vcp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/applications/services/cli/cli_vcp.c b/applications/services/cli/cli_vcp.c index 9dcd7178a..9db1bec43 100644 --- a/applications/services/cli/cli_vcp.c +++ b/applications/services/cli/cli_vcp.c @@ -217,6 +217,7 @@ static void cli_vcp_internal_event_happened(FuriEventLoopObject* object, void* c // disconnect our side of the pipe pipe_detach_from_event_loop(cli_vcp->own_pipe); pipe_free(cli_vcp->own_pipe); + cli_vcp->own_pipe = NULL; // wait for shell to stop cli_shell_join(cli_vcp->shell);