Skip to content
Snippets Groups Projects
Commit ad4db661 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix CID 462292 - possible NULL pointer deref (if realloc fails)

parent 61a3ab2d
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
......@@ -523,7 +523,8 @@ int sbbs_t::exec_misc(csi_t* csi, const char *path)
else
*pp1=(char *)realloc(*pp1,strlen(*pp2)+1);
}
strcat(*pp1,*pp2);
if(*pp1 != NULL)
strcat(*pp1,*pp2);
return(0);
case FORMAT_STR_VAR:
pp=getstrvar(csi,*(int32_t *)csi->ip);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment