Fixed findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/hardlink.c: scope_hint: In function ‘get_sorted_xattr_name_table’
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/hardlink.c:529:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc((long unsigned int)n, 8) + (long unsigned int)i * 8’
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/hardlink.c: scope_hint: In function ‘get_sorted_xattr_name_table’
util-linux-2.42.start-build/util-linux-2.42.start/include/optutils.h:8: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/hardlink.c:58: included_from: Included from here.
util-linux-2.42.start-build/util-linux-2.42.start/misc-utils/hardlink.c:55: included_from: Included from here.
#  527|   
#  528|   	for (i = 0; i < n; i++) {
#  529|-> 		table[i] = names;
#  530|   		names += strlen(names) + 1;
#  531|   	}

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.86.0
diffbase-analyzer-version-cppcheck2.17.1
diffbase-analyzer-version-gcc15.0.1
diffbase-analyzer-version-gcc-analyzer15.0.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-117.us-west-2.compute.internal
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-nameutil-linux-2.42.start-1.20250418161007252462.pr3529.273.g4b3976ca1
diffbase-store-results-to/tmp/tmpb798a399/util-linux-2.42.start-1.20250418161007252462.pr3529.273.g4b3976ca1.tar.xz
diffbase-time-created2025-04-18 16:27:44
diffbase-time-finished2025-04-18 16:35:39
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,shellcheck,unicontrol,clippy,gcc' '-o' '/tmp/tmpb798a399/util-linux-2.42.start-1.20250418161007252462.pr3529.273.g4b3976ca1.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpb798a399/util-linux-2.42.start-1.20250418161007252462.pr3529.273.g4b3976ca1.src.rpm'
diffbase-tool-versioncsmock-3.8.0-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-117.us-west-2.compute.internal
mock-configfedora-rawhide-x86_64
project-nameutil-linux-2.42.start-1.20250416112323033504.master.271.g75c7b312b
store-results-to/tmp/tmpep1ost9o/util-linux-2.42.start-1.20250416112323033504.master.271.g75c7b312b.tar.xz
time-created2025-04-18 16:18:10
time-finished2025-04-18 16:26:26
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,shellcheck,unicontrol,clippy,gcc' '-o' '/tmp/tmpep1ost9o/util-linux-2.42.start-1.20250416112323033504.master.271.g75c7b312b.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpep1ost9o/util-linux-2.42.start-1.20250416112323033504.master.271.g75c7b312b.src.rpm'
tool-versioncsmock-3.8.0-1.el9