Task #935 - added.err

back to task #935
download
Error: GCC_ANALYZER_WARNING (CWE-476):
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):
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:
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|