mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-29 18:36:22 +00:00
fix: potential null pointer deref in cmd_ac_complete (upstream 16080ab9)
This commit is contained in:
@@ -1684,6 +1684,9 @@ cmd_ac_complete_filepath(const char* const input, char* const startstr, gboolean
|
|||||||
}
|
}
|
||||||
|
|
||||||
inpcp = strdup(inpcp);
|
inpcp = strdup(inpcp);
|
||||||
|
if (!inpcp) {
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
// strip quotes
|
// strip quotes
|
||||||
if (*inpcp == '"') {
|
if (*inpcp == '"') {
|
||||||
|
|||||||
Reference in New Issue
Block a user