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. 1 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 901295: Error handling issues (CHECKED_RETURN) /tests/testutils.c: 792 in virTestFakeEnvSubDirInit() _____________________________________________________________________________________________ *** CID 901295: Error handling issues (CHECKED_RETURN) /tests/testutils.c: 792 in virTestFakeEnvSubDirInit() 786 787 if (g_mkdir(envVal, 0777) < 0) { 788 fprintf(stderr, "Cannot create fake %s directory at %s", envName, envVal); 789 return -1; 790 } 791
CID 901295: Error handling issues (CHECKED_RETURN) Calling "g_setenv(envName, envVal, 1)" without checking return value. This library function may fail and return an error code.
792 g_setenv(envName, envVal, TRUE); 793 return 0; 794 } 795 796 char* 797 virTestFakeRootDirInit(void)
________________________________________________________________________________________________________ To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/libvirt?tab=overview
participants (1)
-
scan-admin@coverity.com