Hi,
Please find the latest report on new defect(s) introduced to libvirt found with Coverity
Scan.
1 new defect(s) introduced to libvirt found with Coverity Scan.
4 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 1 of 1 defect(s)
** CID 469303: Error handling issues (CHECKED_RETURN)
/src/util/virjson.c: 1440 in virJSONValueFromJsonC()
________________________________________________________________________________________________________
*** CID 469303: Error handling issues (CHECKED_RETURN)
/src/util/virjson.c: 1440 in virJSONValueFromJsonC()
1434 json_object *val = NULL;
1435
1436 val = json_object_array_get_idx(jobj, i);
1437
1438 cur = virJSONValueFromJsonC(val);
1439
>> CID 469303: Error handling issues (CHECKED_RETURN)
>> Calling "virJSONValueArrayAppend" without checking return value (as
is done elsewhere 33 out of 35 times).
1440
virJSONValueArrayAppend(ret, &cur);
1441 }
1442 break;
1443 }
1444 case json_type_string:
1445 ret = virJSONValueNewString(g_strdup(json_object_get_string(jobj)));
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit,
https://u15810271.ct.sendgrid.net/ls/click?upn=u001.AxU2LYlgjL6eX23u9ErQy...