Task #141628 - added.err

back to task #141628
download
Error: GCC_ANALYZER_WARNING (CWE-775):
util-linux-2.43.devel/sys-utils/unshare.c: scope_hint: In function ‘map_ids_internal’
util-linux-2.43.devel/include/all-io.h:44:49: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 524545)’
util-linux-2.43.devel/sys-utils/unshare.c:670:13: note: in expansion of macro ‘ul_write_all’
util-linux-2.43.devel/sys-utils/unshare.c:45: included_from: Included from here.
util-linux-2.43.devel/sys-utils/unshare.c:670:13: note: in expansion of macro ‘ul_write_all’
util-linux-2.43.devel/sys-utils/unshare.c:670:13: note: in expansion of macro ‘ul_write_all’
#   42|   }
#   43|   
#   44|-> #define ul_write_all(fd, buf, count)		__write_all(NULL, (fd), (buf), (count))
#   45|   #define ul_vfs_write_all(vfs, fd, buf, count)	__write_all((vfs), (fd), (buf), (count))
#   46|   

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) + (long unsigned int)numdev * 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|