From 7f7e8307f408ed0e8cc4ebc8c7be3127ba98a582 Mon Sep 17 00:00:00 2001 From: "jabber.developer2" Date: Tue, 31 Mar 2026 19:08:25 +0300 Subject: [PATCH] fix: potential null pointer deref in cmd_ac_complete (upstream 16080ab9) --- src/command/cmd_ac.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/command/cmd_ac.c b/src/command/cmd_ac.c index facbbd30..a4c09813 100644 --- a/src/command/cmd_ac.c +++ b/src/command/cmd_ac.c @@ -1684,6 +1684,9 @@ cmd_ac_complete_filepath(const char* const input, char* const startstr, gboolean } inpcp = strdup(inpcp); + if (!inpcp) { + return NULL; + } // strip quotes if (*inpcp == '"') {