Fixed findings

List of Findings

Error: CPPCHECK_WARNING (CWE-401): [#def1]
numactl-2.0.18-build/numactl-2.0.18/libnuma.c:430: error[memleakOnRealloc]: Common realloc mistake: 'mask' nulled but not freed upon failure
#  428|   		do {
#  429|   			nodemask_sz <<= 1;
#  430|-> 			mask = realloc(mask, nodemask_sz / 8);
#  431|   			if (!mask)
#  432|   				return;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def2]
numactl-2.0.18-build/numactl-2.0.18/numastat.c: scope_hint: In function ‘show_info_from_system_file’
numactl-2.0.18-build/numactl-2.0.18/numastat.c:911:64: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘tok[<unknown>]’
numactl-2.0.18-build/numactl-2.0.18/numastat.c: scope_hint: In function ‘show_info_from_system_file’
numactl-2.0.18-build/numactl-2.0.18/numastat.c: scope_hint: In function ‘show_info_from_system_file’
numactl-2.0.18-build/numactl-2.0.18/numastat.c: scope_hint: In function ‘show_info_from_system_file’
#  909|                                   printf("Token %s not in hash table.\n", tok[0 + tok_offset]);
#  910|                           } else {
#  911|->                                 double value = (double)atol(tok[1 + tok_offset]);
#  912|                                   if (!compatibility_mode) {
#  913|                                           double multiplier = 1.0;

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.82.0
diffbase-analyzer-version-cppcheck2.16.0
diffbase-analyzer-version-gcc14.2.1
diffbase-analyzer-version-gcc-analyzer15.0.0
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-206.us-west-2.compute.internal
diffbase-mock-configfedora-rawhide-gcc-latest-x86_64
diffbase-project-namenumactl-2.0.19-1.fc42
diffbase-store-results-to/tmp/tmp4y7mnej6/numactl-2.0.19-1.fc42.tar.xz
diffbase-time-created2024-11-13 02:10:53
diffbase-time-finished2024-11-13 02:12:17
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp4y7mnej6/numactl-2.0.19-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp4y7mnej6/numactl-2.0.19-1.fc42.src.rpm'
diffbase-tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-206.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namenumactl-2.0.18-2.fc41
store-results-to/tmp/tmpn37wbnvf/numactl-2.0.18-2.fc41.tar.xz
time-created2024-11-13 02:08:50
time-finished2024-11-13 02:10:31
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpn37wbnvf/numactl-2.0.18-2.fc41.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpn37wbnvf/numactl-2.0.18-2.fc41.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9