device-mapper-multipath-0.13.0-1.fc44
List of Findings
Error: SHELLCHECK_WARNING (CWE-477): [#def1]
/usr/bin/mpathconf:79:18: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-156): [#def2]
/usr/bin/mpathconf:97:15: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-477): [#def3]
/usr/bin/mpathconf:236:45: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def4]
/usr/bin/mpathconf:236:59: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def5]
/usr/bin/mpathconf:236:77: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def6]
/usr/bin/mpathconf:236:93: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def7]
/usr/bin/mpathconf:236:110: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def8]
/usr/bin/mpathconf:236:131: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def9]
/usr/bin/mpathconf:247:48: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def10]
/usr/bin/mpathconf:251:56: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def11]
/usr/bin/mpathconf:259:43: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def12]
/usr/bin/mpathconf:259:63: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def13]
/usr/bin/mpathconf:259:83: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def14]
/usr/bin/mpathconf:259:102: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def15]
/usr/bin/mpathconf:259:125: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def16]
/usr/bin/mpathconf:259:148: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def17]
/usr/bin/mpathconf:263:48: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def18]
/usr/bin/mpathconf:267:46: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def19]
/usr/bin/mpathconf:283:20: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def20]
/usr/bin/mpathconf:283:34: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def21]
/usr/bin/mpathconf:283:52: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def22]
/usr/bin/mpathconf:283:70: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def23]
/usr/bin/mpathconf:283:87: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def24]
/usr/bin/mpathconf:283:108: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def25]
/usr/bin/mpathconf:286:44: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def26]
/usr/bin/mpathconf:290:52: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def27]
/usr/bin/mpathconf:294:21: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def28]
/usr/bin/mpathconf:341:19: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def29]
/usr/bin/mpathconf:419:26: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def30]
/usr/bin/mpathconf:429:27: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def31]
/usr/bin/mpathconf:434:31: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def32]
/usr/bin/mpathconf:439:27: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def33]
/usr/bin/mpathconf:444:26: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def34]
/usr/bin/mpathconf:578:27: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def35]
/usr/bin/mpathconf:598:27: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def36]
/usr/bin/mpathconf:608:29: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def37]
/usr/bin/mpathconf:608:52: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def38]
/usr/bin/mpathconf:614:24: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def39]
/usr/bin/mpathconf:624:26: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def40]
/usr/bin/mpathconf:656:29: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def41]
multipath-tools-0.13.0/kpartx/dasd.c:286:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd_dasd’
multipath-tools-0.13.0/kpartx/dasd.c:57:1: enter_function: entry to ‘read_dasd_pt’
multipath-tools-0.13.0/kpartx/dasd.c:76:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
multipath-tools-0.13.0/kpartx/dasd.c:80:13: branch_false: ...to here
multipath-tools-0.13.0/kpartx/dasd.c:80:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/dasd.c:84:51: branch_false: ...to here
multipath-tools-0.13.0/kpartx/dasd.c:86:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/kpartx/dasd.c:90:29: branch_true: ...to here
multipath-tools-0.13.0/kpartx/dasd.c:90:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/dasd.c:94:17: branch_false: ...to here
multipath-tools-0.13.0/kpartx/dasd.c:96:20: branch_false: following ‘false’ branch (when ‘__major == 94’)...
multipath-tools-0.13.0/kpartx/dasd.c:107:17: call_function: inlined call to ‘gnu_dev_minor’ from ‘read_dasd_pt’
multipath-tools-0.13.0/kpartx/dasd.c:109:32: acquire_resource: opened here
multipath-tools-0.13.0/kpartx/dasd.c:109:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/dasd.c:122:20: branch_false: ...to here
multipath-tools-0.13.0/kpartx/dasd.c:122:20: branch_true: following ‘true’ branch (when ‘fd_dasd < 0’)...
multipath-tools-0.13.0/kpartx/dasd.c:77:24: branch_true: ...to here
multipath-tools-0.13.0/kpartx/dasd.c:286:1: danger: ‘fd_dasd’ leaks here; was opened at [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def42]
multipath-tools-0.13.0/kpartx/devmapper.c:272:9: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
multipath-tools-0.13.0/kpartx/devmapper.c:260:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/devmapper.c:263:14: branch_false: ...to here
multipath-tools-0.13.0/kpartx/devmapper.c:263:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/devmapper.c:264:14: branch_false: ...to here
multipath-tools-0.13.0/kpartx/devmapper.c:263:13: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/devmapper.c:267:15: branch_false: ...to here
multipath-tools-0.13.0/kpartx/devmapper.c:268:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/kpartx/devmapper.c:269:24: acquire_memory: allocated here
multipath-tools-0.13.0/kpartx/devmapper.c:272:9: throw: if ‘dm_task_destroy’ throws an exception...
multipath-tools-0.13.0/kpartx/devmapper.c:272:9: danger: ‘name’ leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
multipath-tools-0.13.0/kpartx/devmapper.c:297:9: warning[-Wanalyzer-malloc-leak]: leak of ‘mapname’
multipath-tools-0.13.0/kpartx/devmapper.c:283:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/devmapper.c:286:9: branch_false: ...to here
multipath-tools-0.13.0/kpartx/devmapper.c:289:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/devmapper.c:292:15: branch_false: ...to here
multipath-tools-0.13.0/kpartx/devmapper.c:293:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/kpartx/devmapper.c:294:27: acquire_memory: allocated here
multipath-tools-0.13.0/kpartx/devmapper.c:297:9: throw: if ‘dm_task_destroy’ throws an exception...
multipath-tools-0.13.0/kpartx/devmapper.c:297:9: danger: ‘mapname’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def44]
multipath-tools-0.13.0/kpartx/devmapper.c:354:9: warning[-Wanalyzer-malloc-leak]: leak of ‘uuid’
multipath-tools-0.13.0/kpartx/devmapper.c:341:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/devmapper.c:344:14: branch_false: ...to here
multipath-tools-0.13.0/kpartx/devmapper.c:344:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/devmapper.c:347:14: branch_false: ...to here
multipath-tools-0.13.0/kpartx/devmapper.c:347:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/devmapper.c:350:15: branch_false: ...to here
multipath-tools-0.13.0/kpartx/devmapper.c:351:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/kpartx/devmapper.c:352:24: branch_true: ...to here
multipath-tools-0.13.0/kpartx/devmapper.c:352:24: acquire_memory: allocated here
multipath-tools-0.13.0/kpartx/devmapper.c:354:9: throw: if ‘dm_task_destroy’ throws an exception...
multipath-tools-0.13.0/kpartx/devmapper.c:354:9: danger: ‘uuid’ leaks here; was allocated at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def45]
multipath-tools-0.13.0/kpartx/kpartx.c:425:14: warning[-Wanalyzer-malloc-leak]: leak of ‘delim’
multipath-tools-0.13.0/kpartx/kpartx.c:231:1: enter_function: entry to ‘main’
multipath-tools-0.13.0/kpartx/kpartx.c:248:9: call_function: calling ‘initpts’ from ‘main’
multipath-tools-0.13.0/kpartx/kpartx.c:248:9: return_function: returning to ‘main’ from ‘initpts’
multipath-tools-0.13.0/kpartx/kpartx.c:272:19: branch_false: following ‘false’ branch (when ‘argc > 1’)...
multipath-tools-0.13.0/kpartx/kpartx.c:272:19: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:332:12: branch_false: following ‘false’ branch (when ‘hotplug == 0’)...
multipath-tools-0.13.0/kpartx/kpartx.c:334:30: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:344:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:349:13: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:349:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:352:21: branch_true: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:352:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:357:27: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:359:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:362:20: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:363:28: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:369:17: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:371:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:682:1: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:383:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:384:58: branch_true: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:385:20: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:386:32: branch_true: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:395:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:398:12: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:398:12: branch_false: following ‘false’ branch (when ‘mapname’ is non-NULL)...
multipath-tools-0.13.0/kpartx/kpartx.c:401:12: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:401:12: branch_true: following ‘true’ branch (when ‘delim’ is NULL)...
multipath-tools-0.13.0/kpartx/kpartx.c:402:25: branch_true: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:402:25: call_function: calling ‘xmalloc’ from ‘main’
multipath-tools-0.13.0/kpartx/kpartx.c:402:25: return_function: returning to ‘main’ from ‘xmalloc’
multipath-tools-0.13.0/kpartx/kpartx.c:410:12: branch_false: following ‘false’ branch (when ‘what != 2’)...
multipath-tools-0.13.0/kpartx/kpartx.c:425:14: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:425:14: throw: if ‘open’ throws an exception...
multipath-tools-0.13.0/kpartx/kpartx.c:425:14: danger: ‘delim’ leaks here; was allocated at [(80)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/79)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def46]
multipath-tools-0.13.0/kpartx/kpartx.c:428:17: warning[-Wanalyzer-malloc-leak]: leak of ‘delim’
multipath-tools-0.13.0/kpartx/kpartx.c:231:1: enter_function: entry to ‘main’
multipath-tools-0.13.0/kpartx/kpartx.c:248:9: call_function: calling ‘initpts’ from ‘main’
multipath-tools-0.13.0/kpartx/kpartx.c:248:9: return_function: returning to ‘main’ from ‘initpts’
multipath-tools-0.13.0/kpartx/kpartx.c:272:19: branch_false: following ‘false’ branch (when ‘argc > 1’)...
multipath-tools-0.13.0/kpartx/kpartx.c:272:19: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:332:12: branch_false: following ‘false’ branch (when ‘hotplug == 0’)...
multipath-tools-0.13.0/kpartx/kpartx.c:334:30: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:344:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:349:13: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:349:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:352:21: branch_true: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:352:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:357:27: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:359:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:362:20: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:363:28: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:369:17: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:371:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:682:1: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:383:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:384:58: branch_true: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:385:20: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:386:32: branch_true: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:395:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:398:12: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:398:12: branch_false: following ‘false’ branch (when ‘mapname’ is non-NULL)...
multipath-tools-0.13.0/kpartx/kpartx.c:401:12: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:401:12: branch_true: following ‘true’ branch (when ‘delim’ is NULL)...
multipath-tools-0.13.0/kpartx/kpartx.c:402:25: branch_true: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:402:25: call_function: calling ‘xmalloc’ from ‘main’
multipath-tools-0.13.0/kpartx/kpartx.c:402:25: return_function: returning to ‘main’ from ‘xmalloc’
multipath-tools-0.13.0/kpartx/kpartx.c:410:12: branch_false: following ‘false’ branch (when ‘what != 2’)...
multipath-tools-0.13.0/kpartx/kpartx.c:425:14: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:427:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:428:17: branch_true: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:428:17: throw: if ‘perror’ throws an exception...
multipath-tools-0.13.0/kpartx/kpartx.c:428:17: danger: ‘delim’ leaks here; was allocated at [(80)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/79)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def47]
multipath-tools-0.13.0/kpartx/kpartx.c:432:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(device, 16384)’
multipath-tools-0.13.0/kpartx/kpartx.c:231:1: enter_function: entry to ‘main’
multipath-tools-0.13.0/kpartx/kpartx.c:248:9: call_function: calling ‘initpts’ from ‘main’
multipath-tools-0.13.0/kpartx/kpartx.c:248:9: return_function: returning to ‘main’ from ‘initpts’
multipath-tools-0.13.0/kpartx/kpartx.c:272:19: branch_false: following ‘false’ branch (when ‘argc > 1’)...
multipath-tools-0.13.0/kpartx/kpartx.c:272:19: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:332:12: branch_false: following ‘false’ branch (when ‘hotplug == 0’)...
multipath-tools-0.13.0/kpartx/kpartx.c:334:30: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:344:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:349:13: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:349:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:352:21: branch_true: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:352:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:357:27: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:359:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:362:20: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:363:28: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:369:17: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:371:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:682:1: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:383:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:384:58: branch_true: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:385:20: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:386:32: branch_true: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:395:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:398:12: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:398:12: branch_false: following ‘false’ branch (when ‘mapname’ is non-NULL)...
multipath-tools-0.13.0/kpartx/kpartx.c:401:12: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:401:12: branch_true: following ‘true’ branch (when ‘delim’ is NULL)...
multipath-tools-0.13.0/kpartx/kpartx.c:402:25: branch_true: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:402:25: call_function: calling ‘xmalloc’ from ‘main’
multipath-tools-0.13.0/kpartx/kpartx.c:402:25: return_function: returning to ‘main’ from ‘xmalloc’
multipath-tools-0.13.0/kpartx/kpartx.c:410:12: branch_false: following ‘false’ branch (when ‘what != 2’)...
multipath-tools-0.13.0/kpartx/kpartx.c:425:14: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:425:14: acquire_resource: opened here
multipath-tools-0.13.0/kpartx/kpartx.c:427:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:427:12: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:432:21: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:666:17: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:432:21: danger: ‘open(device, 16384)’ leaks here; was opened at [(85)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/84)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def48]
multipath-tools-0.13.0/kpartx/kpartx.c:439:21: warning[-Wanalyzer-malloc-leak]: leak of ‘delim’
multipath-tools-0.13.0/kpartx/kpartx.c:231:1: enter_function: entry to ‘main’
multipath-tools-0.13.0/kpartx/kpartx.c:248:9: call_function: calling ‘initpts’ from ‘main’
multipath-tools-0.13.0/kpartx/kpartx.c:248:9: return_function: returning to ‘main’ from ‘initpts’
multipath-tools-0.13.0/kpartx/kpartx.c:272:19: branch_false: following ‘false’ branch (when ‘argc > 1’)...
multipath-tools-0.13.0/kpartx/kpartx.c:272:19: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:332:12: branch_false: following ‘false’ branch (when ‘hotplug == 0’)...
multipath-tools-0.13.0/kpartx/kpartx.c:334:30: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:344:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:349:13: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:349:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:352:21: branch_true: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:352:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:357:27: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:359:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:362:20: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:363:28: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:369:17: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:371:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:682:1: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:383:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:384:58: branch_true: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:385:20: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:386:32: branch_true: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:395:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:398:12: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:398:12: branch_false: following ‘false’ branch (when ‘mapname’ is non-NULL)...
multipath-tools-0.13.0/kpartx/kpartx.c:401:12: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:401:12: branch_true: following ‘true’ branch (when ‘delim’ is NULL)...
multipath-tools-0.13.0/kpartx/kpartx.c:402:25: branch_true: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:402:25: call_function: calling ‘xmalloc’ from ‘main’
multipath-tools-0.13.0/kpartx/kpartx.c:402:25: return_function: returning to ‘main’ from ‘xmalloc’
multipath-tools-0.13.0/kpartx/kpartx.c:410:12: branch_false: following ‘false’ branch (when ‘what != 2’)...
multipath-tools-0.13.0/kpartx/kpartx.c:425:14: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:427:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:427:12: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:432:21: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:435:20: branch_true: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:435:20: branch_false: following ‘false’ branch (when ‘type’ is NULL)...
multipath-tools-0.13.0/kpartx/kpartx.c:439:21: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:439:21: throw: if the called function throws an exception...
multipath-tools-0.13.0/kpartx/kpartx.c:439:21: danger: ‘delim’ leaks here; was allocated at [(80)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/79)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def49]
multipath-tools-0.13.0/kpartx/kpartx.c:666:17: warning[-Wanalyzer-malloc-leak]: leak of ‘delim’
multipath-tools-0.13.0/kpartx/kpartx.c:231:1: enter_function: entry to ‘main’
multipath-tools-0.13.0/kpartx/kpartx.c:248:9: call_function: calling ‘initpts’ from ‘main’
multipath-tools-0.13.0/kpartx/kpartx.c:248:9: return_function: returning to ‘main’ from ‘initpts’
multipath-tools-0.13.0/kpartx/kpartx.c:272:19: branch_false: following ‘false’ branch (when ‘argc > 1’)...
multipath-tools-0.13.0/kpartx/kpartx.c:272:19: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:332:12: branch_false: following ‘false’ branch (when ‘hotplug == 0’)...
multipath-tools-0.13.0/kpartx/kpartx.c:334:30: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:344:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:349:13: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:349:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:352:21: branch_true: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:352:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:357:27: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:359:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:362:20: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:363:28: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:369:17: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:371:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:682:1: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:383:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:384:58: branch_true: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:385:20: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:386:32: branch_true: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:395:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:398:12: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:398:12: branch_false: following ‘false’ branch (when ‘mapname’ is non-NULL)...
multipath-tools-0.13.0/kpartx/kpartx.c:401:12: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:401:12: branch_true: following ‘true’ branch (when ‘delim’ is NULL)...
multipath-tools-0.13.0/kpartx/kpartx.c:402:25: branch_true: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:402:25: call_function: calling ‘xmalloc’ from ‘main’
multipath-tools-0.13.0/kpartx/kpartx.c:402:25: return_function: returning to ‘main’ from ‘xmalloc’
multipath-tools-0.13.0/kpartx/kpartx.c:410:12: branch_false: following ‘false’ branch (when ‘what != 2’)...
multipath-tools-0.13.0/kpartx/kpartx.c:425:14: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:427:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:427:12: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:432:21: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:435:20: branch_true: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:435:20: branch_false: following ‘false’ branch (when ‘type’ is NULL)...
multipath-tools-0.13.0/kpartx/kpartx.c:439:21: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:445:20: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:445:20: branch_true: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:432:21: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:666:17: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:666:17: throw: if ‘close’ throws an exception...
multipath-tools-0.13.0/kpartx/kpartx.c:666:17: danger: ‘delim’ leaks here; was allocated at [(80)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/79)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def50]
multipath-tools-0.13.0/kpartx/kpartx.c:668:21: warning[-Wanalyzer-malloc-leak]: leak of ‘delim’
multipath-tools-0.13.0/kpartx/kpartx.c:231:1: enter_function: entry to ‘main’
multipath-tools-0.13.0/kpartx/kpartx.c:248:9: call_function: calling ‘initpts’ from ‘main’
multipath-tools-0.13.0/kpartx/kpartx.c:248:9: return_function: returning to ‘main’ from ‘initpts’
multipath-tools-0.13.0/kpartx/kpartx.c:272:19: branch_false: following ‘false’ branch (when ‘argc > 1’)...
multipath-tools-0.13.0/kpartx/kpartx.c:272:19: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:332:12: branch_false: following ‘false’ branch (when ‘hotplug == 0’)...
multipath-tools-0.13.0/kpartx/kpartx.c:334:30: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:344:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:349:13: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:349:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:352:21: branch_true: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:352:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:357:27: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:359:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:362:20: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:363:28: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:369:17: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:371:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:682:1: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:383:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:384:58: branch_true: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:385:20: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:386:32: branch_true: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:395:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:398:12: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:398:12: branch_false: following ‘false’ branch (when ‘mapname’ is non-NULL)...
multipath-tools-0.13.0/kpartx/kpartx.c:401:12: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:401:12: branch_true: following ‘true’ branch (when ‘delim’ is NULL)...
multipath-tools-0.13.0/kpartx/kpartx.c:402:25: branch_true: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:402:25: call_function: calling ‘xmalloc’ from ‘main’
multipath-tools-0.13.0/kpartx/kpartx.c:402:25: return_function: returning to ‘main’ from ‘xmalloc’
multipath-tools-0.13.0/kpartx/kpartx.c:410:12: branch_false: following ‘false’ branch (when ‘what != 2’)...
multipath-tools-0.13.0/kpartx/kpartx.c:425:14: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:427:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:427:12: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:432:21: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:435:20: branch_true: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:435:20: branch_false: following ‘false’ branch (when ‘type’ is NULL)...
multipath-tools-0.13.0/kpartx/kpartx.c:439:21: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:445:20: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:445:20: branch_true: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:432:21: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:666:17: branch_false: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:667:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/kpartx/kpartx.c:668:21: branch_true: ...to here
multipath-tools-0.13.0/kpartx/kpartx.c:668:21: throw: if ‘del_loop’ throws an exception...
multipath-tools-0.13.0/kpartx/kpartx.c:668:21: danger: ‘delim’ leaks here; was allocated at [(80)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/79)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def51]
multipath-tools-0.13.0/kpartx/lopart.c:61:24: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(&VIRT_BLOCK)’
multipath-tools-0.13.0/kpartx/lopart.c:57:15: acquire_memory: allocated here
multipath-tools-0.13.0/kpartx/lopart.c:58:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/lopart.c:58:12: branch_false: ...to here
multipath-tools-0.13.0/kpartx/lopart.c:61:24: throw: if ‘readdir’ throws an exception...
multipath-tools-0.13.0/kpartx/lopart.c:61:24: danger: ‘opendir(&VIRT_BLOCK)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def52]
multipath-tools-0.13.0/kpartx/lopart.c:75:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 0)’
multipath-tools-0.13.0/kpartx/lopart.c:58:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/lopart.c:58:12: branch_false: ...to here
multipath-tools-0.13.0/kpartx/lopart.c:61:16: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/kpartx/lopart.c:62:29: branch_true: ...to here
multipath-tools-0.13.0/kpartx/lopart.c:65:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/lopart.c:69:22: branch_false: ...to here
multipath-tools-0.13.0/kpartx/lopart.c:69:22: acquire_resource: opened here
multipath-tools-0.13.0/kpartx/lopart.c:70:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/lopart.c:73:30: branch_false: ...to here
multipath-tools-0.13.0/kpartx/lopart.c:74:20: branch_true: following ‘true’ branch (when ‘bytes_read <= 0’)...
multipath-tools-0.13.0/kpartx/lopart.c:75:25: branch_true: ...to here
multipath-tools-0.13.0/kpartx/lopart.c:75:25: danger: ‘open(&path, 0)’ leaks here; was opened at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def53]
multipath-tools-0.13.0/kpartx/lopart.c:79:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 0)’
multipath-tools-0.13.0/kpartx/lopart.c:58:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/lopart.c:58:12: branch_false: ...to here
multipath-tools-0.13.0/kpartx/lopart.c:61:16: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/kpartx/lopart.c:62:29: branch_true: ...to here
multipath-tools-0.13.0/kpartx/lopart.c:65:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/lopart.c:69:22: branch_false: ...to here
multipath-tools-0.13.0/kpartx/lopart.c:69:22: acquire_resource: opened here
multipath-tools-0.13.0/kpartx/lopart.c:70:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/lopart.c:73:30: branch_false: ...to here
multipath-tools-0.13.0/kpartx/lopart.c:74:20: branch_false: following ‘false’ branch (when ‘bytes_read > 0’)...
multipath-tools-0.13.0/kpartx/lopart.c:79:17: branch_false: ...to here
multipath-tools-0.13.0/kpartx/lopart.c:79:17: danger: ‘open(&path, 0)’ leaks here; was opened at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def54]
multipath-tools-0.13.0/kpartx/lopart.c:125:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&bf_path, 0)’
multipath-tools-0.13.0/kpartx/lopart.c:58:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/lopart.c:58:12: branch_false: ...to here
multipath-tools-0.13.0/kpartx/lopart.c:61:16: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/kpartx/lopart.c:62:29: branch_true: ...to here
multipath-tools-0.13.0/kpartx/lopart.c:83:20: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
multipath-tools-0.13.0/kpartx/lopart.c:85:21: branch_false: ...to here
multipath-tools-0.13.0/kpartx/lopart.c:105:20: branch_false: following ‘false’ branch (when the strings are non-equal)...
multipath-tools-0.13.0/kpartx/lopart.c:115:21: branch_false: ...to here
multipath-tools-0.13.0/kpartx/lopart.c:119:22: acquire_resource: opened here
multipath-tools-0.13.0/kpartx/lopart.c:125:25: danger: ‘open(&bf_path, 0)’ leaks here; was opened at [(10)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def55]
multipath-tools-0.13.0/kpartx/lopart.c:129:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&bf_path, 0)’
multipath-tools-0.13.0/kpartx/lopart.c:58:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/lopart.c:58:12: branch_false: ...to here
multipath-tools-0.13.0/kpartx/lopart.c:61:16: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/kpartx/lopart.c:62:29: branch_true: ...to here
multipath-tools-0.13.0/kpartx/lopart.c:83:20: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
multipath-tools-0.13.0/kpartx/lopart.c:85:21: branch_false: ...to here
multipath-tools-0.13.0/kpartx/lopart.c:105:20: branch_false: following ‘false’ branch (when the strings are non-equal)...
multipath-tools-0.13.0/kpartx/lopart.c:115:21: branch_false: ...to here
multipath-tools-0.13.0/kpartx/lopart.c:119:22: acquire_resource: opened here
multipath-tools-0.13.0/kpartx/lopart.c:129:17: danger: ‘open(&bf_path, 0)’ leaks here; was opened at [(10)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def56]
multipath-tools-0.13.0/kpartx/lopart.c:151:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ffd’
multipath-tools-0.13.0/kpartx/lopart.c:236:5: enter_function: entry to ‘set_loop’
multipath-tools-0.13.0/kpartx/lopart.c:243:20: acquire_resource: opened here
multipath-tools-0.13.0/kpartx/lopart.c:243:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/lopart.c:254:19: branch_false: ...to here
multipath-tools-0.13.0/kpartx/lopart.c:254:19: call_function: calling ‘find_unused_loop_device’ from ‘set_loop’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def57]
multipath-tools-0.13.0/kpartx/lopart.c:165:22: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ffd’
multipath-tools-0.13.0/kpartx/lopart.c:236:5: enter_function: entry to ‘set_loop’
multipath-tools-0.13.0/kpartx/lopart.c:243:20: acquire_resource: opened here
multipath-tools-0.13.0/kpartx/lopart.c:243:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/lopart.c:254:19: branch_false: ...to here
multipath-tools-0.13.0/kpartx/lopart.c:254:19: call_function: calling ‘find_unused_loop_device’ from ‘set_loop’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def58]
multipath-tools-0.13.0/kpartx/lopart.c:176:49: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ffd’
multipath-tools-0.13.0/kpartx/lopart.c:236:5: enter_function: entry to ‘set_loop’
multipath-tools-0.13.0/kpartx/lopart.c:243:20: acquire_resource: opened here
multipath-tools-0.13.0/kpartx/lopart.c:243:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/lopart.c:254:19: branch_false: ...to here
multipath-tools-0.13.0/kpartx/lopart.c:254:19: call_function: calling ‘find_unused_loop_device’ from ‘set_loop’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def59]
multipath-tools-0.13.0/kpartx/lopart.c:179:41: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ffd’
multipath-tools-0.13.0/kpartx/lopart.c:236:5: enter_function: entry to ‘set_loop’
multipath-tools-0.13.0/kpartx/lopart.c:243:20: acquire_resource: opened here
multipath-tools-0.13.0/kpartx/lopart.c:243:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/lopart.c:254:19: branch_false: ...to here
multipath-tools-0.13.0/kpartx/lopart.c:254:19: call_function: calling ‘find_unused_loop_device’ from ‘set_loop’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def60]
multipath-tools-0.13.0/kpartx/lopart.c:179:41: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
multipath-tools-0.13.0/kpartx/lopart.c:152:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/lopart.c:155:15: branch_false: ...to here
multipath-tools-0.13.0/kpartx/lopart.c:155:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/lopart.c:160:20: branch_false: following ‘false’ branch (when ‘next_loop >= 0’)...
multipath-tools-0.13.0/kpartx/lopart.c:163:17: branch_false: ...to here
multipath-tools-0.13.0/kpartx/lopart.c:166:20: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/kpartx/lopart.c:167:29: branch_true: ...to here
multipath-tools-0.13.0/kpartx/lopart.c:173:54: acquire_memory: allocated here
multipath-tools-0.13.0/kpartx/lopart.c:175:44: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
multipath-tools-0.13.0/kpartx/lopart.c:178:49: branch_false: ...to here
multipath-tools-0.13.0/kpartx/lopart.c:179:41: throw: if ‘close’ throws an exception...
multipath-tools-0.13.0/kpartx/lopart.c:179:41: danger: ‘name’ leaks here; was allocated at [(9)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def61]
multipath-tools-0.13.0/kpartx/lopart.c:184:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ffd’
multipath-tools-0.13.0/kpartx/lopart.c:236:5: enter_function: entry to ‘set_loop’
multipath-tools-0.13.0/kpartx/lopart.c:243:20: acquire_resource: opened here
multipath-tools-0.13.0/kpartx/lopart.c:243:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/lopart.c:254:19: branch_false: ...to here
multipath-tools-0.13.0/kpartx/lopart.c:254:19: call_function: calling ‘find_unused_loop_device’ from ‘set_loop’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def62]
multipath-tools-0.13.0/kpartx/lopart.c:192:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ffd’
multipath-tools-0.13.0/kpartx/lopart.c:236:5: enter_function: entry to ‘set_loop’
multipath-tools-0.13.0/kpartx/lopart.c:243:20: acquire_resource: opened here
multipath-tools-0.13.0/kpartx/lopart.c:243:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/kpartx/lopart.c:254:19: branch_false: ...to here
multipath-tools-0.13.0/kpartx/lopart.c:254:19: call_function: calling ‘find_unused_loop_device’ from ‘set_loop’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def63]
multipath-tools-0.13.0/libdmmp/libdmmp.c:88:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
multipath-tools-0.13.0/libdmmp/libdmmp.c:384:12: enter_function: entry to ‘_ipc_connect’
multipath-tools-0.13.0/libdmmp/libdmmp.c:400:20: branch_true: following ‘true’ branch (when ‘errno_save == 111’)...
multipath-tools-0.13.0/libdmmp/libdmmp.c:402:25: branch_true: ...to here
multipath-tools-0.13.0/libdmmp/libdmmp.c:402:25: call_function: calling ‘dmmp_context_log_priority_get’ from ‘_ipc_connect’
multipath-tools-0.13.0/libdmmp/libdmmp.c:402:25: return_function: returning to ‘_ipc_connect’ from ‘dmmp_context_log_priority_get’
multipath-tools-0.13.0/libdmmp/libdmmp.c:402:25: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libdmmp/libdmmp.c:402:25: branch_true: ...to here
multipath-tools-0.13.0/libdmmp/libdmmp.c:402:25: call_function: calling ‘dmmp_log’ from ‘_ipc_connect’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def64]
multipath-tools-0.13.0/libmpathpersist/mpath_pr_ioctl.c:347:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&devname, 0)’
multipath-tools-0.13.0/libmpathpersist/mpath_pr_ioctl.c:328:5: enter_function: entry to ‘prin_do_scsi_ioctl’
multipath-tools-0.13.0/libmpathpersist/mpath_pr_ioctl.c:341:14: acquire_resource: opened here
multipath-tools-0.13.0/libmpathpersist/mpath_pr_ioctl.c:342:11: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmpathpersist/mpath_pr_ioctl.c:347:13: branch_false: ...to here
multipath-tools-0.13.0/libmpathpersist/mpath_pr_ioctl.c:347:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmpathpersist/mpath_pr_ioctl.c:350:31: branch_false: ...to here
multipath-tools-0.13.0/libmpathpersist/mpath_pr_ioctl.c:350:31: call_function: calling ‘get_prin_length’ from ‘prin_do_scsi_ioctl’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def65]
multipath-tools-0.13.0/libmpathutil/debug.c:33:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
multipath-tools-0.13.0/libmpathutil/debug.c:27:9: acquire_resource: ‘va_start’ called here
multipath-tools-0.13.0/libmpathutil/debug.c:28:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmpathutil/debug.c:29:20: branch_true: ...to here
multipath-tools-0.13.0/libmpathutil/debug.c:29:20: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmpathutil/debug.c:33:25: branch_true: ...to here
multipath-tools-0.13.0/libmpathutil/debug.c:33:25: throw: if ‘get_monotonic_time’ throws an exception...
multipath-tools-0.13.0/libmpathutil/debug.c:33:25: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def66]
multipath-tools-0.13.0/libmpathutil/debug.c:42:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
multipath-tools-0.13.0/libmpathutil/debug.c:27:9: acquire_resource: ‘va_start’ called here
multipath-tools-0.13.0/libmpathutil/debug.c:28:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmpathutil/debug.c:42:17: branch_false: ...to here
multipath-tools-0.13.0/libmpathutil/debug.c:42:17: throw: if ‘log_safe’ throws an exception...
multipath-tools-0.13.0/libmpathutil/debug.c:42:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def67]
multipath-tools-0.13.0/libmpathutil/parser.c:37:14: warning[-Wanalyzer-malloc-leak]: leak of ‘keyword’
multipath-tools-0.13.0/libmpathutil/parser.c:32:37: acquire_memory: allocated here
multipath-tools-0.13.0/libmpathutil/parser.c:34:12: branch_false: following ‘false’ branch (when ‘keyword’ is non-NULL)...
multipath-tools-0.13.0/libmpathutil/parser.c:37:14: branch_false: ...to here
multipath-tools-0.13.0/libmpathutil/parser.c:37:14: throw: if ‘vector_alloc_slot’ throws an exception...
multipath-tools-0.13.0/libmpathutil/parser.c:37:14: danger: ‘keyword’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def68]
multipath-tools-0.13.0/libmpathutil/parser.c:46:9: warning[-Wanalyzer-malloc-leak]: leak of ‘keyword’
multipath-tools-0.13.0/libmpathutil/parser.c:32:37: acquire_memory: allocated here
multipath-tools-0.13.0/libmpathutil/parser.c:34:12: branch_false: following ‘false’ branch (when ‘keyword’ is non-NULL)...
multipath-tools-0.13.0/libmpathutil/parser.c:37:14: branch_false: ...to here
multipath-tools-0.13.0/libmpathutil/parser.c:37:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmpathutil/parser.c:41:9: branch_true: ...to here
multipath-tools-0.13.0/libmpathutil/parser.c:46:9: throw: if ‘vector_set_slot’ throws an exception...
multipath-tools-0.13.0/libmpathutil/parser.c:46:9: danger: ‘keyword’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def69]
multipath-tools-0.13.0/libmpathutil/parser.c:130:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘keyword’
multipath-tools-0.13.0/libmpathutil/parser.c:114:1: enter_function: entry to ‘find_keyword’
multipath-tools-0.13.0/libmpathutil/parser.c:120:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmpathutil/parser.c:123:12: branch_false: ...to here
multipath-tools-0.13.0/libmpathutil/parser.c:128:21: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmpathutil/parser.c:129:27: branch_true: ...to here
multipath-tools-0.13.0/libmpathutil/parser.c:129:27: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmpathutil/parser.c:129:27: branch_true: ...to here
multipath-tools-0.13.0/libmpathutil/parser.c:130:20: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmpathutil/parser.c:131:22: branch_true: ...to here
multipath-tools-0.13.0/libmpathutil/parser.c:130:21: branch_false: following ‘false’ branch (when the strings are non-equal)...
multipath-tools-0.13.0/libmpathutil/parser.c:133:21: branch_false: ...to here
multipath-tools-0.13.0/libmpathutil/parser.c:133:20: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmpathutil/parser.c:134:35: branch_true: ...to here
multipath-tools-0.13.0/libmpathutil/parser.c:134:35: call_function: calling ‘find_keyword’ from ‘find_keyword’
Error: COMPILER_WARNING (CWE-704): [#def70]
multipath-tools-0.13.0/libmpathutil/parser.c: scope_hint: In function ‘snprint_keyword’
multipath-tools-0.13.0/libmpathutil/parser.c:155:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def71]
multipath-tools-0.13.0/libmpathutil/parser.c:155:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
multipath-tools-0.13.0/libmpathutil/parser.c:296:17: warning[-Wanalyzer-malloc-leak]: leak of ‘token’
multipath-tools-0.13.0/libmpathutil/parser.c:216:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmpathutil/parser.c:220:13: branch_false: ...to here
multipath-tools-0.13.0/libmpathutil/parser.c:220:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmpathutil/parser.c:224:18: branch_false: ...to here
multipath-tools-0.13.0/libmpathutil/parser.c:226:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmpathutil/parser.c:226:12: branch_false: ...to here
multipath-tools-0.13.0/libmpathutil/parser.c:233:20: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmpathutil/parser.c:236:17: branch_true: ...to here
multipath-tools-0.13.0/libmpathutil/parser.c:238:20: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmpathutil/parser.c:240:33: acquire_memory: allocated here
multipath-tools-0.13.0/libmpathutil/parser.c:242:28: branch_false: following ‘false’ branch (when ‘token’ is non-NULL)...
multipath-tools-0.13.0/libmpathutil/parser.c:245:25: branch_false: ...to here
multipath-tools-0.13.0/libmpathutil/parser.c:246:28: branch_false: following ‘false’ branch (when ‘in_string == 0’)...
multipath-tools-0.13.0/libmpathutil/parser.c:246:28: branch_false: ...to here
multipath-tools-0.13.0/libmpathutil/parser.c:296:17: throw: if ‘vector_set_slot’ throws an exception...
multipath-tools-0.13.0/libmpathutil/parser.c:296:17: danger: ‘token’ leaks here; was allocated at [(11)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def73]
multipath-tools-0.13.0/libmpathutil/parser.c:378:14: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
multipath-tools-0.13.0/libmpathutil/parser.c:375:15: acquire_memory: allocated here
multipath-tools-0.13.0/libmpathutil/parser.c:376:12: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
multipath-tools-0.13.0/libmpathutil/parser.c:378:14: branch_false: ...to here
multipath-tools-0.13.0/libmpathutil/parser.c:378:14: throw: if ‘vector_alloc_slot’ throws an exception...
multipath-tools-0.13.0/libmpathutil/parser.c:378:14: danger: ‘tmp’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def74]
multipath-tools-0.13.0/libmpathutil/parser.c:382:9: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
multipath-tools-0.13.0/libmpathutil/parser.c:375:15: acquire_memory: allocated here
multipath-tools-0.13.0/libmpathutil/parser.c:376:12: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
multipath-tools-0.13.0/libmpathutil/parser.c:378:14: branch_false: ...to here
multipath-tools-0.13.0/libmpathutil/parser.c:378:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmpathutil/parser.c:382:9: branch_true: ...to here
multipath-tools-0.13.0/libmpathutil/parser.c:382:9: throw: if ‘vector_set_slot’ throws an exception...
multipath-tools-0.13.0/libmpathutil/parser.c:382:9: danger: ‘tmp’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def75]
multipath-tools-0.13.0/libmpathutil/parser.c:575:17: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
multipath-tools-0.13.0/libmpathutil/parser.c:490:1: enter_function: entry to ‘process_stream’
multipath-tools-0.13.0/libmpathutil/parser.c:502:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmpathutil/parser.c:505:15: branch_false: ...to here
multipath-tools-0.13.0/libmpathutil/parser.c:505:15: acquire_memory: allocated here
multipath-tools-0.13.0/libmpathutil/parser.c:507:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
multipath-tools-0.13.0/libmpathutil/parser.c:507:12: branch_false: ...to here
multipath-tools-0.13.0/libmpathutil/parser.c:512:16: call_function: calling ‘read_line’ from ‘process_stream’
multipath-tools-0.13.0/libmpathutil/parser.c:512:16: return_function: returning to ‘process_stream’ from ‘read_line’
multipath-tools-0.13.0/libmpathutil/parser.c:512:16: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmpathutil/parser.c:574:13: branch_false: ...to here
multipath-tools-0.13.0/libmpathutil/parser.c:574:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmpathutil/parser.c:575:17: branch_true: ...to here
multipath-tools-0.13.0/libmpathutil/parser.c:575:17: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmpathutil/parser.c:575:17: branch_true: ...to here
multipath-tools-0.13.0/libmpathutil/parser.c:575:17: throw: if ‘dlog’ throws an exception...
multipath-tools-0.13.0/libmpathutil/parser.c:575:17: danger: ‘buf’ leaks here; was allocated at [(4)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def76]
multipath-tools-0.13.0/libmpathutil/parser.c:602:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "r")’
multipath-tools-0.13.0/libmpathutil/parser.c:584:1: enter_function: entry to ‘process_file’
multipath-tools-0.13.0/libmpathutil/parser.c:589:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmpathutil/parser.c:593:18: branch_false: ...to here
multipath-tools-0.13.0/libmpathutil/parser.c:593:18: acquire_resource: opened here
multipath-tools-0.13.0/libmpathutil/parser.c:594:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmpathutil/parser.c:601:9: branch_false: ...to here
multipath-tools-0.13.0/libmpathutil/parser.c:602:13: call_function: calling ‘process_stream’ from ‘process_file’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def77]
multipath-tools-0.13.0/libmpathutil/parser.c:602:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "r")’
multipath-tools-0.13.0/libmpathutil/parser.c:584:1: enter_function: entry to ‘process_file’
multipath-tools-0.13.0/libmpathutil/parser.c:589:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmpathutil/parser.c:593:18: branch_false: ...to here
multipath-tools-0.13.0/libmpathutil/parser.c:593:18: acquire_memory: allocated here
multipath-tools-0.13.0/libmpathutil/parser.c:594:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmpathutil/parser.c:601:9: branch_false: ...to here
multipath-tools-0.13.0/libmpathutil/parser.c:602:13: call_function: calling ‘process_stream’ from ‘process_file’
Error: COMPILER_WARNING (CWE-704): [#def78]
multipath-tools-0.13.0/libmpathutil/util.c: scope_hint: In function ‘libmp_basename’
multipath-tools-0.13.0/libmpathutil/util.c:41:19: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def79]
multipath-tools-0.13.0/libmpathutil/util.c:41:19: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-775): [#def80]
multipath-tools-0.13.0/libmpathutil/uxsock.c:77:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
multipath-tools-0.13.0/libmpathutil/uxsock.c:45:5: enter_function: entry to ‘ux_socket_listen’
multipath-tools-0.13.0/libmpathutil/uxsock.c:55:14: acquire_resource: stream socket created here
multipath-tools-0.13.0/libmpathutil/uxsock.c:56:12: branch_false: following ‘false’ branch (when ‘fd != -1’)...
multipath-tools-0.13.0/libmpathutil/uxsock.c:61:15: branch_false: ...to here
multipath-tools-0.13.0/libmpathutil/uxsock.c:61:15: call_function: calling ‘mpath_fill_sockaddr__’ from ‘ux_socket_listen’
multipath-tools-0.13.0/libmpathutil/uxsock.c:61:15: return_function: returning to ‘ux_socket_listen’ from ‘mpath_fill_sockaddr__’
multipath-tools-0.13.0/libmpathutil/uxsock.c:62:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmpathutil/uxsock.c:72:13: branch_false: ...to here
multipath-tools-0.13.0/libmpathutil/uxsock.c:76:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmpathutil/uxsock.c:77:17: branch_true: ...to here
multipath-tools-0.13.0/libmpathutil/uxsock.c:77:17: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmpathutil/uxsock.c:77:17: branch_true: ...to here
multipath-tools-0.13.0/libmpathutil/uxsock.c:77:17: throw: if ‘dlog’ throws an exception...
multipath-tools-0.13.0/libmpathutil/uxsock.c:77:17: danger: ‘fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def81]
multipath-tools-0.13.0/libmpathutil/uxsock.c:78:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
multipath-tools-0.13.0/libmpathutil/uxsock.c:45:5: enter_function: entry to ‘ux_socket_listen’
multipath-tools-0.13.0/libmpathutil/uxsock.c:55:14: acquire_resource: stream socket created here
multipath-tools-0.13.0/libmpathutil/uxsock.c:56:12: branch_false: following ‘false’ branch (when ‘fd != -1’)...
multipath-tools-0.13.0/libmpathutil/uxsock.c:61:15: branch_false: ...to here
multipath-tools-0.13.0/libmpathutil/uxsock.c:61:15: call_function: calling ‘mpath_fill_sockaddr__’ from ‘ux_socket_listen’
multipath-tools-0.13.0/libmpathutil/uxsock.c:61:15: return_function: returning to ‘ux_socket_listen’ from ‘mpath_fill_sockaddr__’
multipath-tools-0.13.0/libmpathutil/uxsock.c:62:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmpathutil/uxsock.c:72:13: branch_false: ...to here
multipath-tools-0.13.0/libmpathutil/uxsock.c:76:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmpathutil/uxsock.c:77:17: branch_true: ...to here
multipath-tools-0.13.0/libmpathutil/uxsock.c:78:17: throw: if ‘close’ throws an exception...
multipath-tools-0.13.0/libmpathutil/uxsock.c:78:17: danger: ‘fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-122): [#def82]
multipath-tools-0.13.0/libmpathutil/vector.c:77:34: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read
multipath-tools-0.13.0/libmpathutil/vector.c:69:1: enter_function: entry to ‘vector_insert_slot’
multipath-tools-0.13.0/libmpathutil/vector.c:73:14: call_function: calling ‘vector_alloc_slot’ from ‘vector_insert_slot’
multipath-tools-0.13.0/libmpathutil/vector.c:73:14: return_function: returning to ‘vector_insert_slot’ from ‘vector_alloc_slot’
multipath-tools-0.13.0/libmpathutil/vector.c:73:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmpathutil/vector.c:76:18: branch_true: ...to here
multipath-tools-0.13.0/libmpathutil/vector.c:76:18: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmpathutil/vector.c:77:34: danger: read of 8 bytes at offset ‘(long unsigned int)(*v.allocated + -2) * 8’ exceeds the buffer
Error: GCC_ANALYZER_WARNING (CWE-476): [#def83]
multipath-tools-0.13.0/libmultipath/alias.c:190:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘bdg’
multipath-tools-0.13.0/libmultipath/alias.c:844:5: enter_function: entry to ‘check_alias_settings’
multipath-tools-0.13.0/libmultipath/alias.c:851:19: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/alias.c:851:19: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/alias.c:859:9: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/alias.c:860:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/alias.c:866:56: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/alias.c:866:21: call_function: calling ‘add_binding’ from ‘check_alias_settings’
multipath-tools-0.13.0/libmultipath/alias.c:866:21: return_function: returning to ‘check_alias_settings’ from ‘add_binding’
multipath-tools-0.13.0/libmultipath/alias.c:866:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/alias.c:859:9: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/alias.c:859:9: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/alias.c:860:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/alias.c:866:56: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/alias.c:866:21: call_function: calling ‘add_binding’ from ‘check_alias_settings’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def84]
multipath-tools-0.13.0/libmultipath/alias.c:199:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
multipath-tools-0.13.0/libmultipath/alias.c:844:5: enter_function: entry to ‘check_alias_settings’
multipath-tools-0.13.0/libmultipath/alias.c:851:19: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/alias.c:851:19: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/alias.c:859:9: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/alias.c:860:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/alias.c:866:56: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/alias.c:866:21: call_function: calling ‘add_binding’ from ‘check_alias_settings’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def85]
multipath-tools-0.13.0/libmultipath/alias.c:199:21: warning[-Wanalyzer-malloc-leak]: leak of ‘bdg’
multipath-tools-0.13.0/libmultipath/alias.c:844:5: enter_function: entry to ‘check_alias_settings’
multipath-tools-0.13.0/libmultipath/alias.c:851:19: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/alias.c:851:19: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/alias.c:859:9: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/alias.c:860:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/alias.c:866:56: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/alias.c:866:21: call_function: calling ‘add_binding’ from ‘check_alias_settings’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def86]
multipath-tools-0.13.0/libmultipath/alias.c:330:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘ts’
multipath-tools-0.13.0/libmultipath/alias.c:766:12: enter_function: entry to ‘_read_bindings_file’
multipath-tools-0.13.0/libmultipath/alias.c:783:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/alias.c:786:16: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/alias.c:787:12: branch_true: following ‘true’ branch (when ‘file’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/alias.c:788:17: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/alias.c:792:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/alias.c:806:27: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/alias.c:806:27: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/alias.c:807:31: call_function: calling ‘update_bindings_file’ from ‘_read_bindings_file’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def87]
multipath-tools-0.13.0/libmultipath/alias.c:788:17: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
multipath-tools-0.13.0/libmultipath/alias.c:783:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/alias.c:786:16: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/alias.c:786:16: acquire_memory: allocated here
multipath-tools-0.13.0/libmultipath/alias.c:787:12: branch_true: following ‘true’ branch (when ‘file’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/alias.c:788:17: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/alias.c:788:17: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/alias.c:788:17: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/alias.c:788:17: throw: if ‘dlog’ throws an exception...
multipath-tools-0.13.0/libmultipath/alias.c:788:17: danger: ‘file’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def88]
multipath-tools-0.13.0/libmultipath/blacklist.c:56:13: warning[-Wanalyzer-malloc-leak]: leak of ‘ble’
multipath-tools-0.13.0/libmultipath/blacklist.c:44:12: branch_false: following ‘false’ branch (when ‘strdup_str’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/blacklist.c:47:12: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/blacklist.c:47:12: branch_false: following ‘false’ branch (when ‘blist’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/blacklist.c:50:15: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/blacklist.c:50:15: acquire_memory: allocated here
multipath-tools-0.13.0/libmultipath/blacklist.c:52:12: branch_false: following ‘false’ branch (when ‘ble’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/blacklist.c:55:21: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/blacklist.c:56:13: throw: if ‘regcomp’ throws an exception...
multipath-tools-0.13.0/libmultipath/blacklist.c:56:13: danger: ‘ble’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def89]
multipath-tools-0.13.0/libmultipath/blacklist.c:56:13: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup_str’
multipath-tools-0.13.0/libmultipath/blacklist.c:43:22: acquire_memory: allocated here
multipath-tools-0.13.0/libmultipath/blacklist.c:44:12: branch_false: following ‘false’ branch (when ‘strdup_str’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/blacklist.c:47:12: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/blacklist.c:47:12: branch_false: following ‘false’ branch (when ‘blist’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/blacklist.c:50:15: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/blacklist.c:52:12: branch_false: following ‘false’ branch (when ‘ble’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/blacklist.c:55:21: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/blacklist.c:56:13: throw: if ‘regcomp’ throws an exception...
multipath-tools-0.13.0/libmultipath/blacklist.c:56:13: danger: ‘strdup_str’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def90]
multipath-tools-0.13.0/libmultipath/blacklist.c:59:14: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup_str’
multipath-tools-0.13.0/libmultipath/blacklist.c:43:22: acquire_memory: allocated here
multipath-tools-0.13.0/libmultipath/blacklist.c:44:12: branch_false: following ‘false’ branch (when ‘strdup_str’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/blacklist.c:47:12: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/blacklist.c:47:12: branch_false: following ‘false’ branch (when ‘blist’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/blacklist.c:50:15: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/blacklist.c:52:12: branch_false: following ‘false’ branch (when ‘ble’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/blacklist.c:55:21: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/blacklist.c:56:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/blacklist.c:59:14: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/blacklist.c:59:14: throw: if ‘vector_alloc_slot’ throws an exception...
multipath-tools-0.13.0/libmultipath/blacklist.c:59:14: danger: ‘strdup_str’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def91]
multipath-tools-0.13.0/libmultipath/blacklist.c:85:14: warning[-Wanalyzer-malloc-leak]: leak of ‘ble’
multipath-tools-0.13.0/libmultipath/blacklist.c:81:15: acquire_memory: allocated here
multipath-tools-0.13.0/libmultipath/blacklist.c:82:12: branch_false: following ‘false’ branch (when ‘ble’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/blacklist.c:85:14: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/blacklist.c:85:14: throw: if ‘vector_alloc_slot’ throws an exception...
multipath-tools-0.13.0/libmultipath/blacklist.c:85:14: danger: ‘ble’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def92]
multipath-tools-0.13.0/libmultipath/blacklist.c:89:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ble’
multipath-tools-0.13.0/libmultipath/blacklist.c:81:15: acquire_memory: allocated here
multipath-tools-0.13.0/libmultipath/blacklist.c:82:12: branch_false: following ‘false’ branch (when ‘ble’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/blacklist.c:85:14: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/blacklist.c:85:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/blacklist.c:89:9: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/blacklist.c:89:9: throw: if ‘vector_set_slot’ throws an exception...
multipath-tools-0.13.0/libmultipath/blacklist.c:89:9: danger: ‘ble’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def93]
multipath-tools-0.13.0/libmultipath/blacklist.c:114:21: warning[-Wanalyzer-malloc-leak]: leak of ‘vendor_str’
multipath-tools-0.13.0/libmultipath/blacklist.c:100:12: branch_false: following ‘false’ branch (when ‘blist’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/blacklist.c:103:15: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/blacklist.c:103:15: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/blacklist.c:103:15: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/blacklist.c:105:12: branch_false: following ‘false’ branch (when ‘ble’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/blacklist.c:108:12: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/blacklist.c:108:12: branch_true: following ‘true’ branch (when ‘vendor’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/blacklist.c:109:30: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/blacklist.c:109:30: acquire_memory: allocated here
multipath-tools-0.13.0/libmultipath/blacklist.c:110:20: branch_false: following ‘false’ branch (when ‘vendor_str’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/blacklist.c:113:29: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/blacklist.c:114:21: throw: if ‘regcomp’ throws an exception...
multipath-tools-0.13.0/libmultipath/blacklist.c:114:21: danger: ‘vendor_str’ leaks here; was allocated at [(9)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def94]
multipath-tools-0.13.0/libmultipath/blacklist.c:125:21: warning[-Wanalyzer-malloc-leak]: leak of ‘product_str’
multipath-tools-0.13.0/libmultipath/blacklist.c:100:12: branch_false: following ‘false’ branch (when ‘blist’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/blacklist.c:103:15: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/blacklist.c:103:15: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/blacklist.c:103:15: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/blacklist.c:105:12: branch_false: following ‘false’ branch (when ‘ble’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/blacklist.c:108:12: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/blacklist.c:108:12: branch_false: following ‘false’ branch (when ‘vendor’ is NULL)...
multipath-tools-0.13.0/libmultipath/blacklist.c:119:12: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/blacklist.c:119:12: branch_true: following ‘true’ branch (when ‘product’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/blacklist.c:120:31: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/blacklist.c:120:31: acquire_memory: allocated here
multipath-tools-0.13.0/libmultipath/blacklist.c:121:20: branch_false: following ‘false’ branch (when ‘product_str’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/blacklist.c:124:29: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/blacklist.c:125:21: throw: if ‘regcomp’ throws an exception...
multipath-tools-0.13.0/libmultipath/blacklist.c:125:21: danger: ‘product_str’ leaks here; was allocated at [(11)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def95]
multipath-tools-0.13.0/libmultipath/blacklist.c:134:17: warning[-Wanalyzer-malloc-leak]: leak of ‘product_str’
multipath-tools-0.13.0/libmultipath/blacklist.c:100:12: branch_false: following ‘false’ branch (when ‘blist’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/blacklist.c:103:15: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/blacklist.c:103:15: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/blacklist.c:103:15: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/blacklist.c:105:12: branch_false: following ‘false’ branch (when ‘ble’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/blacklist.c:108:12: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/blacklist.c:108:12: branch_true: following ‘true’ branch (when ‘vendor’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/blacklist.c:109:30: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/blacklist.c:110:20: branch_false: following ‘false’ branch (when ‘vendor_str’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/blacklist.c:113:29: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/blacklist.c:114:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/blacklist.c:117:17: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/blacklist.c:119:12: branch_true: following ‘true’ branch (when ‘product’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/blacklist.c:120:31: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/blacklist.c:120:31: acquire_memory: allocated here
multipath-tools-0.13.0/libmultipath/blacklist.c:121:20: branch_false: following ‘false’ branch (when ‘product_str’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/blacklist.c:124:29: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/blacklist.c:125:20: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/blacklist.c:126:25: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/blacklist.c:133:12: branch_true: following ‘true’ branch (when ‘vendor’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/blacklist.c:134:17: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/blacklist.c:134:17: throw: if ‘regfree’ throws an exception...
multipath-tools-0.13.0/libmultipath/blacklist.c:134:17: danger: ‘product_str’ leaks here; was allocated at [(15)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def96]
multipath-tools-0.13.0/libmultipath/blacklist.c:212:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&fn, 0)’
multipath-tools-0.13.0/libmultipath/blacklist.c:207:14: acquire_resource: opened here
multipath-tools-0.13.0/libmultipath/blacklist.c:208:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/blacklist.c:211:15: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/blacklist.c:212:9: danger: ‘open(&fn, 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def97]
multipath-tools-0.13.0/libmultipath/checkers/directio.c:204:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ct’
multipath-tools-0.13.0/libmultipath/checkers/directio.c:166:5: enter_function: entry to ‘libcheck_init’
multipath-tools-0.13.0/libmultipath/checkers/directio.c:173:14: acquire_memory: allocated here
multipath-tools-0.13.0/libmultipath/checkers/directio.c:174:12: branch_false: following ‘false’ branch (when ‘ct’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/checkers/directio.c:176:9: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/checkers/directio.c:178:13: call_function: calling ‘set_aio_group’ from ‘libcheck_init’
multipath-tools-0.13.0/libmultipath/checkers/directio.c:178:13: return_function: returning to ‘libcheck_init’ from ‘set_aio_group’
multipath-tools-0.13.0/libmultipath/checkers/directio.c:178:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/checkers/directio.c:181:15: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/checkers/directio.c:182:12: branch_false: following ‘false’ branch (when ‘req’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/checkers/directio.c:185:9: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/checkers/directio.c:198:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/checkers/directio.c:201:13: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/checkers/directio.c:201:13: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/checkers/directio.c:201:13: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/checkers/directio.c:204:17: throw: if ‘fcntl’ throws an exception...
multipath-tools-0.13.0/libmultipath/checkers/directio.c:204:17: danger: ‘ct’ leaks here; was allocated at [(2)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def98]
multipath-tools-0.13.0/libmultipath/checkers/directio.c:209:21: warning[-Wanalyzer-malloc-leak]: leak of ‘ct’
multipath-tools-0.13.0/libmultipath/checkers/directio.c:166:5: enter_function: entry to ‘libcheck_init’
multipath-tools-0.13.0/libmultipath/checkers/directio.c:173:14: acquire_memory: allocated here
multipath-tools-0.13.0/libmultipath/checkers/directio.c:174:12: branch_false: following ‘false’ branch (when ‘ct’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/checkers/directio.c:176:9: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/checkers/directio.c:178:13: call_function: calling ‘set_aio_group’ from ‘libcheck_init’
multipath-tools-0.13.0/libmultipath/checkers/directio.c:178:13: return_function: returning to ‘libcheck_init’ from ‘set_aio_group’
multipath-tools-0.13.0/libmultipath/checkers/directio.c:178:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/checkers/directio.c:181:15: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/checkers/directio.c:182:12: branch_false: following ‘false’ branch (when ‘req’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/checkers/directio.c:185:9: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/checkers/directio.c:198:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/checkers/directio.c:201:13: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/checkers/directio.c:201:13: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/checkers/directio.c:201:13: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/checkers/directio.c:205:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/checkers/directio.c:205:12: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/checkers/directio.c:207:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/checkers/directio.c:207:12: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/checkers/directio.c:209:21: throw: if ‘fcntl’ throws an exception...
multipath-tools-0.13.0/libmultipath/checkers/directio.c:209:21: danger: ‘ct’ leaks here; was allocated at [(2)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def99]
multipath-tools-0.13.0/libmultipath/checkers/tur.c:78:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ct’
multipath-tools-0.13.0/libmultipath/checkers/tur.c:70:14: acquire_memory: allocated here
multipath-tools-0.13.0/libmultipath/checkers/tur.c:71:12: branch_false: following ‘false’ branch (when ‘ct’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/checkers/tur.c:73:9: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/checkers/tur.c:78:9: throw: if ‘pthread_cond_init_mono’ throws an exception...
multipath-tools-0.13.0/libmultipath/checkers/tur.c:78:9: danger: ‘ct’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def100]
multipath-tools-0.13.0/libmultipath/config.c:889:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 504)’
multipath-tools-0.13.0/libmultipath/config.c:868:16: enter_function: entry to ‘load_config’
multipath-tools-0.13.0/libmultipath/config.c:870:31: call_function: inlined call to ‘alloc_config’ from ‘load_config’
multipath-tools-0.13.0/libmultipath/config.c:872:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/config.c:872:22: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/config.c:872:22: call_function: calling ‘init_config__’ from ‘load_config’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def101]
multipath-tools-0.13.0/libmultipath/configure.c:768:17: warning[-Wanalyzer-malloc-leak]: leak of ‘cmpp_feat’
multipath-tools-0.13.0/libmultipath/configure.c:690:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/configure.c:704:12: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/configure.c:710:19: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/configure.c:721:13: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/configure.c:721:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/configure.c:730:12: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/configure.c:730:12: branch_false: following ‘false’ branch (when ‘force_reload == 0’)...
multipath-tools-0.13.0/libmultipath/configure.c:736:14: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/configure.c:736:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/configure.c:742:13: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/configure.c:748:13: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/configure.c:751:14: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/configure.c:750:13: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/configure.c:757:12: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/configure.c:765:21: acquire_memory: allocated here
multipath-tools-0.13.0/libmultipath/configure.c:767:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/configure.c:768:17: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/configure.c:768:17: throw: if ‘remove_feature’ throws an exception...
multipath-tools-0.13.0/libmultipath/configure.c:768:17: danger: ‘cmpp_feat’ leaks here; was allocated at [(15)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def102]
multipath-tools-0.13.0/libmultipath/configure.c:768:17: warning[-Wanalyzer-malloc-leak]: leak of ‘mpp_feat’
multipath-tools-0.13.0/libmultipath/configure.c:690:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/configure.c:704:12: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/configure.c:710:19: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/configure.c:721:13: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/configure.c:721:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/configure.c:730:12: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/configure.c:730:12: branch_false: following ‘false’ branch (when ‘force_reload == 0’)...
multipath-tools-0.13.0/libmultipath/configure.c:736:14: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/configure.c:736:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/configure.c:742:13: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/configure.c:748:13: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/configure.c:751:14: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/configure.c:750:13: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/configure.c:757:12: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/configure.c:766:20: acquire_memory: allocated here
multipath-tools-0.13.0/libmultipath/configure.c:767:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/configure.c:768:17: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/configure.c:768:17: throw: if ‘remove_feature’ throws an exception...
multipath-tools-0.13.0/libmultipath/configure.c:768:17: danger: ‘mpp_feat’ leaks here; was allocated at [(15)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def103]
multipath-tools-0.13.0/libmultipath/configure.c:769:17: warning[-Wanalyzer-malloc-leak]: leak of ‘cmpp_feat’
multipath-tools-0.13.0/libmultipath/configure.c:690:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/configure.c:704:12: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/configure.c:710:19: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/configure.c:721:13: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/configure.c:721:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/configure.c:730:12: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/configure.c:730:12: branch_false: following ‘false’ branch (when ‘force_reload == 0’)...
multipath-tools-0.13.0/libmultipath/configure.c:736:14: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/configure.c:736:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/configure.c:742:13: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/configure.c:748:13: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/configure.c:751:14: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/configure.c:750:13: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/configure.c:757:12: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/configure.c:765:21: acquire_memory: allocated here
multipath-tools-0.13.0/libmultipath/configure.c:767:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/configure.c:768:17: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/configure.c:769:17: throw: if ‘remove_feature’ throws an exception...
multipath-tools-0.13.0/libmultipath/configure.c:769:17: danger: ‘cmpp_feat’ leaks here; was allocated at [(15)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def104]
multipath-tools-0.13.0/libmultipath/configure.c:770:17: warning[-Wanalyzer-malloc-leak]: leak of ‘cmpp_feat’
multipath-tools-0.13.0/libmultipath/configure.c:690:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/configure.c:704:12: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/configure.c:710:19: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/configure.c:721:13: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/configure.c:721:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/configure.c:730:12: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/configure.c:730:12: branch_false: following ‘false’ branch (when ‘force_reload == 0’)...
multipath-tools-0.13.0/libmultipath/configure.c:736:14: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/configure.c:736:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/configure.c:742:13: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/configure.c:748:13: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/configure.c:751:14: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/configure.c:750:13: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/configure.c:757:12: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/configure.c:765:21: acquire_memory: allocated here
multipath-tools-0.13.0/libmultipath/configure.c:767:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/configure.c:768:17: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/configure.c:770:17: throw: if ‘remove_feature’ throws an exception...
multipath-tools-0.13.0/libmultipath/configure.c:770:17: danger: ‘cmpp_feat’ leaks here; was allocated at [(15)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def105]
multipath-tools-0.13.0/libmultipath/devmapper.c:110:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘dmt’
multipath-tools-0.13.0/libmultipath/devmapper.c:1585:5: enter_function: entry to ‘dm_reassign_table’
multipath-tools-0.13.0/libmultipath/devmapper.c:1595:21: call_function: calling ‘libmp_dm_task_create’ from ‘dm_reassign_table’
multipath-tools-0.13.0/libmultipath/devmapper.c:1589:67: call_function: inlined call to ‘cleanup_dm_task’ from ‘dm_reassign_table’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def106]
multipath-tools-0.13.0/libmultipath/devmapper.c:1334:55: warning[-Wanalyzer-malloc-leak]: leak of ‘params’
multipath-tools-0.13.0/libmultipath/devmapper.c:1331:1: enter_function: entry to ‘is_valid_partmap’
multipath-tools-0.13.0/libmultipath/devmapper.c:1338:13: call_function: calling ‘libmp_mapinfo’ from ‘is_valid_partmap’
multipath-tools-0.13.0/libmultipath/devmapper.c:1334:55: throw: if ‘cleanup_charp’ throws an exception...
multipath-tools-0.13.0/libmultipath/devmapper.c:1334:55: danger: ‘params’ leaks here; was allocated at [(71)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/70)
Error: GCC_ANALYZER_WARNING (CWE-465): [#def107]
multipath-tools-0.13.0/libmultipath/dmparser.c:31:12: warning[-Wanalyzer-deref-before-check]: check of ‘p’ for NULL after already dereferencing it
Error: GCC_ANALYZER_WARNING (CWE-476): [#def108]
multipath-tools-0.13.0/libmultipath/dmparser.c:435:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pgp’
multipath-tools-0.13.0/libmultipath/dmparser.c:344:5: enter_function: entry to ‘disassemble_status’
multipath-tools-0.13.0/libmultipath/dmparser.c:367:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:370:28: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
multipath-tools-0.13.0/libmultipath/dmparser.c:392:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:395:30: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
multipath-tools-0.13.0/libmultipath/dmparser.c:406:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:409:18: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
multipath-tools-0.13.0/libmultipath/dmparser.c:412:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:418:14: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:420:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:420:12: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:423:21: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:424:23: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:424:23: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:428:22: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:430:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:433:25: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:435:25: danger: dereference of NULL ‘pgp’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def109]
multipath-tools-0.13.0/libmultipath/dmparser.c:438:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pgp’
multipath-tools-0.13.0/libmultipath/dmparser.c:344:5: enter_function: entry to ‘disassemble_status’
multipath-tools-0.13.0/libmultipath/dmparser.c:367:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:370:28: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
multipath-tools-0.13.0/libmultipath/dmparser.c:392:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:395:30: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
multipath-tools-0.13.0/libmultipath/dmparser.c:406:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:409:18: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
multipath-tools-0.13.0/libmultipath/dmparser.c:412:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:418:14: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:420:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:420:12: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:423:21: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:424:23: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:424:23: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:428:22: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:430:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:433:25: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:438:25: danger: dereference of NULL ‘pgp’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def110]
multipath-tools-0.13.0/libmultipath/dmparser.c:441:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pgp’
multipath-tools-0.13.0/libmultipath/dmparser.c:344:5: enter_function: entry to ‘disassemble_status’
multipath-tools-0.13.0/libmultipath/dmparser.c:367:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:370:28: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
multipath-tools-0.13.0/libmultipath/dmparser.c:392:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:395:30: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
multipath-tools-0.13.0/libmultipath/dmparser.c:406:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:409:18: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
multipath-tools-0.13.0/libmultipath/dmparser.c:412:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:418:14: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:420:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:420:12: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:423:21: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:424:23: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:424:23: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:428:22: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:430:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:433:25: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:441:25: danger: dereference of NULL ‘pgp’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def111]
multipath-tools-0.13.0/libmultipath/dmparser.c:444:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pgp’
multipath-tools-0.13.0/libmultipath/dmparser.c:344:5: enter_function: entry to ‘disassemble_status’
multipath-tools-0.13.0/libmultipath/dmparser.c:367:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:370:28: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
multipath-tools-0.13.0/libmultipath/dmparser.c:392:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:395:30: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
multipath-tools-0.13.0/libmultipath/dmparser.c:406:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:409:18: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
multipath-tools-0.13.0/libmultipath/dmparser.c:412:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:418:14: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:420:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:420:12: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:423:21: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:424:23: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:424:23: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:428:22: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:430:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:433:25: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:444:25: danger: dereference of NULL ‘pgp’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def112]
multipath-tools-0.13.0/libmultipath/dmparser.c:500:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pp’
multipath-tools-0.13.0/libmultipath/dmparser.c:344:5: enter_function: entry to ‘disassemble_status’
multipath-tools-0.13.0/libmultipath/dmparser.c:367:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:370:28: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
multipath-tools-0.13.0/libmultipath/dmparser.c:392:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:395:30: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
multipath-tools-0.13.0/libmultipath/dmparser.c:406:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:409:18: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
multipath-tools-0.13.0/libmultipath/dmparser.c:412:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:418:14: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:420:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:420:12: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:423:21: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:424:23: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:424:23: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:430:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:433:25: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:454:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:457:31: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
multipath-tools-0.13.0/libmultipath/dmparser.c:466:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:469:29: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
multipath-tools-0.13.0/libmultipath/dmparser.c:474:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:477:31: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
multipath-tools-0.13.0/libmultipath/dmparser.c:480:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:480:20: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:484:30: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:495:28: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:498:33: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:514:28: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:517:41: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
multipath-tools-0.13.0/libmultipath/dmparser.c:523:37: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:483:44: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:483:29: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:484:30: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:495:28: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:498:33: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:500:33: danger: dereference of NULL ‘pp’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def113]
multipath-tools-0.13.0/libmultipath/dmparser.c:503:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pp’
multipath-tools-0.13.0/libmultipath/dmparser.c:344:5: enter_function: entry to ‘disassemble_status’
multipath-tools-0.13.0/libmultipath/dmparser.c:367:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:370:28: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
multipath-tools-0.13.0/libmultipath/dmparser.c:392:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:395:30: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
multipath-tools-0.13.0/libmultipath/dmparser.c:406:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:409:18: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
multipath-tools-0.13.0/libmultipath/dmparser.c:412:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:418:14: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:420:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:420:12: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:423:21: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:424:23: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:424:23: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:430:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:433:25: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:454:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:457:31: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
multipath-tools-0.13.0/libmultipath/dmparser.c:466:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:469:29: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
multipath-tools-0.13.0/libmultipath/dmparser.c:474:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:477:31: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
multipath-tools-0.13.0/libmultipath/dmparser.c:480:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:480:20: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:484:30: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:495:28: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:498:33: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:514:28: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:517:41: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
multipath-tools-0.13.0/libmultipath/dmparser.c:523:37: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:483:44: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:483:29: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:484:30: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:495:28: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:498:33: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:503:33: danger: dereference of NULL ‘pp’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def114]
multipath-tools-0.13.0/libmultipath/dmparser.c:517:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pp’
multipath-tools-0.13.0/libmultipath/dmparser.c:344:5: enter_function: entry to ‘disassemble_status’
multipath-tools-0.13.0/libmultipath/dmparser.c:367:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:370:28: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
multipath-tools-0.13.0/libmultipath/dmparser.c:392:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:395:30: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
multipath-tools-0.13.0/libmultipath/dmparser.c:406:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:409:18: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
multipath-tools-0.13.0/libmultipath/dmparser.c:412:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:418:14: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:420:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:420:12: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:423:21: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:424:23: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:424:23: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:430:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:433:25: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:454:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:457:31: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
multipath-tools-0.13.0/libmultipath/dmparser.c:466:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:469:29: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
multipath-tools-0.13.0/libmultipath/dmparser.c:474:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:477:31: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
multipath-tools-0.13.0/libmultipath/dmparser.c:480:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:480:20: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:484:30: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:495:28: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:498:33: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:514:28: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:517:41: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
multipath-tools-0.13.0/libmultipath/dmparser.c:523:37: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:483:44: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:483:29: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:484:30: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:495:28: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:498:33: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/dmparser.c:514:28: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/dmparser.c:517:41: call_function: inlined call to ‘atoi’ from ‘disassemble_status’
multipath-tools-0.13.0/libmultipath/dmparser.c:517:25: danger: dereference of NULL ‘pp’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def115]
multipath-tools-0.13.0/libmultipath/file.c:51:25: warning[-Wanalyzer-malloc-leak]: leak of ‘end’
multipath-tools-0.13.0/libmultipath/file.c:35:20: acquire_memory: allocated here
multipath-tools-0.13.0/libmultipath/file.c:36:12: branch_false: following ‘false’ branch (when ‘pathname’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/file.c:36:12: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/file.c:46:16: branch_true: following ‘true’ branch (when ‘end’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/file.c:48:17: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/file.c:50:20: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/file.c:51:25: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/file.c:51:25: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/file.c:51:25: throw: if ‘dlog’ throws an exception...
multipath-tools-0.13.0/libmultipath/file.c:51:25: danger: ‘end’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def116]
multipath-tools-0.13.0/libmultipath/file.c:57:25: warning[-Wanalyzer-malloc-leak]: leak of ‘end’
multipath-tools-0.13.0/libmultipath/file.c:35:20: acquire_memory: allocated here
multipath-tools-0.13.0/libmultipath/file.c:36:12: branch_false: following ‘false’ branch (when ‘pathname’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/file.c:36:12: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/file.c:46:16: branch_true: following ‘true’ branch (when ‘end’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/file.c:48:17: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/file.c:50:20: branch_false: following ‘false’ branch (when ‘err == 0’)...
multipath-tools-0.13.0/libmultipath/file.c:57:25: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/file.c:57:25: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/file.c:57:25: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/file.c:57:25: throw: if ‘dlog’ throws an exception...
multipath-tools-0.13.0/libmultipath/file.c:57:25: danger: ‘end’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def117]
multipath-tools-0.13.0/libmultipath/file.c:93:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
multipath-tools-0.13.0/libmultipath/file.c:110:1: enter_function: entry to ‘open_file’
multipath-tools-0.13.0/libmultipath/file.c:115:13: call_function: calling ‘ensure_directories_exist’ from ‘open_file’
multipath-tools-0.13.0/libmultipath/file.c:115:13: return_function: returning to ‘open_file’ from ‘ensure_directories_exist’
multipath-tools-0.13.0/libmultipath/file.c:115:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/file.c:117:9: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/file.c:119:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/file.c:120:21: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/file.c:120:20: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/file.c:121:25: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/file.c:124:30: acquire_resource: opened here
multipath-tools-0.13.0/libmultipath/file.c:125:28: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/file.c:137:13: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/file.c:137:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/file.c:137:27: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/file.c:137:27: call_function: calling ‘lock_file’ from ‘open_file’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def118]
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:78:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘path’
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:838:12: enter_function: entry to ‘_delete_map’
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:844:15: call_function: calling ‘_find_nvme_map_by_devt’ from ‘_delete_map’
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:844:15: return_function: returning to ‘_delete_map’ from ‘_find_nvme_map_by_devt’
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:845:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:848:13: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:849:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:852:17: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:854:9: call_function: calling ‘cleanup_nvme_map’ from ‘_delete_map’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def119]
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:98:9: warning[-Wanalyzer-malloc-leak]: leak of ‘map’
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:764:12: enter_function: entry to ‘_add_map’
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:770:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:773:15: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:773:15: acquire_memory: allocated here
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:774:12: branch_false: following ‘false’ branch (when ‘map’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:777:9: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:786:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:787:17: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:787:17: call_function: calling ‘cleanup_nvme_map’ from ‘_add_map’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def120]
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:634:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘path’
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:883:6: enter_function: entry to ‘check__’
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:888:9: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:891:17: call_function: calling ‘_find_controllers’ from ‘check__’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def121]
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:744:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘path’
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:883:6: enter_function: entry to ‘check__’
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:888:9: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:891:17: call_function: calling ‘_find_controllers’ from ‘check__’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def122]
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:778:21: warning[-Wanalyzer-malloc-leak]: leak of ‘map’
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:770:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:773:15: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:773:15: acquire_memory: allocated here
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:774:12: branch_false: following ‘false’ branch (when ‘map’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:777:9: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:778:21: throw: if ‘udev_device_ref’ throws an exception...
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:778:21: danger: ‘map’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def123]
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:786:14: warning[-Wanalyzer-malloc-leak]: leak of ‘map’
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:770:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:773:15: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:773:15: acquire_memory: allocated here
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:774:12: branch_false: following ‘false’ branch (when ‘map’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:777:9: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:786:14: throw: if ‘vector_alloc_slot’ throws an exception...
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:786:14: danger: ‘map’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def124]
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:790:9: warning[-Wanalyzer-malloc-leak]: leak of ‘map’
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:770:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:773:15: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:773:15: acquire_memory: allocated here
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:774:12: branch_false: following ‘false’ branch (when ‘map’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:777:9: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:786:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:790:9: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:790:9: throw: if ‘vector_set_slot’ throws an exception...
multipath-tools-0.13.0/libmultipath/foreign/nvme.c:790:9: danger: ‘map’ leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def125]
multipath-tools-0.13.0/libmultipath/print.c:1233:9: warning[-Wanalyzer-malloc-leak]: leak of ‘p_width’
multipath-tools-0.13.0/libmultipath/print.c:1231:6: enter_function: entry to ‘print_multipath_topology__’
multipath-tools-0.13.0/libmultipath/print.c:1239:19: call_function: calling ‘alloc_path_layout’ from ‘print_multipath_topology__’
multipath-tools-0.13.0/libmultipath/print.c:1239:19: return_function: returning to ‘print_multipath_topology__’ from ‘alloc_path_layout’
multipath-tools-0.13.0/libmultipath/print.c:1242:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/print.c:1242:12: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/print.c:1243:17: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/print.c:1244:35: throw: if the called function throws an exception...
multipath-tools-0.13.0/libmultipath/print.c:1234:23: throw: if ‘cleanup_ucharp’ throws an exception...
multipath-tools-0.13.0/libmultipath/print.c:1233:9: throw: if ‘reset_strbuf’ throws an exception...
multipath-tools-0.13.0/libmultipath/print.c:1233:9: danger: ‘p_width’ leaks here; was allocated at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def126]
multipath-tools-0.13.0/libmultipath/print.c:1279:9: warning[-Wanalyzer-malloc-leak]: leak of ‘width’
multipath-tools-0.13.0/libmultipath/print.c:1272:5: enter_function: entry to ‘snprint_multipath_topology__’
multipath-tools-0.13.0/libmultipath/print.c:1283:12: branch_false: following ‘false’ branch (when ‘verbosity > 0’)...
multipath-tools-0.13.0/libmultipath/print.c:1286:22: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/print.c:1286:22: call_function: calling ‘alloc_multipath_layout’ from ‘snprint_multipath_topology__’
multipath-tools-0.13.0/libmultipath/print.c:1286:22: return_function: returning to ‘snprint_multipath_topology__’ from ‘alloc_multipath_layout’
multipath-tools-0.13.0/libmultipath/print.c:1286:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/print.c:1289:12: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/print.c:1290:24: call_function: calling ‘snprint_multipath__’ from ‘snprint_multipath_topology__’
multipath-tools-0.13.0/libmultipath/print.c:1281:23: throw: if ‘cleanup_ucharp’ throws an exception...
multipath-tools-0.13.0/libmultipath/print.c:1279:9: throw: if ‘reset_strbuf’ throws an exception...
multipath-tools-0.13.0/libmultipath/print.c:1279:9: danger: ‘width’ leaks here; was allocated at [(6)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def127]
multipath-tools-0.13.0/libmultipath/print.c:2064:9: warning[-Wanalyzer-malloc-leak]: leak of ‘width’
multipath-tools-0.13.0/libmultipath/print.c:2060:13: enter_function: entry to ‘print_all_paths_custo’
multipath-tools-0.13.0/libmultipath/print.c:2067:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/print.c:2073:22: call_function: calling ‘alloc_path_layout’ from ‘print_all_paths_custo’
multipath-tools-0.13.0/libmultipath/print.c:2073:22: return_function: returning to ‘print_all_paths_custo’ from ‘alloc_path_layout’
multipath-tools-0.13.0/libmultipath/print.c:2073:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/print.c:2075:9: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/print.c:2075:9: call_function: calling ‘get_path_layout’ from ‘print_all_paths_custo’
multipath-tools-0.13.0/libmultipath/print.c:2065:23: throw: if ‘cleanup_ucharp’ throws an exception...
multipath-tools-0.13.0/libmultipath/print.c:2064:9: throw: if ‘reset_strbuf’ throws an exception...
multipath-tools-0.13.0/libmultipath/print.c:2064:9: danger: ‘width’ leaks here; was allocated at [(6)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def128]
multipath-tools-0.13.0/libmultipath/prioritizers/alua_rtpg.c:192:22: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
multipath-tools-0.13.0/libmultipath/prioritizers/alua_rtpg.c:232:1: enter_function: entry to ‘get_target_port_group’
multipath-tools-0.13.0/libmultipath/prioritizers/alua_rtpg.c:241:32: acquire_memory: allocated here
multipath-tools-0.13.0/libmultipath/prioritizers/alua_rtpg.c:242:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/prioritizers/alua_rtpg.c:248:9: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/prioritizers/alua_rtpg.c:249:14: call_function: calling ‘do_inquiry’ from ‘get_target_port_group’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def129]
multipath-tools-0.13.0/libmultipath/prioritizers/alua_rtpg.c:201:30: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
multipath-tools-0.13.0/libmultipath/prioritizers/alua_rtpg.c:232:1: enter_function: entry to ‘get_target_port_group’
multipath-tools-0.13.0/libmultipath/prioritizers/alua_rtpg.c:241:32: acquire_memory: allocated here
multipath-tools-0.13.0/libmultipath/prioritizers/alua_rtpg.c:242:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/prioritizers/alua_rtpg.c:248:9: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/prioritizers/alua_rtpg.c:249:14: call_function: calling ‘do_inquiry’ from ‘get_target_port_group’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def130]
multipath-tools-0.13.0/libmultipath/prioritizers/alua_rtpg.c:208:16: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
multipath-tools-0.13.0/libmultipath/prioritizers/alua_rtpg.c:232:1: enter_function: entry to ‘get_target_port_group’
multipath-tools-0.13.0/libmultipath/prioritizers/alua_rtpg.c:241:32: acquire_memory: allocated here
multipath-tools-0.13.0/libmultipath/prioritizers/alua_rtpg.c:242:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/prioritizers/alua_rtpg.c:248:9: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/prioritizers/alua_rtpg.c:249:14: call_function: calling ‘do_inquiry’ from ‘get_target_port_group’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def131]
multipath-tools-0.13.0/libmultipath/prioritizers/iet.c:46:33: warning[-Wanalyzer-malloc-leak]: leak of ‘find_regex(&buffer, "(sd[a-z]+)")’
multipath-tools-0.13.0/libmultipath/prioritizers/iet.c:76:5: enter_function: entry to ‘iet_prio’
multipath-tools-0.13.0/libmultipath/prioritizers/iet.c:82:12: branch_false: following ‘false’ branch (when ‘args’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/prioritizers/iet.c:87:13: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/prioritizers/iet.c:87:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/prioritizers/iet.c:93:13: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/prioritizers/iet.c:93:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/prioritizers/iet.c:102:14: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/prioritizers/iet.c:104:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/prioritizers/iet.c:104:12: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/prioritizers/iet.c:108:16: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/prioritizers/iet.c:109:21: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/prioritizers/iet.c:116:42: call_function: calling ‘find_regex’ from ‘iet_prio’
multipath-tools-0.13.0/libmultipath/prioritizers/iet.c:116:42: return_function: returning to ‘iet_prio’ from ‘find_regex’
multipath-tools-0.13.0/libmultipath/prioritizers/iet.c:118:36: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/prioritizers/iet.c:118:53: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/prioritizers/iet.c:120:46: call_function: calling ‘find_regex’ from ‘iet_prio’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def132]
multipath-tools-0.13.0/libmultipath/prioritizers/iet.c:49:33: warning[-Wanalyzer-malloc-leak]: leak of ‘pmatch’
multipath-tools-0.13.0/libmultipath/prioritizers/iet.c:41:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/prioritizers/iet.c:45:17: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/prioritizers/iet.c:46:26: acquire_memory: allocated here
multipath-tools-0.13.0/libmultipath/prioritizers/iet.c:48:20: branch_true: following ‘true’ branch (when ‘pmatch’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/prioritizers/iet.c:49:33: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/prioritizers/iet.c:49:33: throw: if ‘regexec’ throws an exception...
multipath-tools-0.13.0/libmultipath/prioritizers/iet.c:49:33: danger: ‘pmatch’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def133]
multipath-tools-0.13.0/libmultipath/prioritizers/iet.c:108:39: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(&fullpath)’
multipath-tools-0.13.0/libmultipath/prioritizers/iet.c:82:12: branch_false: following ‘false’ branch (when ‘args’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/prioritizers/iet.c:87:13: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/prioritizers/iet.c:87:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/prioritizers/iet.c:93:13: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/prioritizers/iet.c:93:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/prioritizers/iet.c:102:14: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/prioritizers/iet.c:103:17: acquire_memory: allocated here
multipath-tools-0.13.0/libmultipath/prioritizers/iet.c:104:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/prioritizers/iet.c:104:12: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/prioritizers/iet.c:108:39: throw: if ‘readdir’ throws an exception...
multipath-tools-0.13.0/libmultipath/prioritizers/iet.c:108:39: danger: ‘opendir(&fullpath)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def134]
multipath-tools-0.13.0/libmultipath/prioritizers/path_latency.c:165:23: warning[-Wanalyzer-malloc-leak]: leak of ‘temp’
multipath-tools-0.13.0/libmultipath/prioritizers/path_latency.c:155:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/prioritizers/path_latency.c:160:22: acquire_memory: allocated here
multipath-tools-0.13.0/libmultipath/prioritizers/path_latency.c:161:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/prioritizers/path_latency.c:161:12: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/prioritizers/path_latency.c:164:21: branch_true: following ‘true’ branch (when ‘i != 2’)...
multipath-tools-0.13.0/libmultipath/prioritizers/path_latency.c:165:23: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/prioritizers/path_latency.c:165:23: throw: if ‘get_next_string’ throws an exception...
multipath-tools-0.13.0/libmultipath/prioritizers/path_latency.c:165:23: danger: ‘temp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: COMPILER_WARNING (CWE-704): [#def135]
multipath-tools-0.13.0/libmultipath/prkey.c: scope_hint: In function ‘parse_prkey_flags’
multipath-tools-0.13.0/libmultipath/prkey.c:57:17: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def136]
multipath-tools-0.13.0/libmultipath/prkey.c:57:17: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-401): [#def137]
multipath-tools-0.13.0/libmultipath/sysfs.c:225:26: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(&path)’
multipath-tools-0.13.0/libmultipath/sysfs.c:198:5: enter_function: entry to ‘sysfs_check_holders’
multipath-tools-0.13.0/libmultipath/sysfs.c:206:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/sysfs.c:211:13: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/sysfs.c:211:13: call_function: calling ‘devt2devname’ from ‘sysfs_check_holders’
multipath-tools-0.13.0/libmultipath/sysfs.c:211:13: return_function: returning to ‘sysfs_check_holders’ from ‘devt2devname’
multipath-tools-0.13.0/libmultipath/sysfs.c:211:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/sysfs.c:216:9: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/sysfs.c:219:17: acquire_memory: allocated here
multipath-tools-0.13.0/libmultipath/sysfs.c:220:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/sysfs.c:220:12: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/sysfs.c:225:26: throw: if ‘readdir’ throws an exception...
multipath-tools-0.13.0/libmultipath/sysfs.c:225:26: danger: ‘opendir(&path)’ leaks here; was allocated at [(18)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def138]
multipath-tools-0.13.0/libmultipath/sysfs.c:329:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
multipath-tools-0.13.0/libmultipath/sysfs.c:261:6: enter_function: entry to ‘sysfs_is_multipathed’
multipath-tools-0.13.0/libmultipath/sysfs.c:272:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/sysfs.c:277:13: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/sysfs.c:278:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/sysfs.c:280:17: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/sysfs.c:280:17: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/sysfs.c:285:9: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/sysfs.c:288:21: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/sysfs.c:289:21: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/sysfs.c:297:22: acquire_resource: opened here
multipath-tools-0.13.0/libmultipath/sysfs.c:303:17: call_function: inlined call to ‘__pthread_cleanup_routine’ from ‘sysfs_is_multipathed’
multipath-tools-0.13.0/libmultipath/sysfs.c:329:1: danger: ‘fd’ leaks here; was opened at [(10)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def139]
multipath-tools-0.13.0/libmultipath/uevent.c:87:17: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_uevent()’
multipath-tools-0.13.0/libmultipath/uevent.c:577:23: enter_function: entry to ‘uevent_from_udev_device’
multipath-tools-0.13.0/libmultipath/uevent.c:584:15: call_function: calling ‘alloc_uevent’ from ‘uevent_from_udev_device’
multipath-tools-0.13.0/libmultipath/uevent.c:584:15: return_function: returning to ‘uevent_from_udev_device’ from ‘alloc_uevent’
multipath-tools-0.13.0/libmultipath/uevent.c:585:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/uevent.c:590:9: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/uevent.c:592:9: throw: if ‘udev_device_get_properties_list_entry’ throws an exception...
multipath-tools-0.13.0/libmultipath/uevent.c:87:17: danger: ‘alloc_uevent()’ leaks here; was allocated at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-126): [#def140]
multipath-tools-0.13.0/libmultipath/uevent.c:110:9: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
multipath-tools-0.13.0/libmultipath/uevent.c:671:5: enter_function: entry to ‘uevent_listen’
multipath-tools-0.13.0/libmultipath/uevent.c:684:12: branch_false: following ‘false’ branch (when ‘udev’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/uevent.c:688:9: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/uevent.c:692:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/uevent.c:698:13: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/uevent.c:702:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/uevent.c:706:24: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/uevent.c:707:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/uevent.c:712:13: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/uevent.c:712:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/uevent.c:717:15: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/uevent.c:722:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/uevent.c:722:12: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/uevent.c:733:27: throw: if ‘poll’ throws an exception...
multipath-tools-0.13.0/libmultipath/uevent.c:728:9: call_function: inlined call to ‘__pthread_cleanup_routine’ from ‘uevent_listen’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def141]
multipath-tools-0.13.0/libmultipath/uevent.c:110:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*tmpq.next’
multipath-tools-0.13.0/libmultipath/uevent.c:523:5: enter_function: entry to ‘uevent_dispatch’
multipath-tools-0.13.0/libmultipath/uevent.c:541:24: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/uevent.c:541:58: call_function: inlined call to ‘list_empty’ from ‘uevent_dispatch’
multipath-tools-0.13.0/libmultipath/uevent.c:541:24: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/uevent.c:542:25: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/uevent.c:542:25: throw: if ‘dlog’ throws an exception...
multipath-tools-0.13.0/libmultipath/uevent.c:536:17: call_function: inlined call to ‘__pthread_cleanup_routine’ from ‘uevent_dispatch’
multipath-tools-0.13.0/libmultipath/uevent.c:534:9: call_function: inlined call to ‘__pthread_cleanup_routine’ from ‘uevent_dispatch’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def142]
multipath-tools-0.13.0/libmultipath/wwids.c:33:21: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
multipath-tools-0.13.0/libmultipath/wwids.c:235:1: enter_function: entry to ‘check_wwids_file’
multipath-tools-0.13.0/libmultipath/wwids.c:241:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/wwids.c:244:13: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:244:13: acquire_memory: allocated here
multipath-tools-0.13.0/libmultipath/wwids.c:245:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/wwids.c:250:17: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:250:17: call_function: calling ‘lookup_wwid’ from ‘check_wwids_file’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def143]
multipath-tools-0.13.0/libmultipath/wwids.c:41:29: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
multipath-tools-0.13.0/libmultipath/wwids.c:235:1: enter_function: entry to ‘check_wwids_file’
multipath-tools-0.13.0/libmultipath/wwids.c:241:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/wwids.c:244:13: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:244:13: acquire_memory: allocated here
multipath-tools-0.13.0/libmultipath/wwids.c:245:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/wwids.c:250:17: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:250:17: call_function: calling ‘lookup_wwid’ from ‘check_wwids_file’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def144]
multipath-tools-0.13.0/libmultipath/wwids.c:68:17: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
multipath-tools-0.13.0/libmultipath/wwids.c:235:1: enter_function: entry to ‘check_wwids_file’
multipath-tools-0.13.0/libmultipath/wwids.c:241:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/wwids.c:244:13: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:244:13: acquire_memory: allocated here
multipath-tools-0.13.0/libmultipath/wwids.c:245:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/wwids.c:250:17: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:251:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/wwids.c:255:12: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:255:12: branch_false: following ‘false’ branch (when ‘write_wwid != 0’)...
multipath-tools-0.13.0/libmultipath/wwids.c:259:13: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:259:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/wwids.c:265:13: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:265:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/wwids.c:272:15: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:272:15: call_function: calling ‘write_out_wwid’ from ‘check_wwids_file’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def145]
multipath-tools-0.13.0/libmultipath/wwids.c:74:17: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
multipath-tools-0.13.0/libmultipath/wwids.c:235:1: enter_function: entry to ‘check_wwids_file’
multipath-tools-0.13.0/libmultipath/wwids.c:241:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/wwids.c:244:13: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:244:13: acquire_memory: allocated here
multipath-tools-0.13.0/libmultipath/wwids.c:245:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/wwids.c:250:17: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:251:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/wwids.c:255:12: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:255:12: branch_false: following ‘false’ branch (when ‘write_wwid != 0’)...
multipath-tools-0.13.0/libmultipath/wwids.c:259:13: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:259:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/wwids.c:265:13: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:265:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/wwids.c:272:15: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:272:15: call_function: calling ‘write_out_wwid’ from ‘check_wwids_file’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def146]
multipath-tools-0.13.0/libmultipath/wwids.c:78:13: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
multipath-tools-0.13.0/libmultipath/wwids.c:235:1: enter_function: entry to ‘check_wwids_file’
multipath-tools-0.13.0/libmultipath/wwids.c:241:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/wwids.c:244:13: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:244:13: acquire_memory: allocated here
multipath-tools-0.13.0/libmultipath/wwids.c:245:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/wwids.c:250:17: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:251:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/wwids.c:255:12: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:255:12: branch_false: following ‘false’ branch (when ‘write_wwid != 0’)...
multipath-tools-0.13.0/libmultipath/wwids.c:259:13: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:259:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/wwids.c:265:13: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:265:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/wwids.c:272:15: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:272:15: call_function: calling ‘write_out_wwid’ from ‘check_wwids_file’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def147]
multipath-tools-0.13.0/libmultipath/wwids.c:79:17: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
multipath-tools-0.13.0/libmultipath/wwids.c:235:1: enter_function: entry to ‘check_wwids_file’
multipath-tools-0.13.0/libmultipath/wwids.c:241:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/wwids.c:244:13: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:244:13: acquire_memory: allocated here
multipath-tools-0.13.0/libmultipath/wwids.c:245:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/wwids.c:250:17: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:251:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/wwids.c:255:12: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:255:12: branch_false: following ‘false’ branch (when ‘write_wwid != 0’)...
multipath-tools-0.13.0/libmultipath/wwids.c:259:13: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:259:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/wwids.c:265:13: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:265:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/wwids.c:272:15: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:272:15: call_function: calling ‘write_out_wwid’ from ‘check_wwids_file’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def148]
multipath-tools-0.13.0/libmultipath/wwids.c:82:25: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
multipath-tools-0.13.0/libmultipath/wwids.c:235:1: enter_function: entry to ‘check_wwids_file’
multipath-tools-0.13.0/libmultipath/wwids.c:241:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/wwids.c:244:13: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:244:13: acquire_memory: allocated here
multipath-tools-0.13.0/libmultipath/wwids.c:245:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/wwids.c:250:17: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:251:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/wwids.c:255:12: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:255:12: branch_false: following ‘false’ branch (when ‘write_wwid != 0’)...
multipath-tools-0.13.0/libmultipath/wwids.c:259:13: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:259:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/wwids.c:265:13: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:265:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/wwids.c:272:15: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:272:15: call_function: calling ‘write_out_wwid’ from ‘check_wwids_file’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def149]
multipath-tools-0.13.0/libmultipath/wwids.c:260:17: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
multipath-tools-0.13.0/libmultipath/wwids.c:241:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/wwids.c:244:13: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:244:13: acquire_memory: allocated here
multipath-tools-0.13.0/libmultipath/wwids.c:245:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/wwids.c:250:17: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:251:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/wwids.c:255:12: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:255:12: branch_false: following ‘false’ branch (when ‘write_wwid != 0’)...
multipath-tools-0.13.0/libmultipath/wwids.c:259:13: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:259:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/wwids.c:260:17: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:260:17: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/wwids.c:260:17: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:260:17: throw: if ‘dlog’ throws an exception...
multipath-tools-0.13.0/libmultipath/wwids.c:260:17: danger: ‘f’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def150]
multipath-tools-0.13.0/libmultipath/wwids.c:265:13: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
multipath-tools-0.13.0/libmultipath/wwids.c:241:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/wwids.c:244:13: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:244:13: acquire_memory: allocated here
multipath-tools-0.13.0/libmultipath/wwids.c:245:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/wwids.c:250:17: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:251:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/wwids.c:255:12: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:255:12: branch_false: following ‘false’ branch (when ‘write_wwid != 0’)...
multipath-tools-0.13.0/libmultipath/wwids.c:259:13: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:259:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/wwids.c:265:13: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:265:13: throw: if ‘fflush’ throws an exception...
multipath-tools-0.13.0/libmultipath/wwids.c:265:13: danger: ‘f’ leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def151]
multipath-tools-0.13.0/libmultipath/wwids.c:266:17: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
multipath-tools-0.13.0/libmultipath/wwids.c:241:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/wwids.c:244:13: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:244:13: acquire_memory: allocated here
multipath-tools-0.13.0/libmultipath/wwids.c:245:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
multipath-tools-0.13.0/libmultipath/wwids.c:250:17: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:251:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/wwids.c:255:12: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:255:12: branch_false: following ‘false’ branch (when ‘write_wwid != 0’)...
multipath-tools-0.13.0/libmultipath/wwids.c:259:13: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:259:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/wwids.c:265:13: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:265:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/wwids.c:266:17: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:266:17: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/libmultipath/wwids.c:266:17: branch_true: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:266:17: throw: if ‘dlog’ throws an exception...
multipath-tools-0.13.0/libmultipath/wwids.c:266:17: danger: ‘f’ leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def152]
multipath-tools-0.13.0/libmultipath/wwids.c:399:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dfd’
multipath-tools-0.13.0/libmultipath/wwids.c:384:15: acquire_resource: opened here
multipath-tools-0.13.0/libmultipath/wwids.c:385:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/libmultipath/wwids.c:398:9: branch_false: ...to here
multipath-tools-0.13.0/libmultipath/wwids.c:399:14: throw: if ‘openat’ throws an exception...
multipath-tools-0.13.0/libmultipath/wwids.c:399:14: danger: ‘dfd’ leaks here; was opened at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def153]
multipath-tools-0.13.0/multipath/main.c:402:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pp’
multipath-tools-0.13.0/multipath/main.c:390:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/multipath/main.c:394:12: branch_false: ...to here
multipath-tools-0.13.0/multipath/main.c:394:12: branch_true: following ‘true’ branch (when ‘k == 3’)...
multipath-tools-0.13.0/multipath/main.c:399:22: branch_true: ...to here
multipath-tools-0.13.0/multipath/main.c:402:29: danger: dereference of NULL ‘pp’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def154]
multipath-tools-0.13.0/multipath/main.c:459:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/proc/cmdline", "re")’
multipath-tools-0.13.0/multipath/main.c:451:13: acquire_resource: opened here
multipath-tools-0.13.0/multipath/main.c:452:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/multipath/main.c:457:14: branch_false: ...to here
multipath-tools-0.13.0/multipath/main.c:457:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/multipath/main.c:458:21: branch_true: ...to here
multipath-tools-0.13.0/multipath/main.c:458:20: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/multipath/main.c:459:25: branch_true: ...to here
multipath-tools-0.13.0/multipath/main.c:459:25: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/multipath/main.c:459:25: branch_true: ...to here
multipath-tools-0.13.0/multipath/main.c:459:25: throw: if ‘dlog’ throws an exception...
multipath-tools-0.13.0/multipath/main.c:459:25: danger: ‘fopen("/proc/cmdline", "re")’ leaks here; was opened at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def155]
multipath-tools-0.13.0/multipath/main.c:459:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/cmdline", "re")’
multipath-tools-0.13.0/multipath/main.c:451:13: acquire_memory: allocated here
multipath-tools-0.13.0/multipath/main.c:452:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/multipath/main.c:457:14: branch_false: ...to here
multipath-tools-0.13.0/multipath/main.c:457:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/multipath/main.c:458:21: branch_true: ...to here
multipath-tools-0.13.0/multipath/main.c:458:20: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/multipath/main.c:459:25: branch_true: ...to here
multipath-tools-0.13.0/multipath/main.c:459:25: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/multipath/main.c:459:25: branch_true: ...to here
multipath-tools-0.13.0/multipath/main.c:459:25: throw: if ‘dlog’ throws an exception...
multipath-tools-0.13.0/multipath/main.c:459:25: danger: ‘fopen("/proc/cmdline", "re")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def156]
multipath-tools-0.13.0/multipath/main.c:462:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/proc/cmdline", "re")’
multipath-tools-0.13.0/multipath/main.c:451:13: acquire_resource: opened here
multipath-tools-0.13.0/multipath/main.c:452:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/multipath/main.c:457:14: branch_false: ...to here
multipath-tools-0.13.0/multipath/main.c:457:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/multipath/main.c:458:21: branch_true: ...to here
multipath-tools-0.13.0/multipath/main.c:458:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/multipath/main.c:462:25: branch_false: ...to here
multipath-tools-0.13.0/multipath/main.c:462:25: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/multipath/main.c:462:25: branch_true: ...to here
multipath-tools-0.13.0/multipath/main.c:462:25: throw: if ‘dlog’ throws an exception...
multipath-tools-0.13.0/multipath/main.c:462:25: danger: ‘fopen("/proc/cmdline", "re")’ leaks here; was opened at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def157]
multipath-tools-0.13.0/multipath/main.c:462:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/cmdline", "re")’
multipath-tools-0.13.0/multipath/main.c:451:13: acquire_memory: allocated here
multipath-tools-0.13.0/multipath/main.c:452:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/multipath/main.c:457:14: branch_false: ...to here
multipath-tools-0.13.0/multipath/main.c:457:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/multipath/main.c:458:21: branch_true: ...to here
multipath-tools-0.13.0/multipath/main.c:458:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/multipath/main.c:462:25: branch_false: ...to here
multipath-tools-0.13.0/multipath/main.c:462:25: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/multipath/main.c:462:25: branch_true: ...to here
multipath-tools-0.13.0/multipath/main.c:462:25: throw: if ‘dlog’ throws an exception...
multipath-tools-0.13.0/multipath/main.c:462:25: danger: ‘fopen("/proc/cmdline", "re")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def158]
multipath-tools-0.13.0/multipath/main.c:698:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(udev_device_get_devnode(*<unknown>.udev), 128)’
multipath-tools-0.13.0/multipath/main.c:647:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/multipath/main.c:649:12: branch_false: ...to here
multipath-tools-0.13.0/multipath/main.c:653:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/multipath/main.c:657:14: branch_false: ...to here
multipath-tools-0.13.0/multipath/main.c:660:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/multipath/main.c:663:13: branch_false: ...to here
multipath-tools-0.13.0/multipath/main.c:676:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/multipath/main.c:679:12: branch_false: ...to here
multipath-tools-0.13.0/multipath/main.c:679:12: branch_false: following ‘false’ branch (when ‘r == 3’)...
multipath-tools-0.13.0/multipath/main.c:696:14: branch_false: ...to here
multipath-tools-0.13.0/multipath/main.c:696:14: acquire_resource: opened here
multipath-tools-0.13.0/multipath/main.c:697:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/multipath/main.c:698:17: branch_true: ...to here
multipath-tools-0.13.0/multipath/main.c:698:17: danger: ‘open(udev_device_get_devnode(*<unknown>.udev), 128)’ leaks here; was opened at [(11)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def159]
multipath-tools-0.13.0/multipathd/cli.c:65:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
multipath-tools-0.13.0/multipathd/cli.c:467:1: enter_function: entry to ‘cli_init’
multipath-tools-0.13.0/multipathd/cli.c:468:13: call_function: calling ‘load_keys’ from ‘cli_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def160]
multipath-tools-0.13.0/multipathd/cli.c:65:14: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 24)’
multipath-tools-0.13.0/multipathd/cli.c:467:1: enter_function: entry to ‘cli_init’
multipath-tools-0.13.0/multipathd/cli.c:468:13: call_function: calling ‘load_keys’ from ‘cli_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def161]
multipath-tools-0.13.0/multipathd/cli.c:68:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
multipath-tools-0.13.0/multipathd/cli.c:467:1: enter_function: entry to ‘cli_init’
multipath-tools-0.13.0/multipathd/cli.c:468:13: call_function: calling ‘load_keys’ from ‘cli_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def162]
multipath-tools-0.13.0/multipathd/cli.c:68:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 24)’
multipath-tools-0.13.0/multipathd/cli.c:467:1: enter_function: entry to ‘cli_init’
multipath-tools-0.13.0/multipathd/cli.c:468:13: call_function: calling ‘load_keys’ from ‘cli_init’
Error: GCC_ANALYZER_WARNING (CWE-415): [#def163]
multipath-tools-0.13.0/multipathd/fpin_handlers.c:560:17: warning[-Wanalyzer-double-free]: double-‘free’ of ‘fpin_li_marginal_dev_list_head.next + -40’
multipath-tools-0.13.0/multipathd/fpin_handlers.c:556:16: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/multipathd/fpin_handlers.c:557:29: branch_true: ...to here
multipath-tools-0.13.0/multipathd/fpin_handlers.c:560:17: release_memory: first ‘free’ here
multipath-tools-0.13.0/multipathd/fpin_handlers.c:556:16: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/multipathd/fpin_handlers.c:557:29: branch_true: ...to here
multipath-tools-0.13.0/multipathd/fpin_handlers.c:560:17: danger: second ‘free’ here; first ‘free’ was at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-415): [#def164]
multipath-tools-0.13.0/multipathd/fpin_handlers.c:575:17: warning[-Wanalyzer-double-free]: double-‘free’ of ‘els_marginal_list_head.next + -2056’
multipath-tools-0.13.0/multipathd/fpin_handlers.c:643:13: enter_function: entry to ‘receiver_cleanup_list’
multipath-tools-0.13.0/multipathd/fpin_handlers.c:646:9: call_function: calling ‘fpin_clean_els_marginal_list’ from ‘receiver_cleanup_list’
Error: GCC_ANALYZER_WARNING: [#def165]
multipath-tools-0.13.0/multipathd/fpin_handlers.c:691:23: warning[-Wanalyzer-fd-use-without-check]: ‘read’ on possibly invalid file descriptor ‘fd’
multipath-tools-0.13.0/multipathd/fpin_handlers.c:672:14: acquire_resource: datagram socket created here
multipath-tools-0.13.0/multipathd/fpin_handlers.c:673:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/multipathd/fpin_handlers.c:678:9: branch_false: ...to here
multipath-tools-0.13.0/multipathd/fpin_handlers.c:683:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
multipath-tools-0.13.0/multipathd/fpin_handlers.c:683:12: branch_false: ...to here
multipath-tools-0.13.0/multipathd/fpin_handlers.c:691:23: danger: ‘fd’ could be invalid
Error: GCC_ANALYZER_WARNING (CWE-476): [#def166]
multipath-tools-0.13.0/multipathd/main.c:469:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘mpp’
multipath-tools-0.13.0/multipathd/main.c:1820:1: enter_function: entry to ‘uev_trigger’
multipath-tools-0.13.0/multipathd/main.c:1838:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/multipathd/main.c:1846:22: branch_false: ...to here
multipath-tools-0.13.0/multipathd/main.c:1846:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/multipathd/main.c:1847:22: branch_true: ...to here
multipath-tools-0.13.0/multipathd/main.c:1847:20: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/multipathd/main.c:1854:30: branch_true: ...to here
multipath-tools-0.13.0/multipathd/main.c:1854:20: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/multipathd/main.c:1855:29: branch_true: ...to here
multipath-tools-0.13.0/multipathd/main.c:1855:29: call_function: calling ‘uev_add_map’ from ‘uev_trigger’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def167]
multipath-tools-0.13.0/multipathd/main.c:656:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘mpp’
multipath-tools-0.13.0/multipathd/main.c:1820:1: enter_function: entry to ‘uev_trigger’
multipath-tools-0.13.0/multipathd/main.c:1838:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/multipathd/main.c:1846:22: branch_false: ...to here
multipath-tools-0.13.0/multipathd/main.c:1846:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/multipathd/main.c:1847:22: branch_true: ...to here
multipath-tools-0.13.0/multipathd/main.c:1847:20: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/multipathd/main.c:1854:30: branch_true: ...to here
multipath-tools-0.13.0/multipathd/main.c:1854:20: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/multipathd/main.c:1855:29: branch_true: ...to here
multipath-tools-0.13.0/multipathd/main.c:1855:29: call_function: calling ‘uev_add_map’ from ‘uev_trigger’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def168]
multipath-tools-0.13.0/multipathd/main.c:690:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘mpp’
multipath-tools-0.13.0/multipathd/main.c:1820:1: enter_function: entry to ‘uev_trigger’
multipath-tools-0.13.0/multipathd/main.c:1838:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/multipathd/main.c:1846:22: branch_false: ...to here
multipath-tools-0.13.0/multipathd/main.c:1846:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/multipathd/main.c:1847:22: branch_true: ...to here
multipath-tools-0.13.0/multipathd/main.c:1847:20: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/multipathd/main.c:1854:30: branch_true: ...to here
multipath-tools-0.13.0/multipathd/main.c:1854:20: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/multipathd/main.c:1855:29: branch_true: ...to here
multipath-tools-0.13.0/multipathd/main.c:1855:29: call_function: calling ‘uev_add_map’ from ‘uev_trigger’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def169]
multipath-tools-0.13.0/multipathd/main.c:692:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘mpp’
multipath-tools-0.13.0/multipathd/main.c:1820:1: enter_function: entry to ‘uev_trigger’
multipath-tools-0.13.0/multipathd/main.c:1838:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/multipathd/main.c:1846:22: branch_false: ...to here
multipath-tools-0.13.0/multipathd/main.c:1846:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/multipathd/main.c:1847:22: branch_true: ...to here
multipath-tools-0.13.0/multipathd/main.c:1847:20: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/multipathd/main.c:1854:30: branch_true: ...to here
multipath-tools-0.13.0/multipathd/main.c:1854:20: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/multipathd/main.c:1855:29: branch_true: ...to here
multipath-tools-0.13.0/multipathd/main.c:1855:29: call_function: calling ‘uev_add_map’ from ‘uev_trigger’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def170]
multipath-tools-0.13.0/multipathd/main.c:698:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘mpp’
multipath-tools-0.13.0/multipathd/main.c:1820:1: enter_function: entry to ‘uev_trigger’
multipath-tools-0.13.0/multipathd/main.c:1838:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/multipathd/main.c:1846:22: branch_false: ...to here
multipath-tools-0.13.0/multipathd/main.c:1846:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/multipathd/main.c:1847:22: branch_true: ...to here
multipath-tools-0.13.0/multipathd/main.c:1847:20: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/multipathd/main.c:1854:30: branch_true: ...to here
multipath-tools-0.13.0/multipathd/main.c:1854:20: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/multipathd/main.c:1855:29: branch_true: ...to here
multipath-tools-0.13.0/multipathd/main.c:1855:29: call_function: calling ‘uev_add_map’ from ‘uev_trigger’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def171]
multipath-tools-0.13.0/multipathd/main.c:719:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘mpp’
multipath-tools-0.13.0/multipathd/main.c:1820:1: enter_function: entry to ‘uev_trigger’
multipath-tools-0.13.0/multipathd/main.c:1838:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/multipathd/main.c:1846:22: branch_false: ...to here
multipath-tools-0.13.0/multipathd/main.c:1846:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/multipathd/main.c:1847:22: branch_true: ...to here
multipath-tools-0.13.0/multipathd/main.c:1847:20: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/multipathd/main.c:1854:30: branch_true: ...to here
multipath-tools-0.13.0/multipathd/main.c:1854:20: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/multipathd/main.c:1855:29: branch_true: ...to here
multipath-tools-0.13.0/multipathd/main.c:1855:29: call_function: calling ‘uev_add_map’ from ‘uev_trigger’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def172]
multipath-tools-0.13.0/multipathd/main.c:2055:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pgp’
multipath-tools-0.13.0/multipathd/main.c:2050:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/multipathd/main.c:2055:13: danger: dereference of NULL ‘pgp’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def173]
multipath-tools-0.13.0/multipathd/main.c:2076:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pgp’
multipath-tools-0.13.0/multipathd/main.c:2072:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/multipathd/main.c:2075:15: branch_false: ...to here
multipath-tools-0.13.0/multipathd/main.c:2076:9: danger: dereference of NULL ‘pgp’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def174]
multipath-tools-0.13.0/multipathd/main.c:3376:21: warning[-Wanalyzer-null-argument]: use of NULL ‘new’ where non-null expected
multipath-tools-0.13.0/multipathd/main.c:3383:13: enter_function: entry to ‘reconfigure_check’
multipath-tools-0.13.0/multipathd/main.c:3388:12: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/multipathd/main.c:3390:17: branch_true: ...to here
multipath-tools-0.13.0/multipathd/main.c:3396:13: call_function: calling ‘reconfigure_check_uid_attrs’ from ‘reconfigure_check’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def175]
multipath-tools-0.13.0/multipathd/main.c:4030:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dev_null_fd’
multipath-tools-0.13.0/multipathd/main.c:4034:1: enter_function: entry to ‘daemonize’
multipath-tools-0.13.0/multipathd/main.c:4039:11: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
multipath-tools-0.13.0/multipathd/main.c:4043:17: branch_false: ...to here
multipath-tools-0.13.0/multipathd/main.c:4043:17: branch_false: following ‘false’ branch (when ‘pid == 0’)...
multipath-tools-0.13.0/multipathd/main.c:4046:9: branch_false: ...to here
multipath-tools-0.13.0/multipathd/main.c:4050:17: branch_false: following ‘false’ branch (when ‘pid == 0’)...
multipath-tools-0.13.0/multipathd/main.c:4053:13: branch_false: ...to here
multipath-tools-0.13.0/multipathd/main.c:4056:23: acquire_resource: opened here
multipath-tools-0.13.0/multipathd/main.c:4057:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/multipathd/main.c:4063:13: branch_false: ...to here
multipath-tools-0.13.0/multipathd/main.c:4063:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/multipathd/main.c:4068:13: branch_false: ...to here
multipath-tools-0.13.0/multipathd/main.c:4068:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/multipathd/main.c:4073:13: branch_false: ...to here
multipath-tools-0.13.0/multipathd/main.c:4073:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/multipathd/main.c:4078:22: branch_false: ...to here
multipath-tools-0.13.0/multipathd/main.c:4037:13: call_function: calling ‘cleanup_close’ from ‘daemonize’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def176]
multipath-tools-0.13.0/multipathd/main.c:4063:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open("/dev/null", 2), 0)’
multipath-tools-0.13.0/multipathd/main.c:4039:11: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
multipath-tools-0.13.0/multipathd/main.c:4043:17: branch_false: ...to here
multipath-tools-0.13.0/multipathd/main.c:4043:17: branch_false: following ‘false’ branch (when ‘pid == 0’)...
multipath-tools-0.13.0/multipathd/main.c:4046:9: branch_false: ...to here
multipath-tools-0.13.0/multipathd/main.c:4050:17: branch_false: following ‘false’ branch (when ‘pid == 0’)...
multipath-tools-0.13.0/multipathd/main.c:4053:13: branch_false: ...to here
multipath-tools-0.13.0/multipathd/main.c:4057:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/multipathd/main.c:4063:13: branch_false: ...to here
multipath-tools-0.13.0/multipathd/main.c:4063:13: acquire_resource: opened here
multipath-tools-0.13.0/multipathd/main.c:4063:12: danger: ‘dup2(open("/dev/null", 2), 0)’ leaks here; was opened at [(9)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def177]
multipath-tools-0.13.0/multipathd/main.c:4068:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open("/dev/null", 2), 1)’
multipath-tools-0.13.0/multipathd/main.c:4039:11: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
multipath-tools-0.13.0/multipathd/main.c:4043:17: branch_false: ...to here
multipath-tools-0.13.0/multipathd/main.c:4043:17: branch_false: following ‘false’ branch (when ‘pid == 0’)...
multipath-tools-0.13.0/multipathd/main.c:4046:9: branch_false: ...to here
multipath-tools-0.13.0/multipathd/main.c:4050:17: branch_false: following ‘false’ branch (when ‘pid == 0’)...
multipath-tools-0.13.0/multipathd/main.c:4053:13: branch_false: ...to here
multipath-tools-0.13.0/multipathd/main.c:4057:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/multipathd/main.c:4063:13: branch_false: ...to here
multipath-tools-0.13.0/multipathd/main.c:4063:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/multipathd/main.c:4068:13: branch_false: ...to here
multipath-tools-0.13.0/multipathd/main.c:4068:13: acquire_resource: opened here
multipath-tools-0.13.0/multipathd/main.c:4068:12: danger: ‘dup2(open("/dev/null", 2), 1)’ leaks here; was opened at [(11)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def178]
multipath-tools-0.13.0/multipathd/main.c:4073:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open("/dev/null", 2), 2)’
multipath-tools-0.13.0/multipathd/main.c:4039:11: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
multipath-tools-0.13.0/multipathd/main.c:4043:17: branch_false: ...to here
multipath-tools-0.13.0/multipathd/main.c:4043:17: branch_false: following ‘false’ branch (when ‘pid == 0’)...
multipath-tools-0.13.0/multipathd/main.c:4046:9: branch_false: ...to here
multipath-tools-0.13.0/multipathd/main.c:4050:17: branch_false: following ‘false’ branch (when ‘pid == 0’)...
multipath-tools-0.13.0/multipathd/main.c:4053:13: branch_false: ...to here
multipath-tools-0.13.0/multipathd/main.c:4057:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/multipathd/main.c:4063:13: branch_false: ...to here
multipath-tools-0.13.0/multipathd/main.c:4063:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/multipathd/main.c:4068:13: branch_false: ...to here
multipath-tools-0.13.0/multipathd/main.c:4068:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/multipathd/main.c:4073:13: branch_false: ...to here
multipath-tools-0.13.0/multipathd/main.c:4073:13: acquire_resource: opened here
multipath-tools-0.13.0/multipathd/main.c:4073:12: danger: ‘dup2(open("/dev/null", 2), 2)’ leaks here; was opened at [(13)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def179]
multipath-tools-0.13.0/multipathd/main.c:4080:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dev_null_fd’
multipath-tools-0.13.0/multipathd/main.c:4039:11: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
multipath-tools-0.13.0/multipathd/main.c:4043:17: branch_false: ...to here
multipath-tools-0.13.0/multipathd/main.c:4043:17: branch_false: following ‘false’ branch (when ‘pid == 0’)...
multipath-tools-0.13.0/multipathd/main.c:4046:9: branch_false: ...to here
multipath-tools-0.13.0/multipathd/main.c:4050:17: branch_false: following ‘false’ branch (when ‘pid == 0’)...
multipath-tools-0.13.0/multipathd/main.c:4053:13: branch_false: ...to here
multipath-tools-0.13.0/multipathd/main.c:4056:23: acquire_resource: opened here
multipath-tools-0.13.0/multipathd/main.c:4057:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/multipathd/main.c:4063:13: branch_false: ...to here
multipath-tools-0.13.0/multipathd/main.c:4063:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/multipathd/main.c:4068:13: branch_false: ...to here
multipath-tools-0.13.0/multipathd/main.c:4068:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/multipathd/main.c:4073:13: branch_false: ...to here
multipath-tools-0.13.0/multipathd/main.c:4073:12: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/multipathd/main.c:4078:22: branch_false: ...to here
multipath-tools-0.13.0/multipathd/main.c:4080:1: danger: ‘dev_null_fd’ leaks here; was opened at [(7)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def180]
multipath-tools-0.13.0/multipathd/multipathc.c:97:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘kw’
multipath-tools-0.13.0/multipathd/multipathc.c:53:12: branch_true: following ‘true’ branch (when ‘state == 0’)...
multipath-tools-0.13.0/multipathd/multipathc.c:55:27: branch_true: ...to here
multipath-tools-0.13.0/multipathd/multipathc.c:69:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/multipathd/multipathc.c:91:20: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/multipathd/multipathc.c:92:30: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/multipathd/multipathc.c:97:30: branch_false: ...to here
multipath-tools-0.13.0/multipathd/multipathc.c:97:30: danger: dereference of NULL ‘kw’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def181]
multipath-tools-0.13.0/multipathd/multipathc.c:175:49: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(*kw.str)’
multipath-tools-0.13.0/multipathd/multipathc.c:53:12: branch_true: following ‘true’ branch (when ‘state == 0’)...
multipath-tools-0.13.0/multipathd/multipathc.c:55:27: branch_true: ...to here
multipath-tools-0.13.0/multipathd/multipathc.c:69:20: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/multipathd/multipathc.c:135:20: branch_false: following ‘false’ branch (when ‘r != 22’)...
multipath-tools-0.13.0/multipathd/multipathc.c:143:20: branch_false: ...to here
multipath-tools-0.13.0/multipathd/multipathc.c:143:20: branch_false: following ‘false’ branch (when ‘r != 2’)...
multipath-tools-0.13.0/multipathd/multipathc.c:143:20: branch_false: ...to here
multipath-tools-0.13.0/multipathd/multipathc.c:146:17: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/multipathd/multipathc.c:152:28: branch_false: following ‘false’ branch (when ‘vlen <= 3’)...
multipath-tools-0.13.0/multipathd/multipathc.c:158:33: branch_false: ...to here
multipath-tools-0.13.0/multipathd/multipathc.c:174:44: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/multipathd/multipathc.c:176:72: branch_true: ...to here
multipath-tools-0.13.0/multipathd/multipathc.c:176:65: acquire_memory: allocated here
multipath-tools-0.13.0/multipathd/multipathc.c:175:49: danger: ‘strdup(*kw.str)’ leaks here; was allocated at [(15)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def182]
multipath-tools-0.13.0/multipathd/uxlsnr.c:515:44: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘kw’
multipath-tools-0.13.0/multipathd/uxlsnr.c:455:12: enter_function: entry to ‘client_state_machine’
multipath-tools-0.13.0/multipathd/uxlsnr.c:510:28: call_function: calling ‘parse_cmd’ from ‘client_state_machine’
multipath-tools-0.13.0/multipathd/uxlsnr.c:510:28: return_function: returning to ‘client_state_machine’ from ‘parse_cmd’
multipath-tools-0.13.0/multipathd/uxlsnr.c:511:20: branch_true: following ‘true’ branch...
multipath-tools-0.13.0/multipathd/uxlsnr.c:513:42: branch_true: ...to here
multipath-tools-0.13.0/multipathd/uxlsnr.c:515:28: branch_false: following ‘false’ branch...
multipath-tools-0.13.0/multipathd/uxlsnr.c:515:44: branch_false: ...to here
multipath-tools-0.13.0/multipathd/uxlsnr.c:515:44: danger: dereference of NULL ‘kw’
Scan Properties
| analyzer-version-clippy | 1.92.0 |
| analyzer-version-cppcheck | 2.19.1 |
| analyzer-version-gcc | 16.0.0 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-83.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | device-mapper-multipath-0.13.0-1.fc44 |
| store-results-to | /tmp/tmpn6xz970i/device-mapper-multipath-0.13.0-1.fc44.tar.xz |
| time-created | 2026-01-08 15:54:35 |
| time-finished | 2026-01-08 15:56:13 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpn6xz970i/device-mapper-multipath-0.13.0-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpn6xz970i/device-mapper-multipath-0.13.0-1.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |