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.
New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)
** CID 418250: Null pointer dereferences (FORWARD_NULL)
/src/conf/domain_conf.c: 22369 in virDomainDiskSourceFormat()
________________________________________________________________________________________________________
*** CID 418250: Null pointer dereferences (FORWARD_NULL)
/src/conf/domain_conf.c: 22369 in virDomainDiskSourceFormat()
22363 virBufferEscapeString(&attrBuf, "
volume='%s'", src->srcpool->volume);
22364 if (src->srcpool->mode)
22365 virBufferAsprintf(&attrBuf, " mode='%s'",
22366
virStorageSourcePoolModeTypeToString(src->srcpool->mode));
22367 }
22368
>> CID 418250: Null pointer dereferences (FORWARD_NULL)
>> Dereferencing null pointer "src->srcpool".
22369
if (flags & VIR_DOMAIN_DEF_FORMAT_VOLUME_TRANSLATED &&
22370 src->srcpool->actualtype != VIR_STORAGE_TYPE_NONE) {
22371 virBufferAsprintf(&attrBuf, "
actualType='%s'",
22372
virStorageTypeToString(src->srcpool->actualtype));
22373 actualType = virStorageSourceGetActualType(src);
22374 }
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit,
https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my...