device-mapper-multipath-0.11.1-1.fc43 - findings not occurring in device-mapper-multipath-0.11.1-1.fc43

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1]
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/dasd.c:89:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd_dasd’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/dasd.c:69:1: enter_function: entry to ‘read_dasd_pt’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/dasd.c:88:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/dasd.c:92:13: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/dasd.c:92:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/dasd.c:96:51: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/dasd.c:98:12: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/dasd.c:102:29: branch_true: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/dasd.c:102:20: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/dasd.c:106:17: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/dasd.c:108:20: branch_false: following ‘false’ branch (when ‘__major == 94’)...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/dasd.c:119:17: call_function: inlined call to ‘gnu_dev_minor’ from ‘read_dasd_pt’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/dasd.c:121:32: acquire_resource: opened here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/dasd.c:121:20: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/dasd.c:134:20: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/dasd.c:134:20: branch_true: following ‘true’ branch (when ‘fd_dasd < 0’)...
 branch_true: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/dasd.c:89:24: danger: ‘fd_dasd’ leaks here; was opened at [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
#   87|   
#   88|   	if (fd < 0) {
#   89|-> 		return -1;
#   90|   	}
#   91|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def2]
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/kpartx.c:417:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(device, 16384)’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/kpartx.c:231:1: enter_function: entry to ‘main’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/kpartx.c:248:9: call_function: calling ‘initpts’ from ‘main’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/kpartx.c:248:9: return_function: returning to ‘main’ from ‘initpts’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/kpartx.c:272:19: branch_false: following ‘false’ branch (when ‘argc > 1’)...
 branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/kpartx.c:277:16: branch_true: following ‘true’ branch (when ‘arg != -1’)...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/kpartx.c:278:17: branch_true: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/kpartx.c:277:16: branch_false: following ‘false’ branch (when ‘arg == -1’)...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/kpartx.c:321:13: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/kpartx.c:332:12: branch_false: following ‘false’ branch (when ‘hotplug == 0’)...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/kpartx.c:334:30: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/kpartx.c:344:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/kpartx.c:349:13: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/kpartx.c:349:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/kpartx.c:376:17: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/kpartx.c:376:17: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/kpartx.c:381:15: call_function: inlined call to ‘find_devname_offset’ from ‘main’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/kpartx.c:383:12: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/kpartx.c:384:58: branch_true: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/kpartx.c:385:20: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/kpartx.c:386:32: branch_true: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/kpartx.c:395:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/kpartx.c:398:12: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/kpartx.c:398:12: branch_false: following ‘false’ branch (when ‘mapname’ is non-NULL)...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/kpartx.c:401:12: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/kpartx.c:401:12: branch_false: following ‘false’ branch (when ‘delim’ is non-NULL)...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/kpartx.c:407:14: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/kpartx.c:407:14: acquire_resource: opened here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/kpartx.c:409:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/kpartx.c:417:12: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/kpartx/kpartx.c:417:12: danger: ‘open(device, 16384)’ leaks here; was opened at [(79)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/78)
#  415|   	int r = 0;
#  416|   
#  417|-> 	if (what == DELETE) {
#  418|   		r = dm_remove_partmaps(mapname, uuid, buf.st_rdev,
#  419|   				       verbose);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmpathpersist/mpath_persist_int.c:635:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmpathpersist/mpath_persist_int.c:641:5: enter_function: entry to ‘do_mpath_persistent_reserve_out’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmpathpersist/mpath_persist_int.c:650:15: call_function: calling ‘mpath_get_map’ from ‘do_mpath_persistent_reserve_out’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmpathpersist/mpath_persist_int.c:650:15: return_function: returning to ‘do_mpath_persistent_reserve_out’ from ‘mpath_get_map’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmpathpersist/mpath_persist_int.c:651:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmpathpersist/mpath_persist_int.c:654:16: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmpathpersist/mpath_persist_int.c:702:23: call_function: calling ‘mpath_prout_rel’ from ‘do_mpath_persistent_reserve_out’
#  633|   	free(pptr);
#  634|   out1:
#  635|-> 	free (pamp);
#  636|   out:
#  637|   	free (pr_buff);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def4]
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmpathutil/parser.c:139:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘keyword’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmpathutil/parser.c:129:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmpathutil/parser.c:132:12: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmpathutil/parser.c:137:21: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmpathutil/parser.c:138:27: branch_true: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmpathutil/parser.c:138:27: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmpathutil/parser.c:138:27: branch_true: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmpathutil/parser.c:137:21: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmpathutil/parser.c:138:27: branch_true: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmpathutil/parser.c:139:29: danger: dereference of NULL ‘keyword’
#  137|   	for (i = 0; i < VECTOR_SIZE(v); i++) {
#  138|   		keyword = VECTOR_SLOT(v, i);
#  139|-> 		if ((strlen(keyword->string) == len) &&
#  140|   		    !strcmp(keyword->string, name))
#  141|   			return keyword;

Error: GCC_ANALYZER_WARNING (CWE-122): [#def5]
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmpathutil/vector.c:86:34: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmpathutil/vector.c:78:1: enter_function: entry to ‘vector_insert_slot’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmpathutil/vector.c:82:14: call_function: calling ‘vector_alloc_slot’ from ‘vector_insert_slot’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmpathutil/vector.c:82:14: return_function: returning to ‘vector_insert_slot’ from ‘vector_alloc_slot’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmpathutil/vector.c:82:12: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmpathutil/vector.c:85:18: branch_true: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmpathutil/vector.c:85:18: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmpathutil/vector.c:86:34: danger: read of 8 bytes at offset ‘(long unsigned int)(*v.allocated + -2) * 8’ exceeds the buffer
#   84|   
#   85|   	for (i = VECTOR_SIZE(v) - 2; i >= slot; i--)
#   86|-> 		v->slot[i + 1] = v->slot[i];
#   87|   
#   88|   	v->slot[slot] = value;

Error: GCC_ANALYZER_WARNING (CWE-122): [#def6]
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmpathutil/vector.c:128:28: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmpathutil/vector.c:137:1: enter_function: entry to ‘vector_repack’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmpathutil/vector.c:141:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmpathutil/vector.c:144:21: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmpathutil/vector.c:145:20: branch_true: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmpathutil/vector.c:145:20: branch_false: following ‘false’ branch (when ‘i <= 0’)...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmpathutil/vector.c:144:41: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmpathutil/vector.c:144:21: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmpathutil/vector.c:145:20: branch_true: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmpathutil/vector.c:146:25: call_function: calling ‘vector_del_slot’ from ‘vector_repack’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmpathutil/vector.c:146:25: return_function: returning to ‘vector_repack’ from ‘vector_del_slot’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmpathutil/vector.c:144:21: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmpathutil/vector.c:145:20: branch_true: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmpathutil/vector.c:145:20: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmpathutil/vector.c:146:25: call_function: calling ‘vector_del_slot’ from ‘vector_repack’
#  126|   		void *new_slot;
#  127|   
#  128|-> 		new_slot = realloc(v->slot, sizeof (void *) * v->allocated);
#  129|   		if (!new_slot)
#  130|   			v->allocated += VECTOR_DEFAULT_SIZE;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def7]
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/alias.c:201:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘bdg’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/alias.c:708:12: enter_function: entry to ‘_check_bindings_file’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/alias.c:731:16: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/alias.c:735:20: branch_true: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/alias.c:735:21: call_function: calling ‘read_binding’ from ‘_check_bindings_file’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/alias.c:735:21: return_function: returning to ‘_check_bindings_file’ from ‘read_binding’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/alias.c:735:20: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/alias.c:739:28: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/alias.c:748:25: call_function: calling ‘add_binding’ from ‘_check_bindings_file’
#  199|   	/* Check for exact match */
#  200|   	if (i >= 0 && cmp == 0)
#  201|-> 		return strcmp(bdg->wwid, wwid) ?
#  202|   			BINDING_CONFLICT : BINDING_EXISTS;
#  203|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def8]
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/alias.c:201:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘bdg’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/alias.c:855:5: enter_function: entry to ‘check_alias_settings’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/alias.c:862:19: branch_true: following ‘true’ branch...
 branch_true: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/alias.c:862:19: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/alias.c:862:19: branch_true: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/alias.c:870:9: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/alias.c:871:20: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/alias.c:877:56: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/alias.c:877:21: call_function: calling ‘add_binding’ from ‘check_alias_settings’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/alias.c:877:21: return_function: returning to ‘check_alias_settings’ from ‘add_binding’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/alias.c:877:20: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/alias.c:870:9: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/alias.c:870:9: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/alias.c:871:20: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/alias.c:877:56: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/alias.c:877:21: call_function: calling ‘add_binding’ from ‘check_alias_settings’
#  199|   	/* Check for exact match */
#  200|   	if (i >= 0 && cmp == 0)
#  201|-> 		return strcmp(bdg->wwid, wwid) ?
#  202|   			BINDING_CONFLICT : BINDING_EXISTS;
#  203|   

Error: GCC_ANALYZER_WARNING (CWE-465): [#def9]
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:31:12: warning[-Wanalyzer-deref-before-check]: check of ‘p’ for NULL after already dereferencing it
#   29|   	*dst = realloc(*dst, len);
#   30|   
#   31|-> 	if (!*dst) {
#   32|   		free(p);
#   33|   		return 1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def10]
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:436:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pgp’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:345:5: enter_function: entry to ‘disassemble_status’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:368:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:371:28: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:393:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:396:30: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:407:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:410:18: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:413:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:419:14: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:421:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:424:21: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:425:23: branch_true: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:425:23: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:429:22: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:431:20: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:434:25: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:436:25: danger: dereference of NULL ‘pgp’
#  434|   		switch (*word) {
#  435|   		case 'D':
#  436|-> 			pgp->status = PGSTATE_DISABLED;
#  437|   			break;
#  438|   		case 'A':

Error: GCC_ANALYZER_WARNING (CWE-476): [#def11]
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:439:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pgp’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:345:5: enter_function: entry to ‘disassemble_status’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:368:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:371:28: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:393:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:396:30: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:407:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:410:18: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:413:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:419:14: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:421:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:424:21: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:425:23: branch_true: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:425:23: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:429:22: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:431:20: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:434:25: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:439:25: danger: dereference of NULL ‘pgp’
#  437|   			break;
#  438|   		case 'A':
#  439|-> 			pgp->status = PGSTATE_ACTIVE;
#  440|   			break;
#  441|   		case 'E':

Error: GCC_ANALYZER_WARNING (CWE-476): [#def12]
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:442:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pgp’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:345:5: enter_function: entry to ‘disassemble_status’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:368:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:371:28: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:393:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:396:30: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:407:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:410:18: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:413:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:419:14: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:421:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:424:21: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:425:23: branch_true: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:425:23: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:429:22: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:431:20: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:434:25: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:442:25: danger: dereference of NULL ‘pgp’
#  440|   			break;
#  441|   		case 'E':
#  442|-> 			pgp->status = PGSTATE_ENABLED;
#  443|   			break;
#  444|   		default:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def13]
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:445:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pgp’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:345:5: enter_function: entry to ‘disassemble_status’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:368:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:371:28: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:393:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:396:30: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:407:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:410:18: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:413:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:419:14: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:421:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:424:21: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:425:23: branch_true: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:425:23: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:429:22: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:431:20: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:434:25: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:445:25: danger: dereference of NULL ‘pgp’
#  443|   			break;
#  444|   		default:
#  445|-> 			pgp->status = PGSTATE_UNDEF;
#  446|   			break;
#  447|   		}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def14]
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:501:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pp’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:345:5: enter_function: entry to ‘disassemble_status’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:368:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:371:28: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:393:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:396:30: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:407:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:410:18: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:413:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:419:14: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:421:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:424:21: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:425:23: branch_true: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:425:23: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:431:20: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:434:25: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:455:20: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:458:31: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:467:20: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:470:29: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:475:20: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:478:31: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:481:20: branch_false: following ‘false’ branch...
 branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:484:29: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:485:30: branch_true: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:485:30: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:496:28: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:499:33: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:515:28: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:518:41: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:484:29: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:485:30: branch_true: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:496:28: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:499:33: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:501:33: danger: dereference of NULL ‘pp’
#  499|   			switch (*word) {
#  500|   			case 'F':
#  501|-> 				pp->dmstate = PSTATE_FAILED;
#  502|   				break;
#  503|   			case 'A':

Error: GCC_ANALYZER_WARNING (CWE-476): [#def15]
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:504:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pp’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:345:5: enter_function: entry to ‘disassemble_status’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:368:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:371:28: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:393:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:396:30: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:407:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:410:18: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:413:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:419:14: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:421:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:424:21: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:425:23: branch_true: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:425:23: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:431:20: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:434:25: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:455:20: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:458:31: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:467:20: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:470:29: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:475:20: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:478:31: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:481:20: branch_false: following ‘false’ branch...
 branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:484:29: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:485:30: branch_true: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:485:30: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:496:28: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:499:33: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:515:28: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:518:41: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:484:29: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:485:30: branch_true: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:496:28: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:499:33: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:504:33: danger: dereference of NULL ‘pp’
#  502|   				break;
#  503|   			case 'A':
#  504|-> 				pp->dmstate = PSTATE_ACTIVE;
#  505|   				break;
#  506|   			default:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def16]
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:518:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pp’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:345:5: enter_function: entry to ‘disassemble_status’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:368:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:371:28: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:393:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:396:30: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:407:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:410:18: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:413:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:419:14: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:421:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:424:21: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:425:23: branch_true: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:425:23: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:431:20: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:434:25: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:455:20: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:458:31: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:467:20: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:470:29: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:475:20: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:478:31: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:481:20: branch_false: following ‘false’ branch...
 branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:484:29: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:485:30: branch_true: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:485:30: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:496:28: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:499:33: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:515:28: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:518:41: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:484:29: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:485:30: branch_true: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:496:28: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:499:33: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:515:28: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:518:41: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/dmparser.c:518:25: danger: dereference of NULL ‘pp’
#  516|   				return 1;
#  517|   
#  518|-> 			pp->failcount = atoi(word);
#  519|   			free(word);
#  520|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def17]
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/foreign/nvme.c:494:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘path’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/foreign/nvme.c:895:6: enter_function: entry to ‘check__’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/foreign/nvme.c:900:9: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/foreign/nvme.c:903:17: call_function: calling ‘_find_controllers’ from ‘check__’
#  492|   		struct nvme_path *path = nvme_pg_to_path(pg);
#  493|   
#  494|-> 		psyspath = udev_device_get_syspath(path->udev);
#  495|   		if (psyspath && !strcmp(ppath, psyspath))
#  496|   			return path;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def18]
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/foreign/nvme.c:646:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘path’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/foreign/nvme.c:895:6: enter_function: entry to ‘check__’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/foreign/nvme.c:900:9: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/foreign/nvme.c:903:17: call_function: calling ‘_find_controllers’ from ‘check__’
#  644|   	vector_foreach_slot(&map->pgvec, pg, i) {
#  645|   		path = nvme_pg_to_path(pg);
#  646|-> 		path->seen = false;
#  647|   	}
#  648|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def19]
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/foreign/nvme.c:756:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘path’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/foreign/nvme.c:895:6: enter_function: entry to ‘check__’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/foreign/nvme.c:900:9: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/foreign/nvme.c:903:17: call_function: calling ‘_find_controllers’ from ‘check__’
#  754|   	vector_foreach_slot_backwards(&map->pgvec, pg, i) {
#  755|   		path = nvme_pg_to_path(pg);
#  756|-> 		if (!path->seen) {
#  757|   			condlog(1, "path %d not found in %s any more",
#  758|   				i, udev_device_get_sysname(map->udev));

Error: CPPCHECK_WARNING (CWE-758): [#def20]
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/nvme-ioctl.c:572: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#  570|   		     bool save, __u32 data_len, void *data, __u32 *result)
#  571|   {
#  572|-> 	__u32 cdw10 = fid | (save ? 1 << 31 : 0);
#  573|   
#  574|   	return nvme_feature(fd, nvme_admin_set_features, nsid, cdw10, value,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def21]
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/pgpolicies.c:191:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pp1’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/pgpolicies.c:283:5: enter_function: entry to ‘group_by_prio’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/pgpolicies.c:285:16: call_function: calling ‘group_by_match’ from ‘group_by_prio’
#  189|   prios_match(struct path *pp1, struct path *pp2)
#  190|   {
#  191|-> 	return (pp1->priority == pp2->priority);
#  192|   }
#  193|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def22]
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/pgpolicies.c:191:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pp2’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/pgpolicies.c:283:5: enter_function: entry to ‘group_by_prio’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/pgpolicies.c:285:16: call_function: calling ‘group_by_match’ from ‘group_by_prio’
#  189|   prios_match(struct path *pp1, struct path *pp2)
#  190|   {
#  191|-> 	return (pp1->priority == pp2->priority);
#  192|   }
#  193|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def23]
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/pgpolicies.c:197:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pp1’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/pgpolicies.c:291:5: enter_function: entry to ‘group_by_tpg’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/pgpolicies.c:293:16: call_function: calling ‘group_by_match’ from ‘group_by_tpg’
#  195|   tpg_match(struct path *pp1, struct path *pp2)
#  196|   {
#  197|-> 	return (pp1->tpg_id == pp2->tpg_id);
#  198|   }
#  199|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def24]
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/pgpolicies.c:197:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pp2’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/pgpolicies.c:291:5: enter_function: entry to ‘group_by_tpg’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/pgpolicies.c:293:16: call_function: calling ‘group_by_match’ from ‘group_by_tpg’
#  195|   tpg_match(struct path *pp1, struct path *pp2)
#  196|   {
#  197|-> 	return (pp1->tpg_id == pp2->tpg_id);
#  198|   }
#  199|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/print.c:920:16: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_path_layout()’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/print.c:1228:6: enter_function: entry to ‘print_multipath_topology__’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/print.c:1236:19: call_function: calling ‘alloc_path_layout’ from ‘print_multipath_topology__’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/print.c:1236:19: return_function: returning to ‘print_multipath_topology__’ from ‘alloc_path_layout’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/print.c:920:16: danger: ‘alloc_path_layout()’ leaks here; was allocated at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
#  918|   
#  919|   fieldwidth_t *alloc_path_layout(void) {
#  920|-> 	return calloc(ARRAY_SIZE(pd), sizeof(fieldwidth_t));
#  921|   }
#  922|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/print.c:977:16: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_multipath_layout()’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/print.c:1269:5: enter_function: entry to ‘snprint_multipath_topology__’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/print.c:1280:12: branch_false: following ‘false’ branch (when ‘verbosity > 0’)...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/print.c:1283:22: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/print.c:1283:22: call_function: calling ‘alloc_multipath_layout’ from ‘snprint_multipath_topology__’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/print.c:1283:22: return_function: returning to ‘snprint_multipath_topology__’ from ‘alloc_multipath_layout’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/print.c:977:16: danger: ‘alloc_multipath_layout()’ leaks here; was allocated at [(6)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/5)
#  975|   fieldwidth_t *alloc_multipath_layout(void) {
#  976|   
#  977|-> 	return calloc(ARRAY_SIZE(mpd), sizeof(fieldwidth_t));
#  978|   }
#  979|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def27]
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/prioritizers/iet.c:106:39: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘opendir(&fullpath)’ where non-null expected
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/prioritizers/iet.c:82:12: branch_false: following ‘false’ branch (when ‘args’ is non-NULL)...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/prioritizers/iet.c:87:13: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/prioritizers/iet.c:87:12: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/prioritizers/iet.c:93:13: branch_true: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/prioritizers/iet.c:93:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/prioritizers/iet.c:102:14: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/prioritizers/iet.c:103:17: acquire_memory: this call could return NULL
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/prioritizers/iet.c:106:39: danger: argument 1 (‘opendir(&fullpath)’) from [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6) could be NULL where non-null expected
#  104|   
#  105|   	// loop to find device in /dev/disk/by-path
#  106|-> 	while( NULL != (dir_entry_p = readdir(dir_p))) {
#  107|   		if (dir_entry_p->d_name[0] != '.') {
#  108|   			char path[BUFFERSIZE] = "/dev/disk/by-path/";

Error: GCC_ANALYZER_WARNING (CWE-775): [#def28]
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/sysfs.c:309:22: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&pathbuf, 0)’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/sysfs.c:284:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/sysfs.c:289:13: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/sysfs.c:290:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/sysfs.c:292:17: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/sysfs.c:292:17: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/sysfs.c:297:9: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/sysfs.c:300:21: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/sysfs.c:301:21: branch_true: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/sysfs.c:305:21: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/sysfs.c:309:22: acquire_resource: opened here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/sysfs.c:309:22: danger: ‘open(&pathbuf, 0)’ leaks here; was opened at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
#  307|   			continue;
#  308|   
#  309|-> 		fd = open(pathbuf, O_RDONLY);
#  310|   		if (fd == -1) {
#  311|   			condlog(1, "%s: error opening %s", __func__, pathbuf);

Error: GCC_ANALYZER_WARNING (CWE-126): [#def29]
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/uevent.c:122:9: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/uevent.c:683:5: enter_function: entry to ‘uevent_listen’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/uevent.c:696:12: branch_false: following ‘false’ branch (when ‘udev’ is non-NULL)...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/uevent.c:700:9: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/uevent.c:704:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/uevent.c:710:13: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/uevent.c:714:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/uevent.c:718:24: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/uevent.c:719:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/uevent.c:724:13: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/uevent.c:724:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/uevent.c:729:15: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/uevent.c:734:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/uevent.c:746:20: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/uevent.c:747:29: branch_true: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/uevent.c:740:9: call_function: inlined call to ‘__pthread_cleanup_routine’ from ‘uevent_listen’
#  120|   	struct uevent *uev, *tmp;
#  121|   
#  122|-> 	list_for_each_entry_safe(uev, tmp, tmpq, node) {
#  123|   		list_del_init(&uev->node);
#  124|   		cleanup_uev(uev);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def30]
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:208:34: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&mountinfo, "r")’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:294:1: enter_function: entry to ‘is_path_valid’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:301:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:304:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:308:13: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:308:13: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:311:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:317:12: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:329:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:332:16: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:333:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:337:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:339:17: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:339:17: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:342:13: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:342:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:345:28: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:346:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:352:14: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:352:12: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:354:13: branch_true: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:354:13: call_function: calling ‘is_device_in_use’ from ‘is_path_valid’
#  206|   		pthread_cleanup_push(cleanup_cache, cache);
#  207|   		if (mnt_table_set_cache(tbl, cache) == 0) {
#  208|-> 			stream = fopen(mountinfo, "r");
#  209|   			if (stream != NULL) {
#  210|   				pthread_cleanup_push(cleanup_fclose, stream);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:208:34: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&mountinfo, "r")’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:294:1: enter_function: entry to ‘is_path_valid’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:301:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:304:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:308:13: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:308:13: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:311:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:317:12: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:329:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:332:16: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:333:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:337:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:339:17: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:339:17: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:342:13: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:342:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:345:28: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:346:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:352:14: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:352:12: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:354:13: branch_true: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/libmultipath/valid.c:354:13: call_function: calling ‘is_device_in_use’ from ‘is_path_valid’
#  206|   		pthread_cleanup_push(cleanup_cache, cache);
#  207|   		if (mnt_table_set_cache(tbl, cache) == 0) {
#  208|-> 			stream = fopen(mountinfo, "r");
#  209|   			if (stream != NULL) {
#  210|   				pthread_cleanup_push(cleanup_fclose, stream);

Error: GCC_ANALYZER_WARNING (CWE-415): [#def32]
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/fpin_handlers.c:508:17: warning[-Wanalyzer-double-free]: double-‘free’ of ‘els_marginal_list_head.next + -2056’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/fpin_handlers.c:576:13: enter_function: entry to ‘receiver_cleanup_list’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/fpin_handlers.c:579:9: call_function: calling ‘fpin_clean_els_marginal_list’ from ‘receiver_cleanup_list’
#  506|   					     node);
#  507|   		list_del(&els_marg->node);
#  508|-> 		free(els_marg);
#  509|   	}
#  510|   }

Error: GCC_ANALYZER_WARNING: [#def33]
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/fpin_handlers.c:624:23: warning[-Wanalyzer-fd-use-without-check]: ‘read’ on possibly invalid file descriptor ‘fd’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/fpin_handlers.c:605:14: acquire_resource: datagram socket created here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/fpin_handlers.c:606:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/fpin_handlers.c:611:9: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/fpin_handlers.c:616:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
 branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/fpin_handlers.c:624:23: danger: ‘fd’ could be invalid
#  622|   
#  623|   		condlog(4, "Waiting for ELS...\n");
#  624|-> 		ret = read(fd, buf, DEF_RX_BUF_SIZE);
#  625|   		if (ret < 0) {
#  626|   			condlog(0, "failed to read the els frame (%d)", ret);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def34]
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3286:21: warning[-Wanalyzer-null-argument]: use of NULL ‘new’ where non-null expected
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3293:13: enter_function: entry to ‘reconfigure_check’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3298:12: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3300:17: branch_true: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3306:13: call_function: calling ‘reconfigure_check_uid_attrs’ from ‘reconfigure_check’
# 3284|   		char *new = VECTOR_SLOT(new_attrs, i);
# 3285|   
# 3286|-> 		if (strcmp(old, new))
# 3287|   			return true;
# 3288|   	}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def35]
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3966:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3949:11: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3953:17: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3953:17: branch_false: following ‘false’ branch (when ‘pid == 0’)...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3956:9: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3966:23: acquire_resource: opened here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3966:23: danger: ‘open("/dev/null", 2)’ leaks here; was opened at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
# 3964|   		fprintf(stderr, "cannot chdir to '/', continuing\n");
# 3965|   
# 3966|-> 	dev_null_fd = open("/dev/null", O_RDWR);
# 3967|   	if (dev_null_fd < 0){
# 3968|   		fprintf(stderr, "cannot open /dev/null for input & output : %s\n",

Error: GCC_ANALYZER_WARNING (CWE-775): [#def36]
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3973:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open("/dev/null", 2), 0)’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3949:11: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3953:17: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3953:17: branch_false: following ‘false’ branch (when ‘pid == 0’)...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3956:9: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3967:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3973:13: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3973:13: acquire_resource: opened here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3973:12: danger: ‘dup2(open("/dev/null", 2), 0)’ leaks here; was opened at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
# 3971|   	}
# 3972|   
# 3973|-> 	if (dup2(dev_null_fd, STDIN_FILENO) < 0) {
# 3974|   		fprintf(stderr, "cannot dup2 /dev/null to stdin : %s\n",
# 3975|   			strerror(errno));

Error: GCC_ANALYZER_WARNING (CWE-775): [#def37]
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3978:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open("/dev/null", 2), 1)’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3949:11: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3953:17: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3953:17: branch_false: following ‘false’ branch (when ‘pid == 0’)...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3956:9: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3967:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3973:13: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3973:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3978:13: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3978:13: acquire_resource: opened here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3978:12: danger: ‘dup2(open("/dev/null", 2), 1)’ leaks here; was opened at [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8)
# 3976|   		_exit(0);
# 3977|   	}
# 3978|-> 	if (dup2(dev_null_fd, STDOUT_FILENO) < 0) {
# 3979|   		fprintf(stderr, "cannot dup2 /dev/null to stdout : %s\n",
# 3980|   			strerror(errno));

Error: GCC_ANALYZER_WARNING (CWE-775): [#def38]
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3983:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open("/dev/null", 2), 2)’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3949:11: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3953:17: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3953:17: branch_false: following ‘false’ branch (when ‘pid == 0’)...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3956:9: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3967:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3973:13: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3973:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3978:13: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3978:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3983:13: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3983:13: acquire_resource: opened here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3983:12: danger: ‘dup2(open("/dev/null", 2), 2)’ leaks here; was opened at [(11)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/10)
# 3981|   		_exit(0);
# 3982|   	}
# 3983|-> 	if (dup2(dev_null_fd, STDERR_FILENO) < 0) {
# 3984|   		fprintf(stderr, "cannot dup /dev/null to stderr : %s\n",
# 3985|   			strerror(errno));

Error: GCC_ANALYZER_WARNING (CWE-775): [#def39]
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3990:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dev_null_fd’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3949:11: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3953:17: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3953:17: branch_false: following ‘false’ branch (when ‘pid == 0’)...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3956:9: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3966:23: acquire_resource: opened here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3967:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3973:13: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3973:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3978:13: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3978:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3983:13: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3983:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3988:22: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/main.c:3990:1: danger: ‘dev_null_fd’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
# 3988|   	daemon_pid = getpid();
# 3989|   	return 0;
# 3990|-> }
# 3991|   
# 3992|   int

Error: GCC_ANALYZER_WARNING (CWE-476): [#def40]
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/multipathc.c:97:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘kw’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/multipathc.c:53:12: branch_true: following ‘true’ branch (when ‘state == 0’)...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/multipathc.c:55:27: branch_true: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/multipathc.c:69:20: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/multipathc.c:91:20: branch_true: following ‘true’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/multipathc.c:92:30: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/multipathc.c:97:30: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/multipathc.c:97:30: danger: dereference of NULL ‘kw’
#   95|   			 * parameter, not the keyword. Don't delete it.
#   96|   			 */
#   97|-> 			if (!kw->param) {
#   98|   				free_key(kw);
#   99|   				vector_del_slot(v, VECTOR_SIZE(v) - 1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def41]
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/uxlsnr.c:513:44: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘kw’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/uxlsnr.c:603:13: enter_function: entry to ‘handle_client’
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/uxlsnr.c:605:12: branch_false: following ‘false’ branch...
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/uxlsnr.c:610:9: branch_false: ...to here
device-mapper-multipath-0.11.1-build/multipath-tools-0.11.1/multipathd/uxlsnr.c:611:16: call_function: calling ‘client_state_machine’ from ‘handle_client’
#  511|   			struct key *kw = VECTOR_SLOT(c->cmdvec, 0);
#  512|   
#  513|-> 			if (!c->is_root && kw->code != VRB_LIST) {
#  514|   				c->error = -EPERM;
#  515|   				condlog(0, "%s: cli[%d]: unauthorized cmd \"%s\"",

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-24.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namedevice-mapper-multipath-0.11.1-1.fc43
diffbase-store-results-to/tmp/tmpuyqon8st/device-mapper-multipath-0.11.1-1.fc43.tar.xz
diffbase-time-created2025-04-25 12:21:17
diffbase-time-finished2025-04-25 12:22:58
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpuyqon8st/device-mapper-multipath-0.11.1-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpuyqon8st/device-mapper-multipath-0.11.1-1.fc43.src.rpm'
diffbase-tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-24.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namedevice-mapper-multipath-0.11.1-1.fc43
store-results-to/tmp/tmpuyqon8st/device-mapper-multipath-0.11.1-1.fc43.tar.xz
time-created2025-04-25 12:21:17
time-finished2025-04-25 12:22:58
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpuyqon8st/device-mapper-multipath-0.11.1-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpuyqon8st/device-mapper-multipath-0.11.1-1.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9