Fixed defects

List of Defects

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
util-linux-2.41.devel-build/util-linux-2.41.devel/misc-utils/waitpid.c: scope_hint: In function ‘open_pidfds’
util-linux-2.41.devel-build/util-linux-2.41.devel/misc-utils/waitpid.c:64:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc(n_pids, 4)’
util-linux-2.41.devel-build/util-linux-2.41.devel/include/strutils.h:52:64: note: in definition of macro ‘strtopid_or_err’
util-linux-2.41.devel-build/util-linux-2.41.devel/misc-utils/waitpid.c:54:55: note: in expansion of macro ‘_’
#   62|   
#   63|   	for (size_t i = 0; i < n_pids; i++) {
#   64|-> 		pidfds[i] = pidfd_open(pids[i], 0);
#   65|   		if (pidfds[i] == -1) {
#   66|   			if (allow_exited && errno == ESRCH) {

Scan Properties

analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-cppcheck2.14.2
diffbase-analyzer-version-gcc14.1.1
diffbase-analyzer-version-gcc-analyzer14.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-enabled-pluginscppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-48.us-west-2.compute.internal
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-nameutil-linux-2.41.devel-1.20240803114042954360.pr3143.612.gefa9a08f7
diffbase-store-results-to/tmp/tmp3v_vbj6u/util-linux-2.41.devel-1.20240803114042954360.pr3143.612.gefa9a08f7.tar.xz
diffbase-time-created2024-08-03 12:05:43
diffbase-time-finished2024-08-03 12:13:35
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,shellcheck,cppcheck' '-o' '/tmp/tmp3v_vbj6u/util-linux-2.41.devel-1.20240803114042954360.pr3143.612.gefa9a08f7.tar.xz' '--gcc-analyze' '--cppcheck-add-flag=--check-level=exhaustive' '/tmp/tmp3v_vbj6u/util-linux-2.41.devel-1.20240803114042954360.pr3143.612.gefa9a08f7.src.rpm'
diffbase-tool-versioncsmock-3.6.0-1.el9
enabled-pluginscppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-48.us-west-2.compute.internal
mock-configfedora-rawhide-x86_64
project-nameutil-linux-2.41.devel-1.20240802104433056228.master.611.g640ec0523
store-results-to/tmp/tmpmbq85g64/util-linux-2.41.devel-1.20240802104433056228.master.611.g640ec0523.tar.xz
time-created2024-08-03 11:56:11
time-finished2024-08-03 12:05:17
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,shellcheck,cppcheck' '-o' '/tmp/tmpmbq85g64/util-linux-2.41.devel-1.20240802104433056228.master.611.g640ec0523.tar.xz' '--gcc-analyze' '--cppcheck-add-flag=--check-level=exhaustive' '/tmp/tmpmbq85g64/util-linux-2.41.devel-1.20240802104433056228.master.611.g640ec0523.src.rpm'
tool-versioncsmock-3.6.0-1.el9