Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1]
util-linux-2.43.devel/sys-utils/setpriv.c:35: included_from: Included from here.
util-linux-2.43.devel/include/all-io.h: scope_hint: In function ‘do_seccomp_filter’
util-linux-2.43.devel/include/all-io.h:93:49: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(file, 0)’
util-linux-2.43.devel/include/all-io.h:106:23: note: in expansion of macro ‘ul_read_all’
util-linux-2.43.devel/include/all-io.h:106:23: note: in expansion of macro ‘ul_read_all’
util-linux-2.43.devel/include/all-io.h:21: included_from: Included from here.
util-linux-2.43.devel/include/all-io.h:106:23: note: in expansion of macro ‘ul_read_all’
util-linux-2.43.devel/sys-utils/setpriv.c:21: included_from: Included from here.
util-linux-2.43.devel/include/all-io.h:106:23: note: in expansion of macro ‘ul_read_all’
#   91|   }
#   92|   
#   93|-> #define ul_read_all(fd, buf, count)		__read_all(NULL, (fd), (buf), (count))
#   94|   #define ul_vfs_read_all(vfs, fd, buf, count)	__read_all((vfs), (fd), (buf), (count))
#   95|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
util-linux-2.43.devel/misc-utils/cal.c: scope_hint: In function ‘monthly’
util-linux-2.43.devel/misc-utils/cal.c:1096:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc((long unsigned int)*ctl.months_in_row, 208) + (sizetype)i * 208’
util-linux-2.43.devel/misc-utils/cal.c:76: included_from: Included from here.
# 1094|   
# 1095|   	for (i = 0; i < ctl->months_in_row - 1; i++)
# 1096|-> 		ms[i].next = &ms[i + 1];
# 1097|   
# 1098|   	rows = (ctl->num_months - 1) / ctl->months_in_row;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def3]
util-linux-2.43.devel/sys-utils/unshare.c: scope_hint: In function ‘setgroups_control.part.0’
util-linux-2.43.devel/sys-utils/unshare.c:125:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/proc/self/setgroups", 1)’
util-linux-2.43.devel/sys-utils/unshare.c:47: included_from: Included from here.
util-linux-2.43.devel/sys-utils/unshare.c:125:13: note: in expansion of macro ‘ul_write_all’
#  123|   	}
#  124|   
#  125|-> 	if (ul_write_all(fd, cmd, strlen(cmd)))
#  126|   		err(EXIT_FAILURE, _("write failed %s"), file);
#  127|   	close(fd);

Scan Properties

analyzer-version-clippy1.96.0
analyzer-version-cppcheck2.21.1
analyzer-version-gcc16.1.1
analyzer-version-gcc-analyzer16.1.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.96.0
diffbase-analyzer-version-cppcheck2.21.1
diffbase-analyzer-version-gcc16.1.1
diffbase-analyzer-version-gcc-analyzer16.1.1
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-118.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-nameutil-linux-2.43.devel-1.20260630105201274719.master.959.gf9baae05e
diffbase-store-results-to/tmp/tmpiuljcmuq/util-linux-2.43.devel-1.20260630105201274719.master.959.gf9baae05e.tar.xz
diffbase-time-created2026-06-30 14:24:46
diffbase-time-finished2026-06-30 14:36:55
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,shellcheck,gcc,clippy,cppcheck' '-o' '/tmp/tmpiuljcmuq/util-linux-2.43.devel-1.20260630105201274719.master.959.gf9baae05e.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpiuljcmuq/util-linux-2.43.devel-1.20260630105201274719.master.959.gf9baae05e.src.rpm'
diffbase-tool-versioncsmock-3.8.7.HEAD-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-118.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-nameutil-linux-2.43.devel-1.20260630135906393522.pr4460.966.g2fc4b3019
store-results-to/tmp/tmpj_nbr3bo/util-linux-2.43.devel-1.20260630135906393522.pr4460.966.g2fc4b3019.tar.xz
time-created2026-06-30 14:37:13
time-finished2026-06-30 14:47:55
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,shellcheck,gcc,clippy,cppcheck' '-o' '/tmp/tmpj_nbr3bo/util-linux-2.43.devel-1.20260630135906393522.pr4460.966.g2fc4b3019.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpj_nbr3bo/util-linux-2.43.devel-1.20260630135906393522.pr4460.966.g2fc4b3019.src.rpm'
tool-versioncsmock-3.8.7.HEAD-1.el9