Newly introduced findings

List of Findings

Error: CPPCHECK_WARNING (CWE-401): [#def1]
numactl-2.0.19-build/numactl-2.0.19/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 + sizeof(unsigned long));
#  431|   			if (!mask)
#  432|   				return;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def2]
numactl-2.0.19-build/numactl-2.0.19/numastat.c: scope_hint: In function ‘show_info_from_system_file’
numactl-2.0.19-build/numactl-2.0.19/numastat.c:858:57: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&fname, "r")’
numactl-2.0.19-build/numactl-2.0.19/numastat.c: scope_hint: In function ‘show_info_from_system_file’
#  856|                           // example line from meminfo  file: "Node 3 Inactive:  210680 kB"
#  857|                           if (node_ix == 0) {
#  858|->                                 char *token = strdup(tok[0 + tok_offset]);
#  859|                                   if (token == NULL) {
#  860|                                           perror("malloc failed line: " STRINGIFY(__LINE__));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
numactl-2.0.19-build/numactl-2.0.19/numastat.c:858:57: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&fname, "r")’
numactl-2.0.19-build/numactl-2.0.19/numastat.c: scope_hint: In function ‘show_info_from_system_file’
#  856|                           // example line from meminfo  file: "Node 3 Inactive:  210680 kB"
#  857|                           if (node_ix == 0) {
#  858|->                                 char *token = strdup(tok[0 + tok_offset]);
#  859|                                   if (token == NULL) {
#  860|                                           perror("malloc failed line: " STRINGIFY(__LINE__));

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.18-2.fc41
diffbase-store-results-to/tmp/tmpn37wbnvf/numactl-2.0.18-2.fc41.tar.xz
diffbase-time-created2024-11-13 02:08:50
diffbase-time-finished2024-11-13 02:10:31
diffbase-toolcsmock
diffbase-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'
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.19-1.fc42
store-results-to/tmp/tmp4y7mnej6/numactl-2.0.19-1.fc42.tar.xz
time-created2024-11-13 02:10:53
time-finished2024-11-13 02:12:17
titleNewly introduced findings
toolcsmock
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'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9