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. 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 417220: Error handling issues (CHECKED_RETURN) /examples/c/misc/event-test.c: 1096 in myNetworkEventMetadataChangeCallback() ________________________________________________________________________________________________________ *** CID 417220: Error handling issues (CHECKED_RETURN) /examples/c/misc/event-test.c: 1096 in myNetworkEventMetadataChangeCallback() 1090 int type, 1091 const char *nsuri, 1092 void *opaque G_GNUC_UNUSED) 1093 { 1094 const char *typestr = networkMetadataTypeToStr(type); 1095 char uuid[VIR_UUID_STRING_BUFLEN];
CID 417220: Error handling issues (CHECKED_RETURN) Calling "virNetworkGetUUIDString" without checking return value (as is done elsewhere 4 out of 5 times).
1096 virNetworkGetUUIDString(net, uuid); 1097 1098 printf("%s EVENT: Network: (%s) uuid: (%s) metadata type: (%s) nsuri: (%s)\n", 1099 __func__, virNetworkGetName(net), uuid, typestr, nsuri ? nsuri : "n/a"); 1100 1101 return 0;
________________________________________________________________________________________________________ To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0...
participants (1)
-
scan-admin@coverity.com