Task #139902 - added.err

back to task #139902
download
Error: GCC_ANALYZER_WARNING (CWE-775):
util-linux-2.43.devel/libmount/src/context_umount.c: scope_hint: In function 'exec_helper'
util-linux-2.43.devel/libmount/src/context_umount.c:692:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'errfd[0]'
util-linux-2.43.devel/include/c.h:23: included_from: Included from here.
util-linux-2.43.devel/include/path.h:14: included_from: Included from here.
util-linux-2.43.devel/include/sysfs.h:22: included_from: Included from here.
util-linux-2.43.devel/include/loopdev.h:9: included_from: Included from here.
util-linux-2.43.devel/libmount/src/context_umount.c:23: included_from: Included from here.
util-linux-2.43.devel/libmount/src/mountP.h:32: included_from: Included from here.
util-linux-2.43.devel/libmount/src/context_umount.c:25: included_from: Included from here.
util-linux-2.43.devel/libmount/src/mountP.h:65:33: note: in expansion of macro '__UL_DBG_FLUSH'
util-linux-2.43.devel/libmount/src/context_umount.c:707:9: note: in expansion of macro 'DBG_FLUSH'
util-linux-2.43.devel/include/debug.h:82:9: note: in expansion of macro '__UL_DBG_CALL'
util-linux-2.43.devel/libmount/src/mountP.h:63:33: note: in expansion of macro '__UL_DBG_OBJ'
util-linux-2.43.devel/libmount/src/context_umount.c:805:17: note: in expansion of macro 'DBG_OBJ'
#  690|   		DBG_OBJ(CXT, cxt, ul_debug("fake mode: does not execute helper"));
#  691|   		cxt->helper_exec_status = rc = 0;
#  692|-> 		return rc;
#  693|   	}
#  694|   

Error: GCC_ANALYZER_WARNING (CWE-775):
util-linux-2.43.devel/libmount/src/context_umount.c:692:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'errfd[1]'
util-linux-2.43.devel/libmount/src/mountP.h:65:33: note: in expansion of macro '__UL_DBG_FLUSH'
util-linux-2.43.devel/libmount/src/context_umount.c:707:9: note: in expansion of macro 'DBG_FLUSH'
util-linux-2.43.devel/include/debug.h:82:9: note: in expansion of macro '__UL_DBG_CALL'
util-linux-2.43.devel/libmount/src/mountP.h:63:33: note: in expansion of macro '__UL_DBG_OBJ'
util-linux-2.43.devel/libmount/src/context_umount.c:805:17: note: in expansion of macro 'DBG_OBJ'
#  690|   		DBG_OBJ(CXT, cxt, ul_debug("fake mode: does not execute helper"));
#  691|   		cxt->helper_exec_status = rc = 0;
#  692|-> 		return rc;
#  693|   	}
#  694|   

Error: GCC_ANALYZER_WARNING (CWE-476):
util-linux-2.43.devel/misc-utils/blkid.c: scope_hint: In function ‘main’
util-linux-2.43.devel/misc-utils/blkid.c:886:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc((long unsigned int)(argc - optind), 8)’
util-linux-2.43.devel/misc-utils/blkid.c:49: included_from: Included from here.
util-linux-2.43.devel/misc-utils/blkid.c:18: included_from: Included from here.
#  884|   				continue;
#  885|   
#  886|-> 			devices[numdev++] = dev;
#  887|   		}
#  888|