New Defects reported by Coverity Scan for libvirt

Hi, Please find the latest report on new defect(s) introduced to libvirt found with Coverity Scan. 2 new defect(s) introduced to libvirt found with Coverity Scan. 2 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan. New defect(s) Reported-by: Coverity Scan Showing 2 of 2 defect(s) ** CID 459182: Null pointer dereferences (NULL_RETURNS) /tools/vsh.c: 1429 in vshCmdNewHelp() ________________________________________________________________________________________________________ *** CID 459182: Null pointer dereferences (NULL_RETURNS) /tools/vsh.c: 1429 in vshCmdNewHelp() 1423 { 1424 vshCmd *c = g_new0(vshCmd, 1); 1425 1426 c->def = vshCmddefSearch("help"); 1427 1428 c->opts = g_new0(vshCmdOpt, 2);
CID 459182: Null pointer dereferences (NULL_RETURNS) Dereferencing "c->def", which is known to be "NULL".
1429 c->opts->def = c->def->opts; 1430 c->opts->data = g_strdup(name); 1431 c->opts->present = true; 1432 1433 return c; 1434 }
** CID 459181: Null pointer dereferences (NULL_RETURNS) /tools/virsh-domain.c: 9681 in cmdQemuMonitorCommandQMPWrap() ________________________________________________________________________________________________________ *** CID 459181: Null pointer dereferences (NULL_RETURNS) /tools/virsh-domain.c: 9681 in cmdQemuMonitorCommandQMPWrap() 9675 return g_strdup(fullcmd); 9676 9677 /* we try to wrap the command and possible arguments into a JSON object, if 9678 * we as fall back we pass through what we've got from the user */ 9679 9680 opt = vshCommandOptArgv(cmd, "cmd");
CID 459181: Null pointer dereferences (NULL_RETURNS) Dereferencing "opt", which is known to be "NULL".
9681 commandname = *opt; 9682 opt++; 9683 9684 /* now we process arguments similarly to how we've dealt with the full command */ 9685 if ((fullargs = g_strjoinv(" ", (GStrv) opt)) && 9686 !(fullargsjson = virJSONValueFromString(fullargs))) {
________________________________________________________________________________________________________ To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=u001.AxU2LYlgjL6eX23u9ErQy-2B...
participants (1)
-
scan-admin@coverity.com