Newly introduced defects

List of Defects

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
numactl-2.0.18-build/numactl-2.0.18/libnuma.c: scope_hint: In function ‘numa_find_first’
numactl-2.0.18-build/numactl-2.0.18/libnuma.c:137:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘mask’
numactl-2.0.18-build/numactl-2.0.18/libnuma.c:27: included_from: Included from here.
#  135|   {
#  136|   	int i;
#  137|-> 	for (i = 0; i < mask->size; i++)
#  138|   		if (numa_bitmask_isbitset(mask, i))
#  139|   			return i;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
numactl-2.0.18-build/numactl-2.0.18/libnuma.c: scope_hint: In function ‘numa_has_home_node’
numactl-2.0.18-build/numactl-2.0.18/libnuma.c:699:16: warning[-Wanalyzer-malloc-leak]: leak of ‘numa_get_mems_allowed()’
#  697|   numa_num_possible_nodes(void)
#  698|   {
#  699|-> 	return nodemask_sz;
#  700|   }
#  701|   

Error: CLANG_WARNING: [#def3]
numactl-2.0.18-build/numactl-2.0.18/libnuma.c:2268:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'tmp'
# 2266|   
# 2267|   out:
# 2268|-> 	return has_home_node;
# 2269|   }
# 2270|   

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-clang18.1.7
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-pluginsclang, cppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-122.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namenumactl-2.0.16-5.fc40
diffbase-store-results-to/tmp/tmpcww1115q/numactl-2.0.16-5.fc40.tar.xz
diffbase-time-created2024-07-03 16:28:28
diffbase-time-finished2024-07-03 16:29:59
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpcww1115q/numactl-2.0.16-5.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpcww1115q/numactl-2.0.16-5.fc40.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-122.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namenumactl-2.0.18-1.fc41
store-results-to/tmp/tmplpetg5h9/numactl-2.0.18-1.fc41.tar.xz
time-created2024-07-03 16:30:10
time-finished2024-07-03 16:31:18
titleNewly introduced defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmplpetg5h9/numactl-2.0.18-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmplpetg5h9/numactl-2.0.18-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9