lvm2-2.03.38-1.fc44
List of Findings
Error: SHELLCHECK_WARNING (CWE-457): [#def1]
/usr/bin/blkdeactivate:151:23: warning[SC2154]: kname is referenced but not assigned (did you mean 'xname'?).
Error: SHELLCHECK_WARNING (CWE-457): [#def2]
/usr/bin/blkdeactivate:168:11: warning[SC2154]: mnt is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-457): [#def3]
/usr/bin/blkdeactivate:171:35: warning[SC2154]: name is referenced but not assigned (did you mean 'xname'?).
Error: SHELLCHECK_WARNING (CWE-457): [#def4]
/usr/bin/blkdeactivate:187:8: warning[SC2154]: devtype is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-140): [#def5]
/usr/bin/lvm_import_vdo:207:19: warning[SC2207]: Prefer mapfile or read -a to split command output (or quote to avoid splitting).
Error: SHELLCHECK_WARNING (CWE-140): [#def6]
/usr/bin/lvm_import_vdo:225:12: warning[SC2207]: Prefer mapfile or read -a to split command output (or quote to avoid splitting).
Error: SHELLCHECK_WARNING (CWE-563): [#def7]
/usr/bin/lvm_import_vdo:471:21: warning[SC2034]: vdo_non_converted appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def8]
/usr/bin/lvm_import_vdo:472:14: warning[SC2034]: vdo_length appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING: [#def9]
/usr/bin/lvmdump:133:8: warning[SC2294]: eval negates the benefit of arrays. Drop eval to preserve whitespace/symbols (or eval as string).
Error: SHELLCHECK_WARNING (CWE-140): [#def10]
/usr/bin/lvmpersist:171:9: warning[SC2207]: Prefer mapfile or read -a to split command output (or quote to avoid splitting).
Error: SHELLCHECK_WARNING (CWE-670): [#def11]
/usr/bin/lvmpersist:856:13: warning[SC2128]: Expanding an array without an index only gives the first element.
Error: SHELLCHECK_WARNING (CWE-140): [#def12]
/usr/bin/lvmpersist:1379:12: warning[SC2207]: Prefer mapfile or read -a to split command output (or quote to avoid splitting).
Error: SHELLCHECK_WARNING (CWE-670): [#def13]
/usr/bin/lvmpersist:1386:15: warning[SC2128]: Expanding an array without an index only gives the first element.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
LVM2.2.03.38/daemons/dmeventd/dmeventd.c:129:9: warning[-Wanalyzer-malloc-leak]: leak of ‘message_data.id’
LVM2.2.03.38/daemons/dmeventd/dmeventd.c:2128:12: enter_function: entry to ‘_do_process_request’
LVM2.2.03.38/daemons/dmeventd/dmeventd.c:2135:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/dmeventd/dmeventd.c:2144:19: branch_false: ...to here
LVM2.2.03.38/daemons/dmeventd/dmeventd.c:2144:19: branch_true: following ‘true’ branch...
LVM2.2.03.38/daemons/dmeventd/dmeventd.c:2144:56: branch_true: ...to here
LVM2.2.03.38/daemons/dmeventd/dmeventd.c:2144:56: call_function: calling ‘_parse_message’ from ‘_do_process_request’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def15]
LVM2.2.03.38/daemons/dmeventd/dmeventd.c:129:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
LVM2.2.03.38/daemons/dmeventd/dmeventd.c:367:12: enter_function: entry to ‘_lookup_symbol’
LVM2.2.03.38/daemons/dmeventd/dmeventd.c:370:17: call_function: calling ‘_dmeventd_log’ from ‘_lookup_symbol’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def16]
LVM2.2.03.38/daemons/dmeventd/dmeventd.c:2308:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(oom_adj_path, "w")’
LVM2.2.03.38/daemons/dmeventd/dmeventd.c:2301:20: acquire_resource: opened here
LVM2.2.03.38/daemons/dmeventd/dmeventd.c:2301:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/dmeventd/dmeventd.c:2306:9: branch_false: ...to here
LVM2.2.03.38/daemons/dmeventd/dmeventd.c:2308:13: danger: ‘fopen(oom_adj_path, "w")’ leaks here; was opened at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
LVM2.2.03.38/daemons/dmeventd/dmeventd.c:2308:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(oom_adj_path, "w")’
LVM2.2.03.38/daemons/dmeventd/dmeventd.c:2301:20: acquire_memory: allocated here
LVM2.2.03.38/daemons/dmeventd/dmeventd.c:2301:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/dmeventd/dmeventd.c:2306:9: branch_false: ...to here
LVM2.2.03.38/daemons/dmeventd/dmeventd.c:2308:13: danger: ‘fopen(oom_adj_path, "w")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-131): [#def18]
LVM2.2.03.38/daemons/dmeventd/libdevmapper-event.c:294:28: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
Error: GCC_ANALYZER_WARNING (CWE-404): [#def19]
LVM2.2.03.38/daemons/dmeventd/plugins/lvm2/dmeventd_lvm.c:43:1: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
LVM2.2.03.38/daemons/dmeventd/plugins/lvm2/dmeventd_lvm.c:43:1: acquire_resource: ‘va_start’ called here
LVM2.2.03.38/daemons/dmeventd/plugins/lvm2/dmeventd_lvm.c:43:1: throw: if ‘dm_event_log’ throws an exception...
LVM2.2.03.38/daemons/dmeventd/plugins/lvm2/dmeventd_lvm.c:43:1: 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): [#def20]
LVM2.2.03.38/daemons/dmeventd/plugins/mirror/dmeventd_mirror.c:31:1: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
LVM2.2.03.38/daemons/dmeventd/plugins/mirror/dmeventd_mirror.c:168:5: enter_function: entry to ‘register_device’
LVM2.2.03.38/daemons/dmeventd/plugins/mirror/dmeventd_mirror.c:177:17: call_function: calling ‘print_log’ from ‘register_device’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def21]
LVM2.2.03.38/daemons/dmeventd/plugins/raid/dmeventd_raid.c:31:1: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
LVM2.2.03.38/daemons/dmeventd/plugins/raid/dmeventd_raid.c:31:1: acquire_resource: ‘va_start’ called here
LVM2.2.03.38/daemons/dmeventd/plugins/raid/dmeventd_raid.c:31:1: throw: if ‘dm_event_log’ throws an exception...
LVM2.2.03.38/daemons/dmeventd/plugins/raid/dmeventd_raid.c:31:1: 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): [#def22]
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:40:1: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:40:1: acquire_resource: ‘va_start’ called here
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:40:1: throw: if ‘dm_event_log’ throws an exception...
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:40:1: 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-775): [#def23]
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:144:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&procmounts, "r")’
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:132:24: acquire_resource: opened here
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:132:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:132:12: branch_false: ...to here
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:138:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:140:22: branch_true: ...to here
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:140:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:144:21: branch_false: ...to here
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:144:21: throw: if ‘dm_split_words’ throws an exception...
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:144:21: danger: ‘fopen(&procmounts, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:144:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&procmounts, "r")’
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:132:24: acquire_memory: allocated here
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:132:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:132:12: branch_false: ...to here
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:138:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:140:22: branch_true: ...to here
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:140:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:144:21: branch_false: ...to here
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:144:21: throw: if ‘dm_split_words’ throws an exception...
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:144:21: danger: ‘fopen(&procmounts, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def25]
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:148:26: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&procmounts, "r")’
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:132:24: acquire_resource: opened here
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:132:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:132:12: branch_false: ...to here
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:138:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:140:22: branch_true: ...to here
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:140:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:144:21: branch_false: ...to here
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:138:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:140:22: branch_true: ...to here
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:140:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:144:21: branch_false: ...to here
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:144:21: throw: if ‘dm_split_words’ throws an exception...
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:148:26: danger: ‘fopen(&procmounts, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:148:26: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&procmounts, "r")’
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:132:24: acquire_memory: allocated here
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:132:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:132:12: branch_false: ...to here
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:138:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:140:22: branch_true: ...to here
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:140:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:144:21: branch_false: ...to here
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:138:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:140:22: branch_true: ...to here
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:140:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:144:21: branch_false: ...to here
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:144:21: throw: if ‘dm_split_words’ throws an exception...
LVM2.2.03.38/daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c:148:26: danger: ‘fopen(&procmounts, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def27]
LVM2.2.03.38/daemons/dmeventd/plugins/thin/dmeventd_thin.c:63:1: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
LVM2.2.03.38/daemons/dmeventd/plugins/thin/dmeventd_thin.c:63:1: acquire_resource: ‘va_start’ called here
LVM2.2.03.38/daemons/dmeventd/plugins/thin/dmeventd_thin.c:63:1: throw: if ‘dm_event_log’ throws an exception...
LVM2.2.03.38/daemons/dmeventd/plugins/thin/dmeventd_thin.c:63:1: 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): [#def28]
LVM2.2.03.38/daemons/dmeventd/plugins/vdo/dmeventd_vdo.c:57:1: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
LVM2.2.03.38/daemons/dmeventd/plugins/vdo/dmeventd_vdo.c:57:1: acquire_resource: ‘va_start’ called here
LVM2.2.03.38/daemons/dmeventd/plugins/vdo/dmeventd_vdo.c:57:1: throw: if ‘dm_event_log’ throws an exception...
LVM2.2.03.38/daemons/dmeventd/plugins/vdo/dmeventd_vdo.c:57:1: 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-686): [#def29]
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:123:38: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘int *’ but received ‘long unsigned int’ for variadic argument 1 of ‘args’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:698:12: enter_function: entry to ‘do_dump’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:705:14: call_function: calling ‘setup_dump_socket’ from ‘do_dump’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:705:14: return_function: returning to ‘do_dump’ from ‘setup_dump_socket’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:706:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:711:17: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:713:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:713:12: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:729:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:732:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:737:12: branch_false: following ‘false’ branch (when ‘rv >= 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:742:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:749:13: branch_false: following ‘false’ branch (when the strings are non-equal)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:752:17: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:752:17: call_function: calling ‘format_info’ from ‘do_dump’
Error: GCC_ANALYZER_WARNING (CWE-686): [#def30]
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:137:47: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘unsigned int *’ but received ‘long unsigned int’ for variadic argument 1 of ‘args’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:698:12: enter_function: entry to ‘do_dump’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:705:14: call_function: calling ‘setup_dump_socket’ from ‘do_dump’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:705:14: return_function: returning to ‘do_dump’ from ‘setup_dump_socket’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:706:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:711:17: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:713:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:713:12: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:729:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:732:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:737:12: branch_false: following ‘false’ branch (when ‘rv >= 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:742:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:749:13: branch_false: following ‘false’ branch (when the strings are non-equal)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:752:17: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:752:17: call_function: calling ‘format_info’ from ‘do_dump’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def31]
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:618:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:759:12: enter_function: entry to ‘do_able’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:765:17: call_function: calling ‘_lvmlockd_send’ from ‘do_able’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def32]
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:818:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[(int)pid]’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:1065:12: enter_function: entry to ‘_run_kill_command’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:1071:9: call_function: calling ‘_run_command_pipe’ from ‘_run_kill_command’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def33]
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:818:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:846:13: enter_function: entry to ‘_run_command_pipe’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:859:21: branch_true: following ‘true’ branch (when ‘i != 33’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:860:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:907:12: branch_false: following ‘false’ branch (when ‘arg_len == 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:915:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:915:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:920:15: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:922:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:928:12: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:928:12: branch_true: following ‘true’ branch (when ‘pid == 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:930:22: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:930:22: call_function: calling ‘_reopen_fd_to_null’ from ‘_run_command_pipe’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def34]
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:818:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:846:13: enter_function: entry to ‘_run_command_pipe’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:859:21: branch_true: following ‘true’ branch (when ‘i != 33’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:860:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:907:12: branch_false: following ‘false’ branch (when ‘arg_len == 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:915:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:915:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:920:15: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:922:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:928:12: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:928:12: branch_true: following ‘true’ branch (when ‘pid == 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:930:22: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:930:22: call_function: calling ‘_reopen_fd_to_null’ from ‘_run_command_pipe’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def35]
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:823:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:818:24: acquire_resource: opened here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:818:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:823:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:823:13: throw: if ‘close’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:823:13: danger: ‘open("/dev/null", 2)’ leaks here; was opened at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def36]
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:823:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[(int)pid]’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:1065:12: enter_function: entry to ‘_run_kill_command’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:1071:9: call_function: calling ‘_run_command_pipe’ from ‘_run_kill_command’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def37]
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:823:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:846:13: enter_function: entry to ‘_run_command_pipe’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:859:21: branch_true: following ‘true’ branch (when ‘i != 33’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:860:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:907:12: branch_false: following ‘false’ branch (when ‘arg_len == 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:915:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:915:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:920:15: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:922:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:928:12: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:928:12: branch_true: following ‘true’ branch (when ‘pid == 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:930:22: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:930:22: call_function: calling ‘_reopen_fd_to_null’ from ‘_run_command_pipe’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def38]
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:823:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:846:13: enter_function: entry to ‘_run_command_pipe’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:859:21: branch_true: following ‘true’ branch (when ‘i != 33’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:860:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:907:12: branch_false: following ‘false’ branch (when ‘arg_len == 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:915:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:915:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:920:15: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:922:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:928:12: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:928:12: branch_true: following ‘true’ branch (when ‘pid == 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:930:22: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:930:22: call_function: calling ‘_reopen_fd_to_null’ from ‘_run_command_pipe’
Error: GCC_ANALYZER_WARNING: [#def39]
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:828:13: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘fd’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:818:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:823:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:823:13: release_resource: closed here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:823:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:828:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:828:13: danger: ‘fd’ could be invalid
Error: GCC_ANALYZER_WARNING (CWE-775): [#def40]
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:835:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:818:24: acquire_resource: opened here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:818:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:823:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:835:13: throw: if ‘close’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:835:13: danger: ‘open("/dev/null", 2)’ leaks here; was opened at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def41]
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:835:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[(int)pid]’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:1065:12: enter_function: entry to ‘_run_kill_command’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:1071:9: call_function: calling ‘_run_command_pipe’ from ‘_run_kill_command’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def42]
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:835:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:846:13: enter_function: entry to ‘_run_command_pipe’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:859:21: branch_true: following ‘true’ branch (when ‘i != 33’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:860:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:907:12: branch_false: following ‘false’ branch (when ‘arg_len == 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:915:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:915:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:920:15: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:922:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:928:12: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:928:12: branch_true: following ‘true’ branch (when ‘pid == 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:930:22: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:930:22: call_function: calling ‘_reopen_fd_to_null’ from ‘_run_command_pipe’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def43]
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:835:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:846:13: enter_function: entry to ‘_run_command_pipe’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:859:21: branch_true: following ‘true’ branch (when ‘i != 33’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:860:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:907:12: branch_false: following ‘false’ branch (when ‘arg_len == 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:915:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:915:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:920:15: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:922:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:928:12: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:928:12: branch_true: following ‘true’ branch (when ‘pid == 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:930:22: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:930:22: call_function: calling ‘_reopen_fd_to_null’ from ‘_run_command_pipe’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def44]
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:932:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[(int)pid]’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:1065:12: enter_function: entry to ‘_run_kill_command’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:1071:9: call_function: calling ‘_run_command_pipe’ from ‘_run_kill_command’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def45]
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:932:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:846:13: enter_function: entry to ‘_run_command_pipe’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:859:21: branch_true: following ‘true’ branch (when ‘i != 33’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:860:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:907:12: branch_false: following ‘false’ branch (when ‘arg_len == 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:915:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:915:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:920:15: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:922:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:928:12: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:928:12: branch_true: following ‘true’ branch (when ‘pid == 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:930:22: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:930:22: call_function: calling ‘_reopen_fd_to_null’ from ‘_run_command_pipe’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:930:22: return_function: returning to ‘_run_command_pipe’ from ‘_reopen_fd_to_null’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:930:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:932:26: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:932:26: throw: if ‘close’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:932:26: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def46]
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:932:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:846:13: enter_function: entry to ‘_run_command_pipe’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:859:21: branch_true: following ‘true’ branch (when ‘i != 33’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:860:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:907:12: branch_false: following ‘false’ branch (when ‘arg_len == 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:915:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:915:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:920:15: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:922:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:928:12: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:928:12: branch_true: following ‘true’ branch (when ‘pid == 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:930:22: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:930:22: call_function: calling ‘_reopen_fd_to_null’ from ‘_run_command_pipe’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:930:22: return_function: returning to ‘_run_command_pipe’ from ‘_reopen_fd_to_null’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:930:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:932:26: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:932:26: throw: if ‘close’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:932:26: danger: ‘pipefd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def47]
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:934:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:846:13: enter_function: entry to ‘_run_command_pipe’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:859:21: branch_true: following ‘true’ branch (when ‘i != 33’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:860:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:907:12: branch_false: following ‘false’ branch (when ‘arg_len == 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:915:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:915:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:920:15: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:922:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:928:12: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:928:12: branch_true: following ‘true’ branch (when ‘pid == 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:930:22: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:930:22: call_function: calling ‘_reopen_fd_to_null’ from ‘_run_command_pipe’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:930:22: return_function: returning to ‘_run_command_pipe’ from ‘_reopen_fd_to_null’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:930:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:932:26: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:932:25: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:934:26: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:934:26: throw: if ‘close’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:934:26: danger: ‘pipefd[1]’ leaks here
Error: GCC_ANALYZER_WARNING: [#def48]
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:936:26: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘1’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:846:13: enter_function: entry to ‘_run_command_pipe’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:859:21: branch_true: following ‘true’ branch (when ‘i != 33’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:860:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:907:12: branch_false: following ‘false’ branch (when ‘arg_len == 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:915:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:915:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:920:15: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:922:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:928:12: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:928:12: branch_true: following ‘true’ branch (when ‘pid == 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:930:22: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:930:22: call_function: calling ‘_reopen_fd_to_null’ from ‘_run_command_pipe’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:930:22: return_function: returning to ‘_run_command_pipe’ from ‘_reopen_fd_to_null’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:930:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:932:26: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:932:25: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:934:26: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:934:26: release_resource: closed here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:934:25: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:936:26: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:936:26: danger: ‘1’ could be invalid
Error: GCC_ANALYZER_WARNING (CWE-775): [#def49]
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:938:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:846:13: enter_function: entry to ‘_run_command_pipe’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:859:21: branch_true: following ‘true’ branch (when ‘i != 33’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:860:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:907:12: branch_false: following ‘false’ branch (when ‘arg_len == 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:915:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:915:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:920:15: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:922:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:928:12: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:928:12: branch_true: following ‘true’ branch (when ‘pid == 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:930:22: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:930:22: call_function: calling ‘_reopen_fd_to_null’ from ‘_run_command_pipe’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:930:22: return_function: returning to ‘_run_command_pipe’ from ‘_reopen_fd_to_null’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:930:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:932:26: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:932:25: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:934:26: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:934:25: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:936:26: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:936:25: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:938:26: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:938:26: throw: if ‘close’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:938:26: danger: ‘pipefd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def50]
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:948:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[(int)pid]’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:1065:12: enter_function: entry to ‘_run_kill_command’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:1071:9: call_function: calling ‘_run_command_pipe’ from ‘_run_kill_command’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def51]
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:948:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:859:21: branch_true: following ‘true’ branch (when ‘i != 33’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:860:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:907:12: branch_false: following ‘false’ branch (when ‘arg_len == 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:915:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:915:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:920:15: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:922:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:928:12: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:928:12: branch_false: following ‘false’ branch (when ‘pid != 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:948:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:948:13: throw: if ‘close’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:948:13: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def52]
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:948:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:859:21: branch_true: following ‘true’ branch (when ‘i != 33’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:860:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:907:12: branch_false: following ‘false’ branch (when ‘arg_len == 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:915:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:915:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:920:15: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:922:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:928:12: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:928:12: branch_false: following ‘false’ branch (when ‘pid != 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:948:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:948:13: throw: if ‘close’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockctl.c:948:13: danger: ‘pipefd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def53]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:616:13: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_action()’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7249:13: enter_function: entry to ‘process_fence_result’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7258:21: call_function: calling ‘alloc_action’ from ‘process_fence_result’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7258:21: return_function: returning to ‘process_fence_result’ from ‘alloc_action’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7258:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7265:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7266:14: call_function: calling ‘find_lockspace_name’ from ‘process_fence_result’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7266:14: return_function: returning to ‘process_fence_result’ from ‘find_lockspace_name’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7267:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7274:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7275:9: branch_true: following ‘true’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7276:21: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7279:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7281:25: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7281:25: call_function: calling ‘log_level’ from ‘process_fence_result’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def54]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:636:13: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_client()’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6935:13: enter_function: entry to ‘process_listener’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6943:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6946:20: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6946:20: call_function: calling ‘alloc_client’ from ‘process_listener’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6946:20: return_function: returning to ‘process_listener’ from ‘alloc_client’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6946:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6952:14: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6952:14: call_function: calling ‘add_pollfd’ from ‘process_listener’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def55]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:1085:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(adopt_file, "r")’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6342:13: enter_function: entry to ‘adopt_locks’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6362:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6371:33: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6373:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6377:37: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6383:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6392:14: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6392:14: call_function: calling ‘read_adopt_file’ from ‘adopt_locks’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:1085:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(adopt_file, "r")’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6342:13: enter_function: entry to ‘adopt_locks’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6362:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6371:33: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6373:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6377:37: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6383:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6392:14: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6392:14: call_function: calling ‘read_adopt_file’ from ‘adopt_locks’
Error: COMPILER_WARNING: [#def57]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c: scope_hint: In function ‘clear_locks’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:2548:13: warning[-Wunused-but-set-variable=]: variable ‘lk_count’ set but not used
Error: COMPILER_WARNING: [#def58]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c: scope_hint: In function ‘lockspace_thread_main’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:3374:9: warning[-Wstringop-truncation]: ‘strncpy’ specified bound 65 equals destination size
Error: GCC_ANALYZER_WARNING (CWE-126): [#def59]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6912:17: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6362:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6371:33: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6911:9: branch_true: following ‘true’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6912:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6912:17: danger: out-of-bounds read from byte 456 till byte 463 but ‘vg_lockd’ ends at byte 16
Error: COMPILER_WARNING: [#def60]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c: scope_hint: In function ‘worker_thread_main’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7072:17: warning[-Wstringop-truncation]: ‘strncpy’ output may be truncated copying 64 bytes from a string of length 64
Error: GCC_ANALYZER_WARNING (CWE-775): [#def61]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7168:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘cr_fd’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7159:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7164:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7167:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7168:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7168:17: throw: if ‘close’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7168:17: danger: ‘cr_fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def62]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7168:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pw_fd’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7159:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7164:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7167:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7168:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7168:17: throw: if ‘close’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7168:17: danger: ‘pw_fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def63]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7169:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pw_fd’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7159:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7164:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7167:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7168:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7169:17: throw: if ‘close’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7169:17: danger: ‘pw_fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def64]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7178:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘cr_fd’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7159:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7164:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7167:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7173:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7177:12: branch_true: following ‘true’ branch (when ‘pid < 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7178:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7178:17: throw: if ‘close’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7178:17: danger: ‘cr_fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def65]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7178:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘cw_fd’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7159:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7164:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7167:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7173:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7177:12: branch_true: following ‘true’ branch (when ‘pid < 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7178:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7178:17: throw: if ‘close’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7178:17: danger: ‘cw_fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def66]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7178:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pr_fd’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7159:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7164:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7167:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7173:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7177:12: branch_true: following ‘true’ branch (when ‘pid < 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7178:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7178:17: throw: if ‘close’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7178:17: danger: ‘pr_fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def67]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7178:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pw_fd’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7159:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7164:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7167:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7173:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7177:12: branch_true: following ‘true’ branch (when ‘pid < 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7178:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7178:17: throw: if ‘close’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7178:17: danger: ‘pw_fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def68]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7179:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘cw_fd’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7159:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7164:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7167:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7173:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7177:12: branch_true: following ‘true’ branch (when ‘pid < 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7178:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7179:17: throw: if ‘close’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7179:17: danger: ‘cw_fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def69]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7179:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pr_fd’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7159:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7164:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7167:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7173:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7177:12: branch_true: following ‘true’ branch (when ‘pid < 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7178:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7179:17: throw: if ‘close’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7179:17: danger: ‘pr_fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def70]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7179:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pw_fd’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7159:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7164:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7167:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7173:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7177:12: branch_true: following ‘true’ branch (when ‘pid < 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7178:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7179:17: throw: if ‘close’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7179:17: danger: ‘pw_fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def71]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7180:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘cw_fd’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7159:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7164:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7167:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7173:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7177:12: branch_true: following ‘true’ branch (when ‘pid < 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7178:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7180:17: throw: if ‘close’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7180:17: danger: ‘cw_fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def72]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7180:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pr_fd’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7159:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7164:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7167:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7173:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7177:12: branch_true: following ‘true’ branch (when ‘pid < 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7178:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7180:17: throw: if ‘close’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7180:17: danger: ‘pr_fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def73]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7181:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘cw_fd’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7159:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7164:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7167:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7173:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7177:12: branch_true: following ‘true’ branch (when ‘pid < 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7178:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7181:17: throw: if ‘close’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7181:17: danger: ‘cw_fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def74]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7186:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘cr_fd’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7159:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7164:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7167:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7173:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7177:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7185:12: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7185:12: branch_true: following ‘true’ branch (when ‘pid != 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7186:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7186:17: throw: if ‘close’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7186:17: danger: ‘cr_fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def75]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7186:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘cw_fd’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7159:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7164:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7167:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7173:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7177:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7185:12: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7185:12: branch_true: following ‘true’ branch (when ‘pid != 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7186:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7186:17: throw: if ‘close’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7186:17: danger: ‘cw_fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def76]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7186:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pr_fd’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7159:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7164:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7167:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7173:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7177:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7185:12: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7185:12: branch_true: following ‘true’ branch (when ‘pid != 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7186:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7186:17: throw: if ‘close’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7186:17: danger: ‘pr_fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def77]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7186:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pw_fd’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7159:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7164:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7167:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7173:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7177:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7185:12: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7185:12: branch_true: following ‘true’ branch (when ‘pid != 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7186:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7186:17: throw: if ‘close’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7186:17: danger: ‘pw_fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def78]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7187:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘cw_fd’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7159:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7164:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7167:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7173:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7177:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7185:12: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7185:12: branch_true: following ‘true’ branch (when ‘pid != 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7186:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7187:17: throw: if ‘close’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7187:17: danger: ‘cw_fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def79]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7187:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pr_fd’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7159:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7164:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7167:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7173:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7177:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7185:12: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7185:12: branch_true: following ‘true’ branch (when ‘pid != 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7186:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7187:17: throw: if ‘close’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7187:17: danger: ‘pr_fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def80]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7187:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pw_fd’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7159:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7164:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7167:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7173:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7177:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7185:12: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7185:12: branch_true: following ‘true’ branch (when ‘pid != 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7186:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7187:17: throw: if ‘close’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7187:17: danger: ‘pw_fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def81]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7193:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘cr_fd’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7159:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7164:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7167:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7173:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7177:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7185:12: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7185:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7193:17: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7193:17: throw: if ‘close’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7193:17: danger: ‘cr_fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def82]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7193:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘cw_fd’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7159:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7164:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7167:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7173:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7177:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7185:12: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7185:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7193:17: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7193:17: throw: if ‘close’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7193:17: danger: ‘cw_fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def83]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7193:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pr_fd’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7159:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7164:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7167:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7173:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7177:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7185:12: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7185:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7193:17: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7193:17: throw: if ‘close’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7193:17: danger: ‘pr_fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def84]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7193:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pw_fd’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7159:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7164:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7167:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7173:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7177:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7185:12: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7185:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7193:17: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7193:17: throw: if ‘close’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7193:17: danger: ‘pw_fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def85]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7194:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘cr_fd’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7159:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7164:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7167:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7173:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7177:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7185:12: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7185:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7193:17: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7194:17: throw: if ‘close’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7194:17: danger: ‘cr_fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def86]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7194:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘cw_fd’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7159:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7164:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7167:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7173:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7177:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7185:12: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7185:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7193:17: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7194:17: throw: if ‘close’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7194:17: danger: ‘cw_fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def87]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7194:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pw_fd’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7159:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7164:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7167:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7173:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7177:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7185:12: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7185:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7193:17: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7194:17: throw: if ‘close’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7194:17: danger: ‘pw_fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def88]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7195:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘cr_fd’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7159:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7164:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7167:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7173:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7177:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7185:12: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7185:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7193:17: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7195:17: throw: if ‘helper_main’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7195:17: danger: ‘cr_fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def89]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7195:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘cw_fd’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7159:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7164:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7167:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7173:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7177:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7185:12: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7185:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7193:17: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7195:17: throw: if ‘helper_main’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:7195:17: danger: ‘cw_fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def90]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-dlm.c:115:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/sys/kernel/config/dlm/cluster/cluster_name", 0)’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-dlm.c:107:14: acquire_resource: opened here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-dlm.c:108:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-dlm.c:113:14: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-dlm.c:114:12: branch_true: following ‘true’ branch (when ‘rv < 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-dlm.c:115:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-dlm.c:115:17: throw: if ‘log_level’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-dlm.c:115:17: danger: ‘open("/sys/kernel/config/dlm/cluster/cluster_name", 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def91]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-dlm.c:118:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/sys/kernel/config/dlm/cluster/cluster_name", 0)’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-dlm.c:107:14: acquire_resource: opened here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-dlm.c:108:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-dlm.c:113:14: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-dlm.c:114:12: branch_false: following ‘false’ branch (when ‘rv >= 0’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-dlm.c:118:20: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-dlm.c:121:12: branch_false: following ‘false’ branch (when ‘n’ is NULL)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-dlm.c:124:1: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-dlm.c:125:13: throw: if ‘close’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-dlm.c:118:20: danger: ‘open("/sys/kernel/config/dlm/cluster/cluster_name", 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def92]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-dlm.c:242:22: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(&ls_comms_path)’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-dlm.c:239:24: acquire_memory: allocated here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-dlm.c:239:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-dlm.c:239:12: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-dlm.c:242:22: throw: if ‘readdir’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-dlm.c:242:22: danger: ‘opendir(&ls_comms_path)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def93]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-dlm.c:826:22: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(&ls_nodes_path)’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-dlm.c:816:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-dlm.c:819:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-dlm.c:823:24: acquire_memory: allocated here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-dlm.c:823:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-dlm.c:823:12: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-dlm.c:826:22: throw: if ‘readdir’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-dlm.c:826:22: danger: ‘opendir(&ls_nodes_path)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def94]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-dlm.c:858:22: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/sys/kernel/config/dlm/cluster/spaces")’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-dlm.c:855:24: acquire_memory: allocated here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-dlm.c:855:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-dlm.c:855:12: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-dlm.c:858:22: throw: if ‘readdir’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-dlm.c:858:22: danger: ‘opendir("/sys/kernel/config/dlm/cluster/spaces")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def95]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-helper.c:140:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘av[0]’ where non-null expected
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-helper.c:86:21: branch_true: following ‘true’ branch (when ‘i != 33’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-helper.c:87:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-helper.c:89:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-helper.c:93:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-helper.c:99:21: branch_true: following ‘true’ branch (when ‘i < cmd_len’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-helper.c:100:29: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-helper.c:100:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-helper.c:103:20: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-helper.c:103:20: branch_false: following ‘false’ branch (when ‘av_count != 32’)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-helper.c:106:20: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-helper.c:136:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-helper.c:137:34: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-helper.c:137:34: acquire_memory: this call could return NULL
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-helper.c:140:9: danger: argument 1 (‘av[0]’) from [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-121): [#def96]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-internal.h:304:9: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6342:13: enter_function: entry to ‘adopt_locks’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6362:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6371:33: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6379:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6383:13: call_function: inlined call to ‘list_empty’ from ‘adopt_locks’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6383:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6392:14: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6392:14: call_function: calling ‘read_adopt_file’ from ‘adopt_locks’
Error: GCC_ANALYZER_WARNING (CWE-126): [#def97]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-internal.h:315:9: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6342:13: enter_function: entry to ‘adopt_locks’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6362:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6371:33: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6379:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6383:13: call_function: inlined call to ‘list_empty’ from ‘adopt_locks’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6383:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6392:14: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-core.c:6392:14: call_function: calling ‘read_adopt_file’ from ‘adopt_locks’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def98]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:429:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&path, "w")’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:414:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:417:20: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:417:20: acquire_resource: opened here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:417:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:422:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:429:13: throw: if ‘fflush’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:429:13: danger: ‘fopen(&path, "w")’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def99]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:429:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&path, "w")’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:414:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:417:20: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:417:20: acquire_memory: allocated here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:417:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:422:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:429:13: throw: if ‘fflush’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:429:13: danger: ‘fopen(&path, "w")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def100]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:430:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&path, "w")’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:414:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:417:20: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:417:20: acquire_resource: opened here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:417:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:422:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:429:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:430:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:430:17: throw: if ‘log_level’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:430:17: danger: ‘fopen(&path, "w")’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def101]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:430:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&path, "w")’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:414:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:417:20: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:417:20: acquire_memory: allocated here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:417:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:422:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:429:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:430:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:430:17: throw: if ‘log_level’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:430:17: danger: ‘fopen(&path, "w")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: COMPILER_WARNING: [#def102]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c: scope_hint: In function ‘lm_init_vg_sanlock’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:723:13: warning[-Wunused-but-set-variable=]: variable ‘i’ set but not used
Error: COMPILER_WARNING: [#def103]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c: scope_hint: In function ‘lm_rename_vg_sanlock’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:1108:13: warning[-Wunused-but-set-variable=]: variable ‘i’ set but not used
Error: GCC_ANALYZER_WARNING (CWE-401): [#def104]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:1347:14: warning[-Wanalyzer-malloc-leak]: leak of ‘rs_args’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:1321:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:1324:19: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:1324:19: acquire_memory: allocated here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:1325:12: branch_false: following ‘false’ branch (when ‘rs_args’ is non-NULL)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:1328:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:1347:14: throw: if ‘sanlock_acquire’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:1347:14: danger: ‘rs_args’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def105]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:1349:17: warning[-Wanalyzer-malloc-leak]: leak of ‘rs_args’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:1321:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:1324:19: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:1324:19: acquire_memory: allocated here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:1325:12: branch_false: following ‘false’ branch (when ‘rs_args’ is non-NULL)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:1328:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:1348:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:1349:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:1349:17: throw: if ‘log_level’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:1349:17: danger: ‘rs_args’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def106]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:1357:14: warning[-Wanalyzer-malloc-leak]: leak of ‘rs_args’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:1321:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:1324:19: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:1324:19: acquire_memory: allocated here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:1325:12: branch_false: following ‘false’ branch (when ‘rs_args’ is non-NULL)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:1328:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:1348:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:1354:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:1357:14: throw: if ‘sanlock_release’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:1357:14: danger: ‘rs_args’ leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def107]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:2521:17: warning[-Wanalyzer-malloc-leak]: leak of ‘res_args’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:2510:20: acquire_memory: allocated here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:2511:12: branch_false: following ‘false’ branch (when ‘res_args’ is non-NULL)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:2514:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:2520:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:2521:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:2521:17: throw: if ‘log_level’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:2521:17: danger: ‘res_args’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def108]
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:2528:14: warning[-Wanalyzer-malloc-leak]: leak of ‘res_args’
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:2510:20: acquire_memory: allocated here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:2511:12: branch_false: following ‘false’ branch (when ‘res_args’ is non-NULL)...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:2514:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:2528:14: throw: if ‘sanlock_release’ throws an exception...
LVM2.2.03.38/daemons/lvmlockd/lvmlockd-sanlock.c:2528:14: danger: ‘res_args’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def109]
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-core.c:239:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-core.c:373:14: enter_function: entry to ‘fork_and_poll’
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-core.c:388:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-core.c:393:14: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-core.c:393:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-core.c:410:12: branch_false: following ‘false’ branch (when ‘r != 0’)...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-core.c:423:20: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-core.c:423:20: branch_false: following ‘false’ branch (when ‘r != -1’)...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-core.c:429:17: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-core.c:434:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-core.c:439:17: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-core.c:441:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-core.c:446:17: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-core.c:448:25: call_function: calling ‘poll_for_output’ from ‘fork_and_poll’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def110]
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-core.c:414:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(outfd, 1)’
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-core.c:388:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-core.c:393:14: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-core.c:393:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-core.c:410:12: branch_true: following ‘true’ branch (when ‘r == 0’)...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-core.c:414:22: branch_true: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-core.c:414:22: acquire_resource: opened here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-core.c:414:20: danger: ‘dup2(outfd, 1)’ leaks here; was opened at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def111]
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-core.c:414:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(errfd, 2)’
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-core.c:388:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-core.c:393:14: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-core.c:393:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-core.c:410:12: branch_true: following ‘true’ branch (when ‘r == 0’)...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-core.c:414:22: branch_true: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-core.c:414:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-core.c:415:22: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-core.c:415:22: acquire_resource: opened here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-core.c:414:21: danger: ‘dup2(errfd, 2)’ leaks here; was opened at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def112]
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:34:13: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:30:25: acquire_memory: allocated here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:31:12: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:34:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:34:13: throw: if ‘dm_snprintf’ throws an exception...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:34:13: danger: ‘name’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def113]
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:34:13: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp.devicesfile’
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:103:21: enter_function: entry to ‘pdlv_create’
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:115:32: branch_true: following ‘true’ branch (when ‘devicesfile’ is non-NULL)...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:115:46: branch_true: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:115:46: acquire_memory: allocated here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:114:27: call_function: calling ‘_construct_full_lvname’ from ‘pdlv_create’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def114]
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:34:13: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp.lvmpolld_id’
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:103:21: enter_function: entry to ‘pdlv_create’
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:113:32: acquire_memory: allocated here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:115:32: branch_false: following ‘false’ branch (when ‘devicesfile’ is NULL)...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:110:28: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:114:27: call_function: calling ‘_construct_full_lvname’ from ‘pdlv_create’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def115]
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:57:23: warning[-Wanalyzer-malloc-leak]: leak of ‘env’
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:50:30: acquire_memory: allocated here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:52:12: branch_false: following ‘false’ branch (when ‘env’ is non-NULL)...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:55:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:57:12: branch_true: following ‘true’ branch (when ‘sysdir’ is non-NULL)...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:57:23: branch_true: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:57:23: throw: if ‘dm_snprintf’ throws an exception...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:57:23: danger: ‘env’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def116]
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:57:23: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp.devicesfile’
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:103:21: enter_function: entry to ‘pdlv_create’
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:115:32: branch_true: following ‘true’ branch (when ‘devicesfile’ is non-NULL)...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:115:46: branch_true: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:115:46: acquire_memory: allocated here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:116:39: call_function: calling ‘_construct_lvm_system_dir_env’ from ‘pdlv_create’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def117]
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:57:23: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp.lvmpolld_id’
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:103:21: enter_function: entry to ‘pdlv_create’
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:113:32: acquire_memory: allocated here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:115:32: branch_false: following ‘false’ branch (when ‘devicesfile’ is NULL)...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:110:28: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:116:39: call_function: calling ‘_construct_lvm_system_dir_env’ from ‘pdlv_create’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def118]
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:57:23: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp.sinterval’
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:103:21: enter_function: entry to ‘pdlv_create’
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:115:32: branch_false: following ‘false’ branch (when ‘devicesfile’ is NULL)...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:110:28: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:114:27: call_function: calling ‘_construct_full_lvname’ from ‘pdlv_create’
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:114:27: return_function: returning to ‘pdlv_create’ from ‘_construct_full_lvname’
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:117:30: acquire_memory: allocated here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:116:39: call_function: calling ‘_construct_lvm_system_dir_env’ from ‘pdlv_create’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def119]
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:81:22: warning[-Wanalyzer-malloc-leak]: leak of ‘id’
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:77:23: acquire_memory: allocated here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:78:12: branch_false: following ‘false’ branch (when ‘id’ is non-NULL)...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:81:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:81:13: branch_true: following ‘true’ branch (when ‘sysdir’ is non-NULL)...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:81:22: branch_true: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:81:22: throw: if ‘dm_snprintf’ throws an exception...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:81:22: danger: ‘id’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def120]
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:82:22: warning[-Wanalyzer-malloc-leak]: leak of ‘id’
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:77:23: acquire_memory: allocated here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:78:12: branch_false: following ‘false’ branch (when ‘id’ is non-NULL)...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:81:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:81:13: branch_false: following ‘false’ branch (when ‘sysdir’ is NULL)...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:82:22: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:82:22: throw: if ‘dm_snprintf’ throws an exception...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:82:22: danger: ‘id’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def121]
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:204:23: warning[-Wanalyzer-malloc-leak]: leak of ‘pdst’
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:200:65: acquire_memory: allocated here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:201:12: branch_false: following ‘false’ branch (when ‘pdst’ is non-NULL)...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:204:23: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:204:23: throw: if ‘dm_hash_create’ throws an exception...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:204:23: danger: ‘pdst’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def122]
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:348:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:334:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:337:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:41: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:13: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:348:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:348:13: throw: if ‘fcntl’ throws an exception...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:348:13: danger: leaks here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def123]
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:348:13: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:333:77: acquire_memory: allocated here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:334:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:337:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:41: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:13: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:348:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:348:13: throw: if ‘fcntl’ throws an exception...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:348:13: danger: ‘data’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def124]
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:349:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:334:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:337:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:41: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:13: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:348:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:348:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:349:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:349:13: throw: if ‘fcntl’ throws an exception...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:349:13: danger: leaks here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def125]
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:349:13: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:333:77: acquire_memory: allocated here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:334:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:337:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:41: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:13: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:348:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:348:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:349:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:349:13: throw: if ‘fcntl’ throws an exception...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:349:13: danger: ‘data’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def126]
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:350:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:334:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:337:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:41: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:13: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:348:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:348:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:349:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:348:13: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:350:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:350:13: throw: if ‘fcntl’ throws an exception...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:350:13: danger: leaks here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def127]
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:350:13: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:333:77: acquire_memory: allocated here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:334:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:337:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:41: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:13: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:348:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:348:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:349:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:348:13: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:350:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:350:13: throw: if ‘fcntl’ throws an exception...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:350:13: danger: ‘data’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def128]
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:351:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:334:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:337:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:41: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:13: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:348:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:348:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:349:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:348:13: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:350:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:348:13: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:351:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:351:13: throw: if ‘fcntl’ throws an exception...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:351:13: danger: leaks here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def129]
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:351:13: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:333:77: acquire_memory: allocated here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:334:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:337:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:41: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:13: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:348:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:348:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:349:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:348:13: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:350:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:348:13: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:351:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:351:13: throw: if ‘fcntl’ throws an exception...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:351:13: danger: ‘data’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def130]
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:390:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:331:30: enter_function: entry to ‘lvmpolld_thread_data_constructor’
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:334:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:337:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:41: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:13: branch_true: following ‘true’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:344:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:344:17: call_function: calling ‘lvmpolld_thread_data_destroy’ from ‘lvmpolld_thread_data_constructor’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def131]
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:390:24: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:331:30: enter_function: entry to ‘lvmpolld_thread_data_constructor’
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:333:77: acquire_memory: allocated here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:334:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:337:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:41: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:13: branch_true: following ‘true’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:344:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:344:17: call_function: calling ‘lvmpolld_thread_data_destroy’ from ‘lvmpolld_thread_data_constructor’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def132]
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:393:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:331:30: enter_function: entry to ‘lvmpolld_thread_data_constructor’
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:334:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:337:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:41: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:13: branch_true: following ‘true’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:344:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:344:17: call_function: calling ‘lvmpolld_thread_data_destroy’ from ‘lvmpolld_thread_data_constructor’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def133]
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:393:24: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:331:30: enter_function: entry to ‘lvmpolld_thread_data_constructor’
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:333:77: acquire_memory: allocated here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:334:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:337:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:41: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:13: branch_true: following ‘true’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:344:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:344:17: call_function: calling ‘lvmpolld_thread_data_destroy’ from ‘lvmpolld_thread_data_constructor’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def134]
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:396:24: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:331:30: enter_function: entry to ‘lvmpolld_thread_data_constructor’
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:333:77: acquire_memory: allocated here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:334:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:337:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:41: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:13: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:348:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:348:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:349:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:348:13: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:350:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:348:13: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:351:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:348:13: branch_true: following ‘true’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:352:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:352:17: call_function: calling ‘lvmpolld_thread_data_destroy’ from ‘lvmpolld_thread_data_constructor’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def135]
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:399:24: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:331:30: enter_function: entry to ‘lvmpolld_thread_data_constructor’
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:333:77: acquire_memory: allocated here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:334:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:337:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:41: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:13: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:348:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:348:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:349:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:348:13: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:350:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:348:13: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:351:13: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:348:13: branch_true: following ‘true’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:352:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:352:17: call_function: calling ‘lvmpolld_thread_data_destroy’ from ‘lvmpolld_thread_data_constructor’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def136]
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:401:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:331:30: enter_function: entry to ‘lvmpolld_thread_data_constructor’
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:334:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:337:9: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:41: branch_false: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:343:13: branch_true: following ‘true’ branch...
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:344:17: branch_true: ...to here
LVM2.2.03.38/daemons/lvmpolld/lvmpolld-data-utils.c:344:17: call_function: calling ‘lvmpolld_thread_data_destroy’ from ‘lvmpolld_thread_data_constructor’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def137]
LVM2.2.03.38/device_mapper/datastruct/bitset.c:195:41: warning[-Wanalyzer-malloc-leak]: leak of ‘mask’
LVM2.2.03.38/device_mapper/datastruct/bitset.c:149:13: enter_function: entry to ‘dm_bitset_parse_list’
LVM2.2.03.38/device_mapper/datastruct/bitset.c:171:24: branch_true: following ‘true’ branch (when ‘len != 0’)...
LVM2.2.03.38/device_mapper/datastruct/bitset.c:173:30: branch_true: ...to here
LVM2.2.03.38/device_mapper/datastruct/bitset.c:175:28: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/datastruct/bitset.c:179:29: branch_false: ...to here
LVM2.2.03.38/device_mapper/datastruct/bitset.c:179:28: branch_true: following ‘true’ branch...
LVM2.2.03.38/device_mapper/datastruct/bitset.c:211:20: branch_true: ...to here
LVM2.2.03.38/device_mapper/datastruct/bitset.c:211:20: branch_true: following ‘true’ branch (when ‘totaldigits == totaldigits’)...
LVM2.2.03.38/device_mapper/datastruct/bitset.c:211:20: branch_true: ...to here
LVM2.2.03.38/device_mapper/datastruct/bitset.c:226:12: branch_true: following ‘true’ branch (when ‘mask’ is NULL)...
LVM2.2.03.38/device_mapper/datastruct/bitset.c:227:20: branch_true: ...to here
LVM2.2.03.38/device_mapper/datastruct/bitset.c:230:30: call_function: calling ‘dm_bitset_create’ from ‘dm_bitset_parse_list’
LVM2.2.03.38/device_mapper/datastruct/bitset.c:230:30: return_function: returning to ‘dm_bitset_parse_list’ from ‘dm_bitset_create’
LVM2.2.03.38/device_mapper/datastruct/bitset.c:230:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/datastruct/bitset.c:233:17: branch_false: ...to here
LVM2.2.03.38/device_mapper/datastruct/bitset.c:175:28: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/datastruct/bitset.c:179:29: branch_false: ...to here
LVM2.2.03.38/device_mapper/datastruct/bitset.c:179:28: branch_true: following ‘true’ branch...
LVM2.2.03.38/device_mapper/datastruct/bitset.c:211:20: branch_true: ...to here
LVM2.2.03.38/device_mapper/datastruct/bitset.c:211:20: branch_true: following ‘true’ branch (when ‘totaldigits == totaldigits’)...
LVM2.2.03.38/device_mapper/datastruct/bitset.c:211:20: branch_true: ...to here
LVM2.2.03.38/device_mapper/datastruct/bitset.c:224:18: branch_true: following ‘true’ branch...
LVM2.2.03.38/device_mapper/datastruct/bitset.c:224:18: branch_true: ...to here
LVM2.2.03.38/device_mapper/datastruct/bitset.c:190:28: branch_false: following ‘false’ branch (when ‘totaldigits == totaldigits’)...
LVM2.2.03.38/device_mapper/datastruct/bitset.c:193:28: branch_false: ...to here
LVM2.2.03.38/device_mapper/datastruct/bitset.c:193:28: branch_true: following ‘true’ branch (when ‘c == 45’)...
LVM2.2.03.38/device_mapper/datastruct/bitset.c:194:37: branch_true: ...to here
LVM2.2.03.38/device_mapper/datastruct/bitset.c:194:36: branch_true: following ‘true’ branch...
LVM2.2.03.38/device_mapper/datastruct/bitset.c:195:41: branch_true: ...to here
LVM2.2.03.38/device_mapper/datastruct/bitset.c:195:41: throw: if the called function throws an exception...
LVM2.2.03.38/device_mapper/datastruct/bitset.c:195:41: danger: ‘mask’ leaks here; was allocated at [(17)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def138]
LVM2.2.03.38/device_mapper/datastruct/bitset.c:203:33: warning[-Wanalyzer-malloc-leak]: leak of ‘mask’
LVM2.2.03.38/device_mapper/datastruct/bitset.c:149:13: enter_function: entry to ‘dm_bitset_parse_list’
LVM2.2.03.38/device_mapper/datastruct/bitset.c:171:24: branch_true: following ‘true’ branch (when ‘len != 0’)...
LVM2.2.03.38/device_mapper/datastruct/bitset.c:173:30: branch_true: ...to here
LVM2.2.03.38/device_mapper/datastruct/bitset.c:175:28: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/datastruct/bitset.c:179:29: branch_false: ...to here
LVM2.2.03.38/device_mapper/datastruct/bitset.c:179:28: branch_true: following ‘true’ branch...
LVM2.2.03.38/device_mapper/datastruct/bitset.c:211:20: branch_true: ...to here
LVM2.2.03.38/device_mapper/datastruct/bitset.c:211:20: branch_true: following ‘true’ branch (when ‘totaldigits == totaldigits’)...
LVM2.2.03.38/device_mapper/datastruct/bitset.c:211:20: branch_true: ...to here
LVM2.2.03.38/device_mapper/datastruct/bitset.c:226:12: branch_true: following ‘true’ branch (when ‘mask’ is NULL)...
LVM2.2.03.38/device_mapper/datastruct/bitset.c:227:20: branch_true: ...to here
LVM2.2.03.38/device_mapper/datastruct/bitset.c:230:30: call_function: calling ‘dm_bitset_create’ from ‘dm_bitset_parse_list’
LVM2.2.03.38/device_mapper/datastruct/bitset.c:230:30: return_function: returning to ‘dm_bitset_parse_list’ from ‘dm_bitset_create’
LVM2.2.03.38/device_mapper/datastruct/bitset.c:230:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/datastruct/bitset.c:233:17: branch_false: ...to here
LVM2.2.03.38/device_mapper/datastruct/bitset.c:175:28: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/datastruct/bitset.c:179:29: branch_false: ...to here
LVM2.2.03.38/device_mapper/datastruct/bitset.c:179:28: branch_true: following ‘true’ branch...
LVM2.2.03.38/device_mapper/datastruct/bitset.c:211:20: branch_true: ...to here
LVM2.2.03.38/device_mapper/datastruct/bitset.c:211:20: branch_true: following ‘true’ branch (when ‘totaldigits == totaldigits’)...
LVM2.2.03.38/device_mapper/datastruct/bitset.c:211:20: branch_true: ...to here
LVM2.2.03.38/device_mapper/datastruct/bitset.c:224:18: branch_true: following ‘true’ branch...
LVM2.2.03.38/device_mapper/datastruct/bitset.c:224:18: branch_true: ...to here
LVM2.2.03.38/device_mapper/datastruct/bitset.c:190:28: branch_false: following ‘false’ branch (when ‘totaldigits == totaldigits’)...
LVM2.2.03.38/device_mapper/datastruct/bitset.c:193:28: branch_false: ...to here
LVM2.2.03.38/device_mapper/datastruct/bitset.c:193:28: branch_false: following ‘false’ branch (when ‘c != 45’)...
LVM2.2.03.38/device_mapper/datastruct/bitset.c:193:28: branch_false: ...to here
LVM2.2.03.38/device_mapper/datastruct/bitset.c:202:28: branch_true: following ‘true’ branch...
LVM2.2.03.38/device_mapper/datastruct/bitset.c:203:33: branch_true: ...to here
LVM2.2.03.38/device_mapper/datastruct/bitset.c:203:33: throw: if the called function throws an exception...
LVM2.2.03.38/device_mapper/datastruct/bitset.c:203:33: danger: ‘mask’ leaks here; was allocated at [(17)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/16)
Error: CPPCHECK_WARNING (CWE-457): [#def139]
LVM2.2.03.38/device_mapper/ioctl/libdm-iface.c:814: error[legacyUninitvar]: Uninitialized variable: names1
Error: GCC_ANALYZER_WARNING (CWE-401): [#def140]
LVM2.2.03.38/device_mapper/libdm-common.c:320:14: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 216)’
LVM2.2.03.38/device_mapper/libdm-common.c:2276:5: enter_function: entry to ‘dm_driver_version’
LVM2.2.03.38/device_mapper/libdm-common.c:2281:21: call_function: calling ‘dm_task_create’ from ‘dm_driver_version’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def141]
LVM2.2.03.38/device_mapper/libdm-common.c:363:26: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(&_dm_dir)’
LVM2.2.03.38/device_mapper/libdm-common.c:2255:5: enter_function: entry to ‘dm_mknodes’
LVM2.2.03.38/device_mapper/libdm-common.c:2260:21: call_function: calling ‘dm_task_create’ from ‘dm_mknodes’
LVM2.2.03.38/device_mapper/libdm-common.c:2260:21: return_function: returning to ‘dm_mknodes’ from ‘dm_task_create’
LVM2.2.03.38/device_mapper/libdm-common.c:2260:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/libdm-common.c:2263:12: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:2263:12: branch_true: following ‘true’ branch (when ‘name’ is non-NULL)...
LVM2.2.03.38/device_mapper/libdm-common.c:2263:22: branch_true: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:2263:22: call_function: calling ‘dm_task_set_name’ from ‘dm_mknodes’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def142]
LVM2.2.03.38/device_mapper/libdm-common.c:675:24: warning[-Wanalyzer-malloc-leak]: leak of ‘dm_task_create(15)’
LVM2.2.03.38/device_mapper/libdm-common.c:2255:5: enter_function: entry to ‘dm_mknodes’
LVM2.2.03.38/device_mapper/libdm-common.c:2260:21: call_function: calling ‘dm_task_create’ from ‘dm_mknodes’
LVM2.2.03.38/device_mapper/libdm-common.c:2260:21: return_function: returning to ‘dm_mknodes’ from ‘dm_task_create’
LVM2.2.03.38/device_mapper/libdm-common.c:2260:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/libdm-common.c:2263:12: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:2263:12: branch_true: following ‘true’ branch (when ‘name’ is non-NULL)...
LVM2.2.03.38/device_mapper/libdm-common.c:2263:22: branch_true: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:2263:22: call_function: calling ‘dm_task_set_name’ from ‘dm_mknodes’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def143]
LVM2.2.03.38/device_mapper/libdm-common.c:1656:9: warning[-Wanalyzer-malloc-leak]: leak of ‘nop’
LVM2.2.03.38/device_mapper/libdm-common.c:1701:5: enter_function: entry to ‘set_dev_node_read_ahead’
LVM2.2.03.38/device_mapper/libdm-common.c:1705:12: branch_false: following ‘false’ branch (when ‘read_ahead != 4294967295’)...
LVM2.2.03.38/device_mapper/libdm-common.c:1708:16: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:1708:16: call_function: calling ‘_stack_node_op’ from ‘set_dev_node_read_ahead’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def144]
LVM2.2.03.38/device_mapper/libdm-common.c:1825:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&_mountinfo, "r")’
LVM2.2.03.38/device_mapper/libdm-common.c:1864:5: enter_function: entry to ‘dm_mountinfo_read’
LVM2.2.03.38/device_mapper/libdm-common.c:1872:23: acquire_resource: opened here
LVM2.2.03.38/device_mapper/libdm-common.c:1872:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/libdm-common.c:1872:12: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:1880:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/device_mapper/libdm-common.c:1882:22: call_function: calling ‘_mountinfo_parse_line’ from ‘dm_mountinfo_read’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def145]
LVM2.2.03.38/device_mapper/libdm-common.c:1825:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&_mountinfo, "r")’
LVM2.2.03.38/device_mapper/libdm-common.c:1864:5: enter_function: entry to ‘dm_mountinfo_read’
LVM2.2.03.38/device_mapper/libdm-common.c:1872:23: acquire_memory: allocated here
LVM2.2.03.38/device_mapper/libdm-common.c:1872:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/libdm-common.c:1872:12: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:1880:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/device_mapper/libdm-common.c:1882:22: call_function: calling ‘_mountinfo_parse_line’ from ‘dm_mountinfo_read’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def146]
LVM2.2.03.38/device_mapper/libdm-common.c:1831:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&_mountinfo, "r")’
LVM2.2.03.38/device_mapper/libdm-common.c:1864:5: enter_function: entry to ‘dm_mountinfo_read’
LVM2.2.03.38/device_mapper/libdm-common.c:1872:23: acquire_resource: opened here
LVM2.2.03.38/device_mapper/libdm-common.c:1872:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/libdm-common.c:1872:12: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:1880:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/device_mapper/libdm-common.c:1882:22: call_function: calling ‘_mountinfo_parse_line’ from ‘dm_mountinfo_read’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def147]
LVM2.2.03.38/device_mapper/libdm-common.c:1831:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&_mountinfo, "r")’
LVM2.2.03.38/device_mapper/libdm-common.c:1864:5: enter_function: entry to ‘dm_mountinfo_read’
LVM2.2.03.38/device_mapper/libdm-common.c:1872:23: acquire_memory: allocated here
LVM2.2.03.38/device_mapper/libdm-common.c:1872:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/libdm-common.c:1872:12: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:1880:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/device_mapper/libdm-common.c:1882:22: call_function: calling ‘_mountinfo_parse_line’ from ‘dm_mountinfo_read’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def148]
LVM2.2.03.38/device_mapper/libdm-common.c:1918:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&sysfs_path, "r")’
LVM2.2.03.38/device_mapper/libdm-common.c:1902:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/libdm-common.c:1909:20: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:1909:20: acquire_resource: opened here
LVM2.2.03.38/device_mapper/libdm-common.c:1909:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/libdm-common.c:1917:14: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:1917:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/device_mapper/libdm-common.c:1918:17: branch_true: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:1918:17: throw: if the called function throws an exception...
LVM2.2.03.38/device_mapper/libdm-common.c:1918:17: danger: ‘fopen(&sysfs_path, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def149]
LVM2.2.03.38/device_mapper/libdm-common.c:1918:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&sysfs_path, "r")’
LVM2.2.03.38/device_mapper/libdm-common.c:1902:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/libdm-common.c:1909:20: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:1909:20: acquire_memory: allocated here
LVM2.2.03.38/device_mapper/libdm-common.c:1909:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/libdm-common.c:1917:14: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:1917:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/device_mapper/libdm-common.c:1918:17: branch_true: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:1918:17: throw: if the called function throws an exception...
LVM2.2.03.38/device_mapper/libdm-common.c:1918:17: danger: ‘fopen(&sysfs_path, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def150]
LVM2.2.03.38/device_mapper/libdm-common.c:1925:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&sysfs_path, "r")’
LVM2.2.03.38/device_mapper/libdm-common.c:1902:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/libdm-common.c:1909:20: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:1909:20: acquire_resource: opened here
LVM2.2.03.38/device_mapper/libdm-common.c:1909:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/libdm-common.c:1917:14: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:1917:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/libdm-common.c:1922:15: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:1924:12: branch_true: following ‘true’ branch (when ‘len > buf_size’)...
LVM2.2.03.38/device_mapper/libdm-common.c:1925:17: branch_true: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:1925:17: throw: if the called function throws an exception...
LVM2.2.03.38/device_mapper/libdm-common.c:1925:17: danger: ‘fopen(&sysfs_path, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def151]
LVM2.2.03.38/device_mapper/libdm-common.c:1925:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&sysfs_path, "r")’
LVM2.2.03.38/device_mapper/libdm-common.c:1902:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/libdm-common.c:1909:20: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:1909:20: acquire_memory: allocated here
LVM2.2.03.38/device_mapper/libdm-common.c:1909:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/libdm-common.c:1917:14: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:1917:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/libdm-common.c:1922:15: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:1924:12: branch_true: following ‘true’ branch (when ‘len > buf_size’)...
LVM2.2.03.38/device_mapper/libdm-common.c:1925:17: branch_true: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:1925:17: throw: if the called function throws an exception...
LVM2.2.03.38/device_mapper/libdm-common.c:1925:17: danger: ‘fopen(&sysfs_path, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def152]
LVM2.2.03.38/device_mapper/libdm-common.c:1982:32: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(&path)’
LVM2.2.03.38/device_mapper/libdm-common.c:1971:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/libdm-common.c:1972:13: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:1971:13: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/libdm-common.c:1977:19: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:1977:19: acquire_memory: allocated here
LVM2.2.03.38/device_mapper/libdm-common.c:1977:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/libdm-common.c:1977:12: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:1982:16: branch_true: following ‘true’ branch (when ‘r == 0’)...
LVM2.2.03.38/device_mapper/libdm-common.c:1982:32: branch_true: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:1982:32: throw: if ‘readdir’ throws an exception...
LVM2.2.03.38/device_mapper/libdm-common.c:1982:32: danger: ‘opendir(&path)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def153]
LVM2.2.03.38/device_mapper/libdm-common.c:2011:46: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(&path)’
LVM2.2.03.38/device_mapper/libdm-common.c:1971:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/libdm-common.c:1972:13: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:1971:13: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/libdm-common.c:1977:19: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:1977:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/libdm-common.c:1977:12: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:1982:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/device_mapper/libdm-common.c:1994:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/libdm-common.c:1999:22: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:2006:39: acquire_memory: allocated here
LVM2.2.03.38/device_mapper/libdm-common.c:2011:46: throw: if ‘readdir’ throws an exception...
LVM2.2.03.38/device_mapper/libdm-common.c:2011:46: danger: ‘opendir(&path)’ leaks here; was allocated at [(11)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def154]
LVM2.2.03.38/device_mapper/libdm-common.c:2066:17: warning[-Wanalyzer-malloc-leak]: leak of ‘sysfs_path’
LVM2.2.03.38/device_mapper/libdm-common.c:2064:28: acquire_memory: allocated here
LVM2.2.03.38/device_mapper/libdm-common.c:2064:12: branch_false: following ‘false’ branch (when ‘sysfs_path’ is non-NULL)...
LVM2.2.03.38/device_mapper/libdm-common.c:2065:26: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:2064:13: branch_true: following ‘true’ branch (when ‘temp_buf’ is NULL)...
LVM2.2.03.38/device_mapper/libdm-common.c:2066:17: branch_true: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:2066:17: throw: if the called function throws an exception...
LVM2.2.03.38/device_mapper/libdm-common.c:2066:17: danger: ‘sysfs_path’ leaks here; was allocated at [(1)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def155]
LVM2.2.03.38/device_mapper/libdm-common.c:2070:13: warning[-Wanalyzer-malloc-leak]: leak of ‘sysfs_path’
LVM2.2.03.38/device_mapper/libdm-common.c:2064:28: acquire_memory: allocated here
LVM2.2.03.38/device_mapper/libdm-common.c:2064:12: branch_false: following ‘false’ branch (when ‘sysfs_path’ is non-NULL)...
LVM2.2.03.38/device_mapper/libdm-common.c:2065:26: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:2064:13: branch_false: following ‘false’ branch (when ‘temp_buf’ is non-NULL)...
LVM2.2.03.38/device_mapper/libdm-common.c:2070:13: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:2070:13: throw: if ‘dm_snprintf’ throws an exception...
LVM2.2.03.38/device_mapper/libdm-common.c:2070:13: danger: ‘sysfs_path’ leaks here; was allocated at [(1)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def156]
LVM2.2.03.38/device_mapper/libdm-common.c:2070:13: warning[-Wanalyzer-malloc-leak]: leak of ‘temp_buf’
LVM2.2.03.38/device_mapper/libdm-common.c:2064:12: branch_false: following ‘false’ branch (when ‘sysfs_path’ is non-NULL)...
LVM2.2.03.38/device_mapper/libdm-common.c:2065:26: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:2065:26: acquire_memory: allocated here
LVM2.2.03.38/device_mapper/libdm-common.c:2064:13: branch_false: following ‘false’ branch (when ‘temp_buf’ is non-NULL)...
LVM2.2.03.38/device_mapper/libdm-common.c:2070:13: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:2070:13: throw: if ‘dm_snprintf’ throws an exception...
LVM2.2.03.38/device_mapper/libdm-common.c:2070:13: danger: ‘temp_buf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def157]
LVM2.2.03.38/device_mapper/libdm-common.c:2072:17: warning[-Wanalyzer-malloc-leak]: leak of ‘temp_buf’
LVM2.2.03.38/device_mapper/libdm-common.c:2064:12: branch_false: following ‘false’ branch (when ‘sysfs_path’ is non-NULL)...
LVM2.2.03.38/device_mapper/libdm-common.c:2065:26: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:2065:26: acquire_memory: allocated here
LVM2.2.03.38/device_mapper/libdm-common.c:2064:13: branch_false: following ‘false’ branch (when ‘temp_buf’ is non-NULL)...
LVM2.2.03.38/device_mapper/libdm-common.c:2070:13: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:2070:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/device_mapper/libdm-common.c:2072:17: branch_true: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:2072:17: throw: if the called function throws an exception...
LVM2.2.03.38/device_mapper/libdm-common.c:2072:17: danger: ‘temp_buf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def158]
LVM2.2.03.38/device_mapper/libdm-common.c:2177:26: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(&sysfs_path)’
LVM2.2.03.38/device_mapper/libdm-common.c:2166:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/libdm-common.c:2171:19: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:2171:19: acquire_memory: allocated here
LVM2.2.03.38/device_mapper/libdm-common.c:2171:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/libdm-common.c:2171:12: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:2177:26: throw: if ‘readdir’ throws an exception...
LVM2.2.03.38/device_mapper/libdm-common.c:2177:26: danger: ‘opendir(&sysfs_path)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def159]
LVM2.2.03.38/device_mapper/libdm-common.c:2266:14: warning[-Wanalyzer-malloc-leak]: leak of ‘dm_task_create(15)’
LVM2.2.03.38/device_mapper/libdm-common.c:2255:5: enter_function: entry to ‘dm_mknodes’
LVM2.2.03.38/device_mapper/libdm-common.c:2260:21: call_function: calling ‘dm_task_create’ from ‘dm_mknodes’
LVM2.2.03.38/device_mapper/libdm-common.c:2260:21: return_function: returning to ‘dm_mknodes’ from ‘dm_task_create’
LVM2.2.03.38/device_mapper/libdm-common.c:2260:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/libdm-common.c:2263:12: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:2263:12: branch_false: following ‘false’ branch (when ‘name’ is NULL)...
LVM2.2.03.38/device_mapper/libdm-common.c:2266:14: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:2266:14: throw: if ‘dm_task_no_open_count’ throws an exception...
LVM2.2.03.38/device_mapper/libdm-common.c:2266:14: danger: ‘dm_task_create(15)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def160]
LVM2.2.03.38/device_mapper/libdm-common.c:2284:14: warning[-Wanalyzer-malloc-leak]: leak of ‘dm_task_create(9)’
LVM2.2.03.38/device_mapper/libdm-common.c:2276:5: enter_function: entry to ‘dm_driver_version’
LVM2.2.03.38/device_mapper/libdm-common.c:2281:21: call_function: calling ‘dm_task_create’ from ‘dm_driver_version’
LVM2.2.03.38/device_mapper/libdm-common.c:2281:21: return_function: returning to ‘dm_driver_version’ from ‘dm_task_create’
LVM2.2.03.38/device_mapper/libdm-common.c:2281:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/libdm-common.c:2284:14: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:2284:14: throw: if ‘dm_task_run’ throws an exception...
LVM2.2.03.38/device_mapper/libdm-common.c:2284:14: danger: ‘dm_task_create(9)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def161]
LVM2.2.03.38/device_mapper/libdm-common.c:2587:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/urandom", 0)’
LVM2.2.03.38/device_mapper/libdm-common.c:2576:19: acquire_resource: opened here
LVM2.2.03.38/device_mapper/libdm-common.c:2576:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/libdm-common.c:2576:12: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:2587:25: throw: if the called function throws an exception...
LVM2.2.03.38/device_mapper/libdm-common.c:2587:25: danger: ‘open("/dev/urandom", 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def162]
LVM2.2.03.38/device_mapper/libdm-common.c:2591:30: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/urandom", 0)’
LVM2.2.03.38/device_mapper/libdm-common.c:2576:19: acquire_resource: opened here
LVM2.2.03.38/device_mapper/libdm-common.c:2576:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/libdm-common.c:2576:12: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:2586:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/libdm-common.c:2591:30: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-common.c:2602:41: throw: if the called function throws an exception...
LVM2.2.03.38/device_mapper/libdm-common.c:2591:30: danger: ‘open("/dev/urandom", 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def163]
LVM2.2.03.38/device_mapper/libdm-file.c:28:17: warning[-Wanalyzer-malloc-leak]: leak of ‘s’
LVM2.2.03.38/device_mapper/libdm-file.c:41:12: enter_function: entry to ‘_create_dir_recursive’
LVM2.2.03.38/device_mapper/libdm-file.c:48:20: acquire_memory: allocated here
LVM2.2.03.38/device_mapper/libdm-file.c:49:12: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)...
LVM2.2.03.38/device_mapper/libdm-file.c:49:12: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-file.c:54:16: branch_false: following ‘false’ branch (when ‘s’ is NULL)...
LVM2.2.03.38/device_mapper/libdm-file.c:73:14: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-file.c:74:12: branch_true: following ‘true’ branch (when ‘rc < 0’)...
LVM2.2.03.38/device_mapper/libdm-file.c:75:21: branch_true: ...to here
LVM2.2.03.38/device_mapper/libdm-file.c:75:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/device_mapper/libdm-file.c:76:30: branch_true: ...to here
LVM2.2.03.38/device_mapper/libdm-file.c:76:30: call_function: calling ‘_is_dir’ from ‘_create_dir_recursive’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def164]
LVM2.2.03.38/device_mapper/libdm-file.c:33:17: warning[-Wanalyzer-malloc-leak]: leak of ‘s’
LVM2.2.03.38/device_mapper/libdm-file.c:41:12: enter_function: entry to ‘_create_dir_recursive’
LVM2.2.03.38/device_mapper/libdm-file.c:48:20: acquire_memory: allocated here
LVM2.2.03.38/device_mapper/libdm-file.c:49:12: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)...
LVM2.2.03.38/device_mapper/libdm-file.c:49:12: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-file.c:54:16: branch_false: following ‘false’ branch (when ‘s’ is NULL)...
LVM2.2.03.38/device_mapper/libdm-file.c:73:14: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-file.c:74:12: branch_true: following ‘true’ branch (when ‘rc < 0’)...
LVM2.2.03.38/device_mapper/libdm-file.c:75:21: branch_true: ...to here
LVM2.2.03.38/device_mapper/libdm-file.c:75:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/device_mapper/libdm-file.c:76:30: branch_true: ...to here
LVM2.2.03.38/device_mapper/libdm-file.c:76:30: call_function: calling ‘_is_dir’ from ‘_create_dir_recursive’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def165]
LVM2.2.03.38/device_mapper/libdm-file.c:64:49: warning[-Wanalyzer-malloc-leak]: leak of ‘s’
LVM2.2.03.38/device_mapper/libdm-file.c:48:20: acquire_memory: allocated here
LVM2.2.03.38/device_mapper/libdm-file.c:49:12: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)...
LVM2.2.03.38/device_mapper/libdm-file.c:49:12: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-file.c:54:16: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
LVM2.2.03.38/device_mapper/libdm-file.c:55:17: branch_true: ...to here
LVM2.2.03.38/device_mapper/libdm-file.c:56:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/device_mapper/libdm-file.c:57:30: branch_true: ...to here
LVM2.2.03.38/device_mapper/libdm-file.c:58:28: branch_true: following ‘true’ branch (when ‘rc < 0’)...
LVM2.2.03.38/device_mapper/libdm-file.c:59:37: branch_true: ...to here
LVM2.2.03.38/device_mapper/libdm-file.c:59:36: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/libdm-file.c:63:44: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-file.c:63:44: branch_true: following ‘true’ branch...
LVM2.2.03.38/device_mapper/libdm-file.c:64:49: branch_true: ...to here
LVM2.2.03.38/device_mapper/libdm-file.c:64:49: throw: if the called function throws an exception...
LVM2.2.03.38/device_mapper/libdm-file.c:64:49: danger: ‘s’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def166]
LVM2.2.03.38/device_mapper/libdm-file.c:77:33: warning[-Wanalyzer-malloc-leak]: leak of ‘s’
LVM2.2.03.38/device_mapper/libdm-file.c:48:20: acquire_memory: allocated here
LVM2.2.03.38/device_mapper/libdm-file.c:49:12: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)...
LVM2.2.03.38/device_mapper/libdm-file.c:49:12: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-file.c:54:16: branch_false: following ‘false’ branch (when ‘s’ is NULL)...
LVM2.2.03.38/device_mapper/libdm-file.c:73:14: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-file.c:74:12: branch_true: following ‘true’ branch (when ‘rc < 0’)...
LVM2.2.03.38/device_mapper/libdm-file.c:75:21: branch_true: ...to here
LVM2.2.03.38/device_mapper/libdm-file.c:75:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/device_mapper/libdm-file.c:76:30: branch_true: ...to here
LVM2.2.03.38/device_mapper/libdm-file.c:76:28: branch_true: following ‘true’ branch...
LVM2.2.03.38/device_mapper/libdm-file.c:77:33: branch_true: ...to here
LVM2.2.03.38/device_mapper/libdm-file.c:77:33: throw: if the called function throws an exception...
LVM2.2.03.38/device_mapper/libdm-file.c:77:33: danger: ‘s’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def167]
LVM2.2.03.38/device_mapper/libdm-file.c:80:33: warning[-Wanalyzer-malloc-leak]: leak of ‘s’
LVM2.2.03.38/device_mapper/libdm-file.c:48:20: acquire_memory: allocated here
LVM2.2.03.38/device_mapper/libdm-file.c:49:12: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)...
LVM2.2.03.38/device_mapper/libdm-file.c:49:12: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-file.c:54:16: branch_false: following ‘false’ branch (when ‘s’ is NULL)...
LVM2.2.03.38/device_mapper/libdm-file.c:73:14: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-file.c:74:12: branch_true: following ‘true’ branch (when ‘rc < 0’)...
LVM2.2.03.38/device_mapper/libdm-file.c:75:21: branch_true: ...to here
LVM2.2.03.38/device_mapper/libdm-file.c:75:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/libdm-file.c:79:28: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-file.c:79:28: branch_true: following ‘true’ branch...
LVM2.2.03.38/device_mapper/libdm-file.c:80:33: branch_true: ...to here
LVM2.2.03.38/device_mapper/libdm-file.c:80:33: throw: if the called function throws an exception...
LVM2.2.03.38/device_mapper/libdm-file.c:80:33: danger: ‘s’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def168]
LVM2.2.03.38/device_mapper/libdm-file.c:117:26: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(dir)’
LVM2.2.03.38/device_mapper/libdm-file.c:112:19: acquire_memory: allocated here
LVM2.2.03.38/device_mapper/libdm-file.c:112:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/libdm-file.c:112:12: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-file.c:117:26: throw: if ‘readdir’ throws an exception...
LVM2.2.03.38/device_mapper/libdm-file.c:117:26: danger: ‘opendir(dir)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def169]
LVM2.2.03.38/device_mapper/libdm-file.c:250:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(lockfile, 0)’
LVM2.2.03.38/device_mapper/libdm-file.c:243:17: acquire_resource: opened here
LVM2.2.03.38/device_mapper/libdm-file.c:243:10: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/libdm-file.c:246:8: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-file.c:250:12: throw: if ‘fcntl’ throws an exception...
LVM2.2.03.38/device_mapper/libdm-file.c:250:12: danger: ‘open(lockfile, 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def170]
LVM2.2.03.38/device_mapper/libdm-report.c:1344:36: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 160)’
LVM2.2.03.38/device_mapper/libdm-report.c:4432:19: enter_function: entry to ‘dm_report_init_with_selection’
LVM2.2.03.38/device_mapper/libdm-report.c:4447:20: call_function: calling ‘dm_report_init’ from ‘dm_report_init_with_selection’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def171]
LVM2.2.03.38/device_mapper/libdm-report.c:1351:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 160)’
LVM2.2.03.38/device_mapper/libdm-report.c:4432:19: enter_function: entry to ‘dm_report_init_with_selection’
LVM2.2.03.38/device_mapper/libdm-report.c:4447:20: call_function: calling ‘dm_report_init’ from ‘dm_report_init_with_selection’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def172]
LVM2.2.03.38/device_mapper/libdm-report.c:4807:29: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
LVM2.2.03.38/device_mapper/libdm-report.c:4788:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/device_mapper/libdm-report.c:4789:31: branch_true: ...to here
LVM2.2.03.38/device_mapper/libdm-report.c:4798:20: branch_false: following ‘false’ branch (when ‘buf_size > 8191’)...
LVM2.2.03.38/device_mapper/libdm-report.c:4801:34: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-report.c:4801:34: acquire_memory: allocated here
LVM2.2.03.38/device_mapper/libdm-report.c:4801:25: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
LVM2.2.03.38/device_mapper/libdm-report.c:4806:21: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-report.c:4806:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/device_mapper/libdm-report.c:4807:29: branch_true: ...to here
LVM2.2.03.38/device_mapper/libdm-report.c:4807:29: throw: if ‘dm_snprintf’ throws an exception...
LVM2.2.03.38/device_mapper/libdm-report.c:4807:29: danger: ‘buf’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def173]
LVM2.2.03.38/device_mapper/libdm-report.c:4817:29: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
LVM2.2.03.38/device_mapper/libdm-report.c:4788:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/device_mapper/libdm-report.c:4789:31: branch_true: ...to here
LVM2.2.03.38/device_mapper/libdm-report.c:4798:20: branch_false: following ‘false’ branch (when ‘buf_size > 8191’)...
LVM2.2.03.38/device_mapper/libdm-report.c:4801:34: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-report.c:4801:34: acquire_memory: allocated here
LVM2.2.03.38/device_mapper/libdm-report.c:4801:25: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
LVM2.2.03.38/device_mapper/libdm-report.c:4806:21: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-report.c:4806:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/libdm-report.c:4816:28: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-report.c:4816:27: branch_true: following ‘true’ branch...
LVM2.2.03.38/device_mapper/libdm-report.c:4817:29: branch_true: ...to here
LVM2.2.03.38/device_mapper/libdm-report.c:4817:29: throw: if ‘dm_snprintf’ throws an exception...
LVM2.2.03.38/device_mapper/libdm-report.c:4817:29: danger: ‘buf’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def174]
LVM2.2.03.38/device_mapper/libdm-report.c:4837:33: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
LVM2.2.03.38/device_mapper/libdm-report.c:4757:20: branch_false: following ‘false’ branch (when ‘buf_size <= 8191’)...
LVM2.2.03.38/device_mapper/libdm-report.c:4764:17: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-report.c:4766:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/libdm-report.c:4771:51: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-report.c:4771:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/libdm-report.c:4776:22: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-report.c:4776:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/libdm-report.c:4781:23: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-report.c:4788:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/device_mapper/libdm-report.c:4789:31: branch_true: ...to here
LVM2.2.03.38/device_mapper/libdm-report.c:4798:20: branch_false: following ‘false’ branch (when ‘buf_size > 8191’)...
LVM2.2.03.38/device_mapper/libdm-report.c:4801:34: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-report.c:4801:34: acquire_memory: allocated here
LVM2.2.03.38/device_mapper/libdm-report.c:4801:25: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
LVM2.2.03.38/device_mapper/libdm-report.c:4806:21: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-report.c:4806:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/libdm-report.c:4816:28: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-report.c:4816:27: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/libdm-report.c:4834:13: branch_false: ...to here
LVM2.2.03.38/device_mapper/libdm-report.c:4834:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/device_mapper/libdm-report.c:4835:22: branch_true: ...to here
LVM2.2.03.38/device_mapper/libdm-report.c:4835:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/device_mapper/libdm-report.c:4836:30: branch_true: ...to here
LVM2.2.03.38/device_mapper/libdm-report.c:4836:28: branch_true: following ‘true’ branch...
LVM2.2.03.38/device_mapper/libdm-report.c:4837:33: branch_true: ...to here
LVM2.2.03.38/device_mapper/libdm-report.c:4837:33: throw: if the called function throws an exception...
LVM2.2.03.38/device_mapper/libdm-report.c:4837:33: danger: ‘buf’ leaks here; was allocated at [(13)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def175]
LVM2.2.03.38/device_mapper/mm/pool-fast.c:62:25: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 72)’
LVM2.2.03.38/device_mapper/mm/pool-fast.c:49:17: enter_function: entry to ‘dm_pool_create’
LVM2.2.03.38/device_mapper/mm/pool-fast.c:52:29: call_function: inlined call to ‘zalloc’ from ‘dm_pool_create’
LVM2.2.03.38/device_mapper/mm/pool-fast.c:54:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/mm/pool-fast.c:60:9: branch_false: ...to here
LVM2.2.03.38/device_mapper/mm/pool-fast.c:67:9: throw: if ‘dm_list_add’ throws an exception...
LVM2.2.03.38/device_mapper/mm/pool-fast.c:62:25: danger: ‘calloc(1, 72)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def176]
LVM2.2.03.38/device_mapper/raid/raid_parser.c:118:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(dev_path, <unknown>)’
LVM2.2.03.38/device_mapper/raid/raid_parser.c:106:13: branch_true: following ‘true’ branch...
LVM2.2.03.38/device_mapper/raid/raid_parser.c:106:13: branch_true: ...to here
LVM2.2.03.38/device_mapper/raid/raid_parser.c:111:14: acquire_resource: opened here
LVM2.2.03.38/device_mapper/raid/raid_parser.c:112:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/raid/raid_parser.c:117:13: branch_false: ...to here
LVM2.2.03.38/device_mapper/raid/raid_parser.c:117:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/device_mapper/raid/raid_parser.c:118:17: branch_true: ...to here
LVM2.2.03.38/device_mapper/raid/raid_parser.c:118:17: throw: if the called function throws an exception...
LVM2.2.03.38/device_mapper/raid/raid_parser.c:118:17: danger: ‘open(dev_path, <unknown>)’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def177]
LVM2.2.03.38/device_mapper/raid/raid_parser.c:123:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(dev_path, <unknown>)’
LVM2.2.03.38/device_mapper/raid/raid_parser.c:106:13: branch_true: following ‘true’ branch...
LVM2.2.03.38/device_mapper/raid/raid_parser.c:106:13: branch_true: ...to here
LVM2.2.03.38/device_mapper/raid/raid_parser.c:111:14: acquire_resource: opened here
LVM2.2.03.38/device_mapper/raid/raid_parser.c:112:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/raid/raid_parser.c:117:13: branch_false: ...to here
LVM2.2.03.38/device_mapper/raid/raid_parser.c:117:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/device_mapper/raid/raid_parser.c:123:13: branch_false: ...to here
LVM2.2.03.38/device_mapper/raid/raid_parser.c:123:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/device_mapper/raid/raid_parser.c:124:17: branch_true: ...to here
LVM2.2.03.38/device_mapper/raid/raid_parser.c:124:17: throw: if the called function throws an exception...
LVM2.2.03.38/device_mapper/raid/raid_parser.c:123:13: danger: ‘open(dev_path, <unknown>)’ leaks here; was opened at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: COMPILER_WARNING: [#def178]
LVM2.2.03.38/lib/activate/dev_manager.c: scope_hint: In function ‘add_areas_line’
LVM2.2.03.38/lib/activate/dev_manager.c:3031:18: warning[-Wunused-but-set-variable=]: variable ‘num_existing_areas’ set but not used
Error: GCC_ANALYZER_WARNING (CWE-401): [#def179]
LVM2.2.03.38/lib/activate/fs.c:100:26: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(dir)’
LVM2.2.03.38/lib/activate/fs.c:474:5: enter_function: entry to ‘fs_rename_lv’
LVM2.2.03.38/lib/activate/fs.c:477:12: branch_false: following ‘false’ branch (when the strings are equal)...
LVM2.2.03.38/lib/activate/fs.c:486:40: branch_false: ...to here
LVM2.2.03.38/lib/activate/fs.c:485:16: call_function: calling ‘_fs_op’ from ‘fs_rename_lv’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def180]
LVM2.2.03.38/lib/cache/lvmcache.c:233:25: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 24)’
LVM2.2.03.38/lib/cache/lvmcache.c:214:6: enter_function: entry to ‘lvmcache_get_bad_mdas’
LVM2.2.03.38/lib/cache/lvmcache.c:223:24: call_function: calling ‘lvmcache_vginfo_from_vgname’ from ‘lvmcache_get_bad_mdas’
LVM2.2.03.38/lib/cache/lvmcache.c:223:24: return_function: returning to ‘lvmcache_get_bad_mdas’ from ‘lvmcache_vginfo_from_vgname’
LVM2.2.03.38/lib/cache/lvmcache.c:223:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/cache/lvmcache.c:228:9: branch_false: ...to here
LVM2.2.03.38/lib/cache/lvmcache.c:228:9: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/cache/lvmcache.c:229:17: branch_true: ...to here
LVM2.2.03.38/lib/cache/lvmcache.c:230:38: call_function: inlined call to ‘zalloc’ from ‘lvmcache_get_bad_mdas’
LVM2.2.03.38/lib/cache/lvmcache.c:233:25: danger: ‘calloc(1, 24)’ leaks here; was allocated at [(15)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def181]
LVM2.2.03.38/lib/cache/lvmcache.c:257:25: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 24)’
LVM2.2.03.38/lib/cache/lvmcache.c:238:6: enter_function: entry to ‘lvmcache_get_mdas’
LVM2.2.03.38/lib/cache/lvmcache.c:247:24: call_function: calling ‘lvmcache_vginfo_from_vgname’ from ‘lvmcache_get_mdas’
LVM2.2.03.38/lib/cache/lvmcache.c:247:24: return_function: returning to ‘lvmcache_get_mdas’ from ‘lvmcache_vginfo_from_vgname’
LVM2.2.03.38/lib/cache/lvmcache.c:247:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/cache/lvmcache.c:252:9: branch_false: ...to here
LVM2.2.03.38/lib/cache/lvmcache.c:252:9: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/cache/lvmcache.c:253:17: branch_true: ...to here
LVM2.2.03.38/lib/cache/lvmcache.c:254:38: call_function: inlined call to ‘zalloc’ from ‘lvmcache_get_mdas’
LVM2.2.03.38/lib/cache/lvmcache.c:257:25: danger: ‘calloc(1, 24)’ leaks here; was allocated at [(15)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/14)
Error: CPPCHECK_WARNING (CWE-476): [#def182]
LVM2.2.03.38/lib/cache/lvmcache.c:298: warning[nullPointer]: Possible null pointer dereference: vgname
Error: GCC_ANALYZER_WARNING (CWE-401): [#def183]
LVM2.2.03.38/lib/cache/lvmcache.c:1340:17: warning[-Wanalyzer-malloc-leak]: leak of ‘devl’
LVM2.2.03.38/lib/cache/lvmcache.c:1322:12: enter_function: entry to ‘_label_rescan_vg’
LVM2.2.03.38/lib/cache/lvmcache.c:1331:24: call_function: calling ‘lvmcache_vginfo_from_vgname’ from ‘_label_rescan_vg’
LVM2.2.03.38/lib/cache/lvmcache.c:1331:24: return_function: returning to ‘_label_rescan_vg’ from ‘lvmcache_vginfo_from_vgname’
LVM2.2.03.38/lib/cache/lvmcache.c:1331:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/cache/lvmcache.c:1334:9: branch_false: ...to here
LVM2.2.03.38/lib/cache/lvmcache.c:1334:9: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/cache/lvmcache.c:1335:30: branch_true: ...to here
LVM2.2.03.38/lib/cache/lvmcache.c:1335:30: acquire_memory: allocated here
LVM2.2.03.38/lib/cache/lvmcache.c:1335:20: branch_false: following ‘false’ branch (when ‘devl’ is non-NULL)...
LVM2.2.03.38/lib/cache/lvmcache.c:1339:29: branch_false: ...to here
LVM2.2.03.38/lib/cache/lvmcache.c:1340:17: throw: if ‘dm_list_add’ throws an exception...
LVM2.2.03.38/lib/cache/lvmcache.c:1340:17: danger: ‘devl’ leaks here; was allocated at [(14)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def184]
LVM2.2.03.38/lib/cache/lvmcache.c:1867:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
LVM2.2.03.38/lib/cache/lvmcache.c:1835:12: enter_function: entry to ‘_lvmcache_update_vgname’
LVM2.2.03.38/lib/cache/lvmcache.c:1857:12: branch_true: following ‘true’ branch (when ‘info’ is NULL)...
LVM2.2.03.38/lib/cache/lvmcache.c:1858:32: call_function: inlined call to ‘zalloc’ from ‘_lvmcache_update_vgname’
LVM2.2.03.38/lib/cache/lvmcache.c:1858:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/cache/lvmcache.c:1862:40: branch_false: ...to here
LVM2.2.03.38/lib/cache/lvmcache.c:1862:40: acquire_memory: allocated here
LVM2.2.03.38/lib/cache/lvmcache.c:1862:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/cache/lvmcache.c:1867:17: branch_false: ...to here
LVM2.2.03.38/lib/cache/lvmcache.c:1867:17: throw: if ‘dm_list_init’ throws an exception...
LVM2.2.03.38/lib/cache/lvmcache.c:1867:17: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def185]
LVM2.2.03.38/lib/cache/lvmcache.c:1867:17: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 176)’
LVM2.2.03.38/lib/cache/lvmcache.c:1835:12: enter_function: entry to ‘_lvmcache_update_vgname’
LVM2.2.03.38/lib/cache/lvmcache.c:1857:12: branch_true: following ‘true’ branch (when ‘info’ is NULL)...
LVM2.2.03.38/lib/cache/lvmcache.c:1858:32: call_function: inlined call to ‘zalloc’ from ‘_lvmcache_update_vgname’
LVM2.2.03.38/lib/cache/lvmcache.c:1858:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/cache/lvmcache.c:1862:40: branch_false: ...to here
LVM2.2.03.38/lib/cache/lvmcache.c:1862:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/cache/lvmcache.c:1867:17: branch_false: ...to here
LVM2.2.03.38/lib/cache/lvmcache.c:1867:17: throw: if ‘dm_list_init’ throws an exception...
LVM2.2.03.38/lib/cache/lvmcache.c:1867:17: danger: ‘calloc(1, 176)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def186]
LVM2.2.03.38/lib/cache/lvmcache.c:2053:12: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(system_id)’
LVM2.2.03.38/lib/cache/lvmcache.c:1997:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/cache/lvmcache.c:2027:12: branch_false: following ‘false’ branch (when ‘lock_type’ is non-NULL)...
LVM2.2.03.38/lib/cache/lvmcache.c:2030:13: branch_false: ...to here
LVM2.2.03.38/lib/cache/lvmcache.c:2035:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/cache/lvmcache.c:2040:9: branch_false: ...to here
LVM2.2.03.38/lib/cache/lvmcache.c:2045:12: branch_false: following ‘false’ branch (when ‘system_id’ is non-NULL)...
LVM2.2.03.38/lib/cache/lvmcache.c:2048:13: branch_false: ...to here
LVM2.2.03.38/lib/cache/lvmcache.c:2053:41: acquire_memory: allocated here
LVM2.2.03.38/lib/cache/lvmcache.c:2053:12: danger: ‘strdup(system_id)’ leaks here; was allocated at [(9)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def187]
LVM2.2.03.38/lib/cache/lvmcache.c:2544:33: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 24)’
LVM2.2.03.38/lib/cache/lvmcache.c:2475:23: enter_function: entry to ‘lvmcache_add’
LVM2.2.03.38/lib/cache/lvmcache.c:2503:16: call_function: calling ‘lvmcache_info_from_pvid’ from ‘lvmcache_add’
LVM2.2.03.38/lib/cache/lvmcache.c:2503:16: return_function: returning to ‘lvmcache_add’ from ‘lvmcache_info_from_pvid’
LVM2.2.03.38/lib/cache/lvmcache.c:2505:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/cache/lvmcache.c:2513:12: branch_false: ...to here
LVM2.2.03.38/lib/cache/lvmcache.c:2513:12: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
LVM2.2.03.38/lib/cache/lvmcache.c:2519:12: branch_false: ...to here
LVM2.2.03.38/lib/cache/lvmcache.c:2519:12: branch_true: following ‘true’ branch (when ‘created == 0’)...
LVM2.2.03.38/lib/cache/lvmcache.c:2520:21: branch_true: ...to here
LVM2.2.03.38/lib/cache/lvmcache.c:2520:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/cache/lvmcache.c:2521:25: branch_true: ...to here
LVM2.2.03.38/lib/cache/lvmcache.c:2528:28: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/cache/lvmcache.c:2540:46: call_function: inlined call to ‘zalloc’ from ‘lvmcache_add’
LVM2.2.03.38/lib/cache/lvmcache.c:2540:36: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/cache/lvmcache.c:2542:33: branch_false: ...to here
LVM2.2.03.38/lib/cache/lvmcache.c:2544:33: danger: ‘calloc(1, 24)’ leaks here; was allocated at [(18)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def188]
LVM2.2.03.38/lib/cache_segtype/cache.c:799:14: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 72)’
LVM2.2.03.38/lib/cache_segtype/cache.c:779:5: enter_function: entry to ‘init_cache_segtypes’
LVM2.2.03.38/lib/cache_segtype/cache.c:788:40: call_function: inlined call to ‘zalloc’ from ‘init_cache_segtypes’
LVM2.2.03.38/lib/cache_segtype/cache.c:790:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/cache_segtype/cache.c:795:9: branch_false: ...to here
LVM2.2.03.38/lib/cache_segtype/cache.c:799:14: throw: if ‘lvm_register_segtype’ throws an exception...
LVM2.2.03.38/lib/cache_segtype/cache.c:799:14: danger: ‘calloc(1, 72)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def189]
LVM2.2.03.38/lib/cache_segtype/cache.c:813:14: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 72)’
LVM2.2.03.38/lib/cache_segtype/cache.c:779:5: enter_function: entry to ‘init_cache_segtypes’
LVM2.2.03.38/lib/cache_segtype/cache.c:790:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/cache_segtype/cache.c:795:9: branch_false: ...to here
LVM2.2.03.38/lib/cache_segtype/cache.c:799:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/cache_segtype/cache.c:801:9: branch_false: ...to here
LVM2.2.03.38/lib/cache_segtype/cache.c:803:19: call_function: inlined call to ‘zalloc’ from ‘init_cache_segtypes’
LVM2.2.03.38/lib/cache_segtype/cache.c:804:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/cache_segtype/cache.c:809:9: branch_false: ...to here
LVM2.2.03.38/lib/cache_segtype/cache.c:813:14: throw: if ‘lvm_register_segtype’ throws an exception...
LVM2.2.03.38/lib/cache_segtype/cache.c:813:14: danger: ‘calloc(1, 72)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def190]
LVM2.2.03.38/lib/commands/toolcontext.c:246:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&proc_mounts, "r")’
LVM2.2.03.38/lib/commands/toolcontext.c:229:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/commands/toolcontext.c:235:39: branch_false: ...to here
LVM2.2.03.38/lib/commands/toolcontext.c:234:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/commands/toolcontext.c:240:20: branch_false: ...to here
LVM2.2.03.38/lib/commands/toolcontext.c:240:20: acquire_resource: opened here
LVM2.2.03.38/lib/commands/toolcontext.c:240:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/commands/toolcontext.c:240:12: branch_false: ...to here
LVM2.2.03.38/lib/commands/toolcontext.c:245:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/commands/toolcontext.c:246:21: branch_true: ...to here
LVM2.2.03.38/lib/commands/toolcontext.c:246:21: throw: if ‘dm_split_words’ throws an exception...
LVM2.2.03.38/lib/commands/toolcontext.c:246:21: danger: ‘fopen(&proc_mounts, "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def191]
LVM2.2.03.38/lib/commands/toolcontext.c:246:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&proc_mounts, "r")’
LVM2.2.03.38/lib/commands/toolcontext.c:229:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/commands/toolcontext.c:235:39: branch_false: ...to here
LVM2.2.03.38/lib/commands/toolcontext.c:234:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/commands/toolcontext.c:240:20: branch_false: ...to here
LVM2.2.03.38/lib/commands/toolcontext.c:240:20: acquire_memory: allocated here
LVM2.2.03.38/lib/commands/toolcontext.c:240:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/commands/toolcontext.c:240:12: branch_false: ...to here
LVM2.2.03.38/lib/commands/toolcontext.c:245:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/commands/toolcontext.c:246:21: branch_true: ...to here
LVM2.2.03.38/lib/commands/toolcontext.c:246:21: throw: if ‘dm_split_words’ throws an exception...
LVM2.2.03.38/lib/commands/toolcontext.c:246:21: danger: ‘fopen(&proc_mounts, "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def192]
LVM2.2.03.38/lib/commands/toolcontext.c:1662:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 18448)’
LVM2.2.03.38/lib/commands/toolcontext.c:1638:21: enter_function: entry to ‘create_toolcontext’
LVM2.2.03.38/lib/commands/toolcontext.c:1658:21: call_function: inlined call to ‘zalloc’ from ‘create_toolcontext’
LVM2.2.03.38/lib/commands/toolcontext.c:1658:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/commands/toolcontext.c:1662:9: branch_false: ...to here
LVM2.2.03.38/lib/commands/toolcontext.c:1671:9: throw: if ‘dm_list_init’ throws an exception...
LVM2.2.03.38/lib/commands/toolcontext.c:1662:9: danger: ‘calloc(1, 18448)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def193]
LVM2.2.03.38/lib/config/config.c:754:17: warning[-Wanalyzer-malloc-leak]: leak of ‘enc_value’
LVM2.2.03.38/lib/config/config.c:1458:31: enter_function: entry to ‘_get_array_def_node’
LVM2.2.03.38/lib/config/config.c:1464:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/config/config.c:1467:52: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1467:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/config/config.c:1472:23: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1472:23: call_function: calling ‘_get_def_array_values’ from ‘_get_array_def_node’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def194]
LVM2.2.03.38/lib/config/config.c:758:17: warning[-Wanalyzer-malloc-leak]: leak of ‘token’
LVM2.2.03.38/lib/config/config.c:1458:31: enter_function: entry to ‘_get_array_def_node’
LVM2.2.03.38/lib/config/config.c:1464:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/config/config.c:1467:52: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1467:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/config/config.c:1472:23: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1472:23: call_function: calling ‘_get_def_array_values’ from ‘_get_array_def_node’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def195]
LVM2.2.03.38/lib/config/config.c:760:25: warning[-Wanalyzer-malloc-leak]: leak of ‘enc_value’
LVM2.2.03.38/lib/config/config.c:1458:31: enter_function: entry to ‘_get_array_def_node’
LVM2.2.03.38/lib/config/config.c:1464:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/config/config.c:1467:52: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1467:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/config/config.c:1472:23: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1472:23: call_function: calling ‘_get_def_array_values’ from ‘_get_array_def_node’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def196]
LVM2.2.03.38/lib/config/config.c:822:9: warning[-Wanalyzer-malloc-leak]: leak of ‘enc_value’
LVM2.2.03.38/lib/config/config.c:1458:31: enter_function: entry to ‘_get_array_def_node’
LVM2.2.03.38/lib/config/config.c:1464:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/config/config.c:1467:52: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1467:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/config/config.c:1472:23: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1472:23: call_function: calling ‘_get_def_array_values’ from ‘_get_array_def_node’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def197]
LVM2.2.03.38/lib/config/config.c:822:9: warning[-Wanalyzer-malloc-leak]: leak of ‘token’
LVM2.2.03.38/lib/config/config.c:1458:31: enter_function: entry to ‘_get_array_def_node’
LVM2.2.03.38/lib/config/config.c:1464:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/config/config.c:1467:52: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1467:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/config/config.c:1472:23: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1472:23: call_function: calling ‘_get_def_array_values’ from ‘_get_array_def_node’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def198]
LVM2.2.03.38/lib/config/config.c:1977:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘baton.fp’
LVM2.2.03.38/lib/config/config.c:1968:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
LVM2.2.03.38/lib/config/config.c:1972:33: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1972:33: acquire_resource: opened here
LVM2.2.03.38/lib/config/config.c:1972:19: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/config/config.c:1977:9: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1977:9: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/config/config.c:1977:9: danger: ‘baton.fp’ leaks here; was opened at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def199]
LVM2.2.03.38/lib/config/config.c:1977:9: warning[-Wanalyzer-malloc-leak]: leak of ‘baton.fp’
LVM2.2.03.38/lib/config/config.c:1968:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
LVM2.2.03.38/lib/config/config.c:1972:33: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1972:33: acquire_memory: allocated here
LVM2.2.03.38/lib/config/config.c:1972:19: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/config/config.c:1977:9: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1977:9: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/config/config.c:1977:9: danger: ‘baton.fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def200]
LVM2.2.03.38/lib/config/config.c:1985:22: warning[-Wanalyzer-file-leak]: leak of FILE ‘baton.fp’
LVM2.2.03.38/lib/config/config.c:1968:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
LVM2.2.03.38/lib/config/config.c:1972:33: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1972:33: acquire_resource: opened here
LVM2.2.03.38/lib/config/config.c:1972:19: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/config/config.c:1977:9: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1984:12: branch_true: following ‘true’ branch (when ‘argc == 0’)...
LVM2.2.03.38/lib/config/config.c:1985:47: branch_true: ...to here
LVM2.2.03.38/lib/config/config.c:1985:22: throw: if ‘dm_config_write_node_out’ throws an exception...
LVM2.2.03.38/lib/config/config.c:1985:22: danger: ‘baton.fp’ leaks here; was opened at [(3)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def201]
LVM2.2.03.38/lib/config/config.c:1985:22: warning[-Wanalyzer-malloc-leak]: leak of ‘baton.fp’
LVM2.2.03.38/lib/config/config.c:1968:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
LVM2.2.03.38/lib/config/config.c:1972:33: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1972:33: acquire_memory: allocated here
LVM2.2.03.38/lib/config/config.c:1972:19: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/config/config.c:1977:9: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1984:12: branch_true: following ‘true’ branch (when ‘argc == 0’)...
LVM2.2.03.38/lib/config/config.c:1985:47: branch_true: ...to here
LVM2.2.03.38/lib/config/config.c:1985:22: throw: if ‘dm_config_write_node_out’ throws an exception...
LVM2.2.03.38/lib/config/config.c:1985:22: danger: ‘baton.fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def202]
LVM2.2.03.38/lib/config/config.c:1990:27: warning[-Wanalyzer-file-leak]: leak of FILE ‘baton.fp’
LVM2.2.03.38/lib/config/config.c:1968:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
LVM2.2.03.38/lib/config/config.c:1972:33: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1972:33: acquire_resource: opened here
LVM2.2.03.38/lib/config/config.c:1972:19: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/config/config.c:1977:9: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1984:12: branch_false: following ‘false’ branch (when ‘argc != 0’)...
LVM2.2.03.38/lib/config/config.c:1984:12: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1989:23: branch_true: following ‘true’ branch (when ‘argc != 0’)...
LVM2.2.03.38/lib/config/config.c:1990:27: branch_true: ...to here
LVM2.2.03.38/lib/config/config.c:1990:27: throw: if ‘dm_config_find_node’ throws an exception...
LVM2.2.03.38/lib/config/config.c:1990:27: danger: ‘baton.fp’ leaks here; was opened at [(3)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def203]
LVM2.2.03.38/lib/config/config.c:1990:27: warning[-Wanalyzer-malloc-leak]: leak of ‘baton.fp’
LVM2.2.03.38/lib/config/config.c:1968:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
LVM2.2.03.38/lib/config/config.c:1972:33: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1972:33: acquire_memory: allocated here
LVM2.2.03.38/lib/config/config.c:1972:19: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/config/config.c:1977:9: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1984:12: branch_false: following ‘false’ branch (when ‘argc != 0’)...
LVM2.2.03.38/lib/config/config.c:1984:12: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1989:23: branch_true: following ‘true’ branch (when ‘argc != 0’)...
LVM2.2.03.38/lib/config/config.c:1990:27: branch_true: ...to here
LVM2.2.03.38/lib/config/config.c:1990:27: throw: if ‘dm_config_find_node’ throws an exception...
LVM2.2.03.38/lib/config/config.c:1990:27: danger: ‘baton.fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def204]
LVM2.2.03.38/lib/config/config.c:1991:30: warning[-Wanalyzer-file-leak]: leak of FILE ‘baton.fp’
LVM2.2.03.38/lib/config/config.c:1968:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
LVM2.2.03.38/lib/config/config.c:1972:33: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1972:33: acquire_resource: opened here
LVM2.2.03.38/lib/config/config.c:1972:19: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/config/config.c:1977:9: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1984:12: branch_false: following ‘false’ branch (when ‘argc != 0’)...
LVM2.2.03.38/lib/config/config.c:1984:12: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1989:23: branch_true: following ‘true’ branch (when ‘argc != 0’)...
LVM2.2.03.38/lib/config/config.c:1990:27: branch_true: ...to here
LVM2.2.03.38/lib/config/config.c:1990:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/config/config.c:1991:30: branch_true: ...to here
LVM2.2.03.38/lib/config/config.c:1991:30: throw: if ‘dm_config_write_one_node_out’ throws an exception...
LVM2.2.03.38/lib/config/config.c:1991:30: danger: ‘baton.fp’ leaks here; was opened at [(3)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def205]
LVM2.2.03.38/lib/config/config.c:1991:30: warning[-Wanalyzer-malloc-leak]: leak of ‘baton.fp’
LVM2.2.03.38/lib/config/config.c:1968:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
LVM2.2.03.38/lib/config/config.c:1972:33: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1972:33: acquire_memory: allocated here
LVM2.2.03.38/lib/config/config.c:1972:19: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/config/config.c:1977:9: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1984:12: branch_false: following ‘false’ branch (when ‘argc != 0’)...
LVM2.2.03.38/lib/config/config.c:1984:12: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1989:23: branch_true: following ‘true’ branch (when ‘argc != 0’)...
LVM2.2.03.38/lib/config/config.c:1990:27: branch_true: ...to here
LVM2.2.03.38/lib/config/config.c:1990:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/config/config.c:1991:30: branch_true: ...to here
LVM2.2.03.38/lib/config/config.c:1991:30: throw: if ‘dm_config_write_one_node_out’ throws an exception...
LVM2.2.03.38/lib/config/config.c:1991:30: danger: ‘baton.fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def206]
LVM2.2.03.38/lib/config/config.c:1996:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘baton.fp’
LVM2.2.03.38/lib/config/config.c:1968:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
LVM2.2.03.38/lib/config/config.c:1972:33: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1972:33: acquire_resource: opened here
LVM2.2.03.38/lib/config/config.c:1972:19: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/config/config.c:1977:9: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1984:12: branch_false: following ‘false’ branch (when ‘argc != 0’)...
LVM2.2.03.38/lib/config/config.c:1984:12: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1989:23: branch_true: following ‘true’ branch (when ‘argc != 0’)...
LVM2.2.03.38/lib/config/config.c:1990:27: branch_true: ...to here
LVM2.2.03.38/lib/config/config.c:1990:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/config/config.c:1996:25: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1996:25: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/config/config.c:1996:25: danger: ‘baton.fp’ leaks here; was opened at [(3)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def207]
LVM2.2.03.38/lib/config/config.c:1996:25: warning[-Wanalyzer-malloc-leak]: leak of ‘baton.fp’
LVM2.2.03.38/lib/config/config.c:1968:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
LVM2.2.03.38/lib/config/config.c:1972:33: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1972:33: acquire_memory: allocated here
LVM2.2.03.38/lib/config/config.c:1972:19: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/config/config.c:1977:9: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1984:12: branch_false: following ‘false’ branch (when ‘argc != 0’)...
LVM2.2.03.38/lib/config/config.c:1984:12: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1989:23: branch_true: following ‘true’ branch (when ‘argc != 0’)...
LVM2.2.03.38/lib/config/config.c:1990:27: branch_true: ...to here
LVM2.2.03.38/lib/config/config.c:1990:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/config/config.c:1996:25: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1996:25: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/config/config.c:1996:25: danger: ‘baton.fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def208]
LVM2.2.03.38/lib/config/config.c:2002:36: warning[-Wanalyzer-file-leak]: leak of FILE ‘baton.fp’
LVM2.2.03.38/lib/config/config.c:1968:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
LVM2.2.03.38/lib/config/config.c:1972:33: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1972:33: acquire_resource: opened here
LVM2.2.03.38/lib/config/config.c:1972:19: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/config/config.c:1977:9: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1984:12: branch_false: following ‘false’ branch (when ‘argc != 0’)...
LVM2.2.03.38/lib/config/config.c:1984:12: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1989:23: branch_true: following ‘true’ branch (when ‘argc != 0’)...
LVM2.2.03.38/lib/config/config.c:1990:27: branch_true: ...to here
LVM2.2.03.38/lib/config/config.c:1990:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/config/config.c:1996:25: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1989:23: branch_false: following ‘false’ branch (when ‘argc == 0’)...
LVM2.2.03.38/lib/config/config.c:2002:12: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:2002:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/config/config.c:2002:36: throw: if ‘dm_fclose’ throws an exception...
LVM2.2.03.38/lib/config/config.c:2002:36: danger: ‘baton.fp’ leaks here; was opened at [(3)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def209]
LVM2.2.03.38/lib/config/config.c:2002:36: warning[-Wanalyzer-malloc-leak]: leak of ‘baton.fp’
LVM2.2.03.38/lib/config/config.c:1968:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
LVM2.2.03.38/lib/config/config.c:1972:33: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1972:33: acquire_memory: allocated here
LVM2.2.03.38/lib/config/config.c:1972:19: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/config/config.c:1977:9: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1984:12: branch_false: following ‘false’ branch (when ‘argc != 0’)...
LVM2.2.03.38/lib/config/config.c:1984:12: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1989:23: branch_true: following ‘true’ branch (when ‘argc != 0’)...
LVM2.2.03.38/lib/config/config.c:1990:27: branch_true: ...to here
LVM2.2.03.38/lib/config/config.c:1990:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/config/config.c:1996:25: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:1989:23: branch_false: following ‘false’ branch (when ‘argc == 0’)...
LVM2.2.03.38/lib/config/config.c:2002:12: branch_false: ...to here
LVM2.2.03.38/lib/config/config.c:2002:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/config/config.c:2002:36: throw: if ‘dm_fclose’ throws an exception...
LVM2.2.03.38/lib/config/config.c:2002:36: danger: ‘baton.fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def210]
LVM2.2.03.38/lib/device/bcache.c:80:9: warning[-Wanalyzer-malloc-leak]: leak of ‘cbs’
LVM2.2.03.38/lib/device/bcache.c:369:19: enter_function: entry to ‘create_async_io_engine’
LVM2.2.03.38/lib/device/bcache.c:380:12: branch_false: following ‘false’ branch (when ‘e’ is non-NULL)...
LVM2.2.03.38/lib/device/bcache.c:383:9: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:391:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/bcache.c:397:18: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:397:18: call_function: calling ‘_cb_set_create’ from ‘create_async_io_engine’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def211]
LVM2.2.03.38/lib/device/bcache.c:390:13: warning[-Wanalyzer-malloc-leak]: leak of ‘e’
LVM2.2.03.38/lib/device/bcache.c:380:19: acquire_memory: allocated here
LVM2.2.03.38/lib/device/bcache.c:380:12: branch_false: following ‘false’ branch (when ‘e’ is non-NULL)...
LVM2.2.03.38/lib/device/bcache.c:383:9: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:390:13: throw: if ‘io_setup’ throws an exception...
LVM2.2.03.38/lib/device/bcache.c:390:13: danger: ‘e’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def212]
LVM2.2.03.38/lib/device/bcache.c:451:17: warning[-Wanalyzer-malloc-leak]: leak of ‘io’
LVM2.2.03.38/lib/device/bcache.c:442:30: acquire_memory: allocated here
LVM2.2.03.38/lib/device/bcache.c:443:12: branch_false: following ‘false’ branch (when ‘io’ is non-NULL)...
LVM2.2.03.38/lib/device/bcache.c:448:9: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:450:12: branch_true: following ‘true’ branch (when ‘off == -1’)...
LVM2.2.03.38/lib/device/bcache.c:451:17: branch_true: ...to here
LVM2.2.03.38/lib/device/bcache.c:451:17: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/device/bcache.c:451:17: danger: ‘io’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def213]
LVM2.2.03.38/lib/device/bcache.c:456:17: warning[-Wanalyzer-malloc-leak]: leak of ‘io’
LVM2.2.03.38/lib/device/bcache.c:442:30: acquire_memory: allocated here
LVM2.2.03.38/lib/device/bcache.c:443:12: branch_false: following ‘false’ branch (when ‘io’ is non-NULL)...
LVM2.2.03.38/lib/device/bcache.c:448:9: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:450:12: branch_false: following ‘false’ branch (when ‘off != -1’)...
LVM2.2.03.38/lib/device/bcache.c:455:12: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:455:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/bcache.c:456:17: branch_true: ...to here
LVM2.2.03.38/lib/device/bcache.c:456:17: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/device/bcache.c:456:17: danger: ‘io’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def214]
LVM2.2.03.38/lib/device/bcache.c:472:25: warning[-Wanalyzer-malloc-leak]: leak of ‘io’
LVM2.2.03.38/lib/device/bcache.c:442:30: acquire_memory: allocated here
LVM2.2.03.38/lib/device/bcache.c:443:12: branch_false: following ‘false’ branch (when ‘io’ is non-NULL)...
LVM2.2.03.38/lib/device/bcache.c:448:9: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:450:12: branch_false: following ‘false’ branch (when ‘off != -1’)...
LVM2.2.03.38/lib/device/bcache.c:455:12: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:455:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/bcache.c:464:12: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:464:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/bcache.c:471:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/bcache.c:472:25: branch_true: ...to here
LVM2.2.03.38/lib/device/bcache.c:472:25: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/device/bcache.c:472:25: danger: ‘io’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def215]
LVM2.2.03.38/lib/device/bcache.c:494:41: warning[-Wanalyzer-malloc-leak]: leak of ‘io’
LVM2.2.03.38/lib/device/bcache.c:442:30: acquire_memory: allocated here
LVM2.2.03.38/lib/device/bcache.c:443:12: branch_false: following ‘false’ branch (when ‘io’ is non-NULL)...
LVM2.2.03.38/lib/device/bcache.c:448:9: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:450:12: branch_false: following ‘false’ branch (when ‘off != -1’)...
LVM2.2.03.38/lib/device/bcache.c:455:12: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:455:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/bcache.c:464:12: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:464:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/bcache.c:471:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/bcache.c:480:21: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:480:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/bcache.c:481:25: branch_true: ...to here
LVM2.2.03.38/lib/device/bcache.c:483:28: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/bcache.c:484:33: branch_true: ...to here
LVM2.2.03.38/lib/device/bcache.c:493:36: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/bcache.c:494:41: branch_true: ...to here
LVM2.2.03.38/lib/device/bcache.c:494:41: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/device/bcache.c:494:41: danger: ‘io’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def216]
LVM2.2.03.38/lib/device/bcache.c:507:33: warning[-Wanalyzer-malloc-leak]: leak of ‘io’
LVM2.2.03.38/lib/device/bcache.c:442:30: acquire_memory: allocated here
LVM2.2.03.38/lib/device/bcache.c:443:12: branch_false: following ‘false’ branch (when ‘io’ is non-NULL)...
LVM2.2.03.38/lib/device/bcache.c:448:9: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:450:12: branch_false: following ‘false’ branch (when ‘off != -1’)...
LVM2.2.03.38/lib/device/bcache.c:455:12: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:455:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/bcache.c:464:12: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:464:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/bcache.c:471:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/bcache.c:480:21: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:480:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/bcache.c:481:25: branch_true: ...to here
LVM2.2.03.38/lib/device/bcache.c:483:28: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/bcache.c:484:33: branch_true: ...to here
LVM2.2.03.38/lib/device/bcache.c:493:36: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/bcache.c:506:28: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:506:28: branch_true: following ‘true’ branch (when ‘extra_nbytes != 0’)...
LVM2.2.03.38/lib/device/bcache.c:507:33: branch_true: ...to here
LVM2.2.03.38/lib/device/bcache.c:507:33: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/device/bcache.c:507:33: danger: ‘io’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def217]
LVM2.2.03.38/lib/device/bcache.c:514:33: warning[-Wanalyzer-malloc-leak]: leak of ‘io’
LVM2.2.03.38/lib/device/bcache.c:442:30: acquire_memory: allocated here
LVM2.2.03.38/lib/device/bcache.c:443:12: branch_false: following ‘false’ branch (when ‘io’ is non-NULL)...
LVM2.2.03.38/lib/device/bcache.c:448:9: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:450:12: branch_false: following ‘false’ branch (when ‘off != -1’)...
LVM2.2.03.38/lib/device/bcache.c:455:12: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:455:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/bcache.c:464:12: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:464:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/bcache.c:471:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/bcache.c:480:21: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:480:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/bcache.c:481:25: branch_true: ...to here
LVM2.2.03.38/lib/device/bcache.c:514:33: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/device/bcache.c:514:33: danger: ‘io’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def218]
LVM2.2.03.38/lib/device/bcache.c:527:33: warning[-Wanalyzer-malloc-leak]: leak of ‘io’
LVM2.2.03.38/lib/device/bcache.c:442:30: acquire_memory: allocated here
LVM2.2.03.38/lib/device/bcache.c:443:12: branch_false: following ‘false’ branch (when ‘io’ is non-NULL)...
LVM2.2.03.38/lib/device/bcache.c:448:9: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:450:12: branch_false: following ‘false’ branch (when ‘off != -1’)...
LVM2.2.03.38/lib/device/bcache.c:455:12: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:455:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/bcache.c:464:12: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:464:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/bcache.c:471:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/bcache.c:480:21: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:480:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/bcache.c:481:25: branch_true: ...to here
LVM2.2.03.38/lib/device/bcache.c:526:28: branch_true: following ‘true’ branch (when ‘nbytes > len’)...
LVM2.2.03.38/lib/device/bcache.c:527:33: branch_true: ...to here
LVM2.2.03.38/lib/device/bcache.c:527:33: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/device/bcache.c:527:33: danger: ‘io’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def219]
LVM2.2.03.38/lib/device/bcache.c:547:30: warning[-Wanalyzer-malloc-leak]: leak of ‘io’
LVM2.2.03.38/lib/device/bcache.c:442:30: acquire_memory: allocated here
LVM2.2.03.38/lib/device/bcache.c:443:12: branch_false: following ‘false’ branch (when ‘io’ is non-NULL)...
LVM2.2.03.38/lib/device/bcache.c:448:9: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:450:12: branch_false: following ‘false’ branch (when ‘off != -1’)...
LVM2.2.03.38/lib/device/bcache.c:455:12: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:455:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/bcache.c:464:12: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:543:16: branch_true: following ‘true’ branch (when ‘pos < len’)...
LVM2.2.03.38/lib/device/bcache.c:544:20: branch_true: ...to here
LVM2.2.03.38/lib/device/bcache.c:547:30: throw: if ‘write’ throws an exception...
LVM2.2.03.38/lib/device/bcache.c:547:30: danger: ‘io’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def220]
LVM2.2.03.38/lib/device/bcache.c:559:33: warning[-Wanalyzer-malloc-leak]: leak of ‘io’
LVM2.2.03.38/lib/device/bcache.c:442:30: acquire_memory: allocated here
LVM2.2.03.38/lib/device/bcache.c:443:12: branch_false: following ‘false’ branch (when ‘io’ is non-NULL)...
LVM2.2.03.38/lib/device/bcache.c:448:9: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:450:12: branch_false: following ‘false’ branch (when ‘off != -1’)...
LVM2.2.03.38/lib/device/bcache.c:455:12: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:455:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/bcache.c:464:12: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:543:16: branch_true: following ‘true’ branch (when ‘pos < len’)...
LVM2.2.03.38/lib/device/bcache.c:544:20: branch_true: ...to here
LVM2.2.03.38/lib/device/bcache.c:554:20: branch_false: following ‘false’ branch (when ‘rv != 0’)...
LVM2.2.03.38/lib/device/bcache.c:557:20: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:558:28: branch_true: following ‘true’ branch (when ‘d == 0’)...
LVM2.2.03.38/lib/device/bcache.c:559:33: branch_true: ...to here
LVM2.2.03.38/lib/device/bcache.c:559:33: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/device/bcache.c:559:33: danger: ‘io’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def221]
LVM2.2.03.38/lib/device/bcache.c:563:33: warning[-Wanalyzer-malloc-leak]: leak of ‘io’
LVM2.2.03.38/lib/device/bcache.c:442:30: acquire_memory: allocated here
LVM2.2.03.38/lib/device/bcache.c:443:12: branch_false: following ‘false’ branch (when ‘io’ is non-NULL)...
LVM2.2.03.38/lib/device/bcache.c:448:9: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:450:12: branch_false: following ‘false’ branch (when ‘off != -1’)...
LVM2.2.03.38/lib/device/bcache.c:455:12: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:455:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/bcache.c:464:12: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:543:16: branch_true: following ‘true’ branch (when ‘pos < len’)...
LVM2.2.03.38/lib/device/bcache.c:544:20: branch_true: ...to here
LVM2.2.03.38/lib/device/bcache.c:554:20: branch_false: following ‘false’ branch (when ‘rv != 0’)...
LVM2.2.03.38/lib/device/bcache.c:557:20: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:558:28: branch_false: following ‘false’ branch (when ‘d != 0’)...
LVM2.2.03.38/lib/device/bcache.c:563:33: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:563:33: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/device/bcache.c:563:33: danger: ‘io’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def222]
LVM2.2.03.38/lib/device/bcache.c:574:25: warning[-Wanalyzer-malloc-leak]: leak of ‘io’
LVM2.2.03.38/lib/device/bcache.c:442:30: acquire_memory: allocated here
LVM2.2.03.38/lib/device/bcache.c:443:12: branch_false: following ‘false’ branch (when ‘io’ is non-NULL)...
LVM2.2.03.38/lib/device/bcache.c:448:9: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:450:12: branch_false: following ‘false’ branch (when ‘off != -1’)...
LVM2.2.03.38/lib/device/bcache.c:455:12: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:455:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/bcache.c:464:12: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:572:12: branch_true: following ‘true’ branch (when ‘pos < len’)...
LVM2.2.03.38/lib/device/bcache.c:573:20: branch_true: ...to here
LVM2.2.03.38/lib/device/bcache.c:573:20: branch_true: following ‘true’ branch (when ‘d == 0’)...
LVM2.2.03.38/lib/device/bcache.c:574:25: branch_true: ...to here
LVM2.2.03.38/lib/device/bcache.c:574:25: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/device/bcache.c:574:25: danger: ‘io’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def223]
LVM2.2.03.38/lib/device/bcache.c:576:25: warning[-Wanalyzer-malloc-leak]: leak of ‘io’
LVM2.2.03.38/lib/device/bcache.c:442:30: acquire_memory: allocated here
LVM2.2.03.38/lib/device/bcache.c:443:12: branch_false: following ‘false’ branch (when ‘io’ is non-NULL)...
LVM2.2.03.38/lib/device/bcache.c:448:9: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:450:12: branch_false: following ‘false’ branch (when ‘off != -1’)...
LVM2.2.03.38/lib/device/bcache.c:455:12: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:455:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/bcache.c:464:12: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:572:12: branch_true: following ‘true’ branch (when ‘pos < len’)...
LVM2.2.03.38/lib/device/bcache.c:573:20: branch_true: ...to here
LVM2.2.03.38/lib/device/bcache.c:573:20: branch_false: following ‘false’ branch (when ‘d != 0’)...
LVM2.2.03.38/lib/device/bcache.c:576:25: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:576:25: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/device/bcache.c:576:25: danger: ‘io’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def224]
LVM2.2.03.38/lib/device/bcache.c:584:9: warning[-Wanalyzer-malloc-leak]: leak of ‘io’
LVM2.2.03.38/lib/device/bcache.c:442:30: acquire_memory: allocated here
LVM2.2.03.38/lib/device/bcache.c:443:12: branch_false: following ‘false’ branch (when ‘io’ is non-NULL)...
LVM2.2.03.38/lib/device/bcache.c:448:9: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:450:12: branch_false: following ‘false’ branch (when ‘off != -1’)...
LVM2.2.03.38/lib/device/bcache.c:455:12: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:455:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/bcache.c:464:12: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:584:9: throw: if ‘dm_list_add’ throws an exception...
LVM2.2.03.38/lib/device/bcache.c:584:9: danger: ‘io’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def225]
LVM2.2.03.38/lib/device/bcache.c:621:9: warning[-Wanalyzer-malloc-leak]: leak of ‘e’
LVM2.2.03.38/lib/device/bcache.c:611:33: acquire_memory: allocated here
LVM2.2.03.38/lib/device/bcache.c:613:12: branch_false: following ‘false’ branch (when ‘e’ is non-NULL)...
LVM2.2.03.38/lib/device/bcache.c:616:9: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:621:9: throw: if ‘dm_list_init’ throws an exception...
LVM2.2.03.38/lib/device/bcache.c:621:9: danger: ‘e’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def226]
LVM2.2.03.38/lib/device/bcache.c:1146:9: warning[-Wanalyzer-malloc-leak]: leak of ‘cache’
LVM2.2.03.38/lib/device/bcache.c:1119:12: branch_false: following ‘false’ branch (when ‘nr_cache_blocks != 0’)...
LVM2.2.03.38/lib/device/bcache.c:1124:12: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:1124:12: branch_false: following ‘false’ branch (when ‘block_sectors != 0’)...
LVM2.2.03.38/lib/device/bcache.c:1129:30: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:1129:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/bcache.c:1134:17: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:1134:17: acquire_memory: allocated here
LVM2.2.03.38/lib/device/bcache.c:1135:12: branch_false: following ‘false’ branch (when ‘cache’ is non-NULL)...
LVM2.2.03.38/lib/device/bcache.c:1138:9: branch_false: ...to here
LVM2.2.03.38/lib/device/bcache.c:1146:9: throw: if ‘dm_list_init’ throws an exception...
LVM2.2.03.38/lib/device/bcache.c:1146:9: danger: ‘cache’ leaks here; was allocated at [(7)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def227]
LVM2.2.03.38/lib/device/dev-cache.c:2414:34: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(&path)’
LVM2.2.03.38/lib/device/dev-cache.c:2398:12: branch_false: following ‘false’ branch (when ‘devno != 0’)...
LVM2.2.03.38/lib/device/dev-cache.c:2405:13: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-cache.c:2405:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/dev-cache.c:2406:21: branch_true: ...to here
LVM2.2.03.38/lib/device/dev-cache.c:2406:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-cache.c:2411:29: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-cache.c:2411:29: acquire_memory: allocated here
LVM2.2.03.38/lib/device/dev-cache.c:2411:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-cache.c:2411:20: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-cache.c:2414:34: throw: if ‘readdir’ throws an exception...
LVM2.2.03.38/lib/device/dev-cache.c:2414:34: danger: ‘opendir(&path)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def228]
LVM2.2.03.38/lib/device/dev-cache.c:2470:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&_partitions, "r")’
LVM2.2.03.38/lib/device/dev-cache.c:2398:12: branch_false: following ‘false’ branch (when ‘devno != 0’)...
LVM2.2.03.38/lib/device/dev-cache.c:2405:13: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-cache.c:2437:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-cache.c:2462:1: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-cache.c:2463:20: acquire_resource: opened here
LVM2.2.03.38/lib/device/dev-cache.c:2463:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-cache.c:2463:12: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-cache.c:2466:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/dev-cache.c:2467:21: branch_true: ...to here
LVM2.2.03.38/lib/device/dev-cache.c:2475:21: throw: if ‘dm_snprintf’ throws an exception...
LVM2.2.03.38/lib/device/dev-cache.c:2470:21: danger: ‘fopen(&_partitions, "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def229]
LVM2.2.03.38/lib/device/dev-cache.c:2470:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&_partitions, "r")’
LVM2.2.03.38/lib/device/dev-cache.c:2398:12: branch_false: following ‘false’ branch (when ‘devno != 0’)...
LVM2.2.03.38/lib/device/dev-cache.c:2405:13: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-cache.c:2437:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-cache.c:2462:1: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-cache.c:2463:20: acquire_memory: allocated here
LVM2.2.03.38/lib/device/dev-cache.c:2463:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-cache.c:2463:12: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-cache.c:2466:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/dev-cache.c:2467:21: branch_true: ...to here
LVM2.2.03.38/lib/device/dev-cache.c:2475:21: throw: if ‘dm_snprintf’ throws an exception...
LVM2.2.03.38/lib/device/dev-cache.c:2470:21: danger: ‘fopen(&_partitions, "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def230]
LVM2.2.03.38/lib/device/dev-md.c:371:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&path, "r")’
LVM2.2.03.38/lib/device/dev-md.c:361:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-md.c:365:20: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-md.c:365:20: acquire_resource: opened here
LVM2.2.03.38/lib/device/dev-md.c:365:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-md.c:370:14: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-md.c:370:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/dev-md.c:371:17: branch_true: ...to here
LVM2.2.03.38/lib/device/dev-md.c:371:17: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/device/dev-md.c:371:17: danger: ‘fopen(&path, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def231]
LVM2.2.03.38/lib/device/dev-md.c:371:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&path, "r")’
LVM2.2.03.38/lib/device/dev-md.c:361:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-md.c:365:20: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-md.c:365:20: acquire_memory: allocated here
LVM2.2.03.38/lib/device/dev-md.c:365:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-md.c:370:14: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-md.c:370:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/dev-md.c:371:17: branch_true: ...to here
LVM2.2.03.38/lib/device/dev-md.c:371:17: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/device/dev-md.c:371:17: danger: ‘fopen(&path, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def232]
LVM2.2.03.38/lib/device/dev-md.c:376:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&path, "r")’
LVM2.2.03.38/lib/device/dev-md.c:361:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-md.c:365:20: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-md.c:365:20: acquire_resource: opened here
LVM2.2.03.38/lib/device/dev-md.c:365:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-md.c:370:14: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-md.c:370:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-md.c:375:20: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-md.c:375:12: branch_true: following ‘true’ branch (when ‘ret != 1’)...
LVM2.2.03.38/lib/device/dev-md.c:376:17: branch_true: ...to here
LVM2.2.03.38/lib/device/dev-md.c:376:17: throw: if ‘dev_name’ throws an exception...
LVM2.2.03.38/lib/device/dev-md.c:376:17: danger: ‘fopen(&path, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def233]
LVM2.2.03.38/lib/device/dev-md.c:376:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&path, "r")’
LVM2.2.03.38/lib/device/dev-md.c:361:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-md.c:365:20: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-md.c:365:20: acquire_memory: allocated here
LVM2.2.03.38/lib/device/dev-md.c:365:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-md.c:370:14: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-md.c:370:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-md.c:375:20: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-md.c:375:12: branch_true: following ‘true’ branch (when ‘ret != 1’)...
LVM2.2.03.38/lib/device/dev-md.c:376:17: branch_true: ...to here
LVM2.2.03.38/lib/device/dev-md.c:376:17: throw: if ‘dev_name’ throws an exception...
LVM2.2.03.38/lib/device/dev-md.c:376:17: danger: ‘fopen(&path, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def234]
LVM2.2.03.38/lib/device/dev-mpath.c:178:30: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(&_mpath_conf)’
LVM2.2.03.38/lib/device/dev-mpath.c:177:20: acquire_memory: allocated here
LVM2.2.03.38/lib/device/dev-mpath.c:177:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/dev-mpath.c:177:12: branch_true: ...to here
LVM2.2.03.38/lib/device/dev-mpath.c:178:30: throw: if ‘readdir’ throws an exception...
LVM2.2.03.38/lib/device/dev-mpath.c:178:30: danger: ‘opendir(&_mpath_conf)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def235]
LVM2.2.03.38/lib/device/dev-mpath.c:225:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(config_wwids_file, "r")’
LVM2.2.03.38/lib/device/dev-mpath.c:214:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-mpath.c:219:20: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-mpath.c:219:20: acquire_resource: opened here
LVM2.2.03.38/lib/device/dev-mpath.c:219:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-mpath.c:219:12: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-mpath.c:224:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/dev-mpath.c:225:21: branch_true: ...to here
LVM2.2.03.38/lib/device/dev-mpath.c:245:20: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
LVM2.2.03.38/lib/device/dev-mpath.c:248:68: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-mpath.c:248:24: throw: if ‘dm_hash_insert_binary’ throws an exception...
LVM2.2.03.38/lib/device/dev-mpath.c:225:21: danger: ‘fopen(config_wwids_file, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def236]
LVM2.2.03.38/lib/device/dev-mpath.c:225:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(config_wwids_file, "r")’
LVM2.2.03.38/lib/device/dev-mpath.c:214:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-mpath.c:219:20: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-mpath.c:219:20: acquire_memory: allocated here
LVM2.2.03.38/lib/device/dev-mpath.c:219:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-mpath.c:219:12: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-mpath.c:224:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/dev-mpath.c:225:21: branch_true: ...to here
LVM2.2.03.38/lib/device/dev-mpath.c:245:20: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
LVM2.2.03.38/lib/device/dev-mpath.c:248:68: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-mpath.c:248:24: throw: if ‘dm_hash_insert_binary’ throws an exception...
LVM2.2.03.38/lib/device/dev-mpath.c:225:21: danger: ‘fopen(config_wwids_file, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def237]
LVM2.2.03.38/lib/device/dev-mpath.c:480:22: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(&holders_path)’
LVM2.2.03.38/lib/device/dev-mpath.c:416:12: enter_function: entry to ‘_dev_is_mpath_component_sysfs’
LVM2.2.03.38/lib/device/dev-mpath.c:448:30: call_function: calling ‘_get_sysfs_name’ from ‘_dev_is_mpath_component_sysfs’
LVM2.2.03.38/lib/device/dev-mpath.c:448:30: return_function: returning to ‘_dev_is_mpath_component_sysfs’ from ‘_get_sysfs_name’
LVM2.2.03.38/lib/device/dev-mpath.c:448:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-mpath.c:457:13: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-mpath.c:457:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-mpath.c:463:13: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-mpath.c:463:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-mpath.c:466:14: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-mpath.c:466:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-mpath.c:475:20: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-mpath.c:475:20: acquire_memory: allocated here
LVM2.2.03.38/lib/device/dev-mpath.c:475:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-mpath.c:475:12: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-mpath.c:480:22: throw: if ‘readdir’ throws an exception...
LVM2.2.03.38/lib/device/dev-mpath.c:480:22: danger: ‘opendir(&holders_path)’ leaks here; was allocated at [(17)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def238]
LVM2.2.03.38/lib/device/dev-mpath.c:705:22: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(&slaves_path)’
LVM2.2.03.38/lib/device/dev-mpath.c:689:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-mpath.c:697:20: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-mpath.c:697:20: acquire_memory: allocated here
LVM2.2.03.38/lib/device/dev-mpath.c:697:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-mpath.c:697:12: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-mpath.c:705:22: throw: if ‘readdir’ throws an exception...
LVM2.2.03.38/lib/device/dev-mpath.c:705:22: danger: ‘opendir(&slaves_path)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def239]
LVM2.2.03.38/lib/device/dev-type.c:138:26: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(&holders_path)’
LVM2.2.03.38/lib/device/dev-type.c:129:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:135:19: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:135:19: acquire_memory: allocated here
LVM2.2.03.38/lib/device/dev-type.c:135:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:135:12: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:138:26: throw: if ‘readdir’ throws an exception...
LVM2.2.03.38/lib/device/dev-type.c:138:26: danger: ‘opendir(&holders_path)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def240]
LVM2.2.03.38/lib/device/dev-type.c:240:14: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 32804)’
LVM2.2.03.38/lib/device/dev-type.c:220:19: enter_function: entry to ‘create_dev_types’
LVM2.2.03.38/lib/device/dev-type.c:235:20: call_function: inlined call to ‘zalloc’ from ‘create_dev_types’
LVM2.2.03.38/lib/device/dev-type.c:235:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:240:14: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:240:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/dev-type.c:241:17: branch_true: ...to here
LVM2.2.03.38/lib/device/dev-type.c:241:17: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/device/dev-type.c:240:14: danger: ‘calloc(1, 32804)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def241]
LVM2.2.03.38/lib/device/dev-type.c:260:24: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&proc_devices, "r")’
LVM2.2.03.38/lib/device/dev-type.c:235:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:240:14: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:240:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:247:13: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:247:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:253:20: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:253:20: acquire_resource: opened here
LVM2.2.03.38/lib/device/dev-type.c:253:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:253:12: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:258:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/dev-type.c:258:16: branch_true: ...to here
LVM2.2.03.38/lib/device/dev-type.c:260:24: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:264:28: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:266:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/dev-type.c:272:35: branch_true: ...to here
LVM2.2.03.38/lib/device/dev-type.c:272:28: branch_true: following ‘true’ branch (when ‘nl’ is non-NULL)...
LVM2.2.03.38/lib/device/dev-type.c:272:56: branch_true: ...to here
LVM2.2.03.38/lib/device/dev-type.c:273:25: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/device/dev-type.c:260:24: danger: ‘fopen(&proc_devices, "r")’ leaks here; was opened at [(7)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def242]
LVM2.2.03.38/lib/device/dev-type.c:260:24: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&proc_devices, "r")’
LVM2.2.03.38/lib/device/dev-type.c:235:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:240:14: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:240:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:247:13: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:247:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:253:20: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:253:20: acquire_memory: allocated here
LVM2.2.03.38/lib/device/dev-type.c:253:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:253:12: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:258:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/dev-type.c:258:16: branch_true: ...to here
LVM2.2.03.38/lib/device/dev-type.c:260:24: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:264:28: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:266:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/dev-type.c:272:35: branch_true: ...to here
LVM2.2.03.38/lib/device/dev-type.c:272:28: branch_true: following ‘true’ branch (when ‘nl’ is non-NULL)...
LVM2.2.03.38/lib/device/dev-type.c:272:56: branch_true: ...to here
LVM2.2.03.38/lib/device/dev-type.c:273:25: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/device/dev-type.c:260:24: danger: ‘fopen(&proc_devices, "r")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-835): [#def243]
LVM2.2.03.38/lib/device/dev-type.c:288:24: warning[-Wanalyzer-infinite-loop]: infinite loop
LVM2.2.03.38/lib/device/dev-type.c:288:24: danger: infinite loop here
LVM2.2.03.38/lib/device/dev-type.c:288:24: branch_true: if it ever follows ‘true’ branch, it will always do so...
LVM2.2.03.38/lib/device/dev-type.c:289:25: branch_true: ...to here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def244]
LVM2.2.03.38/lib/device/dev-type.c:493:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&path, "r")’
LVM2.2.03.38/lib/device/dev-type.c:483:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:489:20: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:489:20: acquire_resource: opened here
LVM2.2.03.38/lib/device/dev-type.c:489:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:492:14: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:492:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/dev-type.c:493:17: branch_true: ...to here
LVM2.2.03.38/lib/device/dev-type.c:493:17: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/device/dev-type.c:493:17: danger: ‘fopen(&path, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def245]
LVM2.2.03.38/lib/device/dev-type.c:493:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&path, "r")’
LVM2.2.03.38/lib/device/dev-type.c:483:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:489:20: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:489:20: acquire_memory: allocated here
LVM2.2.03.38/lib/device/dev-type.c:489:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:492:14: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:492:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/dev-type.c:493:17: branch_true: ...to here
LVM2.2.03.38/lib/device/dev-type.c:493:17: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/device/dev-type.c:493:17: danger: ‘fopen(&path, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def246]
LVM2.2.03.38/lib/device/dev-type.c:495:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&path, "r")’
LVM2.2.03.38/lib/device/dev-type.c:483:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:489:20: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:489:20: acquire_resource: opened here
LVM2.2.03.38/lib/device/dev-type.c:489:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:492:14: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:492:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:494:20: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:494:19: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/dev-type.c:495:17: branch_true: ...to here
LVM2.2.03.38/lib/device/dev-type.c:495:17: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/device/dev-type.c:495:17: danger: ‘fopen(&path, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def247]
LVM2.2.03.38/lib/device/dev-type.c:495:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&path, "r")’
LVM2.2.03.38/lib/device/dev-type.c:483:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:489:20: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:489:20: acquire_memory: allocated here
LVM2.2.03.38/lib/device/dev-type.c:489:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:492:14: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:492:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:494:20: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:494:19: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/dev-type.c:495:17: branch_true: ...to here
LVM2.2.03.38/lib/device/dev-type.c:495:17: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/device/dev-type.c:495:17: danger: ‘fopen(&path, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def248]
LVM2.2.03.38/lib/device/dev-type.c:900:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&path, "r")’
LVM2.2.03.38/lib/device/dev-type.c:858:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:871:13: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:871:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:876:21: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:876:12: branch_false: following ‘false’ branch (when ‘size >= 0’)...
LVM2.2.03.38/lib/device/dev-type.c:881:9: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:883:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:891:20: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:891:20: acquire_resource: opened here
LVM2.2.03.38/lib/device/dev-type.c:891:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:899:14: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:899:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/dev-type.c:900:17: branch_true: ...to here
LVM2.2.03.38/lib/device/dev-type.c:900:17: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/device/dev-type.c:900:17: danger: ‘fopen(&path, "r")’ leaks here; was opened at [(9)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def249]
LVM2.2.03.38/lib/device/dev-type.c:900:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&path, "r")’
LVM2.2.03.38/lib/device/dev-type.c:858:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:871:13: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:871:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:876:21: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:876:12: branch_false: following ‘false’ branch (when ‘size >= 0’)...
LVM2.2.03.38/lib/device/dev-type.c:881:9: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:883:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:891:20: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:891:20: acquire_memory: allocated here
LVM2.2.03.38/lib/device/dev-type.c:891:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:899:14: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:899:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/dev-type.c:900:17: branch_true: ...to here
LVM2.2.03.38/lib/device/dev-type.c:900:17: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/device/dev-type.c:900:17: danger: ‘fopen(&path, "r")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def250]
LVM2.2.03.38/lib/device/dev-type.c:905:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&path, "r")’
LVM2.2.03.38/lib/device/dev-type.c:858:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:871:13: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:871:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:876:21: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:876:12: branch_false: following ‘false’ branch (when ‘size >= 0’)...
LVM2.2.03.38/lib/device/dev-type.c:881:9: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:883:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:891:20: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:891:20: acquire_resource: opened here
LVM2.2.03.38/lib/device/dev-type.c:891:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:899:14: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:899:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:904:13: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:904:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/dev-type.c:905:17: branch_true: ...to here
LVM2.2.03.38/lib/device/dev-type.c:905:17: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/device/dev-type.c:905:17: danger: ‘fopen(&path, "r")’ leaks here; was opened at [(9)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def251]
LVM2.2.03.38/lib/device/dev-type.c:905:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&path, "r")’
LVM2.2.03.38/lib/device/dev-type.c:858:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:871:13: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:871:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:876:21: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:876:12: branch_false: following ‘false’ branch (when ‘size >= 0’)...
LVM2.2.03.38/lib/device/dev-type.c:881:9: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:883:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:891:20: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:891:20: acquire_memory: allocated here
LVM2.2.03.38/lib/device/dev-type.c:891:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:899:14: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:899:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:904:13: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:904:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/dev-type.c:905:17: branch_true: ...to here
LVM2.2.03.38/lib/device/dev-type.c:905:17: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/device/dev-type.c:905:17: danger: ‘fopen(&path, "r")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def252]
LVM2.2.03.38/lib/device/dev-type.c:1388:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
LVM2.2.03.38/lib/device/dev-type.c:1354:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:1357:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:1360:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:1368:20: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:1368:20: acquire_resource: opened here
LVM2.2.03.38/lib/device/dev-type.c:1368:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:1387:14: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:1387:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/dev-type.c:1388:17: branch_true: ...to here
LVM2.2.03.38/lib/device/dev-type.c:1388:17: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/device/dev-type.c:1388:17: danger: ‘fp’ leaks here; was opened at [(7)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def253]
LVM2.2.03.38/lib/device/dev-type.c:1388:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
LVM2.2.03.38/lib/device/dev-type.c:1354:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:1357:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:1360:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:1368:20: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:1368:20: acquire_memory: allocated here
LVM2.2.03.38/lib/device/dev-type.c:1368:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:1387:14: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:1387:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/dev-type.c:1388:17: branch_true: ...to here
LVM2.2.03.38/lib/device/dev-type.c:1388:17: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/device/dev-type.c:1388:17: danger: ‘fp’ leaks here; was allocated at [(7)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def254]
LVM2.2.03.38/lib/device/dev-type.c:1393:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
LVM2.2.03.38/lib/device/dev-type.c:1354:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:1357:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:1360:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:1368:20: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:1368:20: acquire_resource: opened here
LVM2.2.03.38/lib/device/dev-type.c:1368:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:1387:14: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:1387:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:1392:13: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:1392:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/dev-type.c:1393:17: branch_true: ...to here
LVM2.2.03.38/lib/device/dev-type.c:1393:17: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/device/dev-type.c:1393:17: danger: ‘fp’ leaks here; was opened at [(7)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def255]
LVM2.2.03.38/lib/device/dev-type.c:1393:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
LVM2.2.03.38/lib/device/dev-type.c:1354:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:1357:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:1360:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:1368:20: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:1368:20: acquire_memory: allocated here
LVM2.2.03.38/lib/device/dev-type.c:1368:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:1387:14: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:1387:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/dev-type.c:1392:13: branch_false: ...to here
LVM2.2.03.38/lib/device/dev-type.c:1392:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/dev-type.c:1393:17: branch_true: ...to here
LVM2.2.03.38/lib/device/dev-type.c:1393:17: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/device/dev-type.c:1393:17: danger: ‘fp’ leaks here; was allocated at [(7)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def256]
LVM2.2.03.38/lib/device/filesystem.c:65:22: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(&holders_path)’
LVM2.2.03.38/lib/device/filesystem.c:50:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/filesystem.c:57:20: branch_false: ...to here
LVM2.2.03.38/lib/device/filesystem.c:57:20: acquire_memory: allocated here
LVM2.2.03.38/lib/device/filesystem.c:57:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/filesystem.c:57:12: branch_false: ...to here
LVM2.2.03.38/lib/device/filesystem.c:65:22: throw: if ‘readdir’ throws an exception...
LVM2.2.03.38/lib/device/filesystem.c:65:22: danger: ‘opendir(&holders_path)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def257]
LVM2.2.03.38/lib/device/filesystem.c:195:22: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(&devices_path)’
LVM2.2.03.38/lib/device/filesystem.c:174:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/filesystem.c:181:20: branch_false: ...to here
LVM2.2.03.38/lib/device/filesystem.c:181:20: acquire_memory: allocated here
LVM2.2.03.38/lib/device/filesystem.c:181:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/filesystem.c:181:12: branch_false: ...to here
LVM2.2.03.38/lib/device/filesystem.c:195:22: throw: if ‘readdir’ throws an exception...
LVM2.2.03.38/lib/device/filesystem.c:195:22: danger: ‘opendir(&devices_path)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def258]
LVM2.2.03.38/lib/device/filesystem.c:216:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&rdev_path, 0)’
LVM2.2.03.38/lib/device/filesystem.c:174:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/filesystem.c:181:20: branch_false: ...to here
LVM2.2.03.38/lib/device/filesystem.c:181:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/filesystem.c:181:12: branch_false: ...to here
LVM2.2.03.38/lib/device/filesystem.c:195:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/filesystem.c:196:29: branch_true: ...to here
LVM2.2.03.38/lib/device/filesystem.c:201:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/filesystem.c:208:27: branch_false: ...to here
LVM2.2.03.38/lib/device/filesystem.c:208:27: acquire_resource: opened here
LVM2.2.03.38/lib/device/filesystem.c:208:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/filesystem.c:214:21: branch_false: ...to here
LVM2.2.03.38/lib/device/filesystem.c:216:21: danger: ‘open(&rdev_path, 0)’ leaks here; was opened at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def259]
LVM2.2.03.38/lib/device/filesystem.c:449:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/proc/mounts", "r")’
LVM2.2.03.38/lib/device/filesystem.c:380:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/filesystem.c:395:21: branch_false: ...to here
LVM2.2.03.38/lib/device/filesystem.c:395:12: branch_false: following ‘false’ branch (when ‘fme’ is non-NULL)...
LVM2.2.03.38/lib/device/filesystem.c:395:12: branch_false: ...to here
LVM2.2.03.38/lib/device/filesystem.c:423:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/filesystem.c:439:25: branch_false: ...to here
LVM2.2.03.38/lib/device/filesystem.c:439:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/filesystem.c:442:14: branch_false: ...to here
LVM2.2.03.38/lib/device/filesystem.c:442:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/filesystem.c:445:20: branch_false: ...to here
LVM2.2.03.38/lib/device/filesystem.c:445:20: acquire_resource: opened here
LVM2.2.03.38/lib/device/filesystem.c:445:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/filesystem.c:445:12: branch_false: ...to here
LVM2.2.03.38/lib/device/filesystem.c:448:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/filesystem.c:449:21: branch_true: ...to here
LVM2.2.03.38/lib/device/filesystem.c:451:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/filesystem.c:456:21: branch_false: ...to here
LVM2.2.03.38/lib/device/filesystem.c:456:20: branch_false: following ‘false’ branch (when the strings are equal)...
LVM2.2.03.38/lib/device/filesystem.c:470:30: branch_false: ...to here
LVM2.2.03.38/lib/device/filesystem.c:484:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/filesystem.c:487:21: branch_false: ...to here
LVM2.2.03.38/lib/device/filesystem.c:487:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/filesystem.c:488:25: branch_true: ...to here
LVM2.2.03.38/lib/device/filesystem.c:488:25: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/device/filesystem.c:449:21: danger: ‘fopen("/proc/mounts", "r")’ leaks here; was opened at [(12)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def260]
LVM2.2.03.38/lib/device/filesystem.c:449:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/mounts", "r")’
LVM2.2.03.38/lib/device/filesystem.c:380:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/filesystem.c:395:21: branch_false: ...to here
LVM2.2.03.38/lib/device/filesystem.c:395:12: branch_false: following ‘false’ branch (when ‘fme’ is non-NULL)...
LVM2.2.03.38/lib/device/filesystem.c:395:12: branch_false: ...to here
LVM2.2.03.38/lib/device/filesystem.c:423:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/filesystem.c:439:25: branch_false: ...to here
LVM2.2.03.38/lib/device/filesystem.c:439:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/filesystem.c:442:14: branch_false: ...to here
LVM2.2.03.38/lib/device/filesystem.c:442:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/filesystem.c:445:20: branch_false: ...to here
LVM2.2.03.38/lib/device/filesystem.c:445:20: acquire_memory: allocated here
LVM2.2.03.38/lib/device/filesystem.c:445:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/filesystem.c:445:12: branch_false: ...to here
LVM2.2.03.38/lib/device/filesystem.c:448:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/filesystem.c:449:21: branch_true: ...to here
LVM2.2.03.38/lib/device/filesystem.c:451:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/filesystem.c:456:21: branch_false: ...to here
LVM2.2.03.38/lib/device/filesystem.c:456:20: branch_false: following ‘false’ branch (when the strings are equal)...
LVM2.2.03.38/lib/device/filesystem.c:470:30: branch_false: ...to here
LVM2.2.03.38/lib/device/filesystem.c:484:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/filesystem.c:487:21: branch_false: ...to here
LVM2.2.03.38/lib/device/filesystem.c:487:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/filesystem.c:488:25: branch_true: ...to here
LVM2.2.03.38/lib/device/filesystem.c:488:25: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/device/filesystem.c:449:21: danger: ‘fopen("/proc/mounts", "r")’ leaks here; was allocated at [(12)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def261]
LVM2.2.03.38/lib/device/nvme.c:187:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(dev_name(dev), 0)’
LVM2.2.03.38/lib/device/nvme.c:177:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/nvme.c:180:19: branch_false: ...to here
LVM2.2.03.38/lib/device/nvme.c:182:19: acquire_resource: opened here
LVM2.2.03.38/lib/device/nvme.c:182:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/nvme.c:187:13: branch_false: ...to here
LVM2.2.03.38/lib/device/nvme.c:187:13: throw: if ‘nvme_get_nsid’ throws an exception...
LVM2.2.03.38/lib/device/nvme.c:187:13: danger: ‘open(dev_name(dev), 0)’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def262]
LVM2.2.03.38/lib/device/nvme.c:318:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(dev_name(dev), 0)’
LVM2.2.03.38/lib/device/nvme.c:313:19: acquire_resource: opened here
LVM2.2.03.38/lib/device/nvme.c:313:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/nvme.c:318:13: branch_false: ...to here
LVM2.2.03.38/lib/device/nvme.c:318:13: throw: if ‘nvme_get_nsid’ throws an exception...
LVM2.2.03.38/lib/device/nvme.c:318:13: danger: ‘open(dev_name(dev), 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def263]
LVM2.2.03.38/lib/device/nvme.c:335:20: warning[-Wanalyzer-malloc-leak]: leak of ‘status’
LVM2.2.03.38/lib/device/nvme.c:313:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/nvme.c:318:13: branch_false: ...to here
LVM2.2.03.38/lib/device/nvme.c:318:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/nvme.c:323:24: branch_false: ...to here
LVM2.2.03.38/lib/device/nvme.c:323:24: acquire_memory: allocated here
LVM2.2.03.38/lib/device/nvme.c:323:12: branch_false: following ‘false’ branch (when ‘status’ is non-NULL)...
LVM2.2.03.38/lib/device/nvme.c:326:9: branch_false: ...to here
LVM2.2.03.38/lib/device/nvme.c:335:20: throw: if ‘nvme_resv_report’ throws an exception...
LVM2.2.03.38/lib/device/nvme.c:335:20: danger: ‘status’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def264]
LVM2.2.03.38/lib/device/nvme.c:402:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(dev_name(dev), 0)’
LVM2.2.03.38/lib/device/nvme.c:397:19: acquire_resource: opened here
LVM2.2.03.38/lib/device/nvme.c:397:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/nvme.c:402:13: branch_false: ...to here
LVM2.2.03.38/lib/device/nvme.c:402:13: throw: if ‘nvme_get_nsid’ throws an exception...
LVM2.2.03.38/lib/device/nvme.c:402:13: danger: ‘open(dev_name(dev), 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def265]
LVM2.2.03.38/lib/device/nvme.c:422:20: warning[-Wanalyzer-malloc-leak]: leak of ‘status’
LVM2.2.03.38/lib/device/nvme.c:397:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/nvme.c:402:13: branch_false: ...to here
LVM2.2.03.38/lib/device/nvme.c:402:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/nvme.c:410:24: branch_false: ...to here
LVM2.2.03.38/lib/device/nvme.c:410:24: acquire_memory: allocated here
LVM2.2.03.38/lib/device/nvme.c:410:12: branch_false: following ‘false’ branch (when ‘status’ is non-NULL)...
LVM2.2.03.38/lib/device/nvme.c:413:9: branch_false: ...to here
LVM2.2.03.38/lib/device/nvme.c:422:20: throw: if ‘nvme_resv_report’ throws an exception...
LVM2.2.03.38/lib/device/nvme.c:422:20: danger: ‘status’ leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def266]
LVM2.2.03.38/lib/device/online.c:68:14: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&lookup_path, "r")’
LVM2.2.03.38/lib/device/online.c:384:5: enter_function: entry to ‘get_pvs_lookup’
LVM2.2.03.38/lib/device/online.c:396:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:20: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:399:20: acquire_resource: opened here
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:402:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/online.c:403:17: branch_true: ...to here
LVM2.2.03.38/lib/device/online.c:404:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:407:17: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:414:22: call_function: calling ‘online_pvid_file_read’ from ‘get_pvs_lookup’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def267]
LVM2.2.03.38/lib/device/online.c:68:14: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&lookup_path, "r")’
LVM2.2.03.38/lib/device/online.c:384:5: enter_function: entry to ‘get_pvs_lookup’
LVM2.2.03.38/lib/device/online.c:396:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:20: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:399:20: acquire_memory: allocated here
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:402:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/online.c:403:17: branch_true: ...to here
LVM2.2.03.38/lib/device/online.c:404:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:407:17: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:414:22: call_function: calling ‘online_pvid_file_read’ from ‘get_pvs_lookup’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def268]
LVM2.2.03.38/lib/device/online.c:70:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&lookup_path, "r")’
LVM2.2.03.38/lib/device/online.c:384:5: enter_function: entry to ‘get_pvs_lookup’
LVM2.2.03.38/lib/device/online.c:396:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:20: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:399:20: acquire_resource: opened here
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:402:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/online.c:403:17: branch_true: ...to here
LVM2.2.03.38/lib/device/online.c:404:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:407:17: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:414:22: call_function: calling ‘online_pvid_file_read’ from ‘get_pvs_lookup’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def269]
LVM2.2.03.38/lib/device/online.c:70:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&lookup_path, "r")’
LVM2.2.03.38/lib/device/online.c:384:5: enter_function: entry to ‘get_pvs_lookup’
LVM2.2.03.38/lib/device/online.c:396:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:20: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:399:20: acquire_memory: allocated here
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:402:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/online.c:403:17: branch_true: ...to here
LVM2.2.03.38/lib/device/online.c:404:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:407:17: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:414:22: call_function: calling ‘online_pvid_file_read’ from ‘get_pvs_lookup’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def270]
LVM2.2.03.38/lib/device/online.c:75:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 0)’
LVM2.2.03.38/lib/device/online.c:68:14: acquire_resource: opened here
LVM2.2.03.38/lib/device/online.c:69:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:74:14: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:75:13: danger: ‘open(path, 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def271]
LVM2.2.03.38/lib/device/online.c:75:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&lookup_path, "r")’
LVM2.2.03.38/lib/device/online.c:384:5: enter_function: entry to ‘get_pvs_lookup’
LVM2.2.03.38/lib/device/online.c:396:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:20: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:399:20: acquire_resource: opened here
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:402:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/online.c:403:17: branch_true: ...to here
LVM2.2.03.38/lib/device/online.c:404:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:407:17: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:414:22: call_function: calling ‘online_pvid_file_read’ from ‘get_pvs_lookup’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def272]
LVM2.2.03.38/lib/device/online.c:75:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&lookup_path, "r")’
LVM2.2.03.38/lib/device/online.c:384:5: enter_function: entry to ‘get_pvs_lookup’
LVM2.2.03.38/lib/device/online.c:396:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:20: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:399:20: acquire_memory: allocated here
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:402:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/online.c:403:17: branch_true: ...to here
LVM2.2.03.38/lib/device/online.c:404:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:407:17: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:414:22: call_function: calling ‘online_pvid_file_read’ from ‘get_pvs_lookup’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def273]
LVM2.2.03.38/lib/device/online.c:76:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&lookup_path, "r")’
LVM2.2.03.38/lib/device/online.c:384:5: enter_function: entry to ‘get_pvs_lookup’
LVM2.2.03.38/lib/device/online.c:396:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:20: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:399:20: acquire_resource: opened here
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:402:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/online.c:403:17: branch_true: ...to here
LVM2.2.03.38/lib/device/online.c:404:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:407:17: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:414:22: call_function: calling ‘online_pvid_file_read’ from ‘get_pvs_lookup’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def274]
LVM2.2.03.38/lib/device/online.c:76:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&lookup_path, "r")’
LVM2.2.03.38/lib/device/online.c:384:5: enter_function: entry to ‘get_pvs_lookup’
LVM2.2.03.38/lib/device/online.c:396:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:20: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:399:20: acquire_memory: allocated here
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:402:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/online.c:403:17: branch_true: ...to here
LVM2.2.03.38/lib/device/online.c:404:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:407:17: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:414:22: call_function: calling ‘online_pvid_file_read’ from ‘get_pvs_lookup’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def275]
LVM2.2.03.38/lib/device/online.c:78:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&lookup_path, "r")’
LVM2.2.03.38/lib/device/online.c:384:5: enter_function: entry to ‘get_pvs_lookup’
LVM2.2.03.38/lib/device/online.c:396:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:20: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:399:20: acquire_resource: opened here
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:402:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/online.c:403:17: branch_true: ...to here
LVM2.2.03.38/lib/device/online.c:404:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:407:17: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:414:22: call_function: calling ‘online_pvid_file_read’ from ‘get_pvs_lookup’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def276]
LVM2.2.03.38/lib/device/online.c:78:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&lookup_path, "r")’
LVM2.2.03.38/lib/device/online.c:384:5: enter_function: entry to ‘get_pvs_lookup’
LVM2.2.03.38/lib/device/online.c:396:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:20: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:399:20: acquire_memory: allocated here
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:402:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/online.c:403:17: branch_true: ...to here
LVM2.2.03.38/lib/device/online.c:404:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:407:17: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:414:22: call_function: calling ‘online_pvid_file_read’ from ‘get_pvs_lookup’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def277]
LVM2.2.03.38/lib/device/online.c:84:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&lookup_path, "r")’
LVM2.2.03.38/lib/device/online.c:384:5: enter_function: entry to ‘get_pvs_lookup’
LVM2.2.03.38/lib/device/online.c:396:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:20: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:399:20: acquire_resource: opened here
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:402:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/online.c:403:17: branch_true: ...to here
LVM2.2.03.38/lib/device/online.c:404:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:407:17: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:414:22: call_function: calling ‘online_pvid_file_read’ from ‘get_pvs_lookup’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def278]
LVM2.2.03.38/lib/device/online.c:84:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&lookup_path, "r")’
LVM2.2.03.38/lib/device/online.c:384:5: enter_function: entry to ‘get_pvs_lookup’
LVM2.2.03.38/lib/device/online.c:396:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:20: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:399:20: acquire_memory: allocated here
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:402:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/online.c:403:17: branch_true: ...to here
LVM2.2.03.38/lib/device/online.c:404:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:407:17: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:414:22: call_function: calling ‘online_pvid_file_read’ from ‘get_pvs_lookup’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def279]
LVM2.2.03.38/lib/device/online.c:90:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&lookup_path, "r")’
LVM2.2.03.38/lib/device/online.c:384:5: enter_function: entry to ‘get_pvs_lookup’
LVM2.2.03.38/lib/device/online.c:396:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:20: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:399:20: acquire_resource: opened here
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:402:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/online.c:403:17: branch_true: ...to here
LVM2.2.03.38/lib/device/online.c:404:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:407:17: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:414:22: call_function: calling ‘online_pvid_file_read’ from ‘get_pvs_lookup’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def280]
LVM2.2.03.38/lib/device/online.c:90:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&lookup_path, "r")’
LVM2.2.03.38/lib/device/online.c:384:5: enter_function: entry to ‘get_pvs_lookup’
LVM2.2.03.38/lib/device/online.c:396:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:20: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:399:20: acquire_memory: allocated here
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:402:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/online.c:403:17: branch_true: ...to here
LVM2.2.03.38/lib/device/online.c:404:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:407:17: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:414:22: call_function: calling ‘online_pvid_file_read’ from ‘get_pvs_lookup’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def281]
LVM2.2.03.38/lib/device/online.c:96:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&lookup_path, "r")’
LVM2.2.03.38/lib/device/online.c:384:5: enter_function: entry to ‘get_pvs_lookup’
LVM2.2.03.38/lib/device/online.c:396:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:20: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:399:20: acquire_resource: opened here
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:402:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/online.c:403:17: branch_true: ...to here
LVM2.2.03.38/lib/device/online.c:404:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:407:17: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:414:22: call_function: calling ‘online_pvid_file_read’ from ‘get_pvs_lookup’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def282]
LVM2.2.03.38/lib/device/online.c:96:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&lookup_path, "r")’
LVM2.2.03.38/lib/device/online.c:384:5: enter_function: entry to ‘get_pvs_lookup’
LVM2.2.03.38/lib/device/online.c:396:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:20: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:399:20: acquire_memory: allocated here
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:402:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/online.c:403:17: branch_true: ...to here
LVM2.2.03.38/lib/device/online.c:404:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:407:17: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:414:22: call_function: calling ‘online_pvid_file_read’ from ‘get_pvs_lookup’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def283]
LVM2.2.03.38/lib/device/online.c:136:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&lookup_path, "r")’
LVM2.2.03.38/lib/device/online.c:384:5: enter_function: entry to ‘get_pvs_lookup’
LVM2.2.03.38/lib/device/online.c:396:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:20: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:399:20: acquire_resource: opened here
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:402:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/online.c:403:17: branch_true: ...to here
LVM2.2.03.38/lib/device/online.c:404:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/online.c:405:25: branch_true: ...to here
LVM2.2.03.38/lib/device/online.c:452:9: call_function: calling ‘free_po_list’ from ‘get_pvs_lookup’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def284]
LVM2.2.03.38/lib/device/online.c:136:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&lookup_path, "r")’
LVM2.2.03.38/lib/device/online.c:384:5: enter_function: entry to ‘get_pvs_lookup’
LVM2.2.03.38/lib/device/online.c:396:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:20: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:399:20: acquire_memory: allocated here
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:402:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/online.c:403:17: branch_true: ...to here
LVM2.2.03.38/lib/device/online.c:404:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/online.c:405:25: branch_true: ...to here
LVM2.2.03.38/lib/device/online.c:452:9: call_function: calling ‘free_po_list’ from ‘get_pvs_lookup’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def285]
LVM2.2.03.38/lib/device/online.c:157:22: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/run/lvm/pvs_online")’
LVM2.2.03.38/lib/device/online.c:154:21: acquire_memory: allocated here
LVM2.2.03.38/lib/device/online.c:154:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:154:12: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:157:22: throw: if ‘readdir’ throws an exception...
LVM2.2.03.38/lib/device/online.c:157:22: danger: ‘opendir("/run/lvm/pvs_online")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def286]
LVM2.2.03.38/lib/device/online.c:405:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&lookup_path, "r")’
LVM2.2.03.38/lib/device/online.c:396:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:20: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:399:20: acquire_resource: opened here
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:402:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/online.c:403:17: branch_true: ...to here
LVM2.2.03.38/lib/device/online.c:404:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/online.c:405:25: branch_true: ...to here
LVM2.2.03.38/lib/device/online.c:405:25: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/device/online.c:405:25: danger: ‘fopen(&lookup_path, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def287]
LVM2.2.03.38/lib/device/online.c:405:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&lookup_path, "r")’
LVM2.2.03.38/lib/device/online.c:396:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:20: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:399:20: acquire_memory: allocated here
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:402:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/online.c:403:17: branch_true: ...to here
LVM2.2.03.38/lib/device/online.c:404:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/device/online.c:405:25: branch_true: ...to here
LVM2.2.03.38/lib/device/online.c:405:25: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/device/online.c:405:25: danger: ‘fopen(&lookup_path, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def288]
LVM2.2.03.38/lib/device/online.c:444:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&lookup_path, "r")’
LVM2.2.03.38/lib/device/online.c:396:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:20: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:399:20: acquire_resource: opened here
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:402:16: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:444:9: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:444:9: throw: if ‘dm_list_size’ throws an exception...
LVM2.2.03.38/lib/device/online.c:444:9: danger: ‘fopen(&lookup_path, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def289]
LVM2.2.03.38/lib/device/online.c:444:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&lookup_path, "r")’
LVM2.2.03.38/lib/device/online.c:396:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:20: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:399:20: acquire_memory: allocated here
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:399:12: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:402:16: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/online.c:444:9: branch_false: ...to here
LVM2.2.03.38/lib/device/online.c:444:9: throw: if ‘dm_list_size’ throws an exception...
LVM2.2.03.38/lib/device/online.c:444:9: danger: ‘fopen(&lookup_path, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def290]
LVM2.2.03.38/lib/device/persist.c:197:22: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/var/lib/lvm")’
LVM2.2.03.38/lib/device/persist.c:2094:5: enter_function: entry to ‘persist_vgcreate_begin’
LVM2.2.03.38/lib/device/persist.c:2106:9: call_function: calling ‘persist_key_file_remove_name’ from ‘persist_vgcreate_begin’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def291]
LVM2.2.03.38/lib/device/persist.c:280:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&path, "r")’
LVM2.2.03.38/lib/device/persist.c:1094:12: enter_function: entry to ‘get_our_key_sanlock_start’
LVM2.2.03.38/lib/device/persist.c:1108:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/persist.c:1114:14: branch_false: ...to here
LVM2.2.03.38/lib/device/persist.c:1114:14: call_function: calling ‘read_key_file’ from ‘get_our_key_sanlock_start’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def292]
LVM2.2.03.38/lib/device/persist.c:280:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&path, "r")’
LVM2.2.03.38/lib/device/persist.c:1094:12: enter_function: entry to ‘get_our_key_sanlock_start’
LVM2.2.03.38/lib/device/persist.c:1108:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/device/persist.c:1114:14: branch_false: ...to here
LVM2.2.03.38/lib/device/persist.c:1114:14: call_function: calling ‘read_key_file’ from ‘get_our_key_sanlock_start’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def293]
LVM2.2.03.38/lib/device/persist.c:617:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(dev_name(dev), 0)’
LVM2.2.03.38/lib/device/persist.c:973:5: enter_function: entry to ‘persist_is_started’
LVM2.2.03.38/lib/device/persist.c:975:16: call_function: calling ‘_is_started’ from ‘persist_is_started’
Error: COMPILER_WARNING: [#def294]
LVM2.2.03.38/lib/device/persist.c: scope_hint: In function ‘persist_start_extend’
LVM2.2.03.38/lib/device/persist.c:2323:13: warning[-Wunused-but-set-variable=]: variable ‘y’ set but not used
Error: GCC_ANALYZER_WARNING (CWE-401): [#def295]
LVM2.2.03.38/lib/error/errseg.c:105:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 72)’
LVM2.2.03.38/lib/error/errseg.c:94:22: enter_function: entry to ‘init_error_segtype’
LVM2.2.03.38/lib/error/errseg.c:96:40: call_function: inlined call to ‘zalloc’ from ‘init_error_segtype’
LVM2.2.03.38/lib/error/errseg.c:98:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/error/errseg.c:101:9: branch_false: ...to here
LVM2.2.03.38/lib/error/errseg.c:105:9: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/error/errseg.c:105:9: danger: ‘calloc(1, 72)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def296]
LVM2.2.03.38/lib/filters/filter-composite.c:87:17: warning[-Wanalyzer-malloc-leak]: leak of ‘filters_copy’
LVM2.2.03.38/lib/filters/filter-composite.c:75:12: branch_false: following ‘false’ branch (when ‘filters’ is non-NULL)...
LVM2.2.03.38/lib/filters/filter-composite.c:78:56: branch_false: ...to here
LVM2.2.03.38/lib/filters/filter-composite.c:78:30: acquire_memory: allocated here
LVM2.2.03.38/lib/filters/filter-composite.c:78:12: branch_false: following ‘false’ branch (when ‘filters_copy’ is non-NULL)...
LVM2.2.03.38/lib/filters/filter-composite.c:83:9: branch_false: ...to here
LVM2.2.03.38/lib/filters/filter-composite.c:86:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/filters/filter-composite.c:87:17: branch_true: ...to here
LVM2.2.03.38/lib/filters/filter-composite.c:87:17: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/filters/filter-composite.c:87:17: danger: ‘filters_copy’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def297]
LVM2.2.03.38/lib/filters/filter-composite.c:99:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 48)’
LVM2.2.03.38/lib/filters/filter-composite.c:71:20: enter_function: entry to ‘composite_filter_create’
LVM2.2.03.38/lib/filters/filter-composite.c:75:12: branch_false: following ‘false’ branch (when ‘filters’ is non-NULL)...
LVM2.2.03.38/lib/filters/filter-composite.c:78:56: branch_false: ...to here
LVM2.2.03.38/lib/filters/filter-composite.c:78:12: branch_false: following ‘false’ branch (when ‘filters_copy’ is non-NULL)...
LVM2.2.03.38/lib/filters/filter-composite.c:83:9: branch_false: ...to here
LVM2.2.03.38/lib/filters/filter-composite.c:86:21: call_function: inlined call to ‘zalloc’ from ‘composite_filter_create’
LVM2.2.03.38/lib/filters/filter-composite.c:86:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/filters/filter-composite.c:92:9: branch_false: ...to here
LVM2.2.03.38/lib/filters/filter-composite.c:99:9: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/filters/filter-composite.c:99:9: danger: ‘calloc(1, 48)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def298]
LVM2.2.03.38/lib/filters/filter-composite.c:99:9: warning[-Wanalyzer-malloc-leak]: leak of ‘filters_copy’
LVM2.2.03.38/lib/filters/filter-composite.c:75:12: branch_false: following ‘false’ branch (when ‘filters’ is non-NULL)...
LVM2.2.03.38/lib/filters/filter-composite.c:78:56: branch_false: ...to here
LVM2.2.03.38/lib/filters/filter-composite.c:78:30: acquire_memory: allocated here
LVM2.2.03.38/lib/filters/filter-composite.c:78:12: branch_false: following ‘false’ branch (when ‘filters_copy’ is non-NULL)...
LVM2.2.03.38/lib/filters/filter-composite.c:83:9: branch_false: ...to here
LVM2.2.03.38/lib/filters/filter-composite.c:86:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/filters/filter-composite.c:92:9: branch_false: ...to here
LVM2.2.03.38/lib/filters/filter-composite.c:99:9: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/filters/filter-composite.c:99:9: danger: ‘filters_copy’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def299]
LVM2.2.03.38/lib/filters/filter-deviceid.c:66:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 48)’
LVM2.2.03.38/lib/filters/filter-deviceid.c:52:20: enter_function: entry to ‘deviceid_filter_create’
LVM2.2.03.38/lib/filters/filter-deviceid.c:56:19: call_function: inlined call to ‘zalloc’ from ‘deviceid_filter_create’
LVM2.2.03.38/lib/filters/filter-deviceid.c:56:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/filters/filter-deviceid.c:61:9: branch_false: ...to here
LVM2.2.03.38/lib/filters/filter-deviceid.c:66:9: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/filters/filter-deviceid.c:66:9: danger: ‘calloc(1, 48)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def300]
LVM2.2.03.38/lib/filters/filter-fwraid.c:126:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 48)’
LVM2.2.03.38/lib/filters/filter-fwraid.c:111:20: enter_function: entry to ‘fwraid_filter_create’
LVM2.2.03.38/lib/filters/filter-fwraid.c:115:19: call_function: inlined call to ‘zalloc’ from ‘fwraid_filter_create’
LVM2.2.03.38/lib/filters/filter-fwraid.c:115:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/filters/filter-fwraid.c:120:9: branch_false: ...to here
LVM2.2.03.38/lib/filters/filter-fwraid.c:126:9: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/filters/filter-fwraid.c:126:9: danger: ‘calloc(1, 48)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def301]
LVM2.2.03.38/lib/filters/filter-md.c:149:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 48)’
LVM2.2.03.38/lib/filters/filter-md.c:134:20: enter_function: entry to ‘md_filter_create’
LVM2.2.03.38/lib/filters/filter-md.c:138:19: call_function: inlined call to ‘zalloc’ from ‘md_filter_create’
LVM2.2.03.38/lib/filters/filter-md.c:138:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/filters/filter-md.c:143:9: branch_false: ...to here
LVM2.2.03.38/lib/filters/filter-md.c:149:9: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/filters/filter-md.c:149:9: danger: ‘calloc(1, 48)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def302]
LVM2.2.03.38/lib/filters/filter-mpath.c:87:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 48)’
LVM2.2.03.38/lib/filters/filter-mpath.c:67:20: enter_function: entry to ‘mpath_filter_create’
LVM2.2.03.38/lib/filters/filter-mpath.c:72:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/filters/filter-mpath.c:77:19: call_function: inlined call to ‘zalloc’ from ‘mpath_filter_create’
LVM2.2.03.38/lib/filters/filter-mpath.c:77:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/filters/filter-mpath.c:82:9: branch_false: ...to here
LVM2.2.03.38/lib/filters/filter-mpath.c:87:9: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/filters/filter-mpath.c:87:9: danger: ‘calloc(1, 48)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def303]
LVM2.2.03.38/lib/filters/filter-partitioned.c:68:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 48)’
LVM2.2.03.38/lib/filters/filter-partitioned.c:54:20: enter_function: entry to ‘partitioned_filter_create’
LVM2.2.03.38/lib/filters/filter-partitioned.c:58:19: call_function: inlined call to ‘zalloc’ from ‘partitioned_filter_create’
LVM2.2.03.38/lib/filters/filter-partitioned.c:58:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/filters/filter-partitioned.c:63:9: branch_false: ...to here
LVM2.2.03.38/lib/filters/filter-partitioned.c:68:9: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/filters/filter-partitioned.c:68:9: danger: ‘calloc(1, 48)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def304]
LVM2.2.03.38/lib/filters/filter-persistent.c:58:13: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 24)’
LVM2.2.03.38/lib/filters/filter-persistent.c:157:20: enter_function: entry to ‘persistent_filter_create’
LVM2.2.03.38/lib/filters/filter-persistent.c:162:20: call_function: inlined call to ‘zalloc’ from ‘persistent_filter_create’
LVM2.2.03.38/lib/filters/filter-persistent.c:162:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/filters/filter-persistent.c:167:9: branch_false: ...to here
LVM2.2.03.38/lib/filters/filter-persistent.c:171:14: call_function: calling ‘_init_hash’ from ‘persistent_filter_create’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def305]
LVM2.2.03.38/lib/filters/filter-persistent.c:188:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
LVM2.2.03.38/lib/filters/filter-persistent.c:157:20: enter_function: entry to ‘persistent_filter_create’
LVM2.2.03.38/lib/filters/filter-persistent.c:162:20: call_function: inlined call to ‘zalloc’ from ‘persistent_filter_create’
LVM2.2.03.38/lib/filters/filter-persistent.c:162:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/filters/filter-persistent.c:167:9: branch_false: ...to here
LVM2.2.03.38/lib/filters/filter-persistent.c:171:14: call_function: calling ‘_init_hash’ from ‘persistent_filter_create’
LVM2.2.03.38/lib/filters/filter-persistent.c:171:14: return_function: returning to ‘persistent_filter_create’ from ‘_init_hash’
LVM2.2.03.38/lib/filters/filter-persistent.c:171:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/filters/filter-persistent.c:176:19: call_function: inlined call to ‘zalloc’ from ‘persistent_filter_create’
LVM2.2.03.38/lib/filters/filter-persistent.c:176:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/filters/filter-persistent.c:181:9: branch_false: ...to here
LVM2.2.03.38/lib/filters/filter-persistent.c:188:9: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/filters/filter-persistent.c:188:9: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def306]
LVM2.2.03.38/lib/filters/filter-persistent.c:188:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 48)’
LVM2.2.03.38/lib/filters/filter-persistent.c:157:20: enter_function: entry to ‘persistent_filter_create’
LVM2.2.03.38/lib/filters/filter-persistent.c:162:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/filters/filter-persistent.c:167:9: branch_false: ...to here
LVM2.2.03.38/lib/filters/filter-persistent.c:171:14: call_function: calling ‘_init_hash’ from ‘persistent_filter_create’
LVM2.2.03.38/lib/filters/filter-persistent.c:171:14: return_function: returning to ‘persistent_filter_create’ from ‘_init_hash’
LVM2.2.03.38/lib/filters/filter-persistent.c:171:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/filters/filter-persistent.c:176:19: call_function: inlined call to ‘zalloc’ from ‘persistent_filter_create’
LVM2.2.03.38/lib/filters/filter-persistent.c:176:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/filters/filter-persistent.c:181:9: branch_false: ...to here
LVM2.2.03.38/lib/filters/filter-persistent.c:188:9: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/filters/filter-persistent.c:188:9: danger: ‘calloc(1, 48)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def307]
LVM2.2.03.38/lib/filters/filter-signature.c:88:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 48)’
LVM2.2.03.38/lib/filters/filter-signature.c:73:20: enter_function: entry to ‘signature_filter_create’
LVM2.2.03.38/lib/filters/filter-signature.c:77:19: call_function: inlined call to ‘zalloc’ from ‘signature_filter_create’
LVM2.2.03.38/lib/filters/filter-signature.c:77:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/filters/filter-signature.c:82:9: branch_false: ...to here
LVM2.2.03.38/lib/filters/filter-signature.c:88:9: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/filters/filter-signature.c:88:9: danger: ‘calloc(1, 48)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def308]
LVM2.2.03.38/lib/filters/filter-sysfs.c:96:16: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, strlen(sysfs_dir) + 49)’
LVM2.2.03.38/lib/filters/filter-sysfs.c:73:20: enter_function: entry to ‘sysfs_filter_create’
LVM2.2.03.38/lib/filters/filter-sysfs.c:78:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/filters/filter-sysfs.c:84:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/filters/filter-sysfs.c:87:15: branch_false: ...to here
LVM2.2.03.38/lib/filters/filter-sysfs.c:88:19: call_function: inlined call to ‘zalloc’ from ‘sysfs_filter_create’
LVM2.2.03.38/lib/filters/filter-sysfs.c:88:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/filters/filter-sysfs.c:91:9: branch_false: ...to here
LVM2.2.03.38/lib/filters/filter-sysfs.c:99:9: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/filters/filter-sysfs.c:96:16: danger: ‘calloc(1, strlen(sysfs_dir) + 49)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def309]
LVM2.2.03.38/lib/filters/filter-type.c:61:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 48)’
LVM2.2.03.38/lib/filters/filter-type.c:46:20: enter_function: entry to ‘lvm_type_filter_create’
LVM2.2.03.38/lib/filters/filter-type.c:50:19: call_function: inlined call to ‘zalloc’ from ‘lvm_type_filter_create’
LVM2.2.03.38/lib/filters/filter-type.c:50:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/filters/filter-type.c:55:9: branch_false: ...to here
LVM2.2.03.38/lib/filters/filter-type.c:61:9: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/filters/filter-type.c:61:9: danger: ‘calloc(1, 48)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def310]
LVM2.2.03.38/lib/filters/filter-usable.c:99:17: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 48)’
LVM2.2.03.38/lib/filters/filter-usable.c:83:20: enter_function: entry to ‘usable_filter_create’
LVM2.2.03.38/lib/filters/filter-usable.c:88:19: call_function: inlined call to ‘zalloc’ from ‘usable_filter_create’
LVM2.2.03.38/lib/filters/filter-usable.c:88:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/filters/filter-usable.c:93:9: branch_false: ...to here
LVM2.2.03.38/lib/filters/filter-usable.c:98:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/filters/filter-usable.c:99:17: branch_true: ...to here
LVM2.2.03.38/lib/filters/filter-usable.c:99:17: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/filters/filter-usable.c:99:17: danger: ‘calloc(1, 48)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def311]
LVM2.2.03.38/lib/filters/filter-usable.c:106:33: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 4)’
LVM2.2.03.38/lib/filters/filter-usable.c:83:20: enter_function: entry to ‘usable_filter_create’
LVM2.2.03.38/lib/filters/filter-usable.c:88:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/filters/filter-usable.c:93:9: branch_false: ...to here
LVM2.2.03.38/lib/filters/filter-usable.c:98:22: call_function: inlined call to ‘zalloc’ from ‘usable_filter_create’
LVM2.2.03.38/lib/filters/filter-usable.c:98:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/filters/filter-usable.c:104:9: branch_false: ...to here
LVM2.2.03.38/lib/filters/filter-usable.c:106:33: throw: if ‘ignore_suspended_devices’ throws an exception...
LVM2.2.03.38/lib/filters/filter-usable.c:106:33: danger: ‘calloc(1, 4)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def312]
LVM2.2.03.38/lib/filters/filter-usable.c:106:33: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 48)’
LVM2.2.03.38/lib/filters/filter-usable.c:83:20: enter_function: entry to ‘usable_filter_create’
LVM2.2.03.38/lib/filters/filter-usable.c:88:19: call_function: inlined call to ‘zalloc’ from ‘usable_filter_create’
LVM2.2.03.38/lib/filters/filter-usable.c:88:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/filters/filter-usable.c:93:9: branch_false: ...to here
LVM2.2.03.38/lib/filters/filter-usable.c:98:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/filters/filter-usable.c:104:9: branch_false: ...to here
LVM2.2.03.38/lib/filters/filter-usable.c:106:33: throw: if ‘ignore_suspended_devices’ throws an exception...
LVM2.2.03.38/lib/filters/filter-usable.c:106:33: danger: ‘calloc(1, 48)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def313]
LVM2.2.03.38/lib/filters/filter-usable.c:113:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
LVM2.2.03.38/lib/filters/filter-usable.c:83:20: enter_function: entry to ‘usable_filter_create’
LVM2.2.03.38/lib/filters/filter-usable.c:88:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/filters/filter-usable.c:93:9: branch_false: ...to here
LVM2.2.03.38/lib/filters/filter-usable.c:98:22: call_function: inlined call to ‘zalloc’ from ‘usable_filter_create’
LVM2.2.03.38/lib/filters/filter-usable.c:98:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/filters/filter-usable.c:104:9: branch_false: ...to here
LVM2.2.03.38/lib/filters/filter-usable.c:113:9: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/filters/filter-usable.c:113:9: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def314]
LVM2.2.03.38/lib/format_text/archive.c:256:14: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
LVM2.2.03.38/lib/format_text/archive.c:243:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/format_text/archive.c:249:20: branch_false: ...to here
LVM2.2.03.38/lib/format_text/archive.c:249:20: acquire_memory: allocated here
LVM2.2.03.38/lib/format_text/archive.c:249:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
LVM2.2.03.38/lib/format_text/archive.c:256:14: branch_false: ...to here
LVM2.2.03.38/lib/format_text/archive.c:256:14: throw: if ‘text_vg_export_file’ throws an exception...
LVM2.2.03.38/lib/format_text/archive.c:256:14: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def315]
LVM2.2.03.38/lib/format_text/export.c:310:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
LVM2.2.03.38/lib/format_text/export.c:693:12: enter_function: entry to ‘_print_timestamp’
LVM2.2.03.38/lib/format_text/export.c:699:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/format_text/export.c:700:21: branch_true: ...to here
LVM2.2.03.38/lib/format_text/export.c:710:17: call_function: calling ‘out_text_with_comment’ from ‘_print_timestamp’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def316]
LVM2.2.03.38/lib/format_text/export.c:323:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
LVM2.2.03.38/lib/format_text/export.c:930:12: enter_function: entry to ‘_print_historical_lvs’
LVM2.2.03.38/lib/format_text/export.c:934:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/format_text/export.c:937:9: branch_false: ...to here
LVM2.2.03.38/lib/format_text/export.c:937:9: call_function: calling ‘out_text’ from ‘_print_historical_lvs’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def317]
LVM2.2.03.38/lib/format_text/export.c:400:22: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
LVM2.2.03.38/lib/format_text/export.c:412:12: enter_function: entry to ‘_out_list’
LVM2.2.03.38/lib/format_text/export.c:418:32: call_function: calling ‘_alloc_printed_str_list’ from ‘_out_list’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def318]
LVM2.2.03.38/lib/format_text/export.c:962:27: warning[-Wanalyzer-malloc-leak]: leak of ‘f.data.fp’
LVM2.2.03.38/lib/format_text/export.c:1047:8: enter_function: entry to ‘text_vg_export_raw’
LVM2.2.03.38/lib/format_text/export.c:1060:34: call_function: inlined call to ‘zalloc’ from ‘text_vg_export_raw’
LVM2.2.03.38/lib/format_text/export.c:1060:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/format_text/export.c:1065:14: branch_false: ...to here
LVM2.2.03.38/lib/format_text/export.c:1065:14: call_function: calling ‘_text_vg_export’ from ‘text_vg_export_raw’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def319]
LVM2.2.03.38/lib/format_text/export.c:963:17: warning[-Wanalyzer-malloc-leak]: leak of ‘f.data.fp’
LVM2.2.03.38/lib/format_text/export.c:1047:8: enter_function: entry to ‘text_vg_export_raw’
LVM2.2.03.38/lib/format_text/export.c:1060:34: call_function: inlined call to ‘zalloc’ from ‘text_vg_export_raw’
LVM2.2.03.38/lib/format_text/export.c:1060:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/format_text/export.c:1065:14: branch_false: ...to here
LVM2.2.03.38/lib/format_text/export.c:1065:14: call_function: calling ‘_text_vg_export’ from ‘text_vg_export_raw’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def320]
LVM2.2.03.38/lib/format_text/export.c:969:22: warning[-Wanalyzer-malloc-leak]: leak of ‘f.data.fp’
LVM2.2.03.38/lib/format_text/export.c:1047:8: enter_function: entry to ‘text_vg_export_raw’
LVM2.2.03.38/lib/format_text/export.c:1060:34: call_function: inlined call to ‘zalloc’ from ‘text_vg_export_raw’
LVM2.2.03.38/lib/format_text/export.c:1060:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/format_text/export.c:1065:14: branch_false: ...to here
LVM2.2.03.38/lib/format_text/export.c:1065:14: call_function: calling ‘_text_vg_export’ from ‘text_vg_export_raw’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def321]
LVM2.2.03.38/lib/format_text/export.c:970:25: warning[-Wanalyzer-malloc-leak]: leak of ‘f.data.fp’
LVM2.2.03.38/lib/format_text/export.c:1047:8: enter_function: entry to ‘text_vg_export_raw’
LVM2.2.03.38/lib/format_text/export.c:1060:34: call_function: inlined call to ‘zalloc’ from ‘text_vg_export_raw’
LVM2.2.03.38/lib/format_text/export.c:1060:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/format_text/export.c:1065:14: branch_false: ...to here
LVM2.2.03.38/lib/format_text/export.c:1065:14: call_function: calling ‘_text_vg_export’ from ‘text_vg_export_raw’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def322]
LVM2.2.03.38/lib/format_text/export.c:983:17: warning[-Wanalyzer-malloc-leak]: leak of ‘f.data.fp’
LVM2.2.03.38/lib/format_text/export.c:1047:8: enter_function: entry to ‘text_vg_export_raw’
LVM2.2.03.38/lib/format_text/export.c:1060:34: call_function: inlined call to ‘zalloc’ from ‘text_vg_export_raw’
LVM2.2.03.38/lib/format_text/export.c:1060:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/format_text/export.c:1065:14: branch_false: ...to here
LVM2.2.03.38/lib/format_text/export.c:1065:14: call_function: calling ‘_text_vg_export’ from ‘text_vg_export_raw’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def323]
LVM2.2.03.38/lib/format_text/format-text.c:1328:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
LVM2.2.03.38/lib/format_text/format-text.c:1315:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/format_text/format-text.c:1321:20: branch_false: ...to here
LVM2.2.03.38/lib/format_text/format-text.c:1321:20: acquire_memory: allocated here
LVM2.2.03.38/lib/format_text/format-text.c:1321:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
LVM2.2.03.38/lib/format_text/format-text.c:1328:9: branch_false: ...to here
LVM2.2.03.38/lib/format_text/format-text.c:1328:9: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/format_text/format-text.c:1328:9: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def324]
LVM2.2.03.38/lib/format_text/format-text.c:1330:14: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
LVM2.2.03.38/lib/format_text/format-text.c:1315:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/format_text/format-text.c:1321:20: branch_false: ...to here
LVM2.2.03.38/lib/format_text/format-text.c:1321:20: acquire_memory: allocated here
LVM2.2.03.38/lib/format_text/format-text.c:1321:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
LVM2.2.03.38/lib/format_text/format-text.c:1328:9: branch_false: ...to here
LVM2.2.03.38/lib/format_text/format-text.c:1330:14: throw: if ‘text_vg_export_file’ throws an exception...
LVM2.2.03.38/lib/format_text/format-text.c:1330:14: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def325]
LVM2.2.03.38/lib/format_text/format-text.c:2608:17: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 120)’
LVM2.2.03.38/lib/format_text/format-text.c:2592:21: enter_function: entry to ‘create_text_format’
LVM2.2.03.38/lib/format_text/format-text.c:2599:21: call_function: inlined call to ‘zalloc’ from ‘create_text_format’
LVM2.2.03.38/lib/format_text/format-text.c:2599:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/format_text/format-text.c:2604:9: branch_false: ...to here
LVM2.2.03.38/lib/format_text/format-text.c:2614:12: branch_true: following ‘true’ branch (when ‘mda_lists’ is NULL)...
LVM2.2.03.38/lib/format_text/format-text.c:2615:17: branch_true: ...to here
LVM2.2.03.38/lib/format_text/format-text.c:2615:17: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/format_text/format-text.c:2608:17: danger: ‘calloc(1, 120)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def326]
LVM2.2.03.38/lib/format_text/format-text.c:2624:31: warning[-Wanalyzer-malloc-leak]: leak of ‘mda_lists’
LVM2.2.03.38/lib/format_text/format-text.c:2599:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/format_text/format-text.c:2604:9: branch_false: ...to here
LVM2.2.03.38/lib/format_text/format-text.c:2614:27: acquire_memory: allocated here
LVM2.2.03.38/lib/format_text/format-text.c:2614:12: branch_false: following ‘false’ branch (when ‘mda_lists’ is non-NULL)...
LVM2.2.03.38/lib/format_text/format-text.c:2620:9: branch_false: ...to here
LVM2.2.03.38/lib/format_text/format-text.c:2624:31: throw: if ‘text_labeller_create’ throws an exception...
LVM2.2.03.38/lib/format_text/format-text.c:2624:31: danger: ‘mda_lists’ leaks here; was allocated at [(4)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def327]
LVM2.2.03.38/lib/format_text/text_label.c:216:9: warning[-Wanalyzer-malloc-leak]: leak of ‘dal’
LVM2.2.03.38/lib/format_text/text_label.c:201:12: branch_true: following ‘true’ branch (when ‘mem’ is NULL)...
LVM2.2.03.38/lib/format_text/text_label.c:202:29: branch_true: ...to here
LVM2.2.03.38/lib/format_text/text_label.c:202:29: acquire_memory: allocated here
LVM2.2.03.38/lib/format_text/text_label.c:202:20: branch_false: following ‘false’ branch (when ‘dal’ is non-NULL)...
LVM2.2.03.38/lib/format_text/text_label.c:213:9: branch_false: ...to here
LVM2.2.03.38/lib/format_text/text_label.c:216:9: throw: if ‘dm_list_add’ throws an exception...
LVM2.2.03.38/lib/format_text/text_label.c:216:9: danger: ‘dal’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def328]
LVM2.2.03.38/lib/format_text/text_label.c:259:25: warning[-Wanalyzer-malloc-leak]: leak of ‘mdal’
LVM2.2.03.38/lib/format_text/text_label.c:252:12: branch_true: following ‘true’ branch (when ‘mem’ is NULL)...
LVM2.2.03.38/lib/format_text/text_label.c:253:30: branch_true: ...to here
LVM2.2.03.38/lib/format_text/text_label.c:253:30: acquire_memory: allocated here
LVM2.2.03.38/lib/format_text/text_label.c:253:20: branch_false: following ‘false’ branch (when ‘mdal’ is non-NULL)...
LVM2.2.03.38/lib/format_text/text_label.c:258:30: branch_false: ...to here
LVM2.2.03.38/lib/format_text/text_label.c:258:20: branch_true: following ‘true’ branch (when ‘mdac’ is NULL)...
LVM2.2.03.38/lib/format_text/text_label.c:259:25: branch_true: ...to here
LVM2.2.03.38/lib/format_text/text_label.c:259:25: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/format_text/text_label.c:259:25: danger: ‘mdal’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def329]
LVM2.2.03.38/lib/format_text/text_label.c:294:9: warning[-Wanalyzer-malloc-leak]: leak of ‘mdac’
LVM2.2.03.38/lib/format_text/text_label.c:252:12: branch_true: following ‘true’ branch (when ‘mem’ is NULL)...
LVM2.2.03.38/lib/format_text/text_label.c:253:30: branch_true: ...to here
LVM2.2.03.38/lib/format_text/text_label.c:253:20: branch_false: following ‘false’ branch (when ‘mdal’ is non-NULL)...
LVM2.2.03.38/lib/format_text/text_label.c:258:30: branch_false: ...to here
LVM2.2.03.38/lib/format_text/text_label.c:258:30: acquire_memory: allocated here
LVM2.2.03.38/lib/format_text/text_label.c:258:20: branch_false: following ‘false’ branch (when ‘mdac’ is non-NULL)...
LVM2.2.03.38/lib/format_text/text_label.c:275:21: branch_false: ...to here
LVM2.2.03.38/lib/format_text/text_label.c:294:9: throw: if ‘mda_set_ignored’ throws an exception...
LVM2.2.03.38/lib/format_text/text_label.c:294:9: danger: ‘mdac’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def330]
LVM2.2.03.38/lib/format_text/text_label.c:294:9: warning[-Wanalyzer-malloc-leak]: leak of ‘mdal’
LVM2.2.03.38/lib/format_text/text_label.c:252:12: branch_true: following ‘true’ branch (when ‘mem’ is NULL)...
LVM2.2.03.38/lib/format_text/text_label.c:253:30: branch_true: ...to here
LVM2.2.03.38/lib/format_text/text_label.c:253:30: acquire_memory: allocated here
LVM2.2.03.38/lib/format_text/text_label.c:253:20: branch_false: following ‘false’ branch (when ‘mdal’ is non-NULL)...
LVM2.2.03.38/lib/format_text/text_label.c:258:30: branch_false: ...to here
LVM2.2.03.38/lib/format_text/text_label.c:258:20: branch_false: following ‘false’ branch (when ‘mdac’ is non-NULL)...
LVM2.2.03.38/lib/format_text/text_label.c:275:21: branch_false: ...to here
LVM2.2.03.38/lib/format_text/text_label.c:294:9: throw: if ‘mda_set_ignored’ throws an exception...
LVM2.2.03.38/lib/format_text/text_label.c:294:9: danger: ‘mdal’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def331]
LVM2.2.03.38/lib/freeseg/freeseg.c:40:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 72)’
LVM2.2.03.38/lib/freeseg/freeseg.c:29:22: enter_function: entry to ‘init_free_segtype’
LVM2.2.03.38/lib/freeseg/freeseg.c:31:40: call_function: inlined call to ‘zalloc’ from ‘init_free_segtype’
LVM2.2.03.38/lib/freeseg/freeseg.c:33:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/freeseg/freeseg.c:36:9: branch_false: ...to here
LVM2.2.03.38/lib/freeseg/freeseg.c:40:9: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/freeseg/freeseg.c:40:9: danger: ‘calloc(1, 72)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def332]
LVM2.2.03.38/lib/integrity/integrity.c:344:14: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 72)’
LVM2.2.03.38/lib/integrity/integrity.c:330:5: enter_function: entry to ‘init_integrity_segtypes’
LVM2.2.03.38/lib/integrity/integrity.c:333:40: call_function: inlined call to ‘zalloc’ from ‘init_integrity_segtypes’
LVM2.2.03.38/lib/integrity/integrity.c:335:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/integrity/integrity.c:340:9: branch_false: ...to here
LVM2.2.03.38/lib/integrity/integrity.c:344:14: throw: if ‘lvm_register_segtype’ throws an exception...
LVM2.2.03.38/lib/integrity/integrity.c:344:14: danger: ‘calloc(1, 72)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def333]
LVM2.2.03.38/lib/label/hints.c:299:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&_hints_file, "w")’
LVM2.2.03.38/lib/label/hints.c:1184:6: enter_function: entry to ‘clear_hint_file’
LVM2.2.03.38/lib/label/hints.c:1187:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/label/hints.c:1190:9: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:1207:14: call_function: calling ‘_clear_hints’ from ‘clear_hint_file’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def334]
LVM2.2.03.38/lib/label/hints.c:299:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&_hints_file, "w")’
LVM2.2.03.38/lib/label/hints.c:1184:6: enter_function: entry to ‘clear_hint_file’
LVM2.2.03.38/lib/label/hints.c:1187:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/label/hints.c:1190:9: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:1207:14: call_function: calling ‘_clear_hints’ from ‘clear_hint_file’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def335]
LVM2.2.03.38/lib/label/hints.c:716:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&_hints_file, "r")’
LVM2.2.03.38/lib/label/hints.c:713:20: acquire_resource: opened here
LVM2.2.03.38/lib/label/hints.c:713:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/label/hints.c:716:9: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:716:9: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/label/hints.c:716:9: danger: ‘fopen(&_hints_file, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def336]
LVM2.2.03.38/lib/label/hints.c:716:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&_hints_file, "r")’
LVM2.2.03.38/lib/label/hints.c:713:20: acquire_memory: allocated here
LVM2.2.03.38/lib/label/hints.c:713:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/label/hints.c:716:9: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:716:9: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/label/hints.c:716:9: danger: ‘fopen(&_hints_file, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def337]
LVM2.2.03.38/lib/label/hints.c:723:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&_hints_file, "r")’
LVM2.2.03.38/lib/label/hints.c:713:20: acquire_resource: opened here
LVM2.2.03.38/lib/label/hints.c:713:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/label/hints.c:716:9: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:718:21: branch_true: following ‘true’ branch (when ‘i != 4’)...
LVM2.2.03.38/lib/label/hints.c:719:17: branch_true: ...to here
LVM2.2.03.38/lib/label/hints.c:721:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/label/hints.c:722:17: branch_true: ...to here
LVM2.2.03.38/lib/label/hints.c:726:20: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
LVM2.2.03.38/lib/label/hints.c:740:22: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:740:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/label/hints.c:741:29: branch_true: ...to here
LVM2.2.03.38/lib/label/hints.c:741:28: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/label/hints.c:742:33: branch_true: ...to here
LVM2.2.03.38/lib/label/hints.c:742:33: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/label/hints.c:723:21: danger: ‘fopen(&_hints_file, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def338]
LVM2.2.03.38/lib/label/hints.c:723:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&_hints_file, "r")’
LVM2.2.03.38/lib/label/hints.c:713:20: acquire_memory: allocated here
LVM2.2.03.38/lib/label/hints.c:713:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/label/hints.c:716:9: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:718:21: branch_true: following ‘true’ branch (when ‘i != 4’)...
LVM2.2.03.38/lib/label/hints.c:719:17: branch_true: ...to here
LVM2.2.03.38/lib/label/hints.c:721:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/label/hints.c:722:17: branch_true: ...to here
LVM2.2.03.38/lib/label/hints.c:726:20: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
LVM2.2.03.38/lib/label/hints.c:740:22: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:740:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/label/hints.c:741:29: branch_true: ...to here
LVM2.2.03.38/lib/label/hints.c:741:28: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/label/hints.c:742:33: branch_true: ...to here
LVM2.2.03.38/lib/label/hints.c:742:33: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/label/hints.c:723:21: danger: ‘fopen(&_hints_file, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def339]
LVM2.2.03.38/lib/label/hints.c:859:17: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 4288)’
LVM2.2.03.38/lib/label/hints.c:691:12: enter_function: entry to ‘_read_hint_file’
LVM2.2.03.38/lib/label/hints.c:713:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/label/hints.c:716:9: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:718:21: branch_true: following ‘true’ branch (when ‘i != 4’)...
LVM2.2.03.38/lib/label/hints.c:719:17: branch_true: ...to here
LVM2.2.03.38/lib/label/hints.c:721:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/label/hints.c:722:17: branch_true: ...to here
LVM2.2.03.38/lib/label/hints.c:726:20: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
LVM2.2.03.38/lib/label/hints.c:740:22: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:740:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/label/hints.c:757:22: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:757:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/label/hints.c:770:22: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:770:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/label/hints.c:783:22: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:783:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/label/hints.c:795:22: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:795:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/label/hints.c:814:22: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:814:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/label/hints.c:827:21: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:827:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/label/hints.c:830:21: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:830:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/label/hints.c:833:17: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:853:36: call_function: inlined call to ‘zalloc’ from ‘_read_hint_file’
LVM2.2.03.38/lib/label/hints.c:853:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/label/hints.c:857:17: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:859:17: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/label/hints.c:859:17: danger: ‘calloc(1, 4288)’ leaks here; was allocated at [(28)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/27)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def340]
LVM2.2.03.38/lib/label/hints.c:1009:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&_hints_file, "w")’
LVM2.2.03.38/lib/label/hints.c:981:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/label/hints.c:985:13: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:996:20: branch_false: following ‘false’ branch (when ‘newhints != 4’)...
LVM2.2.03.38/lib/label/hints.c:1000:9: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:1002:20: acquire_resource: opened here
LVM2.2.03.38/lib/label/hints.c:1002:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/label/hints.c:1007:13: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:1009:13: throw: if ‘lvmcache_has_duplicate_devs’ throws an exception...
LVM2.2.03.38/lib/label/hints.c:1009:13: danger: ‘fopen(&_hints_file, "w")’ leaks here; was opened at [(5)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def341]
LVM2.2.03.38/lib/label/hints.c:1009:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&_hints_file, "w")’
LVM2.2.03.38/lib/label/hints.c:981:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/label/hints.c:985:13: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:996:20: branch_false: following ‘false’ branch (when ‘newhints != 4’)...
LVM2.2.03.38/lib/label/hints.c:1000:9: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:1002:20: acquire_memory: allocated here
LVM2.2.03.38/lib/label/hints.c:1002:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/label/hints.c:1007:13: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:1009:13: throw: if ‘lvmcache_has_duplicate_devs’ throws an exception...
LVM2.2.03.38/lib/label/hints.c:1009:13: danger: ‘fopen(&_hints_file, "w")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def342]
LVM2.2.03.38/lib/label/hints.c:1009:46: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&_hints_file, "w")’
LVM2.2.03.38/lib/label/hints.c:981:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/label/hints.c:985:13: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:996:20: branch_false: following ‘false’ branch (when ‘newhints != 4’)...
LVM2.2.03.38/lib/label/hints.c:1000:9: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:1002:20: acquire_resource: opened here
LVM2.2.03.38/lib/label/hints.c:1002:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/label/hints.c:1007:13: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:1009:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/label/hints.c:1009:46: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:1009:46: throw: if ‘lvmcache_found_duplicate_vgnames’ throws an exception...
LVM2.2.03.38/lib/label/hints.c:1009:46: danger: ‘fopen(&_hints_file, "w")’ leaks here; was opened at [(5)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def343]
LVM2.2.03.38/lib/label/hints.c:1009:46: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&_hints_file, "w")’
LVM2.2.03.38/lib/label/hints.c:981:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/label/hints.c:985:13: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:996:20: branch_false: following ‘false’ branch (when ‘newhints != 4’)...
LVM2.2.03.38/lib/label/hints.c:1000:9: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:1002:20: acquire_memory: allocated here
LVM2.2.03.38/lib/label/hints.c:1002:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/label/hints.c:1007:13: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:1009:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/label/hints.c:1009:46: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:1009:46: throw: if ‘lvmcache_found_duplicate_vgnames’ throws an exception...
LVM2.2.03.38/lib/label/hints.c:1009:46: danger: ‘fopen(&_hints_file, "w")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def344]
LVM2.2.03.38/lib/label/hints.c:1010:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&_hints_file, "w")’
LVM2.2.03.38/lib/label/hints.c:981:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/label/hints.c:985:13: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:996:20: branch_false: following ‘false’ branch (when ‘newhints != 4’)...
LVM2.2.03.38/lib/label/hints.c:1000:9: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:1002:20: acquire_resource: opened here
LVM2.2.03.38/lib/label/hints.c:1002:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/label/hints.c:1007:13: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:1013:21: throw: if ‘lvmcache_has_duplicate_devs’ throws an exception...
LVM2.2.03.38/lib/label/hints.c:1010:17: danger: ‘fopen(&_hints_file, "w")’ leaks here; was opened at [(5)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def345]
LVM2.2.03.38/lib/label/hints.c:1010:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&_hints_file, "w")’
LVM2.2.03.38/lib/label/hints.c:981:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/label/hints.c:985:13: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:996:20: branch_false: following ‘false’ branch (when ‘newhints != 4’)...
LVM2.2.03.38/lib/label/hints.c:1000:9: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:1002:20: acquire_memory: allocated here
LVM2.2.03.38/lib/label/hints.c:1002:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/label/hints.c:1007:13: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:1013:21: throw: if ‘lvmcache_has_duplicate_devs’ throws an exception...
LVM2.2.03.38/lib/label/hints.c:1010:17: danger: ‘fopen(&_hints_file, "w")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def346]
LVM2.2.03.38/lib/label/hints.c:1020:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&_hints_file, "w")’
LVM2.2.03.38/lib/label/hints.c:963:5: enter_function: entry to ‘write_hint_file’
LVM2.2.03.38/lib/label/hints.c:981:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/label/hints.c:985:13: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:996:20: branch_false: following ‘false’ branch (when ‘newhints != 4’)...
LVM2.2.03.38/lib/label/hints.c:1000:9: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:1002:20: acquire_resource: opened here
LVM2.2.03.38/lib/label/hints.c:1002:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/label/hints.c:1007:13: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:1009:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/label/hints.c:1023:9: call_function: calling ‘_filter_to_str’ from ‘write_hint_file’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def347]
LVM2.2.03.38/lib/label/hints.c:1020:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&_hints_file, "w")’
LVM2.2.03.38/lib/label/hints.c:963:5: enter_function: entry to ‘write_hint_file’
LVM2.2.03.38/lib/label/hints.c:981:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/label/hints.c:985:13: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:996:20: branch_false: following ‘false’ branch (when ‘newhints != 4’)...
LVM2.2.03.38/lib/label/hints.c:1000:9: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:1002:20: acquire_memory: allocated here
LVM2.2.03.38/lib/label/hints.c:1002:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/label/hints.c:1007:13: branch_false: ...to here
LVM2.2.03.38/lib/label/hints.c:1009:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/label/hints.c:1023:9: call_function: calling ‘_filter_to_str’ from ‘write_hint_file’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def348]
LVM2.2.03.38/lib/label/label.c:1735:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 24)’
LVM2.2.03.38/lib/label/label.c:1725:5: enter_function: entry to ‘label_scan_dev’
LVM2.2.03.38/lib/label/label.c:1732:22: call_function: inlined call to ‘zalloc’ from ‘label_scan_dev’
LVM2.2.03.38/lib/label/label.c:1732:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/label/label.c:1734:9: branch_false: ...to here
LVM2.2.03.38/lib/label/label.c:1735:9: throw: if ‘dm_list_init’ throws an exception...
LVM2.2.03.38/lib/label/label.c:1735:9: danger: ‘calloc(1, 24)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def349]
LVM2.2.03.38/lib/label/label.c:1736:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 24)’
LVM2.2.03.38/lib/label/label.c:1725:5: enter_function: entry to ‘label_scan_dev’
LVM2.2.03.38/lib/label/label.c:1732:22: call_function: inlined call to ‘zalloc’ from ‘label_scan_dev’
LVM2.2.03.38/lib/label/label.c:1732:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/label/label.c:1734:9: branch_false: ...to here
LVM2.2.03.38/lib/label/label.c:1736:9: throw: if ‘dm_list_add’ throws an exception...
LVM2.2.03.38/lib/label/label.c:1736:9: danger: ‘calloc(1, 24)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def350]
LVM2.2.03.38/lib/locking/lvmlockd.c:388:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
LVM2.2.03.38/lib/locking/lvmlockd.c:967:12: enter_function: entry to ‘_init_vg’
LVM2.2.03.38/lib/locking/lvmlockd.c:981:17: call_function: calling ‘_lockd_send_with_pvs’ from ‘_init_vg’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def351]
LVM2.2.03.38/lib/log/log.c:582:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
LVM2.2.03.38/lib/log/log.c:799:6: enter_function: entry to ‘print_log’
LVM2.2.03.38/lib/log/log.c:804:9: acquire_resource: ‘va_start’ called here
LVM2.2.03.38/lib/log/log.c:805:9: call_function: calling ‘_vprint_log’ from ‘print_log’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def352]
LVM2.2.03.38/lib/log/log.c:729:29: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
LVM2.2.03.38/lib/log/log.c:809:6: enter_function: entry to ‘print_log_libdm’
LVM2.2.03.38/lib/log/log.c:827:9: call_function: calling ‘_vprint_log’ from ‘print_log_libdm’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def353]
LVM2.2.03.38/lib/log/log.c:731:30: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
LVM2.2.03.38/lib/log/log.c:809:6: enter_function: entry to ‘print_log_libdm’
LVM2.2.03.38/lib/log/log.c:827:9: call_function: calling ‘_vprint_log’ from ‘print_log_libdm’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def354]
LVM2.2.03.38/lib/log/log.c:733:30: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
LVM2.2.03.38/lib/log/log.c:809:6: enter_function: entry to ‘print_log_libdm’
LVM2.2.03.38/lib/log/log.c:827:9: call_function: calling ‘_vprint_log’ from ‘print_log_libdm’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def355]
LVM2.2.03.38/lib/log/log.c:741:40: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
LVM2.2.03.38/lib/log/log.c:917:10: enter_function: entry to ‘log_journal_str_to_val’
LVM2.2.03.38/lib/log/log.c:919:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/log/log.c:921:14: branch_false: ...to here
LVM2.2.03.38/lib/log/log.c:921:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/log/log.c:923:14: branch_false: ...to here
LVM2.2.03.38/lib/log/log.c:923:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/log/log.c:925:9: branch_false: ...to here
LVM2.2.03.38/lib/log/log.c:925:9: call_function: calling ‘print_log’ from ‘log_journal_str_to_val’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def356]
LVM2.2.03.38/lib/log/log.c:791:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
LVM2.2.03.38/lib/log/log.c:809:6: enter_function: entry to ‘print_log_libdm’
LVM2.2.03.38/lib/log/log.c:827:9: call_function: calling ‘_vprint_log’ from ‘print_log_libdm’
Error: COMPILER_WARNING: [#def357]
LVM2.2.03.38/lib/metadata/integrity_manip.c:535:38: warning[-Wunused-but-set-variable=]: variable ‘lbs_unknown’ set but not used
Error: COMPILER_WARNING: [#def358]
LVM2.2.03.38/lib/metadata/integrity_manip.c: scope_hint: In function ‘lv_add_integrity_to_raid’
LVM2.2.03.38/lib/metadata/integrity_manip.c:536:38: warning[-Wunused-but-set-variable=]: variable ‘pbs_unknown’ set but not used
Error: GCC_ANALYZER_WARNING (CWE-121): [#def359]
LVM2.2.03.38/lib/metadata/mirror.c:1739:9: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
LVM2.2.03.38/lib/metadata/mirror.c:1757:31: enter_function: entry to ‘_set_up_mirror_log’
LVM2.2.03.38/lib/metadata/mirror.c:1786:19: branch_false: following ‘false’ branch (when ‘lv_name’ is NULL)...
LVM2.2.03.38/lib/metadata/mirror.c:1798:24: branch_false: ...to here
LVM2.2.03.38/lib/metadata/mirror.c:1798:24: call_function: calling ‘_create_mirror_log’ from ‘_set_up_mirror_log’
LVM2.2.03.38/lib/metadata/mirror.c:1798:24: return_function: returning to ‘_set_up_mirror_log’ from ‘_create_mirror_log’
LVM2.2.03.38/lib/metadata/mirror.c:1798:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/metadata/mirror.c:1803:12: branch_false: ...to here
LVM2.2.03.38/lib/metadata/mirror.c:1803:12: branch_true: following ‘true’ branch (when ‘log_count > 1’)...
LVM2.2.03.38/lib/metadata/mirror.c:1805:21: branch_true: ...to here
LVM2.2.03.38/lib/metadata/mirror.c:1805:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/metadata/mirror.c:1811:22: branch_false: ...to here
LVM2.2.03.38/lib/metadata/mirror.c:1811:22: call_function: calling ‘_form_mirror’ from ‘_set_up_mirror_log’
Error: COMPILER_WARNING: [#def360]
LVM2.2.03.38/lib/metadata/raid_manip.c: scope_hint: In function ‘_reorder_raid10_near_seg_areas’
LVM2.2.03.38/lib/metadata/raid_manip.c:769:18: warning[-Wunused-but-set-variable=]: variable ‘i’ set but not used
Error: GCC_ANALYZER_WARNING (CWE-401): [#def361]
LVM2.2.03.38/lib/metadata/thin_manip.c:513:28: warning[-Wanalyzer-malloc-leak]: leak of ‘tmpfile()’
LVM2.2.03.38/lib/metadata/thin_manip.c:483:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/metadata/thin_manip.c:490:14: branch_false: ...to here
LVM2.2.03.38/lib/metadata/thin_manip.c:490:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/metadata/thin_manip.c:493:13: branch_false: ...to here
LVM2.2.03.38/lib/metadata/thin_manip.c:493:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/metadata/thin_manip.c:498:14: branch_false: ...to here
LVM2.2.03.38/lib/metadata/thin_manip.c:498:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/metadata/thin_manip.c:503:9: branch_false: ...to here
LVM2.2.03.38/lib/metadata/thin_manip.c:506:19: acquire_memory: allocated here
LVM2.2.03.38/lib/metadata/thin_manip.c:506:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/metadata/thin_manip.c:512:16: branch_false: ...to here
LVM2.2.03.38/lib/metadata/thin_manip.c:512:16: throw: if ‘dm_snprintf’ throws an exception...
LVM2.2.03.38/lib/metadata/thin_manip.c:513:28: danger: ‘tmpfile()’ leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def362]
LVM2.2.03.38/lib/metadata/vdo_manip.c:188:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
LVM2.2.03.38/lib/metadata/vdo_manip.c:167:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/metadata/vdo_manip.c:173:19: branch_false: ...to here
LVM2.2.03.38/lib/metadata/vdo_manip.c:173:19: acquire_resource: opened here
LVM2.2.03.38/lib/metadata/vdo_manip.c:173:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/metadata/vdo_manip.c:187:21: branch_false: ...to here
LVM2.2.03.38/lib/metadata/vdo_manip.c:187:12: branch_true: following ‘true’ branch (when ‘size < 0’)...
LVM2.2.03.38/lib/metadata/vdo_manip.c:188:17: branch_true: ...to here
LVM2.2.03.38/lib/metadata/vdo_manip.c:188:17: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/metadata/vdo_manip.c:188:17: danger: ‘fd’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def363]
LVM2.2.03.38/lib/metadata/vdo_manip.c:195:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
LVM2.2.03.38/lib/metadata/vdo_manip.c:167:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/metadata/vdo_manip.c:173:19: branch_false: ...to here
LVM2.2.03.38/lib/metadata/vdo_manip.c:173:19: acquire_resource: opened here
LVM2.2.03.38/lib/metadata/vdo_manip.c:173:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/metadata/vdo_manip.c:187:21: branch_false: ...to here
LVM2.2.03.38/lib/metadata/vdo_manip.c:187:12: branch_false: following ‘false’ branch (when ‘size >= 0’)...
LVM2.2.03.38/lib/metadata/vdo_manip.c:191:9: branch_false: ...to here
LVM2.2.03.38/lib/metadata/vdo_manip.c:194:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/metadata/vdo_manip.c:195:17: branch_true: ...to here
LVM2.2.03.38/lib/metadata/vdo_manip.c:195:17: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/metadata/vdo_manip.c:195:17: danger: ‘fd’ leaks here; was opened at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def364]
LVM2.2.03.38/lib/metadata/vdo_manip.c:201:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
LVM2.2.03.38/lib/metadata/vdo_manip.c:167:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/metadata/vdo_manip.c:173:19: branch_false: ...to here
LVM2.2.03.38/lib/metadata/vdo_manip.c:173:19: acquire_resource: opened here
LVM2.2.03.38/lib/metadata/vdo_manip.c:173:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/metadata/vdo_manip.c:187:21: branch_false: ...to here
LVM2.2.03.38/lib/metadata/vdo_manip.c:201:12: branch_true: following ‘true’ branch (when ‘fd >= 0’)...
LVM2.2.03.38/lib/metadata/vdo_manip.c:201:24: branch_true: ...to here
LVM2.2.03.38/lib/metadata/vdo_manip.c:201:24: throw: if ‘close’ throws an exception...
LVM2.2.03.38/lib/metadata/vdo_manip.c:201:24: danger: ‘fd’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def365]
LVM2.2.03.38/lib/metadata/vdo_manip.c:712:31: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&proc_meminfo, "r")’
LVM2.2.03.38/lib/metadata/vdo_manip.c:703:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/metadata/vdo_manip.c:705:20: branch_false: ...to here
LVM2.2.03.38/lib/metadata/vdo_manip.c:705:20: acquire_resource: opened here
LVM2.2.03.38/lib/metadata/vdo_manip.c:703:13: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/metadata/vdo_manip.c:703:13: branch_false: ...to here
LVM2.2.03.38/lib/metadata/vdo_manip.c:708:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/metadata/vdo_manip.c:709:27: branch_true: ...to here
LVM2.2.03.38/lib/metadata/vdo_manip.c:709:20: branch_false: following ‘false’ branch (when ‘e’ is non-NULL)...
LVM2.2.03.38/lib/metadata/vdo_manip.c:712:20: branch_false: ...to here
LVM2.2.03.38/lib/metadata/vdo_manip.c:715:17: throw: if ‘dm_strncpy’ throws an exception...
LVM2.2.03.38/lib/metadata/vdo_manip.c:712:31: danger: ‘fopen(&proc_meminfo, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def366]
LVM2.2.03.38/lib/metadata/vdo_manip.c:712:31: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&proc_meminfo, "r")’
LVM2.2.03.38/lib/metadata/vdo_manip.c:703:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/metadata/vdo_manip.c:705:20: branch_false: ...to here
LVM2.2.03.38/lib/metadata/vdo_manip.c:705:20: acquire_memory: allocated here
LVM2.2.03.38/lib/metadata/vdo_manip.c:703:13: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/metadata/vdo_manip.c:703:13: branch_false: ...to here
LVM2.2.03.38/lib/metadata/vdo_manip.c:708:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/metadata/vdo_manip.c:709:27: branch_true: ...to here
LVM2.2.03.38/lib/metadata/vdo_manip.c:709:20: branch_false: following ‘false’ branch (when ‘e’ is non-NULL)...
LVM2.2.03.38/lib/metadata/vdo_manip.c:712:20: branch_false: ...to here
LVM2.2.03.38/lib/metadata/vdo_manip.c:715:17: throw: if ‘dm_strncpy’ throws an exception...
LVM2.2.03.38/lib/metadata/vdo_manip.c:712:31: danger: ‘fopen(&proc_meminfo, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def367]
LVM2.2.03.38/lib/mirror/mirrored.c:531:24: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 72)’
LVM2.2.03.38/lib/mirror/mirrored.c:514:22: enter_function: entry to ‘init_mirrored_segtype’
LVM2.2.03.38/lib/mirror/mirrored.c:520:40: call_function: inlined call to ‘zalloc’ from ‘init_mirrored_segtype’
LVM2.2.03.38/lib/mirror/mirrored.c:522:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/mirror/mirrored.c:525:9: branch_false: ...to here
LVM2.2.03.38/lib/mirror/mirrored.c:531:24: throw: if ‘get_monitor_dso_path’ throws an exception...
LVM2.2.03.38/lib/mirror/mirrored.c:531:24: danger: ‘calloc(1, 72)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def368]
LVM2.2.03.38/lib/mirror/mirrored.c:538:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 72)’
LVM2.2.03.38/lib/mirror/mirrored.c:514:22: enter_function: entry to ‘init_mirrored_segtype’
LVM2.2.03.38/lib/mirror/mirrored.c:520:40: call_function: inlined call to ‘zalloc’ from ‘init_mirrored_segtype’
LVM2.2.03.38/lib/mirror/mirrored.c:522:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/mirror/mirrored.c:525:9: branch_false: ...to here
LVM2.2.03.38/lib/mirror/mirrored.c:538:9: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/mirror/mirrored.c:538:9: danger: ‘calloc(1, 72)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def369]
LVM2.2.03.38/lib/misc/lvm-exec.c:36:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
LVM2.2.03.38/lib/misc/lvm-exec.c:144:7: enter_function: entry to ‘pipe_open’
LVM2.2.03.38/lib/misc/lvm-exec.c:154:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:159:9: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:159:9: call_function: calling ‘_verbose_args’ from ‘pipe_open’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def370]
LVM2.2.03.38/lib/misc/lvm-exec.c:36:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
LVM2.2.03.38/lib/misc/lvm-exec.c:144:7: enter_function: entry to ‘pipe_open’
LVM2.2.03.38/lib/misc/lvm-exec.c:154:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:159:9: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:159:9: call_function: calling ‘_verbose_args’ from ‘pipe_open’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def371]
LVM2.2.03.38/lib/misc/lvm-exec.c:119:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
LVM2.2.03.38/lib/misc/lvm-exec.c:144:7: enter_function: entry to ‘pipe_open’
LVM2.2.03.38/lib/misc/lvm-exec.c:154:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:159:9: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:161:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:170:12: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:170:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:172:22: branch_true: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:172:22: call_function: calling ‘_reopen_fd_to_null’ from ‘pipe_open’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def372]
LVM2.2.03.38/lib/misc/lvm-exec.c:119:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
LVM2.2.03.38/lib/misc/lvm-exec.c:144:7: enter_function: entry to ‘pipe_open’
LVM2.2.03.38/lib/misc/lvm-exec.c:154:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:159:9: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:161:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:170:12: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:170:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:172:22: branch_true: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:172:22: call_function: calling ‘_reopen_fd_to_null’ from ‘pipe_open’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def373]
LVM2.2.03.38/lib/misc/lvm-exec.c:120:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
LVM2.2.03.38/lib/misc/lvm-exec.c:144:7: enter_function: entry to ‘pipe_open’
LVM2.2.03.38/lib/misc/lvm-exec.c:154:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:159:9: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:161:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:170:12: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:170:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:172:22: branch_true: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:172:22: call_function: calling ‘_reopen_fd_to_null’ from ‘pipe_open’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def374]
LVM2.2.03.38/lib/misc/lvm-exec.c:120:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
LVM2.2.03.38/lib/misc/lvm-exec.c:144:7: enter_function: entry to ‘pipe_open’
LVM2.2.03.38/lib/misc/lvm-exec.c:154:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:159:9: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:161:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:170:12: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:170:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:172:22: branch_true: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:172:22: call_function: calling ‘_reopen_fd_to_null’ from ‘pipe_open’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def375]
LVM2.2.03.38/lib/misc/lvm-exec.c:124:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
LVM2.2.03.38/lib/misc/lvm-exec.c:119:24: acquire_resource: opened here
LVM2.2.03.38/lib/misc/lvm-exec.c:119:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:124:12: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:124:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:124:32: branch_true: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:124:32: throw: if ‘close’ throws an exception...
LVM2.2.03.38/lib/misc/lvm-exec.c:124:32: danger: ‘open("/dev/null", 2)’ leaks here; was opened at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def376]
LVM2.2.03.38/lib/misc/lvm-exec.c:124:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
LVM2.2.03.38/lib/misc/lvm-exec.c:144:7: enter_function: entry to ‘pipe_open’
LVM2.2.03.38/lib/misc/lvm-exec.c:154:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:159:9: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:161:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:170:12: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:170:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:172:22: branch_true: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:172:22: call_function: calling ‘_reopen_fd_to_null’ from ‘pipe_open’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def377]
LVM2.2.03.38/lib/misc/lvm-exec.c:124:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
LVM2.2.03.38/lib/misc/lvm-exec.c:144:7: enter_function: entry to ‘pipe_open’
LVM2.2.03.38/lib/misc/lvm-exec.c:154:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:159:9: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:161:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:170:12: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:170:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:172:22: branch_true: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:172:22: call_function: calling ‘_reopen_fd_to_null’ from ‘pipe_open’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def378]
LVM2.2.03.38/lib/misc/lvm-exec.c:125:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
LVM2.2.03.38/lib/misc/lvm-exec.c:119:24: acquire_resource: opened here
LVM2.2.03.38/lib/misc/lvm-exec.c:119:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:124:12: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:124:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:125:17: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/misc/lvm-exec.c:125:17: danger: ‘open("/dev/null", 2)’ leaks here; was opened at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def379]
LVM2.2.03.38/lib/misc/lvm-exec.c:125:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
LVM2.2.03.38/lib/misc/lvm-exec.c:144:7: enter_function: entry to ‘pipe_open’
LVM2.2.03.38/lib/misc/lvm-exec.c:154:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:159:9: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:161:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:170:12: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:170:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:172:22: branch_true: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:172:22: call_function: calling ‘_reopen_fd_to_null’ from ‘pipe_open’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def380]
LVM2.2.03.38/lib/misc/lvm-exec.c:125:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
LVM2.2.03.38/lib/misc/lvm-exec.c:144:7: enter_function: entry to ‘pipe_open’
LVM2.2.03.38/lib/misc/lvm-exec.c:154:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:159:9: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:161:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:170:12: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:170:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:172:22: branch_true: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:172:22: call_function: calling ‘_reopen_fd_to_null’ from ‘pipe_open’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def381]
LVM2.2.03.38/lib/misc/lvm-exec.c:129:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open("/dev/null", 2), fd)’
LVM2.2.03.38/lib/misc/lvm-exec.c:119:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:124:12: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:124:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:129:13: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:129:13: acquire_resource: opened here
LVM2.2.03.38/lib/misc/lvm-exec.c:129:12: danger: ‘dup2(open("/dev/null", 2), fd)’ leaks here; was opened at [(5)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING: [#def382]
LVM2.2.03.38/lib/misc/lvm-exec.c:129:13: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘fd’
LVM2.2.03.38/lib/misc/lvm-exec.c:119:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:124:12: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:124:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:124:32: branch_true: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:124:32: release_resource: closed here
LVM2.2.03.38/lib/misc/lvm-exec.c:124:13: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:129:13: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:129:13: danger: ‘fd’ could be invalid
Error: GCC_ANALYZER_WARNING (CWE-775): [#def383]
LVM2.2.03.38/lib/misc/lvm-exec.c:130:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
LVM2.2.03.38/lib/misc/lvm-exec.c:119:24: acquire_resource: opened here
LVM2.2.03.38/lib/misc/lvm-exec.c:119:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:124:12: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:124:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:129:13: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:129:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:130:17: branch_true: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:130:17: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/misc/lvm-exec.c:130:17: danger: ‘open("/dev/null", 2)’ leaks here; was opened at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def384]
LVM2.2.03.38/lib/misc/lvm-exec.c:130:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
LVM2.2.03.38/lib/misc/lvm-exec.c:144:7: enter_function: entry to ‘pipe_open’
LVM2.2.03.38/lib/misc/lvm-exec.c:154:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:159:9: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:161:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:170:12: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:170:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:172:22: branch_true: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:172:22: call_function: calling ‘_reopen_fd_to_null’ from ‘pipe_open’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def385]
LVM2.2.03.38/lib/misc/lvm-exec.c:130:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
LVM2.2.03.38/lib/misc/lvm-exec.c:144:7: enter_function: entry to ‘pipe_open’
LVM2.2.03.38/lib/misc/lvm-exec.c:154:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:159:9: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:161:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:170:12: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:170:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:172:22: branch_true: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:172:22: call_function: calling ‘_reopen_fd_to_null’ from ‘pipe_open’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def386]
LVM2.2.03.38/lib/misc/lvm-exec.c:136:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
LVM2.2.03.38/lib/misc/lvm-exec.c:119:24: acquire_resource: opened here
LVM2.2.03.38/lib/misc/lvm-exec.c:119:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:124:12: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:124:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:129:13: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:136:13: danger: ‘open("/dev/null", 2)’ leaks here; was opened at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def387]
LVM2.2.03.38/lib/misc/lvm-exec.c:136:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
LVM2.2.03.38/lib/misc/lvm-exec.c:144:7: enter_function: entry to ‘pipe_open’
LVM2.2.03.38/lib/misc/lvm-exec.c:154:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:159:9: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:161:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:170:12: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:170:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:172:22: branch_true: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:172:22: call_function: calling ‘_reopen_fd_to_null’ from ‘pipe_open’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def388]
LVM2.2.03.38/lib/misc/lvm-exec.c:136:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
LVM2.2.03.38/lib/misc/lvm-exec.c:144:7: enter_function: entry to ‘pipe_open’
LVM2.2.03.38/lib/misc/lvm-exec.c:154:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:159:9: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:161:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:170:12: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:170:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:172:22: branch_true: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:172:22: call_function: calling ‘_reopen_fd_to_null’ from ‘pipe_open’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def389]
LVM2.2.03.38/lib/misc/lvm-exec.c:159:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
LVM2.2.03.38/lib/misc/lvm-exec.c:154:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:159:9: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:159:9: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/misc/lvm-exec.c:159:9: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def390]
LVM2.2.03.38/lib/misc/lvm-exec.c:159:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
LVM2.2.03.38/lib/misc/lvm-exec.c:154:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:159:9: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:159:9: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/misc/lvm-exec.c:159:9: danger: ‘pipefd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def391]
LVM2.2.03.38/lib/misc/lvm-exec.c:162:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
LVM2.2.03.38/lib/misc/lvm-exec.c:154:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:159:9: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:161:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:162:17: branch_true: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:162:17: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/misc/lvm-exec.c:162:17: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def392]
LVM2.2.03.38/lib/misc/lvm-exec.c:162:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
LVM2.2.03.38/lib/misc/lvm-exec.c:154:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:159:9: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:161:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:162:17: branch_true: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:162:17: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/misc/lvm-exec.c:162:17: danger: ‘pipefd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def393]
LVM2.2.03.38/lib/misc/lvm-exec.c:163:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
LVM2.2.03.38/lib/misc/lvm-exec.c:154:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:159:9: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:161:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:162:17: branch_true: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:163:21: throw: if ‘close’ throws an exception...
LVM2.2.03.38/lib/misc/lvm-exec.c:163:21: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def394]
LVM2.2.03.38/lib/misc/lvm-exec.c:163:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
LVM2.2.03.38/lib/misc/lvm-exec.c:154:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:159:9: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:161:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:162:17: branch_true: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:163:21: throw: if ‘close’ throws an exception...
LVM2.2.03.38/lib/misc/lvm-exec.c:163:21: danger: ‘pipefd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def395]
LVM2.2.03.38/lib/misc/lvm-exec.c:164:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
LVM2.2.03.38/lib/misc/lvm-exec.c:154:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:159:9: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:161:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:162:17: branch_true: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:163:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:164:25: branch_true: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:164:25: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/misc/lvm-exec.c:164:25: danger: ‘pipefd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def396]
LVM2.2.03.38/lib/misc/lvm-exec.c:165:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
LVM2.2.03.38/lib/misc/lvm-exec.c:154:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:159:9: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:161:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:162:17: branch_true: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:165:21: throw: if ‘close’ throws an exception...
LVM2.2.03.38/lib/misc/lvm-exec.c:165:21: danger: ‘pipefd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def397]
LVM2.2.03.38/lib/misc/lvm-exec.c:190:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
LVM2.2.03.38/lib/misc/lvm-exec.c:154:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:159:9: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:161:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:170:12: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:170:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:190:13: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:190:13: throw: if ‘close’ throws an exception...
LVM2.2.03.38/lib/misc/lvm-exec.c:190:13: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def398]
LVM2.2.03.38/lib/misc/lvm-exec.c:190:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
LVM2.2.03.38/lib/misc/lvm-exec.c:154:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:159:9: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:161:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:170:12: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:170:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:190:13: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:190:13: throw: if ‘close’ throws an exception...
LVM2.2.03.38/lib/misc/lvm-exec.c:190:13: danger: ‘pipefd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def399]
LVM2.2.03.38/lib/misc/lvm-exec.c:191:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
LVM2.2.03.38/lib/misc/lvm-exec.c:154:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:159:9: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:161:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:170:12: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:170:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:190:13: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:190:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:191:17: branch_true: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:191:17: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/misc/lvm-exec.c:191:17: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def400]
LVM2.2.03.38/lib/misc/lvm-exec.c:192:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
LVM2.2.03.38/lib/misc/lvm-exec.c:154:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:159:9: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:161:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:170:12: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:170:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:190:13: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:190:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/misc/lvm-exec.c:191:17: branch_true: ...to here
LVM2.2.03.38/lib/misc/lvm-exec.c:192:21: throw: if ‘close’ throws an exception...
LVM2.2.03.38/lib/misc/lvm-exec.c:192:21: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def401]
LVM2.2.03.38/lib/misc/lvm-file.c:147:9: warning[-Wanalyzer-malloc-leak]: leak of ‘s’
LVM2.2.03.38/lib/misc/lvm-file.c:167:5: enter_function: entry to ‘dir_create_recursive’
LVM2.2.03.38/lib/misc/lvm-file.c:172:20: acquire_memory: allocated here
LVM2.2.03.38/lib/misc/lvm-file.c:173:12: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)...
LVM2.2.03.38/lib/misc/lvm-file.c:173:12: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-file.c:178:16: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
LVM2.2.03.38/lib/misc/lvm-file.c:179:17: branch_true: ...to here
LVM2.2.03.38/lib/misc/lvm-file.c:180:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/misc/lvm-file.c:180:52: call_function: calling ‘_dir_create’ from ‘dir_create_recursive’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def402]
LVM2.2.03.38/lib/misc/lvm-file.c:215:19: warning[-Wanalyzer-malloc-leak]: leak of ‘dir’
LVM2.2.03.38/lib/misc/lvm-file.c:199:21: acquire_memory: allocated here
LVM2.2.03.38/lib/misc/lvm-file.c:199:12: branch_false: following ‘false’ branch (when ‘dir’ is non-NULL)...
LVM2.2.03.38/lib/misc/lvm-file.c:204:14: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-file.c:204:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/misc/lvm-file.c:205:27: branch_true: ...to here
LVM2.2.03.38/lib/misc/lvm-file.c:215:19: throw: if ‘open’ throws an exception...
LVM2.2.03.38/lib/misc/lvm-file.c:215:19: danger: ‘dir’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def403]
LVM2.2.03.38/lib/misc/lvm-file.c:216:17: warning[-Wanalyzer-malloc-leak]: leak of ‘dir’
LVM2.2.03.38/lib/misc/lvm-file.c:199:21: acquire_memory: allocated here
LVM2.2.03.38/lib/misc/lvm-file.c:199:12: branch_false: following ‘false’ branch (when ‘dir’ is non-NULL)...
LVM2.2.03.38/lib/misc/lvm-file.c:204:14: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-file.c:204:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/misc/lvm-file.c:205:27: branch_true: ...to here
LVM2.2.03.38/lib/misc/lvm-file.c:215:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/misc/lvm-file.c:216:17: branch_true: ...to here
LVM2.2.03.38/lib/misc/lvm-file.c:216:17: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/misc/lvm-file.c:216:17: danger: ‘dir’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def404]
LVM2.2.03.38/lib/misc/lvm-file.c:220:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(dir, 0)’
LVM2.2.03.38/lib/misc/lvm-file.c:199:12: branch_false: following ‘false’ branch (when ‘dir’ is non-NULL)...
LVM2.2.03.38/lib/misc/lvm-file.c:204:14: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-file.c:204:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/misc/lvm-file.c:205:27: branch_true: ...to here
LVM2.2.03.38/lib/misc/lvm-file.c:215:19: acquire_resource: opened here
LVM2.2.03.38/lib/misc/lvm-file.c:215:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-file.c:220:13: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-file.c:220:13: throw: if ‘fsync’ throws an exception...
LVM2.2.03.38/lib/misc/lvm-file.c:220:13: danger: ‘open(dir, 0)’ leaks here; was opened at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def405]
LVM2.2.03.38/lib/misc/lvm-file.c:220:13: warning[-Wanalyzer-malloc-leak]: leak of ‘dir’
LVM2.2.03.38/lib/misc/lvm-file.c:199:21: acquire_memory: allocated here
LVM2.2.03.38/lib/misc/lvm-file.c:199:12: branch_false: following ‘false’ branch (when ‘dir’ is non-NULL)...
LVM2.2.03.38/lib/misc/lvm-file.c:204:14: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-file.c:204:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/misc/lvm-file.c:205:27: branch_true: ...to here
LVM2.2.03.38/lib/misc/lvm-file.c:215:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-file.c:220:13: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-file.c:220:13: throw: if ‘fsync’ throws an exception...
LVM2.2.03.38/lib/misc/lvm-file.c:220:13: danger: ‘dir’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def406]
LVM2.2.03.38/lib/misc/lvm-file.c:221:17: warning[-Wanalyzer-malloc-leak]: leak of ‘dir’
LVM2.2.03.38/lib/misc/lvm-file.c:199:21: acquire_memory: allocated here
LVM2.2.03.38/lib/misc/lvm-file.c:199:12: branch_false: following ‘false’ branch (when ‘dir’ is non-NULL)...
LVM2.2.03.38/lib/misc/lvm-file.c:204:14: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-file.c:204:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/misc/lvm-file.c:205:27: branch_true: ...to here
LVM2.2.03.38/lib/misc/lvm-file.c:215:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-file.c:220:13: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-file.c:220:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/misc/lvm-file.c:221:17: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/misc/lvm-file.c:221:17: danger: ‘dir’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def407]
LVM2.2.03.38/lib/misc/lvm-file.c:223:13: warning[-Wanalyzer-malloc-leak]: leak of ‘dir’
LVM2.2.03.38/lib/misc/lvm-file.c:199:21: acquire_memory: allocated here
LVM2.2.03.38/lib/misc/lvm-file.c:199:12: branch_false: following ‘false’ branch (when ‘dir’ is non-NULL)...
LVM2.2.03.38/lib/misc/lvm-file.c:204:14: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-file.c:204:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/misc/lvm-file.c:205:27: branch_true: ...to here
LVM2.2.03.38/lib/misc/lvm-file.c:215:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-file.c:220:13: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-file.c:223:13: throw: if ‘close’ throws an exception...
LVM2.2.03.38/lib/misc/lvm-file.c:223:13: danger: ‘dir’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def408]
LVM2.2.03.38/lib/misc/lvm-file.c:224:17: warning[-Wanalyzer-malloc-leak]: leak of ‘dir’
LVM2.2.03.38/lib/misc/lvm-file.c:199:21: acquire_memory: allocated here
LVM2.2.03.38/lib/misc/lvm-file.c:199:12: branch_false: following ‘false’ branch (when ‘dir’ is non-NULL)...
LVM2.2.03.38/lib/misc/lvm-file.c:204:14: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-file.c:204:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/misc/lvm-file.c:205:27: branch_true: ...to here
LVM2.2.03.38/lib/misc/lvm-file.c:215:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-file.c:220:13: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-file.c:223:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/misc/lvm-file.c:224:17: branch_true: ...to here
LVM2.2.03.38/lib/misc/lvm-file.c:224:17: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/misc/lvm-file.c:224:17: danger: ‘dir’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def409]
LVM2.2.03.38/lib/misc/lvm-file.c:251:14: warning[-Wanalyzer-malloc-leak]: leak of ‘dir’
LVM2.2.03.38/lib/misc/lvm-file.c:243:21: acquire_memory: allocated here
LVM2.2.03.38/lib/misc/lvm-file.c:243:12: branch_false: following ‘false’ branch (when ‘dir’ is non-NULL)...
LVM2.2.03.38/lib/misc/lvm-file.c:248:18: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-file.c:248:12: branch_false: following ‘false’ branch (when ‘c’ is NULL)...
LVM2.2.03.38/lib/misc/lvm-file.c:251:14: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-file.c:251:14: throw: if ‘dm_create_dir’ throws an exception...
LVM2.2.03.38/lib/misc/lvm-file.c:251:14: danger: ‘dir’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def410]
LVM2.2.03.38/lib/misc/lvm-flock.c:113:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ll’
LVM2.2.03.38/lib/misc/lvm-flock.c:179:5: enter_function: entry to ‘lock_file’
LVM2.2.03.38/lib/misc/lvm-flock.c:204:12: branch_false: following ‘false’ branch (when ‘convert == 0’)...
LVM2.2.03.38/lib/misc/lvm-flock.c:218:20: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-flock.c:218:20: acquire_memory: allocated here
LVM2.2.03.38/lib/misc/lvm-flock.c:218:12: branch_false: following ‘false’ branch (when ‘ll’ is non-NULL)...
LVM2.2.03.38/lib/misc/lvm-flock.c:221:25: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-flock.c:221:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-flock.c:226:9: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-flock.c:232:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-flock.c:235:21: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-flock.c:235:21: call_function: calling ‘_do_flock’ from ‘lock_file’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def411]
LVM2.2.03.38/lib/misc/lvm-flock.c:116:35: warning[-Wanalyzer-malloc-leak]: leak of ‘ll’
LVM2.2.03.38/lib/misc/lvm-flock.c:179:5: enter_function: entry to ‘lock_file’
LVM2.2.03.38/lib/misc/lvm-flock.c:204:12: branch_false: following ‘false’ branch (when ‘convert == 0’)...
LVM2.2.03.38/lib/misc/lvm-flock.c:218:20: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-flock.c:218:20: acquire_memory: allocated here
LVM2.2.03.38/lib/misc/lvm-flock.c:218:12: branch_false: following ‘false’ branch (when ‘ll’ is non-NULL)...
LVM2.2.03.38/lib/misc/lvm-flock.c:221:25: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-flock.c:221:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-flock.c:226:9: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-flock.c:232:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/misc/lvm-flock.c:233:21: branch_true: ...to here
LVM2.2.03.38/lib/misc/lvm-flock.c:233:21: call_function: calling ‘_do_write_priority_flock’ from ‘lock_file’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def412]
LVM2.2.03.38/lib/misc/lvm-flock.c:117:25: warning[-Wanalyzer-malloc-leak]: leak of ‘ll’
LVM2.2.03.38/lib/misc/lvm-flock.c:179:5: enter_function: entry to ‘lock_file’
LVM2.2.03.38/lib/misc/lvm-flock.c:204:12: branch_false: following ‘false’ branch (when ‘convert == 0’)...
LVM2.2.03.38/lib/misc/lvm-flock.c:218:20: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-flock.c:218:20: acquire_memory: allocated here
LVM2.2.03.38/lib/misc/lvm-flock.c:218:12: branch_false: following ‘false’ branch (when ‘ll’ is non-NULL)...
LVM2.2.03.38/lib/misc/lvm-flock.c:221:25: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-flock.c:221:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-flock.c:226:9: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-flock.c:232:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/misc/lvm-flock.c:233:21: branch_true: ...to here
LVM2.2.03.38/lib/misc/lvm-flock.c:233:21: call_function: calling ‘_do_write_priority_flock’ from ‘lock_file’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def413]
LVM2.2.03.38/lib/misc/lvm-flock.c:119:28: warning[-Wanalyzer-malloc-leak]: leak of ‘ll’
LVM2.2.03.38/lib/misc/lvm-flock.c:179:5: enter_function: entry to ‘lock_file’
LVM2.2.03.38/lib/misc/lvm-flock.c:204:12: branch_false: following ‘false’ branch (when ‘convert == 0’)...
LVM2.2.03.38/lib/misc/lvm-flock.c:218:20: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-flock.c:218:20: acquire_memory: allocated here
LVM2.2.03.38/lib/misc/lvm-flock.c:218:12: branch_false: following ‘false’ branch (when ‘ll’ is non-NULL)...
LVM2.2.03.38/lib/misc/lvm-flock.c:221:25: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-flock.c:221:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-flock.c:226:9: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-flock.c:232:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-flock.c:235:21: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-flock.c:235:21: call_function: calling ‘_do_flock’ from ‘lock_file’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def414]
LVM2.2.03.38/lib/misc/lvm-flock.c:132:25: warning[-Wanalyzer-malloc-leak]: leak of ‘ll’
LVM2.2.03.38/lib/misc/lvm-flock.c:179:5: enter_function: entry to ‘lock_file’
LVM2.2.03.38/lib/misc/lvm-flock.c:204:12: branch_false: following ‘false’ branch (when ‘convert == 0’)...
LVM2.2.03.38/lib/misc/lvm-flock.c:218:20: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-flock.c:218:20: acquire_memory: allocated here
LVM2.2.03.38/lib/misc/lvm-flock.c:218:12: branch_false: following ‘false’ branch (when ‘ll’ is non-NULL)...
LVM2.2.03.38/lib/misc/lvm-flock.c:221:25: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-flock.c:221:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-flock.c:226:9: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-flock.c:232:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/misc/lvm-flock.c:233:21: branch_true: ...to here
LVM2.2.03.38/lib/misc/lvm-flock.c:233:21: call_function: calling ‘_do_write_priority_flock’ from ‘lock_file’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def415]
LVM2.2.03.38/lib/misc/lvm-flock.c:133:29: warning[-Wanalyzer-malloc-leak]: leak of ‘ll’
LVM2.2.03.38/lib/misc/lvm-flock.c:179:5: enter_function: entry to ‘lock_file’
LVM2.2.03.38/lib/misc/lvm-flock.c:204:12: branch_false: following ‘false’ branch (when ‘convert == 0’)...
LVM2.2.03.38/lib/misc/lvm-flock.c:218:20: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-flock.c:218:20: acquire_memory: allocated here
LVM2.2.03.38/lib/misc/lvm-flock.c:218:12: branch_false: following ‘false’ branch (when ‘ll’ is non-NULL)...
LVM2.2.03.38/lib/misc/lvm-flock.c:221:25: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-flock.c:221:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-flock.c:226:9: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-flock.c:232:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/misc/lvm-flock.c:233:21: branch_true: ...to here
LVM2.2.03.38/lib/misc/lvm-flock.c:233:21: call_function: calling ‘_do_write_priority_flock’ from ‘lock_file’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def416]
LVM2.2.03.38/lib/misc/lvm-flock.c:228:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
LVM2.2.03.38/lib/misc/lvm-flock.c:204:12: branch_false: following ‘false’ branch (when ‘convert == 0’)...
LVM2.2.03.38/lib/misc/lvm-flock.c:218:20: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-flock.c:218:12: branch_false: following ‘false’ branch (when ‘ll’ is non-NULL)...
LVM2.2.03.38/lib/misc/lvm-flock.c:221:25: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-flock.c:221:25: acquire_memory: allocated here
LVM2.2.03.38/lib/misc/lvm-flock.c:221:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-flock.c:226:9: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-flock.c:228:9: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/misc/lvm-flock.c:228:9: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def417]
LVM2.2.03.38/lib/misc/lvm-flock.c:228:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ll’
LVM2.2.03.38/lib/misc/lvm-flock.c:204:12: branch_false: following ‘false’ branch (when ‘convert == 0’)...
LVM2.2.03.38/lib/misc/lvm-flock.c:218:20: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-flock.c:218:20: acquire_memory: allocated here
LVM2.2.03.38/lib/misc/lvm-flock.c:218:12: branch_false: following ‘false’ branch (when ‘ll’ is non-NULL)...
LVM2.2.03.38/lib/misc/lvm-flock.c:221:25: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-flock.c:221:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-flock.c:226:9: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-flock.c:228:9: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/misc/lvm-flock.c:228:9: danger: ‘ll’ leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def418]
LVM2.2.03.38/lib/misc/lvm-flock.c:231:16: warning[-Wanalyzer-malloc-leak]: leak of ‘ll’
LVM2.2.03.38/lib/misc/lvm-flock.c:204:12: branch_false: following ‘false’ branch (when ‘convert == 0’)...
LVM2.2.03.38/lib/misc/lvm-flock.c:218:20: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-flock.c:218:20: acquire_memory: allocated here
LVM2.2.03.38/lib/misc/lvm-flock.c:218:12: branch_false: following ‘false’ branch (when ‘ll’ is non-NULL)...
LVM2.2.03.38/lib/misc/lvm-flock.c:221:25: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-flock.c:221:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-flock.c:226:9: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-flock.c:231:16: throw: if ‘dm_prepare_selinux_context’ throws an exception...
LVM2.2.03.38/lib/misc/lvm-flock.c:231:16: danger: ‘ll’ leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def419]
LVM2.2.03.38/lib/misc/lvm-wrappers.c:123:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/urandom", 0)’
LVM2.2.03.38/lib/misc/lvm-wrappers.c:118:19: acquire_resource: opened here
LVM2.2.03.38/lib/misc/lvm-wrappers.c:118:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-wrappers.c:123:13: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-wrappers.c:123:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/misc/lvm-wrappers.c:130:13: branch_false: ...to here
LVM2.2.03.38/lib/misc/lvm-wrappers.c:123:13: danger: ‘open("/dev/urandom", 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def420]
LVM2.2.03.38/lib/misc/util.h:42:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘socket(1, 1, 0)’
LVM2.2.03.38/libdaemon/client/daemon-client.c:25:15: enter_function: entry to ‘daemon_open’
LVM2.2.03.38/libdaemon/client/daemon-client.c:34:28: acquire_resource: stream socket created here
LVM2.2.03.38/libdaemon/client/daemon-client.c:34:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/client/daemon-client.c:40:14: call_function: inlined call to ‘_dm_strncpy’ from ‘daemon_open’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def421]
LVM2.2.03.38/lib/mm/memlock.c:152:27: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(_size_malloc_tmp)’
LVM2.2.03.38/lib/mm/memlock.c:607:13: enter_function: entry to ‘_lock_mem_if_needed’
LVM2.2.03.38/lib/mm/memlock.c:611:13: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/mm/memlock.c:613:17: branch_true: ...to here
LVM2.2.03.38/lib/mm/memlock.c:614:17: call_function: calling ‘_lock_mem’ from ‘_lock_mem_if_needed’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def422]
LVM2.2.03.38/lib/notify/lvmnotify.c:71:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(lockfile, 2)’
LVM2.2.03.38/lib/notify/lvmnotify.c:57:14: acquire_resource: opened here
LVM2.2.03.38/lib/notify/lvmnotify.c:58:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/notify/lvmnotify.c:70:9: branch_false: ...to here
LVM2.2.03.38/lib/notify/lvmnotify.c:71:14: throw: if ‘lockf’ throws an exception...
LVM2.2.03.38/lib/notify/lvmnotify.c:71:14: danger: ‘open(lockfile, 2)’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def423]
LVM2.2.03.38/lib/raid/raid.c:681:25: warning[-Wanalyzer-malloc-leak]: leak of ‘_init_raid_segtype(cmd, & _raid_types[i], get_monitor_dso_path(cmd, 285), monitored)’
LVM2.2.03.38/lib/raid/raid.c:699:5: enter_function: entry to ‘init_raid_segtypes’
LVM2.2.03.38/lib/raid/raid.c:721:21: branch_true: following ‘true’ branch (when ‘i != 21’)...
LVM2.2.03.38/lib/raid/raid.c:722:32: branch_true: ...to here
LVM2.2.03.38/lib/raid/raid.c:722:32: call_function: calling ‘_init_raid_segtype’ from ‘init_raid_segtypes’
LVM2.2.03.38/lib/raid/raid.c:722:32: return_function: returning to ‘init_raid_segtypes’ from ‘_init_raid_segtype’
LVM2.2.03.38/lib/raid/raid.c:722:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/raid/raid.c:723:22: branch_true: ...to here
LVM2.2.03.38/lib/raid/raid.c:681:25: danger: ‘_init_raid_segtype(cmd, & _raid_types[i], get_monitor_dso_path(cmd, 285), monitored)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def424]
LVM2.2.03.38/lib/raid/raid.c:681:25: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 72)’
LVM2.2.03.38/lib/raid/raid.c:667:29: enter_function: entry to ‘_init_raid_segtype’
LVM2.2.03.38/lib/raid/raid.c:672:40: call_function: inlined call to ‘zalloc’ from ‘_init_raid_segtype’
LVM2.2.03.38/lib/raid/raid.c:674:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/raid/raid.c:680:9: branch_false: ...to here
LVM2.2.03.38/lib/raid/raid.c:693:9: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/raid/raid.c:681:25: danger: ‘calloc(1, 72)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def425]
LVM2.2.03.38/lib/raid/raid.c:693:9: warning[-Wanalyzer-malloc-leak]: leak of ‘dso’
LVM2.2.03.38/lib/raid/raid.c:674:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/raid/raid.c:680:9: branch_false: ...to here
LVM2.2.03.38/lib/raid/raid.c:685:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/raid/raid.c:686:27: acquire_memory: allocated here
LVM2.2.03.38/lib/raid/raid.c:685:13: branch_true: following ‘true’ branch (when ‘dso’ is non-NULL)...
LVM2.2.03.38/lib/raid/raid.c:687:17: branch_true: ...to here
LVM2.2.03.38/lib/raid/raid.c:693:9: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/raid/raid.c:693:9: danger: ‘dso’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def426]
LVM2.2.03.38/lib/snapshot/snapshot.c:266:24: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 72)’
LVM2.2.03.38/lib/snapshot/snapshot.c:249:22: enter_function: entry to ‘init_snapshot_segtype’
LVM2.2.03.38/lib/snapshot/snapshot.c:255:40: call_function: inlined call to ‘zalloc’ from ‘init_snapshot_segtype’
LVM2.2.03.38/lib/snapshot/snapshot.c:257:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/snapshot/snapshot.c:260:9: branch_false: ...to here
LVM2.2.03.38/lib/snapshot/snapshot.c:266:24: throw: if ‘get_monitor_dso_path’ throws an exception...
LVM2.2.03.38/lib/snapshot/snapshot.c:266:24: danger: ‘calloc(1, 72)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def427]
LVM2.2.03.38/lib/snapshot/snapshot.c:272:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 72)’
LVM2.2.03.38/lib/snapshot/snapshot.c:249:22: enter_function: entry to ‘init_snapshot_segtype’
LVM2.2.03.38/lib/snapshot/snapshot.c:255:40: call_function: inlined call to ‘zalloc’ from ‘init_snapshot_segtype’
LVM2.2.03.38/lib/snapshot/snapshot.c:257:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/snapshot/snapshot.c:260:9: branch_false: ...to here
LVM2.2.03.38/lib/snapshot/snapshot.c:272:9: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/snapshot/snapshot.c:272:9: danger: ‘calloc(1, 72)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def428]
LVM2.2.03.38/lib/striped/striped.c:242:26: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 72)’
LVM2.2.03.38/lib/striped/striped.c:233:29: enter_function: entry to ‘_init_segtype’
LVM2.2.03.38/lib/striped/striped.c:235:40: call_function: inlined call to ‘zalloc’ from ‘_init_segtype’
LVM2.2.03.38/lib/striped/striped.c:237:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/striped/striped.c:240:9: branch_false: ...to here
LVM2.2.03.38/lib/striped/striped.c:244:9: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/striped/striped.c:242:26: danger: ‘calloc(1, 72)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def429]
LVM2.2.03.38/lib/thin/thin.c:806:32: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 72)’
LVM2.2.03.38/lib/thin/thin.c:777:5: enter_function: entry to ‘init_thin_segtypes’
LVM2.2.03.38/lib/thin/thin.c:797:21: branch_true: following ‘true’ branch (when ‘i != 2’)...
LVM2.2.03.38/lib/thin/thin.c:798:27: call_function: inlined call to ‘zalloc’ from ‘init_thin_segtypes’
LVM2.2.03.38/lib/thin/thin.c:800:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/thin/thin.c:806:32: branch_false: ...to here
LVM2.2.03.38/lib/thin/thin.c:812:32: throw: if ‘get_monitor_dso_path’ throws an exception...
LVM2.2.03.38/lib/thin/thin.c:806:32: danger: ‘calloc(1, 72)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def430]
LVM2.2.03.38/lib/unknown/unknown.c:72:17: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 72)’
LVM2.2.03.38/lib/unknown/unknown.c:61:22: enter_function: entry to ‘init_unknown_segtype’
LVM2.2.03.38/lib/unknown/unknown.c:63:40: call_function: inlined call to ‘zalloc’ from ‘init_unknown_segtype’
LVM2.2.03.38/lib/unknown/unknown.c:65:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/unknown/unknown.c:70:9: branch_false: ...to here
LVM2.2.03.38/lib/unknown/unknown.c:71:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/unknown/unknown.c:72:17: branch_true: ...to here
LVM2.2.03.38/lib/unknown/unknown.c:72:17: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/unknown/unknown.c:72:17: danger: ‘calloc(1, 72)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def431]
LVM2.2.03.38/lib/unknown/unknown.c:79:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
LVM2.2.03.38/lib/unknown/unknown.c:65:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/unknown/unknown.c:70:9: branch_false: ...to here
LVM2.2.03.38/lib/unknown/unknown.c:71:31: acquire_memory: allocated here
LVM2.2.03.38/lib/unknown/unknown.c:71:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/unknown/unknown.c:77:9: branch_false: ...to here
LVM2.2.03.38/lib/unknown/unknown.c:79:9: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/unknown/unknown.c:79:9: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def432]
LVM2.2.03.38/lib/unknown/unknown.c:79:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 72)’
LVM2.2.03.38/lib/unknown/unknown.c:61:22: enter_function: entry to ‘init_unknown_segtype’
LVM2.2.03.38/lib/unknown/unknown.c:63:40: call_function: inlined call to ‘zalloc’ from ‘init_unknown_segtype’
LVM2.2.03.38/lib/unknown/unknown.c:65:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/unknown/unknown.c:70:9: branch_false: ...to here
LVM2.2.03.38/lib/unknown/unknown.c:71:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/unknown/unknown.c:77:9: branch_false: ...to here
LVM2.2.03.38/lib/unknown/unknown.c:79:9: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/unknown/unknown.c:79:9: danger: ‘calloc(1, 72)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def433]
LVM2.2.03.38/lib/vdo/vdo.c:610:17: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 72)’
LVM2.2.03.38/lib/vdo/vdo.c:603:5: enter_function: entry to ‘init_vdo_segtypes’
LVM2.2.03.38/lib/vdo/vdo.c:608:25: call_function: inlined call to ‘zalloc’ from ‘init_vdo_segtypes’
LVM2.2.03.38/lib/vdo/vdo.c:608:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/vdo/vdo.c:609:30: call_function: inlined call to ‘zalloc’ from ‘init_vdo_segtypes’
LVM2.2.03.38/lib/vdo/vdo.c:608:13: branch_true: following ‘true’ branch...
LVM2.2.03.38/lib/vdo/vdo.c:610:17: branch_true: ...to here
LVM2.2.03.38/lib/vdo/vdo.c:610:17: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/vdo/vdo.c:610:17: danger: ‘calloc(1, 72)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def434]
LVM2.2.03.38/lib/vdo/vdo.c:619:14: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 72)’
LVM2.2.03.38/lib/vdo/vdo.c:603:5: enter_function: entry to ‘init_vdo_segtypes’
LVM2.2.03.38/lib/vdo/vdo.c:608:25: call_function: inlined call to ‘zalloc’ from ‘init_vdo_segtypes’
LVM2.2.03.38/lib/vdo/vdo.c:608:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/vdo/vdo.c:609:30: call_function: inlined call to ‘zalloc’ from ‘init_vdo_segtypes’
LVM2.2.03.38/lib/vdo/vdo.c:608:13: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/vdo/vdo.c:615:9: branch_false: ...to here
LVM2.2.03.38/lib/vdo/vdo.c:619:14: throw: if ‘lvm_register_segtype’ throws an exception...
LVM2.2.03.38/lib/vdo/vdo.c:619:14: danger: ‘calloc(1, 72)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def435]
LVM2.2.03.38/lib/vdo/vdo.c:629:29: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 72)’
LVM2.2.03.38/lib/vdo/vdo.c:603:5: enter_function: entry to ‘init_vdo_segtypes’
LVM2.2.03.38/lib/vdo/vdo.c:608:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/vdo/vdo.c:609:30: call_function: inlined call to ‘zalloc’ from ‘init_vdo_segtypes’
LVM2.2.03.38/lib/vdo/vdo.c:608:13: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/vdo/vdo.c:615:9: branch_false: ...to here
LVM2.2.03.38/lib/vdo/vdo.c:619:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/vdo/vdo.c:624:9: branch_false: ...to here
LVM2.2.03.38/lib/vdo/vdo.c:629:29: throw: if ‘get_monitor_dso_path’ throws an exception...
LVM2.2.03.38/lib/vdo/vdo.c:629:29: danger: ‘calloc(1, 72)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def436]
LVM2.2.03.38/lib/vdo/vdo.c:635:14: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 72)’
LVM2.2.03.38/lib/vdo/vdo.c:603:5: enter_function: entry to ‘init_vdo_segtypes’
LVM2.2.03.38/lib/vdo/vdo.c:608:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/vdo/vdo.c:609:30: call_function: inlined call to ‘zalloc’ from ‘init_vdo_segtypes’
LVM2.2.03.38/lib/vdo/vdo.c:608:13: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/vdo/vdo.c:615:9: branch_false: ...to here
LVM2.2.03.38/lib/vdo/vdo.c:619:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/vdo/vdo.c:624:9: branch_false: ...to here
LVM2.2.03.38/lib/vdo/vdo.c:635:14: throw: if ‘lvm_register_segtype’ throws an exception...
LVM2.2.03.38/lib/vdo/vdo.c:635:14: danger: ‘calloc(1, 72)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def437]
LVM2.2.03.38/lib/writecache/writecache.c:386:14: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 72)’
LVM2.2.03.38/lib/writecache/writecache.c:372:5: enter_function: entry to ‘init_writecache_segtypes’
LVM2.2.03.38/lib/writecache/writecache.c:375:40: call_function: inlined call to ‘zalloc’ from ‘init_writecache_segtypes’
LVM2.2.03.38/lib/writecache/writecache.c:377:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/writecache/writecache.c:382:9: branch_false: ...to here
LVM2.2.03.38/lib/writecache/writecache.c:386:14: throw: if ‘lvm_register_segtype’ throws an exception...
LVM2.2.03.38/lib/writecache/writecache.c:386:14: danger: ‘calloc(1, 72)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def438]
LVM2.2.03.38/lib/zero/zero.c:99:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 72)’
LVM2.2.03.38/lib/zero/zero.c:88:22: enter_function: entry to ‘init_zero_segtype’
LVM2.2.03.38/lib/zero/zero.c:90:40: call_function: inlined call to ‘zalloc’ from ‘init_zero_segtype’
LVM2.2.03.38/lib/zero/zero.c:92:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/lib/zero/zero.c:95:9: branch_false: ...to here
LVM2.2.03.38/lib/zero/zero.c:99:9: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/lib/zero/zero.c:99:9: danger: ‘calloc(1, 72)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def439]
LVM2.2.03.38/libdaemon/client/daemon-client.c:41:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘socket(1, 1, 0)’
LVM2.2.03.38/libdaemon/client/daemon-client.c:25:15: enter_function: entry to ‘daemon_open’
LVM2.2.03.38/libdaemon/client/daemon-client.c:34:28: acquire_resource: stream socket created here
LVM2.2.03.38/libdaemon/client/daemon-client.c:34:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/client/daemon-client.c:40:14: call_function: inlined call to ‘_dm_strncpy’ from ‘daemon_open’
LVM2.2.03.38/libdaemon/client/daemon-client.c:40:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/libdaemon/client/daemon-client.c:41:17: branch_true: ...to here
LVM2.2.03.38/libdaemon/client/daemon-client.c:41:17: throw: if the called function throws an exception...
LVM2.2.03.38/libdaemon/client/daemon-client.c:41:17: danger: ‘socket(1, 1, 0)’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def440]
LVM2.2.03.38/libdaemon/client/daemon-client.c:45:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘socket(1, 1, 0)’
LVM2.2.03.38/libdaemon/client/daemon-client.c:25:15: enter_function: entry to ‘daemon_open’
LVM2.2.03.38/libdaemon/client/daemon-client.c:34:28: acquire_resource: stream socket created here
LVM2.2.03.38/libdaemon/client/daemon-client.c:34:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/client/daemon-client.c:40:14: call_function: inlined call to ‘_dm_strncpy’ from ‘daemon_open’
LVM2.2.03.38/libdaemon/client/daemon-client.c:40:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/client/daemon-client.c:45:13: branch_false: ...to here
LVM2.2.03.38/libdaemon/client/daemon-client.c:45:13: throw: if ‘connect’ throws an exception...
LVM2.2.03.38/libdaemon/client/daemon-client.c:45:13: danger: ‘socket(1, 1, 0)’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def441]
LVM2.2.03.38/libdaemon/client/daemon-client.c:80:33: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘socket(1, 1, 0)’
LVM2.2.03.38/libdaemon/client/daemon-client.c:25:15: enter_function: entry to ‘daemon_open’
LVM2.2.03.38/libdaemon/client/daemon-client.c:34:28: acquire_resource: stream socket created here
LVM2.2.03.38/libdaemon/client/daemon-client.c:34:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/client/daemon-client.c:40:14: call_function: inlined call to ‘_dm_strncpy’ from ‘daemon_open’
LVM2.2.03.38/libdaemon/client/daemon-client.c:40:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/libdaemon/client/daemon-client.c:41:17: branch_true: ...to here
LVM2.2.03.38/libdaemon/client/daemon-client.c:80:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/libdaemon/client/daemon-client.c:80:33: branch_true: ...to here
LVM2.2.03.38/libdaemon/client/daemon-client.c:80:33: danger: ‘socket(1, 1, 0)’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-404): [#def442]
LVM2.2.03.38/libdaemon/client/daemon-client.c:149:14: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
LVM2.2.03.38/libdaemon/client/daemon-client.c:148:9: acquire_resource: ‘va_copy’ called here
LVM2.2.03.38/libdaemon/client/daemon-client.c:149:14: throw: if ‘buffer_append_f’ throws an exception...
LVM2.2.03.38/libdaemon/client/daemon-client.c:149:14: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def443]
LVM2.2.03.38/libdaemon/client/daemon-client.c:150:14: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
LVM2.2.03.38/libdaemon/client/daemon-client.c:148:9: acquire_resource: ‘va_copy’ called here
LVM2.2.03.38/libdaemon/client/daemon-client.c:149:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/client/daemon-client.c:150:14: branch_false: ...to here
LVM2.2.03.38/libdaemon/client/daemon-client.c:150:14: throw: if ‘buffer_append_vf’ throws an exception...
LVM2.2.03.38/libdaemon/client/daemon-client.c:150:14: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def444]
LVM2.2.03.38/libdaemon/client/daemon-client.c:152:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
LVM2.2.03.38/libdaemon/client/daemon-client.c:163:14: enter_function: entry to ‘daemon_send_simple’
LVM2.2.03.38/libdaemon/client/daemon-client.c:168:9: acquire_resource: ‘va_start’ called here
LVM2.2.03.38/libdaemon/client/daemon-client.c:169:13: call_function: calling ‘daemon_send_simple_v’ from ‘daemon_send_simple’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def445]
LVM2.2.03.38/libdaemon/client/daemon-client.c:217:15: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
LVM2.2.03.38/libdaemon/client/daemon-client.c:213:12: branch_false: following ‘false’ branch (when ‘<unknown>’ is non-NULL)...
LVM2.2.03.38/libdaemon/client/daemon-client.c:216:9: branch_false: ...to here
LVM2.2.03.38/libdaemon/client/daemon-client.c:216:9: acquire_resource: ‘va_copy’ called here
LVM2.2.03.38/libdaemon/client/daemon-client.c:217:15: throw: if ‘config_make_nodes_v’ throws an exception...
LVM2.2.03.38/libdaemon/client/daemon-client.c:217:15: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def446]
LVM2.2.03.38/libdaemon/server/daemon-server.c:117:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(oom_adj_path, "w")’
LVM2.2.03.38/libdaemon/server/daemon-server.c:110:20: acquire_resource: opened here
LVM2.2.03.38/libdaemon/server/daemon-server.c:110:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:115:9: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:117:13: danger: ‘fopen(oom_adj_path, "w")’ leaks here; was opened at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def447]
LVM2.2.03.38/libdaemon/server/daemon-server.c:117:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(oom_adj_path, "w")’
LVM2.2.03.38/libdaemon/server/daemon-server.c:110:20: acquire_memory: allocated here
LVM2.2.03.38/libdaemon/server/daemon-server.c:110:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:115:9: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:117:13: danger: ‘fopen(oom_adj_path, "w")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def448]
LVM2.2.03.38/libdaemon/server/daemon-server.c:248:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
LVM2.2.03.38/libdaemon/server/daemon-server.c:241:14: acquire_resource: stream socket created here
LVM2.2.03.38/libdaemon/server/daemon-server.c:242:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
LVM2.2.03.38/libdaemon/server/daemon-server.c:248:32: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:248:32: throw: if ‘fcntl’ throws an exception...
LVM2.2.03.38/libdaemon/server/daemon-server.c:248:32: danger: ‘fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def449]
LVM2.2.03.38/libdaemon/server/daemon-server.c:300:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
LVM2.2.03.38/libdaemon/server/daemon-server.c:241:14: acquire_resource: stream socket created here
LVM2.2.03.38/libdaemon/server/daemon-server.c:242:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
LVM2.2.03.38/libdaemon/server/daemon-server.c:248:32: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:252:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:257:13: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:299:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:300:17: branch_true: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:300:17: throw: if ‘perror’ throws an exception...
LVM2.2.03.38/libdaemon/server/daemon-server.c:300:17: danger: ‘fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def450]
LVM2.2.03.38/libdaemon/server/daemon-server.c:306:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
LVM2.2.03.38/libdaemon/server/daemon-server.c:241:14: acquire_resource: stream socket created here
LVM2.2.03.38/libdaemon/server/daemon-server.c:242:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
LVM2.2.03.38/libdaemon/server/daemon-server.c:248:32: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:252:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:257:13: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:299:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:304:1: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:306:16: throw: if ‘dm_prepare_selinux_context’ throws an exception...
LVM2.2.03.38/libdaemon/server/daemon-server.c:306:16: danger: ‘fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def451]
LVM2.2.03.38/libdaemon/server/daemon-server.c:311:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
LVM2.2.03.38/libdaemon/server/daemon-server.c:241:14: acquire_resource: stream socket created here
LVM2.2.03.38/libdaemon/server/daemon-server.c:242:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
LVM2.2.03.38/libdaemon/server/daemon-server.c:248:32: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:252:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:257:13: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:299:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:300:17: branch_true: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:310:12: branch_true: following ‘true’ branch (when ‘fd >= 0’)...
LVM2.2.03.38/libdaemon/server/daemon-server.c:311:21: branch_true: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:311:21: throw: if ‘close’ throws an exception...
LVM2.2.03.38/libdaemon/server/daemon-server.c:311:21: danger: ‘fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def452]
LVM2.2.03.38/libdaemon/server/daemon-server.c:345:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
LVM2.2.03.38/libdaemon/server/daemon-server.c:338:19: acquire_resource: opened here
LVM2.2.03.38/libdaemon/server/daemon-server.c:338:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:343:9: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:344:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:345:17: branch_true: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:345:17: danger: ‘open("/dev/null", 2)’ leaks here; was opened at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def453]
LVM2.2.03.38/libdaemon/server/daemon-server.c:353:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
LVM2.2.03.38/libdaemon/server/daemon-server.c:338:19: acquire_resource: opened here
LVM2.2.03.38/libdaemon/server/daemon-server.c:338:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:343:9: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:344:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:349:9: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:353:17: throw: if ‘perror’ throws an exception...
LVM2.2.03.38/libdaemon/server/daemon-server.c:353:17: danger: ‘open("/dev/null", 2)’ leaks here; was opened at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def454]
LVM2.2.03.38/libdaemon/server/daemon-server.c:354:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
LVM2.2.03.38/libdaemon/server/daemon-server.c:338:19: acquire_resource: opened here
LVM2.2.03.38/libdaemon/server/daemon-server.c:338:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:343:9: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:344:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:349:9: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:354:24: danger: ‘open("/dev/null", 2)’ leaks here; was opened at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def455]
LVM2.2.03.38/libdaemon/server/daemon-server.c:361:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
LVM2.2.03.38/libdaemon/server/daemon-server.c:338:19: acquire_resource: opened here
LVM2.2.03.38/libdaemon/server/daemon-server.c:338:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:343:9: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:344:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:349:9: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:361:24: danger: ‘open("/dev/null", 2)’ leaks here; was opened at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def456]
LVM2.2.03.38/libdaemon/server/daemon-server.c:384:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
LVM2.2.03.38/libdaemon/server/daemon-server.c:338:19: acquire_resource: opened here
LVM2.2.03.38/libdaemon/server/daemon-server.c:338:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:343:9: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:344:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:349:9: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:383:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:384:17: branch_true: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:384:17: throw: if ‘perror’ throws an exception...
LVM2.2.03.38/libdaemon/server/daemon-server.c:384:17: danger: ‘open("/dev/null", 2)’ leaks here; was opened at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def457]
LVM2.2.03.38/libdaemon/server/daemon-server.c:385:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
LVM2.2.03.38/libdaemon/server/daemon-server.c:338:19: acquire_resource: opened here
LVM2.2.03.38/libdaemon/server/daemon-server.c:338:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:343:9: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:344:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:349:9: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:383:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:384:17: branch_true: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:385:24: danger: ‘open("/dev/null", 2)’ leaks here; was opened at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def458]
LVM2.2.03.38/libdaemon/server/daemon-server.c:389:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open("/dev/null", 2), 0)’
LVM2.2.03.38/libdaemon/server/daemon-server.c:338:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:343:9: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:344:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:349:9: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:383:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:389:12: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:389:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:389:39: branch_true: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:389:39: acquire_resource: opened here
LVM2.2.03.38/libdaemon/server/daemon-server.c:389:13: danger: ‘dup2(open("/dev/null", 2), 0)’ leaks here; was opened at [(11)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def459]
LVM2.2.03.38/libdaemon/server/daemon-server.c:389:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
LVM2.2.03.38/libdaemon/server/daemon-server.c:338:19: acquire_resource: opened here
LVM2.2.03.38/libdaemon/server/daemon-server.c:338:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:343:9: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:344:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:349:9: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:383:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:389:12: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:390:13: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:389:13: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:389:13: danger: ‘open("/dev/null", 2)’ leaks here; was opened at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def460]
LVM2.2.03.38/libdaemon/server/daemon-server.c:390:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open("/dev/null", 2), 1)’
LVM2.2.03.38/libdaemon/server/daemon-server.c:338:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:343:9: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:344:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:349:9: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:383:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:389:12: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:390:40: acquire_resource: opened here
LVM2.2.03.38/libdaemon/server/daemon-server.c:390:13: danger: ‘dup2(open("/dev/null", 2), 1)’ leaks here; was opened at [(9)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def461]
LVM2.2.03.38/libdaemon/server/daemon-server.c:391:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open("/dev/null", 2), 2)’
LVM2.2.03.38/libdaemon/server/daemon-server.c:338:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:343:9: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:344:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:349:9: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:383:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:389:12: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:389:13: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:389:13: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:391:40: acquire_resource: opened here
LVM2.2.03.38/libdaemon/server/daemon-server.c:391:13: danger: ‘dup2(open("/dev/null", 2), 2)’ leaks here; was opened at [(11)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def462]
LVM2.2.03.38/libdaemon/server/daemon-server.c:392:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
LVM2.2.03.38/libdaemon/server/daemon-server.c:338:19: acquire_resource: opened here
LVM2.2.03.38/libdaemon/server/daemon-server.c:338:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:343:9: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:344:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:349:9: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:383:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:389:12: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:392:17: throw: if ‘perror’ throws an exception...
LVM2.2.03.38/libdaemon/server/daemon-server.c:392:17: danger: ‘open("/dev/null", 2)’ leaks here; was opened at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def463]
LVM2.2.03.38/libdaemon/server/daemon-server.c:393:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
LVM2.2.03.38/libdaemon/server/daemon-server.c:338:19: acquire_resource: opened here
LVM2.2.03.38/libdaemon/server/daemon-server.c:338:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:343:9: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:344:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:349:9: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:383:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:389:12: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:393:20: danger: ‘open("/dev/null", 2)’ leaks here; was opened at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def464]
LVM2.2.03.38/libdaemon/server/daemon-server.c:394:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
LVM2.2.03.38/libdaemon/server/daemon-server.c:338:19: acquire_resource: opened here
LVM2.2.03.38/libdaemon/server/daemon-server.c:338:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:343:9: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:344:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:349:9: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:383:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:389:12: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:393:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:394:32: branch_true: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:394:32: danger: ‘open("/dev/null", 2)’ leaks here; was opened at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def465]
LVM2.2.03.38/libdaemon/server/daemon-server.c:399:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
LVM2.2.03.38/libdaemon/server/daemon-server.c:338:19: acquire_resource: opened here
LVM2.2.03.38/libdaemon/server/daemon-server.c:338:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:343:9: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:344:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:349:9: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:383:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:389:12: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:389:13: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:389:13: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:391:13: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:399:12: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:399:12: danger: ‘open("/dev/null", 2)’ leaks here; was opened at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def466]
LVM2.2.03.38/libdaemon/server/daemon-server.c:399:37: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
LVM2.2.03.38/libdaemon/server/daemon-server.c:338:19: acquire_resource: opened here
LVM2.2.03.38/libdaemon/server/daemon-server.c:338:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:343:9: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:344:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:349:9: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:383:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:389:12: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:389:13: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:389:13: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:390:13: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:389:13: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:389:13: branch_true: following ‘true’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:391:40: branch_true: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:391:13: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:399:12: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:399:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:399:37: branch_true: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:399:37: danger: ‘open("/dev/null", 2)’ leaks here; was opened at [(1)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def467]
LVM2.2.03.38/libdaemon/server/daemon-server.c:418:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
LVM2.2.03.38/libdaemon/server/daemon-server.c:416:9: acquire_resource: ‘va_start’ called here
LVM2.2.03.38/libdaemon/server/daemon-server.c:418:9: throw: if ‘buffer_init’ throws an exception...
LVM2.2.03.38/libdaemon/server/daemon-server.c:418:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def468]
LVM2.2.03.38/libdaemon/server/daemon-server.c:419:14: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
LVM2.2.03.38/libdaemon/server/daemon-server.c:416:9: acquire_resource: ‘va_start’ called here
LVM2.2.03.38/libdaemon/server/daemon-server.c:419:14: throw: if ‘buffer_append_f’ throws an exception...
LVM2.2.03.38/libdaemon/server/daemon-server.c:419:14: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def469]
LVM2.2.03.38/libdaemon/server/daemon-server.c:423:14: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
LVM2.2.03.38/libdaemon/server/daemon-server.c:416:9: acquire_resource: ‘va_start’ called here
LVM2.2.03.38/libdaemon/server/daemon-server.c:419:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdaemon/server/daemon-server.c:423:14: branch_false: ...to here
LVM2.2.03.38/libdaemon/server/daemon-server.c:423:14: throw: if ‘buffer_append_vf’ throws an exception...
LVM2.2.03.38/libdaemon/server/daemon-server.c:423:14: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def470]
LVM2.2.03.38/libdaemon/server/daemon-stray.h:52:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&buf, 0)’
LVM2.2.03.38/daemons/dmeventd/dmeventd.c:2427:13: enter_function: entry to ‘_daemonize’
LVM2.2.03.38/daemons/dmeventd/dmeventd.c:2441:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/dmeventd/dmeventd.c:2445:9: branch_false: ...to here
LVM2.2.03.38/daemons/dmeventd/dmeventd.c:2479:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/dmeventd/dmeventd.c:2482:9: branch_false: ...to here
LVM2.2.03.38/daemons/dmeventd/dmeventd.c:2482:9: call_function: calling ‘daemon_close_stray_fds’ from ‘_daemonize’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def471]
LVM2.2.03.38/libdaemon/server/daemon-stray.h:132:34: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(&_fd_dir)’
LVM2.2.03.38/daemons/dmeventd/dmeventd.c:2427:13: enter_function: entry to ‘_daemonize’
LVM2.2.03.38/daemons/dmeventd/dmeventd.c:2441:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/dmeventd/dmeventd.c:2445:9: branch_false: ...to here
LVM2.2.03.38/daemons/dmeventd/dmeventd.c:2479:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/daemons/dmeventd/dmeventd.c:2482:9: branch_false: ...to here
LVM2.2.03.38/daemons/dmeventd/dmeventd.c:2482:9: call_function: calling ‘daemon_close_stray_fds’ from ‘_daemonize’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def472]
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:128:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fm.path’
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:816:5: enter_function: entry to ‘main’
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:820:14: call_function: calling ‘_parse_args’ from ‘main’
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:820:14: return_function: returning to ‘main’ from ‘_parse_args’
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:820:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:825:9: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:825:9: call_function: calling ‘_setup_logging’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def473]
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:129:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fm.path’
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:816:5: enter_function: entry to ‘main’
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:820:14: call_function: calling ‘_parse_args’ from ‘main’
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:820:14: return_function: returning to ‘main’ from ‘_parse_args’
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:820:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:825:9: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:825:9: call_function: calling ‘_setup_logging’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def474]
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:171:26: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(&path_buf)’
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:147:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:150:13: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:150:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:159:13: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:159:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:165:17: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:165:17: acquire_memory: allocated here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:166:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:166:12: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:171:26: throw: if ‘readdir’ throws an exception...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:171:26: danger: ‘opendir(&path_buf)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def475]
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:225:27: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/proc")’
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:222:18: acquire_memory: allocated here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:223:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:223:12: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:225:27: throw: if ‘readdir’ throws an exception...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:225:27: danger: ‘opendir("/proc")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def476]
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:329:20: warning[-Wanalyzer-malloc-leak]: leak of ‘fm.path’
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:816:5: enter_function: entry to ‘main’
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:820:14: call_function: calling ‘_parse_args’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def477]
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:578:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(*fm.path, 0)’
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:565:12: enter_function: entry to ‘_filemap_monitor_check_file_unlinked’
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:575:19: acquire_resource: opened here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:575:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:578:16: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:578:16: call_function: calling ‘_filemap_monitor_check_same_file’ from ‘_filemap_monitor_check_file_unlinked’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def478]
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:613:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&link_buf, 0)’
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:565:12: enter_function: entry to ‘_filemap_monitor_check_file_unlinked’
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:595:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:600:20: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:600:12: branch_false: following ‘false’ branch (when ‘len >= 0’)...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:605:9: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:610:19: acquire_resource: opened here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:610:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:613:24: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:613:24: call_function: calling ‘_filemap_monitor_check_same_file’ from ‘_filemap_monitor_check_file_unlinked’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def479]
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:664:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open("/dev/null", 2), 0)’
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:637:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:642:20: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:642:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:647:12: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:647:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:653:13: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:653:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:658:13: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:658:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:659:27: branch_true: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:659:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:664:20: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:664:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:664:47: branch_true: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:664:47: acquire_resource: opened here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:664:21: danger: ‘dup2(open("/dev/null", 2), 0)’ leaks here; was opened at [(15)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def480]
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:664:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:637:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:642:20: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:642:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:647:12: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:647:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:653:13: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:653:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:658:13: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:658:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:659:27: branch_true: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:659:27: acquire_resource: opened here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:659:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:664:20: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:665:21: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:664:21: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:664:21: danger: ‘open("/dev/null", 2)’ leaks here; was opened at [(11)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def481]
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:665:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open("/dev/null", 2), 1)’
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:637:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:642:20: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:642:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:647:12: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:647:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:653:13: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:653:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:658:13: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:658:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:659:27: branch_true: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:659:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:664:20: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:665:48: acquire_resource: opened here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:665:21: danger: ‘dup2(open("/dev/null", 2), 1)’ leaks here; was opened at [(13)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def482]
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:666:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open("/dev/null", 2), 2)’
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:637:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:642:20: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:642:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:647:12: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:647:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:653:13: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:653:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:658:13: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:658:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:659:27: branch_true: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:659:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:664:20: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:664:21: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:664:21: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:666:48: acquire_resource: opened here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:666:21: danger: ‘dup2(open("/dev/null", 2), 2)’ leaks here; was opened at [(15)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def483]
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:667:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:637:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:642:20: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:642:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:647:12: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:647:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:653:13: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:653:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:658:13: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:658:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:659:27: branch_true: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:659:27: acquire_resource: opened here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:659:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:664:20: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:667:28: danger: ‘open("/dev/null", 2)’ leaks here; was opened at [(11)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def484]
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:668:40: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:637:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:642:20: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:642:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:647:12: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:647:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:653:13: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:653:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:658:13: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:658:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:659:27: branch_true: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:659:27: acquire_resource: opened here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:659:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:664:20: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:667:28: branch_true: following ‘true’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:668:40: branch_true: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:668:40: danger: ‘open("/dev/null", 2)’ leaks here; was opened at [(11)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def485]
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:673:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:637:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:642:20: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:642:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:647:12: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:647:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:653:13: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:653:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:658:13: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:658:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:659:27: branch_true: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:659:27: acquire_resource: opened here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:659:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:664:20: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:664:21: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:664:21: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:666:21: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:673:20: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:673:20: danger: ‘open("/dev/null", 2)’ leaks here; was opened at [(11)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def486]
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:674:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:637:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:642:20: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:642:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:647:12: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:647:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:653:13: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:653:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:658:13: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:658:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:659:27: branch_true: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:659:27: acquire_resource: opened here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:659:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:664:20: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:664:21: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:664:21: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:665:21: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:664:21: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:664:21: branch_true: following ‘true’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:666:48: branch_true: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:666:21: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:673:20: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:673:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:674:32: branch_true: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:674:32: danger: ‘open("/dev/null", 2)’ leaks here; was opened at [(11)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def487]
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:827:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fm.path’
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:816:5: enter_function: entry to ‘main’
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:820:14: call_function: calling ‘_parse_args’ from ‘main’
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:820:14: return_function: returning to ‘main’ from ‘_parse_args’
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:820:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:825:9: branch_false: ...to here
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:827:9: throw: if the called function throws an exception...
LVM2.2.03.38/libdm/dm-tools/dmfilemapd.c:827:9: danger: ‘fm.path’ leaks here; was allocated at [(14)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/13)
Error: CPPCHECK_WARNING (CWE-758): [#def488]
LVM2.2.03.38/libdm/dm-tools/dmsetup.c:5022: warning[objectIndex]: The address of variable 'region_id' might be accessed at non-zero index.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def489]
LVM2.2.03.38/libdm/ioctl/libdm-iface.c:1383:26: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(dm_dir())’
LVM2.2.03.38/libdm/ioctl/libdm-iface.c:1378:19: acquire_memory: allocated here
LVM2.2.03.38/libdm/ioctl/libdm-iface.c:1378:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/ioctl/libdm-iface.c:1378:12: branch_false: ...to here
LVM2.2.03.38/libdm/ioctl/libdm-iface.c:1383:26: throw: if ‘readdir’ throws an exception...
LVM2.2.03.38/libdm/ioctl/libdm-iface.c:1383:26: danger: ‘opendir(dm_dir())’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def490]
LVM2.2.03.38/libdm/libdm-common.c:361:26: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(&_dm_dir)’
LVM2.2.03.38/libdm/libdm-common.c:2243:5: enter_function: entry to ‘dm_mknodes’
LVM2.2.03.38/libdm/libdm-common.c:2248:21: call_function: calling ‘dm_task_create’ from ‘dm_mknodes’
LVM2.2.03.38/libdm/libdm-common.c:2248:21: return_function: returning to ‘dm_mknodes’ from ‘dm_task_create’
LVM2.2.03.38/libdm/libdm-common.c:2248:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/libdm-common.c:2251:12: branch_false: ...to here
LVM2.2.03.38/libdm/libdm-common.c:2251:12: branch_true: following ‘true’ branch (when ‘name’ is non-NULL)...
LVM2.2.03.38/libdm/libdm-common.c:2251:22: branch_true: ...to here
LVM2.2.03.38/libdm/libdm-common.c:2251:22: call_function: calling ‘dm_task_set_name’ from ‘dm_mknodes’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def491]
LVM2.2.03.38/libdm/libdm-common.c:1823:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&_mountinfo, "r")’
LVM2.2.03.38/libdm/libdm-common.c:1862:5: enter_function: entry to ‘dm_mountinfo_read’
LVM2.2.03.38/libdm/libdm-common.c:1870:23: acquire_resource: opened here
LVM2.2.03.38/libdm/libdm-common.c:1870:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/libdm-common.c:1870:12: branch_false: ...to here
LVM2.2.03.38/libdm/libdm-common.c:1878:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/libdm/libdm-common.c:1880:22: call_function: calling ‘_mountinfo_parse_line’ from ‘dm_mountinfo_read’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def492]
LVM2.2.03.38/libdm/libdm-common.c:1823:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&_mountinfo, "r")’
LVM2.2.03.38/libdm/libdm-common.c:1862:5: enter_function: entry to ‘dm_mountinfo_read’
LVM2.2.03.38/libdm/libdm-common.c:1870:23: acquire_memory: allocated here
LVM2.2.03.38/libdm/libdm-common.c:1870:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/libdm-common.c:1870:12: branch_false: ...to here
LVM2.2.03.38/libdm/libdm-common.c:1878:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/libdm/libdm-common.c:1880:22: call_function: calling ‘_mountinfo_parse_line’ from ‘dm_mountinfo_read’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def493]
LVM2.2.03.38/libdm/libdm-common.c:1829:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&_mountinfo, "r")’
LVM2.2.03.38/libdm/libdm-common.c:1862:5: enter_function: entry to ‘dm_mountinfo_read’
LVM2.2.03.38/libdm/libdm-common.c:1870:23: acquire_resource: opened here
LVM2.2.03.38/libdm/libdm-common.c:1870:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/libdm-common.c:1870:12: branch_false: ...to here
LVM2.2.03.38/libdm/libdm-common.c:1878:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/libdm/libdm-common.c:1880:22: call_function: calling ‘_mountinfo_parse_line’ from ‘dm_mountinfo_read’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def494]
LVM2.2.03.38/libdm/libdm-common.c:1829:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&_mountinfo, "r")’
LVM2.2.03.38/libdm/libdm-common.c:1862:5: enter_function: entry to ‘dm_mountinfo_read’
LVM2.2.03.38/libdm/libdm-common.c:1870:23: acquire_memory: allocated here
LVM2.2.03.38/libdm/libdm-common.c:1870:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/libdm-common.c:1870:12: branch_false: ...to here
LVM2.2.03.38/libdm/libdm-common.c:1878:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/libdm/libdm-common.c:1880:22: call_function: calling ‘_mountinfo_parse_line’ from ‘dm_mountinfo_read’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def495]
LVM2.2.03.38/libdm/libdm-common.c:1916:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&sysfs_path, "r")’
LVM2.2.03.38/libdm/libdm-common.c:1900:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/libdm-common.c:1907:20: branch_false: ...to here
LVM2.2.03.38/libdm/libdm-common.c:1907:20: acquire_resource: opened here
LVM2.2.03.38/libdm/libdm-common.c:1907:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/libdm-common.c:1915:14: branch_false: ...to here
LVM2.2.03.38/libdm/libdm-common.c:1915:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/libdm/libdm-common.c:1916:17: branch_true: ...to here
LVM2.2.03.38/libdm/libdm-common.c:1916:17: throw: if the called function throws an exception...
LVM2.2.03.38/libdm/libdm-common.c:1916:17: danger: ‘fopen(&sysfs_path, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def496]
LVM2.2.03.38/libdm/libdm-common.c:1916:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&sysfs_path, "r")’
LVM2.2.03.38/libdm/libdm-common.c:1900:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/libdm-common.c:1907:20: branch_false: ...to here
LVM2.2.03.38/libdm/libdm-common.c:1907:20: acquire_memory: allocated here
LVM2.2.03.38/libdm/libdm-common.c:1907:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/libdm-common.c:1915:14: branch_false: ...to here
LVM2.2.03.38/libdm/libdm-common.c:1915:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/libdm/libdm-common.c:1916:17: branch_true: ...to here
LVM2.2.03.38/libdm/libdm-common.c:1916:17: throw: if the called function throws an exception...
LVM2.2.03.38/libdm/libdm-common.c:1916:17: danger: ‘fopen(&sysfs_path, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def497]
LVM2.2.03.38/libdm/libdm-common.c:1923:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&sysfs_path, "r")’
LVM2.2.03.38/libdm/libdm-common.c:1900:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/libdm-common.c:1907:20: branch_false: ...to here
LVM2.2.03.38/libdm/libdm-common.c:1907:20: acquire_resource: opened here
LVM2.2.03.38/libdm/libdm-common.c:1907:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/libdm-common.c:1915:14: branch_false: ...to here
LVM2.2.03.38/libdm/libdm-common.c:1915:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/libdm-common.c:1920:15: branch_false: ...to here
LVM2.2.03.38/libdm/libdm-common.c:1922:12: branch_true: following ‘true’ branch (when ‘len > buf_size’)...
LVM2.2.03.38/libdm/libdm-common.c:1923:17: branch_true: ...to here
LVM2.2.03.38/libdm/libdm-common.c:1923:17: throw: if the called function throws an exception...
LVM2.2.03.38/libdm/libdm-common.c:1923:17: danger: ‘fopen(&sysfs_path, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def498]
LVM2.2.03.38/libdm/libdm-common.c:1923:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&sysfs_path, "r")’
LVM2.2.03.38/libdm/libdm-common.c:1900:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/libdm-common.c:1907:20: branch_false: ...to here
LVM2.2.03.38/libdm/libdm-common.c:1907:20: acquire_memory: allocated here
LVM2.2.03.38/libdm/libdm-common.c:1907:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/libdm-common.c:1915:14: branch_false: ...to here
LVM2.2.03.38/libdm/libdm-common.c:1915:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/libdm-common.c:1920:15: branch_false: ...to here
LVM2.2.03.38/libdm/libdm-common.c:1922:12: branch_true: following ‘true’ branch (when ‘len > buf_size’)...
LVM2.2.03.38/libdm/libdm-common.c:1923:17: branch_true: ...to here
LVM2.2.03.38/libdm/libdm-common.c:1923:17: throw: if the called function throws an exception...
LVM2.2.03.38/libdm/libdm-common.c:1923:17: danger: ‘fopen(&sysfs_path, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def499]
LVM2.2.03.38/libdm/libdm-common.c:1981:32: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(&path)’
LVM2.2.03.38/libdm/libdm-common.c:1970:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/libdm-common.c:1971:13: branch_false: ...to here
LVM2.2.03.38/libdm/libdm-common.c:1970:13: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/libdm-common.c:1976:19: branch_false: ...to here
LVM2.2.03.38/libdm/libdm-common.c:1976:19: acquire_memory: allocated here
LVM2.2.03.38/libdm/libdm-common.c:1976:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/libdm-common.c:1976:12: branch_false: ...to here
LVM2.2.03.38/libdm/libdm-common.c:1981:16: branch_true: following ‘true’ branch (when ‘r == 0’)...
LVM2.2.03.38/libdm/libdm-common.c:1981:32: branch_true: ...to here
LVM2.2.03.38/libdm/libdm-common.c:1981:32: throw: if ‘readdir’ throws an exception...
LVM2.2.03.38/libdm/libdm-common.c:1981:32: danger: ‘opendir(&path)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def500]
LVM2.2.03.38/libdm/libdm-common.c:2010:46: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(&path)’
LVM2.2.03.38/libdm/libdm-common.c:1970:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/libdm-common.c:1971:13: branch_false: ...to here
LVM2.2.03.38/libdm/libdm-common.c:1970:13: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/libdm-common.c:1976:19: branch_false: ...to here
LVM2.2.03.38/libdm/libdm-common.c:1976:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/libdm-common.c:1976:12: branch_false: ...to here
LVM2.2.03.38/libdm/libdm-common.c:1981:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/libdm/libdm-common.c:1993:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/libdm-common.c:1998:22: branch_false: ...to here
LVM2.2.03.38/libdm/libdm-common.c:2005:39: acquire_memory: allocated here
LVM2.2.03.38/libdm/libdm-common.c:2010:46: throw: if ‘readdir’ throws an exception...
LVM2.2.03.38/libdm/libdm-common.c:2010:46: danger: ‘opendir(&path)’ leaks here; was allocated at [(11)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def501]
LVM2.2.03.38/libdm/libdm-common.c:2165:26: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(&sysfs_path)’
LVM2.2.03.38/libdm/libdm-common.c:2154:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/libdm-common.c:2159:19: branch_false: ...to here
LVM2.2.03.38/libdm/libdm-common.c:2159:19: acquire_memory: allocated here
LVM2.2.03.38/libdm/libdm-common.c:2159:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/libdm-common.c:2159:12: branch_false: ...to here
LVM2.2.03.38/libdm/libdm-common.c:2165:26: throw: if ‘readdir’ throws an exception...
LVM2.2.03.38/libdm/libdm-common.c:2165:26: danger: ‘opendir(&sysfs_path)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def502]
LVM2.2.03.38/libdm/libdm-common.c:2575:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/urandom", 0)’
LVM2.2.03.38/libdm/libdm-common.c:2564:19: acquire_resource: opened here
LVM2.2.03.38/libdm/libdm-common.c:2564:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/libdm-common.c:2564:12: branch_false: ...to here
LVM2.2.03.38/libdm/libdm-common.c:2575:25: throw: if the called function throws an exception...
LVM2.2.03.38/libdm/libdm-common.c:2575:25: danger: ‘open("/dev/urandom", 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def503]
LVM2.2.03.38/libdm/libdm-common.c:2579:30: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/urandom", 0)’
LVM2.2.03.38/libdm/libdm-common.c:2564:19: acquire_resource: opened here
LVM2.2.03.38/libdm/libdm-common.c:2564:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/libdm-common.c:2564:12: branch_false: ...to here
LVM2.2.03.38/libdm/libdm-common.c:2574:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/libdm-common.c:2579:30: branch_false: ...to here
LVM2.2.03.38/libdm/libdm-common.c:2590:41: throw: if the called function throws an exception...
LVM2.2.03.38/libdm/libdm-common.c:2579:30: danger: ‘open("/dev/urandom", 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def504]
LVM2.2.03.38/libdm/libdm-file.c:116:26: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(dir)’
LVM2.2.03.38/libdm/libdm-file.c:111:19: acquire_memory: allocated here
LVM2.2.03.38/libdm/libdm-file.c:111:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/libdm-file.c:111:12: branch_false: ...to here
LVM2.2.03.38/libdm/libdm-file.c:116:26: throw: if ‘readdir’ throws an exception...
LVM2.2.03.38/libdm/libdm-file.c:116:26: danger: ‘opendir(dir)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def505]
LVM2.2.03.38/libdm/libdm-file.c:249:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(lockfile, 0)’
LVM2.2.03.38/libdm/libdm-file.c:242:17: acquire_resource: opened here
LVM2.2.03.38/libdm/libdm-file.c:242:10: branch_false: following ‘false’ branch...
LVM2.2.03.38/libdm/libdm-file.c:245:8: branch_false: ...to here
LVM2.2.03.38/libdm/libdm-file.c:249:12: throw: if ‘fcntl’ throws an exception...
LVM2.2.03.38/libdm/libdm-file.c:249:12: danger: ‘open(lockfile, 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: COMPILER_WARNING: [#def506]
LVM2.2.03.38/libdm/libdm-stats.c: scope_hint: In function ‘_stats_group_tag_len’
LVM2.2.03.38/libdm/libdm-stats.c:1867:17: warning[-Wunused-but-set-variable=]: variable ‘nr_regions’ set but not used
Error: CPPCHECK_WARNING (CWE-457): [#def507]
LVM2.2.03.38/libdm/libdm-stats.c:2293: error[legacyUninitvar]: Uninitialized variable: lines
Error: GCC_ANALYZER_WARNING (CWE-404): [#def508]
LVM2.2.03.38/libdm/libdm-string.c:149:21: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
LVM2.2.03.38/libdm/libdm-string.c:184:5: enter_function: entry to ‘dm_asprintf’
LVM2.2.03.38/libdm/libdm-string.c:188:9: acquire_resource: ‘va_start’ called here
LVM2.2.03.38/libdm/libdm-string.c:189:13: call_function: calling ‘dm_vasprintf’ from ‘dm_asprintf’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def509]
LVM2.2.03.38/test/unit/bcache_t.c:85:9: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
LVM2.2.03.38/test/unit/bcache_t.c:334:24: enter_function: entry to ‘_fixture_init’
LVM2.2.03.38/test/unit/bcache_t.c:336:29: acquire_memory: allocated here
LVM2.2.03.38/test/unit/bcache_t.c:338:9: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
LVM2.2.03.38/test/unit/bcache_t.c:340:17: branch_false: ...to here
LVM2.2.03.38/test/unit/bcache_t.c:340:17: call_function: calling ‘_mock_create’ from ‘_fixture_init’
LVM2.2.03.38/test/unit/bcache_t.c:340:17: return_function: returning to ‘_fixture_init’ from ‘_mock_create’
LVM2.2.03.38/test/unit/bcache_t.c:343:9: call_function: calling ‘_expect’ from ‘_fixture_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def510]
LVM2.2.03.38/test/unit/bcache_t.c:88:9: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
LVM2.2.03.38/test/unit/bcache_t.c:334:24: enter_function: entry to ‘_fixture_init’
LVM2.2.03.38/test/unit/bcache_t.c:336:29: acquire_memory: allocated here
LVM2.2.03.38/test/unit/bcache_t.c:338:9: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
LVM2.2.03.38/test/unit/bcache_t.c:340:17: branch_false: ...to here
LVM2.2.03.38/test/unit/bcache_t.c:340:17: call_function: calling ‘_mock_create’ from ‘_fixture_init’
LVM2.2.03.38/test/unit/bcache_t.c:340:17: return_function: returning to ‘_fixture_init’ from ‘_mock_create’
LVM2.2.03.38/test/unit/bcache_t.c:343:9: call_function: calling ‘_expect’ from ‘_fixture_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def511]
LVM2.2.03.38/test/unit/bcache_t.c:88:9: warning[-Wanalyzer-malloc-leak]: leak of ‘mc’
LVM2.2.03.38/test/unit/bcache_t.c:83:32: acquire_memory: allocated here
LVM2.2.03.38/test/unit/bcache_t.c:85:9: branch_false: following ‘false’ branch (when ‘mc’ is non-NULL)...
LVM2.2.03.38/test/unit/bcache_t.c:86:9: branch_false: ...to here
LVM2.2.03.38/test/unit/bcache_t.c:88:9: throw: if ‘dm_list_add’ throws an exception...
LVM2.2.03.38/test/unit/bcache_t.c:88:9: danger: ‘mc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def512]
LVM2.2.03.38/test/unit/bcache_t.c:103:9: warning[-Wanalyzer-malloc-leak]: leak of ‘mc’
LVM2.2.03.38/test/unit/bcache_t.c:93:32: acquire_memory: allocated here
LVM2.2.03.38/test/unit/bcache_t.c:95:9: branch_false: following ‘false’ branch (when ‘mc’ is non-NULL)...
LVM2.2.03.38/test/unit/bcache_t.c:96:9: branch_false: ...to here
LVM2.2.03.38/test/unit/bcache_t.c:103:9: throw: if ‘dm_list_add’ throws an exception...
LVM2.2.03.38/test/unit/bcache_t.c:103:9: danger: ‘mc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def513]
LVM2.2.03.38/test/unit/bcache_t.c:115:9: warning[-Wanalyzer-malloc-leak]: leak of ‘mc’
LVM2.2.03.38/test/unit/bcache_t.c:108:32: acquire_memory: allocated here
LVM2.2.03.38/test/unit/bcache_t.c:110:9: branch_false: following ‘false’ branch (when ‘mc’ is non-NULL)...
LVM2.2.03.38/test/unit/bcache_t.c:111:9: branch_false: ...to here
LVM2.2.03.38/test/unit/bcache_t.c:115:9: throw: if ‘dm_list_add’ throws an exception...
LVM2.2.03.38/test/unit/bcache_t.c:115:9: danger: ‘mc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def514]
LVM2.2.03.38/test/unit/bcache_t.c:130:9: warning[-Wanalyzer-malloc-leak]: leak of ‘mc’
LVM2.2.03.38/test/unit/bcache_t.c:120:32: acquire_memory: allocated here
LVM2.2.03.38/test/unit/bcache_t.c:122:9: branch_false: following ‘false’ branch (when ‘mc’ is non-NULL)...
LVM2.2.03.38/test/unit/bcache_t.c:123:9: branch_false: ...to here
LVM2.2.03.38/test/unit/bcache_t.c:130:9: throw: if ‘dm_list_add’ throws an exception...
LVM2.2.03.38/test/unit/bcache_t.c:130:9: danger: ‘mc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def515]
LVM2.2.03.38/test/unit/bcache_t.c:145:9: warning[-Wanalyzer-malloc-leak]: leak of ‘mc’
LVM2.2.03.38/test/unit/bcache_t.c:135:32: acquire_memory: allocated here
LVM2.2.03.38/test/unit/bcache_t.c:137:9: branch_false: following ‘false’ branch (when ‘mc’ is non-NULL)...
LVM2.2.03.38/test/unit/bcache_t.c:138:9: branch_false: ...to here
LVM2.2.03.38/test/unit/bcache_t.c:145:9: throw: if ‘dm_list_add’ throws an exception...
LVM2.2.03.38/test/unit/bcache_t.c:145:9: danger: ‘mc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def516]
LVM2.2.03.38/test/unit/bcache_t.c:160:9: warning[-Wanalyzer-malloc-leak]: leak of ‘mc’
LVM2.2.03.38/test/unit/bcache_t.c:150:32: acquire_memory: allocated here
LVM2.2.03.38/test/unit/bcache_t.c:152:9: branch_false: following ‘false’ branch (when ‘mc’ is non-NULL)...
LVM2.2.03.38/test/unit/bcache_t.c:153:9: branch_false: ...to here
LVM2.2.03.38/test/unit/bcache_t.c:160:9: throw: if ‘dm_list_add’ throws an exception...
LVM2.2.03.38/test/unit/bcache_t.c:160:9: danger: ‘mc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def517]
LVM2.2.03.38/test/unit/bcache_t.c:175:9: warning[-Wanalyzer-malloc-leak]: leak of ‘mc’
LVM2.2.03.38/test/unit/bcache_t.c:165:32: acquire_memory: allocated here
LVM2.2.03.38/test/unit/bcache_t.c:167:9: branch_false: following ‘false’ branch (when ‘mc’ is non-NULL)...
LVM2.2.03.38/test/unit/bcache_t.c:168:9: branch_false: ...to here
LVM2.2.03.38/test/unit/bcache_t.c:175:9: throw: if ‘dm_list_add’ throws an exception...
LVM2.2.03.38/test/unit/bcache_t.c:175:9: danger: ‘mc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def518]
LVM2.2.03.38/test/unit/bcache_t.c:190:9: warning[-Wanalyzer-malloc-leak]: leak of ‘mc’
LVM2.2.03.38/test/unit/bcache_t.c:180:32: acquire_memory: allocated here
LVM2.2.03.38/test/unit/bcache_t.c:182:9: branch_false: following ‘false’ branch (when ‘mc’ is non-NULL)...
LVM2.2.03.38/test/unit/bcache_t.c:183:9: branch_false: ...to here
LVM2.2.03.38/test/unit/bcache_t.c:190:9: throw: if ‘dm_list_add’ throws an exception...
LVM2.2.03.38/test/unit/bcache_t.c:190:9: danger: ‘mc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def519]
LVM2.2.03.38/test/unit/bcache_t.c:277:17: warning[-Wanalyzer-malloc-leak]: leak of ‘io’
LVM2.2.03.38/test/unit/bcache_t.c:246:13: enter_function: entry to ‘_mock_issue’
LVM2.2.03.38/test/unit/bcache_t.c:254:14: call_function: calling ‘_match_pop’ from ‘_mock_issue’
LVM2.2.03.38/test/unit/bcache_t.c:254:14: return_function: returning to ‘_mock_issue’ from ‘_match_pop’
LVM2.2.03.38/test/unit/bcache_t.c:265:12: branch_true: following ‘true’ branch (when ‘r != 0’)...
LVM2.2.03.38/test/unit/bcache_t.c:266:22: branch_true: ...to here
LVM2.2.03.38/test/unit/bcache_t.c:266:22: acquire_memory: allocated here
LVM2.2.03.38/test/unit/bcache_t.c:267:20: branch_false: following ‘false’ branch (when ‘io’ is non-NULL)...
LVM2.2.03.38/test/unit/bcache_t.c:270:17: branch_false: ...to here
LVM2.2.03.38/test/unit/bcache_t.c:277:17: throw: if ‘dm_list_add’ throws an exception...
LVM2.2.03.38/test/unit/bcache_t.c:277:17: danger: ‘io’ leaks here; was allocated at [(11)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def520]
LVM2.2.03.38/test/unit/bcache_t.c:311:9: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
LVM2.2.03.38/test/unit/bcache_t.c:334:24: enter_function: entry to ‘_fixture_init’
LVM2.2.03.38/test/unit/bcache_t.c:336:29: acquire_memory: allocated here
LVM2.2.03.38/test/unit/bcache_t.c:338:9: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
LVM2.2.03.38/test/unit/bcache_t.c:340:17: branch_false: ...to here
LVM2.2.03.38/test/unit/bcache_t.c:340:17: call_function: calling ‘_mock_create’ from ‘_fixture_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def521]
LVM2.2.03.38/test/unit/bcache_t.c:320:9: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
LVM2.2.03.38/test/unit/bcache_t.c:334:24: enter_function: entry to ‘_fixture_init’
LVM2.2.03.38/test/unit/bcache_t.c:336:29: acquire_memory: allocated here
LVM2.2.03.38/test/unit/bcache_t.c:338:9: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
LVM2.2.03.38/test/unit/bcache_t.c:340:17: branch_false: ...to here
LVM2.2.03.38/test/unit/bcache_t.c:340:17: call_function: calling ‘_mock_create’ from ‘_fixture_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def522]
LVM2.2.03.38/test/unit/bcache_t.c:320:9: warning[-Wanalyzer-malloc-leak]: leak of ‘m’
LVM2.2.03.38/test/unit/bcache_t.c:309:33: acquire_memory: allocated here
LVM2.2.03.38/test/unit/bcache_t.c:311:9: branch_false: following ‘false’ branch (when ‘m’ is non-NULL)...
LVM2.2.03.38/test/unit/bcache_t.c:313:9: branch_false: ...to here
LVM2.2.03.38/test/unit/bcache_t.c:320:9: throw: if ‘dm_list_init’ throws an exception...
LVM2.2.03.38/test/unit/bcache_t.c:320:9: danger: ‘m’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def523]
LVM2.2.03.38/test/unit/bcache_t.c:321:9: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
LVM2.2.03.38/test/unit/bcache_t.c:334:24: enter_function: entry to ‘_fixture_init’
LVM2.2.03.38/test/unit/bcache_t.c:336:29: acquire_memory: allocated here
LVM2.2.03.38/test/unit/bcache_t.c:338:9: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
LVM2.2.03.38/test/unit/bcache_t.c:340:17: branch_false: ...to here
LVM2.2.03.38/test/unit/bcache_t.c:340:17: call_function: calling ‘_mock_create’ from ‘_fixture_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def524]
LVM2.2.03.38/test/unit/bcache_t.c:344:20: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
LVM2.2.03.38/test/unit/bcache_t.c:334:24: enter_function: entry to ‘_fixture_init’
LVM2.2.03.38/test/unit/bcache_t.c:336:29: acquire_memory: allocated here
LVM2.2.03.38/test/unit/bcache_t.c:338:9: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
LVM2.2.03.38/test/unit/bcache_t.c:340:17: branch_false: ...to here
LVM2.2.03.38/test/unit/bcache_t.c:340:17: call_function: calling ‘_mock_create’ from ‘_fixture_init’
LVM2.2.03.38/test/unit/bcache_t.c:340:17: return_function: returning to ‘_fixture_init’ from ‘_mock_create’
LVM2.2.03.38/test/unit/bcache_t.c:343:9: call_function: calling ‘_expect’ from ‘_fixture_init’
LVM2.2.03.38/test/unit/bcache_t.c:343:9: return_function: returning to ‘_fixture_init’ from ‘_expect’
LVM2.2.03.38/test/unit/bcache_t.c:344:20: throw: if ‘bcache_create’ throws an exception...
LVM2.2.03.38/test/unit/bcache_t.c:344:20: danger: ‘f’ leaks here; was allocated at [(2)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def525]
LVM2.2.03.38/test/unit/bcache_t.c:345:9: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
LVM2.2.03.38/test/unit/bcache_t.c:334:24: enter_function: entry to ‘_fixture_init’
LVM2.2.03.38/test/unit/bcache_t.c:336:29: acquire_memory: allocated here
LVM2.2.03.38/test/unit/bcache_t.c:338:9: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
LVM2.2.03.38/test/unit/bcache_t.c:340:17: branch_false: ...to here
LVM2.2.03.38/test/unit/bcache_t.c:340:17: call_function: calling ‘_mock_create’ from ‘_fixture_init’
LVM2.2.03.38/test/unit/bcache_t.c:340:17: return_function: returning to ‘_fixture_init’ from ‘_mock_create’
LVM2.2.03.38/test/unit/bcache_t.c:343:9: call_function: calling ‘_expect’ from ‘_fixture_init’
LVM2.2.03.38/test/unit/bcache_t.c:343:9: return_function: returning to ‘_fixture_init’ from ‘_expect’
LVM2.2.03.38/test/unit/bcache_t.c:345:9: branch_true: following ‘true’ branch...
LVM2.2.03.38/test/unit/bcache_t.c:345:9: branch_true: ...to here
LVM2.2.03.38/test/unit/bcache_t.c:345:9: throw: if ‘test_fail’ throws an exception...
LVM2.2.03.38/test/unit/bcache_t.c:345:9: danger: ‘f’ leaks here; was allocated at [(2)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def526]
LVM2.2.03.38/test/unit/bcache_utils_t.c:163:17: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
LVM2.2.03.38/test/unit/bcache_utils_t.c:310:13: enter_function: entry to ‘_zero_cycle’
LVM2.2.03.38/test/unit/bcache_utils_t.c:312:9: call_function: calling ‘_verify’ from ‘_zero_cycle’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def527]
LVM2.2.03.38/test/unit/framework.c:29:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ts’
LVM2.2.03.38/test/unit/framework.c:25:33: acquire_memory: allocated here
LVM2.2.03.38/test/unit/framework.c:26:12: branch_true: following ‘true’ branch (when ‘ts’ is non-NULL)...
LVM2.2.03.38/test/unit/framework.c:27:17: branch_true: ...to here
LVM2.2.03.38/test/unit/framework.c:29:17: throw: if ‘dm_list_init’ throws an exception...
LVM2.2.03.38/test/unit/framework.c:29:17: danger: ‘ts’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def528]
LVM2.2.03.38/test/unit/framework.c:61:9: warning[-Wanalyzer-malloc-leak]: leak of ‘t’
LVM2.2.03.38/test/unit/framework.c:51:34: acquire_memory: allocated here
LVM2.2.03.38/test/unit/framework.c:52:12: branch_false: following ‘false’ branch (when ‘t’ is non-NULL)...
LVM2.2.03.38/test/unit/framework.c:57:9: branch_false: ...to here
LVM2.2.03.38/test/unit/framework.c:61:9: throw: if ‘dm_list_add’ throws an exception...
LVM2.2.03.38/test/unit/framework.c:61:9: danger: ‘t’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-401): [#def529]
LVM2.2.03.38/test/unit/framework.c:63: error[memleak]: Memory leak: t
Error: GCC_ANALYZER_WARNING (CWE-401): [#def530]
LVM2.2.03.38/test/unit/io_engine_t.c:86:16: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
LVM2.2.03.38/test/unit/io_engine_t.c:83:29: acquire_memory: allocated here
LVM2.2.03.38/test/unit/io_engine_t.c:85:9: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
LVM2.2.03.38/test/unit/io_engine_t.c:86:16: branch_false: ...to here
LVM2.2.03.38/test/unit/io_engine_t.c:86:16: throw: if ‘create_async_io_engine’ throws an exception...
LVM2.2.03.38/test/unit/io_engine_t.c:86:16: danger: ‘f’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def531]
LVM2.2.03.38/test/unit/io_engine_t.c:87:9: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
LVM2.2.03.38/test/unit/io_engine_t.c:83:29: acquire_memory: allocated here
LVM2.2.03.38/test/unit/io_engine_t.c:85:9: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
LVM2.2.03.38/test/unit/io_engine_t.c:86:16: branch_false: ...to here
LVM2.2.03.38/test/unit/io_engine_t.c:87:9: branch_true: following ‘true’ branch...
LVM2.2.03.38/test/unit/io_engine_t.c:87:9: branch_true: ...to here
LVM2.2.03.38/test/unit/io_engine_t.c:87:9: throw: if ‘test_fail’ throws an exception...
LVM2.2.03.38/test/unit/io_engine_t.c:87:9: danger: ‘f’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def532]
LVM2.2.03.38/test/unit/radix_tree_t.c:437:35: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘k[1]’
LVM2.2.03.38/test/unit/radix_tree_t.c:426:13: enter_function: entry to ‘test_iterate_subset’
LVM2.2.03.38/test/unit/radix_tree_t.c:435:21: branch_true: following ‘true’ branch (when ‘i != 100000’)...
LVM2.2.03.38/test/unit/radix_tree_t.c:436:17: branch_true: ...to here
LVM2.2.03.38/test/unit/radix_tree_t.c:436:17: call_function: calling ‘_gen_key’ from ‘test_iterate_subset’
LVM2.2.03.38/test/unit/radix_tree_t.c:436:17: return_function: returning to ‘test_iterate_subset’ from ‘_gen_key’
LVM2.2.03.38/test/unit/radix_tree_t.c:437:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/test/unit/radix_tree_t.c:437:35: branch_true: ...to here
LVM2.2.03.38/test/unit/radix_tree_t.c:437:35: danger: use of uninitialized value ‘k[1]’ here
Error: CPPCHECK_WARNING (CWE-119): [#def533]
LVM2.2.03.38/tools/command.c:298: error[bufferAccessOutOfBounds]: Buffer is accessed out of bounds: cmd_names[1].name
Error: CPPCHECK_WARNING (CWE-119): [#def534]
LVM2.2.03.38/tools/command.c:446: error[bufferAccessOutOfBounds]: Buffer is accessed out of bounds: command_names[0].name
Error: GCC_ANALYZER_WARNING (CWE-401): [#def535]
LVM2.2.03.38/tools/command.c:1313:9: warning[-Wanalyzer-malloc-leak]: leak of ‘stdout_buf’
LVM2.2.03.38/tools/man-generator.c:1655:5: enter_function: entry to ‘main’
LVM2.2.03.38/tools/man-generator.c:1674:28: acquire_memory: allocated here
LVM2.2.03.38/tools/man-generator.c:1674:12: branch_false: following ‘false’ branch (when ‘stdout_buf’ is non-NULL)...
LVM2.2.03.38/tools/man-generator.c:1677:17: branch_false: ...to here
LVM2.2.03.38/tools/man-generator.c:1702:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/man-generator.c:1707:13: branch_false: ...to here
LVM2.2.03.38/tools/man-generator.c:1707:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/man-generator.c:1712:19: branch_false: ...to here
LVM2.2.03.38/tools/man-generator.c:1712:19: branch_false: following ‘false’ branch (when ‘check != 0’)...
LVM2.2.03.38/tools/man-generator.c:1717:13: branch_false: ...to here
LVM2.2.03.38/tools/man-generator.c:1717:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/man-generator.c:1720:14: branch_false: ...to here
LVM2.2.03.38/tools/man-generator.c:1720:14: call_function: calling ‘define_commands’ from ‘main’
Error: COMPILER_WARNING: [#def536]
LVM2.2.03.38/tools/lvconvert.c:6043:13: warning[-Wunused-but-set-variable=]: variable ‘lbs_unknown’ set but not used
Error: COMPILER_WARNING: [#def537]
LVM2.2.03.38/tools/lvconvert.c:6044:13: warning[-Wunused-but-set-variable=]: variable ‘pbs_unknown’ set but not used
Error: COMPILER_WARNING: [#def538]
LVM2.2.03.38/tools/lvconvert.c: scope_hint: In function ‘_set_writecache_block_size’
LVM2.2.03.38/tools/lvconvert.c:6044:42: warning[-Wunused-but-set-variable=]: variable ‘pbs_512’ set but not used
Error: GCC_ANALYZER_WARNING (CWE-775): [#def539]
LVM2.2.03.38/tools/lvconvert.c:6224:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&proc_meminfo, "r")’
LVM2.2.03.38/tools/lvconvert.c:6208:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/lvconvert.c:6212:39: branch_false: ...to here
LVM2.2.03.38/tools/lvconvert.c:6211:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/lvconvert.c:6217:20: branch_false: ...to here
LVM2.2.03.38/tools/lvconvert.c:6217:20: acquire_resource: opened here
LVM2.2.03.38/tools/lvconvert.c:6217:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/lvconvert.c:6217:12: branch_false: ...to here
LVM2.2.03.38/tools/lvconvert.c:6220:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/tools/lvconvert.c:6221:21: branch_true: ...to here
LVM2.2.03.38/tools/lvconvert.c:6223:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/tools/lvconvert.c:6224:25: branch_true: ...to here
LVM2.2.03.38/tools/lvconvert.c:6224:25: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/tools/lvconvert.c:6224:25: danger: ‘fopen(&proc_meminfo, "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def540]
LVM2.2.03.38/tools/lvconvert.c:6224:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&proc_meminfo, "r")’
LVM2.2.03.38/tools/lvconvert.c:6208:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/lvconvert.c:6212:39: branch_false: ...to here
LVM2.2.03.38/tools/lvconvert.c:6211:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/lvconvert.c:6217:20: branch_false: ...to here
LVM2.2.03.38/tools/lvconvert.c:6217:20: acquire_memory: allocated here
LVM2.2.03.38/tools/lvconvert.c:6217:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/lvconvert.c:6217:12: branch_false: ...to here
LVM2.2.03.38/tools/lvconvert.c:6220:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/tools/lvconvert.c:6221:21: branch_true: ...to here
LVM2.2.03.38/tools/lvconvert.c:6223:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/tools/lvconvert.c:6224:25: branch_true: ...to here
LVM2.2.03.38/tools/lvconvert.c:6224:25: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/tools/lvconvert.c:6224:25: danger: ‘fopen(&proc_meminfo, "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def541]
LVM2.2.03.38/tools/lvmcmdlib.c:70:13: warning[-Wanalyzer-malloc-leak]: leak of ‘cmdcopy’
LVM2.2.03.38/tools/lvmcmdlib.c:64:25: acquire_memory: allocated here
LVM2.2.03.38/tools/lvmcmdlib.c:64:12: branch_false: following ‘false’ branch (when ‘cmdcopy’ is non-NULL)...
LVM2.2.03.38/tools/lvmcmdlib.c:70:13: branch_false: ...to here
LVM2.2.03.38/tools/lvmcmdlib.c:70:13: throw: if ‘lvm_split’ throws an exception...
LVM2.2.03.38/tools/lvmcmdlib.c:70:13: danger: ‘cmdcopy’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def542]
LVM2.2.03.38/tools/lvmcmdline.c:3539:29: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(script_file, "r")’
LVM2.2.03.38/tools/lvmcmdline.c:3534:23: acquire_resource: opened here
LVM2.2.03.38/tools/lvmcmdline.c:3534:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/lvmcmdline.c:3534:12: branch_false: ...to here
LVM2.2.03.38/tools/lvmcmdline.c:3537:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/tools/lvmcmdline.c:3538:20: branch_true: ...to here
LVM2.2.03.38/tools/lvmcmdline.c:3538:20: branch_true: following ‘true’ branch (when ‘magic_number == 0’)...
LVM2.2.03.38/tools/lvmcmdline.c:3539:29: branch_true: ...to here
LVM2.2.03.38/tools/lvmcmdline.c:3539:28: branch_true: following ‘true’ branch...
LVM2.2.03.38/tools/lvmcmdline.c:3546:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/tools/lvmcmdline.c:3547:25: branch_true: ...to here
LVM2.2.03.38/tools/lvmcmdline.c:3549:25: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/tools/lvmcmdline.c:3539:29: danger: ‘fopen(script_file, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def543]
LVM2.2.03.38/tools/lvmcmdline.c:3539:29: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(script_file, "r")’
LVM2.2.03.38/tools/lvmcmdline.c:3534:23: acquire_memory: allocated here
LVM2.2.03.38/tools/lvmcmdline.c:3534:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/lvmcmdline.c:3534:12: branch_false: ...to here
LVM2.2.03.38/tools/lvmcmdline.c:3537:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/tools/lvmcmdline.c:3538:20: branch_true: ...to here
LVM2.2.03.38/tools/lvmcmdline.c:3538:20: branch_true: following ‘true’ branch (when ‘magic_number == 0’)...
LVM2.2.03.38/tools/lvmcmdline.c:3539:29: branch_true: ...to here
LVM2.2.03.38/tools/lvmcmdline.c:3539:28: branch_true: following ‘true’ branch...
LVM2.2.03.38/tools/lvmcmdline.c:3546:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/tools/lvmcmdline.c:3547:25: branch_true: ...to here
LVM2.2.03.38/tools/lvmcmdline.c:3549:25: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/tools/lvmcmdline.c:3539:29: danger: ‘fopen(script_file, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-457): [#def544]
LVM2.2.03.38/tools/lvmdevices.c:1036: error[legacyUninitvar]: Uninitialized variable: idname
Error: GCC_ANALYZER_WARNING (CWE-401): [#def545]
LVM2.2.03.38/tools/man-generator.c:1736:24: warning[-Wanalyzer-malloc-leak]: leak of ‘stdout_buf’
LVM2.2.03.38/tools/man-generator.c:1674:28: acquire_memory: allocated here
LVM2.2.03.38/tools/man-generator.c:1674:12: branch_false: following ‘false’ branch (when ‘stdout_buf’ is non-NULL)...
LVM2.2.03.38/tools/man-generator.c:1677:17: branch_false: ...to here
LVM2.2.03.38/tools/man-generator.c:1735:12: branch_true: following ‘true’ branch (when ‘stdout_buf’ is non-NULL)...
LVM2.2.03.38/tools/man-generator.c:1736:17: branch_true: ...to here
LVM2.2.03.38/tools/man-generator.c:1736:24: throw: if ‘fflush’ throws an exception...
LVM2.2.03.38/tools/man-generator.c:1736:24: danger: ‘stdout_buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-562): [#def546]
LVM2.2.03.38/tools/polldaemon.c:539: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def547]
LVM2.2.03.38/tools/pvck.c:116:17: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, (long unsigned int)max)’
LVM2.2.03.38/tools/pvck.c:99:14: enter_function: entry to ‘_chars_to_hexstr’
LVM2.2.03.38/tools/pvck.c:107:21: call_function: inlined call to ‘zalloc’ from ‘_chars_to_hexstr’
LVM2.2.03.38/tools/pvck.c:107:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:112:9: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:115:12: branch_true: following ‘true’ branch (when ‘max <= num’)...
LVM2.2.03.38/tools/pvck.c:116:17: branch_true: ...to here
LVM2.2.03.38/tools/pvck.c:116:17: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/tools/pvck.c:116:17: danger: ‘calloc(1, (long unsigned int)max)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def548]
LVM2.2.03.38/tools/pvck.c:380:24: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, mda_size + 1)’
LVM2.2.03.38/tools/pvck.c:842:12: enter_function: entry to ‘_dump_meta_area’
LVM2.2.03.38/tools/pvck.c:849:12: branch_false: following ‘false’ branch (when ‘tofile’ is non-NULL)...
LVM2.2.03.38/tools/pvck.c:852:33: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:852:26: call_function: inlined call to ‘zalloc’ from ‘_dump_meta_area’
LVM2.2.03.38/tools/pvck.c:852:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:855:14: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:855:14: call_function: calling ‘_read_bytes’ from ‘_dump_meta_area’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def549]
LVM2.2.03.38/tools/pvck.c:385:15: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, mda_size + 1)’
LVM2.2.03.38/tools/pvck.c:842:12: enter_function: entry to ‘_dump_meta_area’
LVM2.2.03.38/tools/pvck.c:849:12: branch_false: following ‘false’ branch (when ‘tofile’ is non-NULL)...
LVM2.2.03.38/tools/pvck.c:852:33: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:852:26: call_function: inlined call to ‘zalloc’ from ‘_dump_meta_area’
LVM2.2.03.38/tools/pvck.c:852:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:855:14: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:855:14: call_function: calling ‘_read_bytes’ from ‘_dump_meta_area’
LVM2.2.03.38/tools/pvck.c:855:14: return_function: returning to ‘_dump_meta_area’ from ‘_read_bytes’
LVM2.2.03.38/tools/pvck.c:855:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:856:17: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:856:17: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/tools/pvck.c:385:15: danger: ‘calloc(1, mda_size + 1)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def550]
LVM2.2.03.38/tools/pvck.c:642:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
LVM2.2.03.38/tools/pvck.c:424:12: branch_true: following ‘true’ branch (when ‘tofile’ is non-NULL)...
LVM2.2.03.38/tools/pvck.c:425:28: branch_true: ...to here
LVM2.2.03.38/tools/pvck.c:425:28: acquire_resource: opened here
LVM2.2.03.38/tools/pvck.c:425:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:449:9: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:638:12: branch_false: following ‘false’ branch (when ‘multiple_vgs == 0’)...
LVM2.2.03.38/tools/pvck.c:641:12: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:641:12: branch_true: following ‘true’ branch (when ‘fp’ is non-NULL)...
LVM2.2.03.38/tools/pvck.c:642:21: branch_true: ...to here
LVM2.2.03.38/tools/pvck.c:642:21: throw: if ‘fflush’ throws an exception...
LVM2.2.03.38/tools/pvck.c:642:21: danger: ‘fp’ leaks here; was opened at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def551]
LVM2.2.03.38/tools/pvck.c:642:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
LVM2.2.03.38/tools/pvck.c:424:12: branch_true: following ‘true’ branch (when ‘tofile’ is non-NULL)...
LVM2.2.03.38/tools/pvck.c:425:28: branch_true: ...to here
LVM2.2.03.38/tools/pvck.c:425:28: acquire_memory: allocated here
LVM2.2.03.38/tools/pvck.c:425:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:449:9: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:638:12: branch_false: following ‘false’ branch (when ‘multiple_vgs == 0’)...
LVM2.2.03.38/tools/pvck.c:641:12: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:641:12: branch_true: following ‘true’ branch (when ‘fp’ is non-NULL)...
LVM2.2.03.38/tools/pvck.c:642:21: branch_true: ...to here
LVM2.2.03.38/tools/pvck.c:642:21: throw: if ‘fflush’ throws an exception...
LVM2.2.03.38/tools/pvck.c:642:21: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def552]
LVM2.2.03.38/tools/pvck.c:643:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
LVM2.2.03.38/tools/pvck.c:424:12: branch_true: following ‘true’ branch (when ‘tofile’ is non-NULL)...
LVM2.2.03.38/tools/pvck.c:425:28: branch_true: ...to here
LVM2.2.03.38/tools/pvck.c:425:28: acquire_resource: opened here
LVM2.2.03.38/tools/pvck.c:425:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:449:9: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:638:12: branch_false: following ‘false’ branch (when ‘multiple_vgs == 0’)...
LVM2.2.03.38/tools/pvck.c:641:12: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:641:12: branch_true: following ‘true’ branch (when ‘fp’ is non-NULL)...
LVM2.2.03.38/tools/pvck.c:642:21: branch_true: ...to here
LVM2.2.03.38/tools/pvck.c:642:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/tools/pvck.c:643:25: branch_true: ...to here
LVM2.2.03.38/tools/pvck.c:643:25: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/tools/pvck.c:643:25: danger: ‘fp’ leaks here; was opened at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def553]
LVM2.2.03.38/tools/pvck.c:643:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
LVM2.2.03.38/tools/pvck.c:424:12: branch_true: following ‘true’ branch (when ‘tofile’ is non-NULL)...
LVM2.2.03.38/tools/pvck.c:425:28: branch_true: ...to here
LVM2.2.03.38/tools/pvck.c:425:28: acquire_memory: allocated here
LVM2.2.03.38/tools/pvck.c:425:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:449:9: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:638:12: branch_false: following ‘false’ branch (when ‘multiple_vgs == 0’)...
LVM2.2.03.38/tools/pvck.c:641:12: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:641:12: branch_true: following ‘true’ branch (when ‘fp’ is non-NULL)...
LVM2.2.03.38/tools/pvck.c:642:21: branch_true: ...to here
LVM2.2.03.38/tools/pvck.c:642:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/tools/pvck.c:643:25: branch_true: ...to here
LVM2.2.03.38/tools/pvck.c:643:25: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/tools/pvck.c:643:25: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def554]
LVM2.2.03.38/tools/pvck.c:856:17: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, mda_size + 1)’
LVM2.2.03.38/tools/pvck.c:842:12: enter_function: entry to ‘_dump_meta_area’
LVM2.2.03.38/tools/pvck.c:849:12: branch_false: following ‘false’ branch (when ‘tofile’ is non-NULL)...
LVM2.2.03.38/tools/pvck.c:852:33: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:852:26: call_function: inlined call to ‘zalloc’ from ‘_dump_meta_area’
LVM2.2.03.38/tools/pvck.c:852:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:855:14: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:855:14: call_function: calling ‘_read_bytes’ from ‘_dump_meta_area’
LVM2.2.03.38/tools/pvck.c:855:14: return_function: returning to ‘_dump_meta_area’ from ‘_read_bytes’
LVM2.2.03.38/tools/pvck.c:855:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:856:17: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:856:17: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/tools/pvck.c:856:17: danger: ‘calloc(1, mda_size + 1)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def555]
LVM2.2.03.38/tools/pvck.c:868:30: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(tofile, "wx")’
LVM2.2.03.38/tools/pvck.c:842:12: enter_function: entry to ‘_dump_meta_area’
LVM2.2.03.38/tools/pvck.c:849:12: branch_false: following ‘false’ branch (when ‘tofile’ is non-NULL)...
LVM2.2.03.38/tools/pvck.c:852:33: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:852:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:855:14: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:855:14: call_function: calling ‘_read_bytes’ from ‘_dump_meta_area’
LVM2.2.03.38/tools/pvck.c:855:14: return_function: returning to ‘_dump_meta_area’ from ‘_read_bytes’
LVM2.2.03.38/tools/pvck.c:855:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/tools/pvck.c:862:20: branch_true: ...to here
LVM2.2.03.38/tools/pvck.c:862:20: acquire_resource: opened here
LVM2.2.03.38/tools/pvck.c:862:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:868:30: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:868:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/tools/pvck.c:869:17: branch_true: ...to here
LVM2.2.03.38/tools/pvck.c:869:17: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/tools/pvck.c:868:30: danger: ‘fopen(tofile, "wx")’ leaks here; was opened at [(13)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def556]
LVM2.2.03.38/tools/pvck.c:868:30: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(tofile, "wx")’
LVM2.2.03.38/tools/pvck.c:842:12: enter_function: entry to ‘_dump_meta_area’
LVM2.2.03.38/tools/pvck.c:849:12: branch_false: following ‘false’ branch (when ‘tofile’ is non-NULL)...
LVM2.2.03.38/tools/pvck.c:852:33: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:852:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:855:14: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:855:14: call_function: calling ‘_read_bytes’ from ‘_dump_meta_area’
LVM2.2.03.38/tools/pvck.c:855:14: return_function: returning to ‘_dump_meta_area’ from ‘_read_bytes’
LVM2.2.03.38/tools/pvck.c:855:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/tools/pvck.c:862:20: branch_true: ...to here
LVM2.2.03.38/tools/pvck.c:862:20: acquire_memory: allocated here
LVM2.2.03.38/tools/pvck.c:862:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:868:30: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:868:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/tools/pvck.c:869:17: branch_true: ...to here
LVM2.2.03.38/tools/pvck.c:869:17: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/tools/pvck.c:868:30: danger: ‘fopen(tofile, "wx")’ leaks here; was allocated at [(13)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def557]
LVM2.2.03.38/tools/pvck.c:915:13: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, meta_size + 1)’
LVM2.2.03.38/tools/pvck.c:885:12: enter_function: entry to ‘_dump_current_text’
LVM2.2.03.38/tools/pvck.c:901:26: call_function: inlined call to ‘zalloc’ from ‘_dump_current_text’
LVM2.2.03.38/tools/pvck.c:901:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:915:13: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:915:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:939:22: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:939:22: call_function: calling ‘_read_bytes’ from ‘_dump_current_text’
LVM2.2.03.38/tools/pvck.c:939:22: return_function: returning to ‘_dump_current_text’ from ‘_read_bytes’
LVM2.2.03.38/tools/pvck.c:939:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:940:25: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:940:25: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/tools/pvck.c:915:13: danger: ‘calloc(1, meta_size + 1)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def558]
LVM2.2.03.38/tools/pvck.c:972:30: warning[-Wanalyzer-malloc-leak]: leak of ‘vgname’
LVM2.2.03.38/tools/pvck.c:885:12: enter_function: entry to ‘_dump_current_text’
LVM2.2.03.38/tools/pvck.c:901:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:915:13: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:939:22: call_function: calling ‘_read_bytes’ from ‘_dump_current_text’
LVM2.2.03.38/tools/pvck.c:939:22: return_function: returning to ‘_dump_current_text’ from ‘_read_bytes’
LVM2.2.03.38/tools/pvck.c:939:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/tools/pvck.c:947:17: branch_true: ...to here
LVM2.2.03.38/tools/pvck.c:955:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:959:22: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:959:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:965:29: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:965:28: branch_true: following ‘true’ branch...
LVM2.2.03.38/tools/pvck.c:966:48: acquire_memory: allocated here
LVM2.2.03.38/tools/pvck.c:966:36: branch_false: following ‘false’ branch (when ‘vgname’ is non-NULL)...
LVM2.2.03.38/tools/pvck.c:971:28: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:971:28: branch_true: following ‘true’ branch...
LVM2.2.03.38/tools/pvck.c:972:30: throw: if ‘dm_config_get_uint32’ throws an exception...
LVM2.2.03.38/tools/pvck.c:972:30: danger: ‘vgname’ leaks here; was allocated at [(17)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def559]
LVM2.2.03.38/tools/pvck.c:973:33: warning[-Wanalyzer-malloc-leak]: leak of ‘vgname’
LVM2.2.03.38/tools/pvck.c:885:12: enter_function: entry to ‘_dump_current_text’
LVM2.2.03.38/tools/pvck.c:901:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:915:13: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:939:22: call_function: calling ‘_read_bytes’ from ‘_dump_current_text’
LVM2.2.03.38/tools/pvck.c:939:22: return_function: returning to ‘_dump_current_text’ from ‘_read_bytes’
LVM2.2.03.38/tools/pvck.c:939:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/tools/pvck.c:947:17: branch_true: ...to here
LVM2.2.03.38/tools/pvck.c:955:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:959:22: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:959:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:965:29: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:965:28: branch_true: following ‘true’ branch...
LVM2.2.03.38/tools/pvck.c:966:48: acquire_memory: allocated here
LVM2.2.03.38/tools/pvck.c:966:36: branch_false: following ‘false’ branch (when ‘vgname’ is non-NULL)...
LVM2.2.03.38/tools/pvck.c:971:28: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:971:28: branch_true: following ‘true’ branch...
LVM2.2.03.38/tools/pvck.c:973:33: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/tools/pvck.c:973:33: danger: ‘vgname’ leaks here; was allocated at [(17)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def560]
LVM2.2.03.38/tools/pvck.c:1003:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(tofile, "wx")’
LVM2.2.03.38/tools/pvck.c:885:12: enter_function: entry to ‘_dump_current_text’
LVM2.2.03.38/tools/pvck.c:901:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:915:13: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:939:22: call_function: calling ‘_read_bytes’ from ‘_dump_current_text’
LVM2.2.03.38/tools/pvck.c:939:22: return_function: returning to ‘_dump_current_text’ from ‘_read_bytes’
LVM2.2.03.38/tools/pvck.c:939:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/tools/pvck.c:947:17: branch_true: ...to here
LVM2.2.03.38/tools/pvck.c:982:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/tools/pvck.c:983:17: branch_true: ...to here
LVM2.2.03.38/tools/pvck.c:983:17: branch_false: following ‘false’ branch (when ‘vgname’ is NULL)...
LVM2.2.03.38/tools/pvck.c:983:17: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:987:12: branch_false: following ‘false’ branch (when ‘print_metadata != 0’)...
LVM2.2.03.38/tools/pvck.c:990:12: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:990:12: branch_false: following ‘false’ branch (when ‘tofile’ is non-NULL)...
LVM2.2.03.38/tools/pvck.c:996:28: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:996:28: acquire_resource: opened here
LVM2.2.03.38/tools/pvck.c:996:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:1001:17: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:1003:21: throw: if ‘fflush’ throws an exception...
LVM2.2.03.38/tools/pvck.c:1003:21: danger: ‘fopen(tofile, "wx")’ leaks here; was opened at [(19)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def561]
LVM2.2.03.38/tools/pvck.c:1003:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(tofile, "wx")’
LVM2.2.03.38/tools/pvck.c:885:12: enter_function: entry to ‘_dump_current_text’
LVM2.2.03.38/tools/pvck.c:901:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:915:13: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:939:22: call_function: calling ‘_read_bytes’ from ‘_dump_current_text’
LVM2.2.03.38/tools/pvck.c:939:22: return_function: returning to ‘_dump_current_text’ from ‘_read_bytes’
LVM2.2.03.38/tools/pvck.c:939:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/tools/pvck.c:947:17: branch_true: ...to here
LVM2.2.03.38/tools/pvck.c:982:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/tools/pvck.c:983:17: branch_true: ...to here
LVM2.2.03.38/tools/pvck.c:983:17: branch_false: following ‘false’ branch (when ‘vgname’ is NULL)...
LVM2.2.03.38/tools/pvck.c:983:17: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:987:12: branch_false: following ‘false’ branch (when ‘print_metadata != 0’)...
LVM2.2.03.38/tools/pvck.c:990:12: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:990:12: branch_false: following ‘false’ branch (when ‘tofile’ is non-NULL)...
LVM2.2.03.38/tools/pvck.c:996:28: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:996:28: acquire_memory: allocated here
LVM2.2.03.38/tools/pvck.c:996:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:1001:17: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:1003:21: throw: if ‘fflush’ throws an exception...
LVM2.2.03.38/tools/pvck.c:1003:21: danger: ‘fopen(tofile, "wx")’ leaks here; was allocated at [(19)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def562]
LVM2.2.03.38/tools/pvck.c:1004:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(tofile, "wx")’
LVM2.2.03.38/tools/pvck.c:885:12: enter_function: entry to ‘_dump_current_text’
LVM2.2.03.38/tools/pvck.c:901:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:915:13: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:939:22: call_function: calling ‘_read_bytes’ from ‘_dump_current_text’
LVM2.2.03.38/tools/pvck.c:939:22: return_function: returning to ‘_dump_current_text’ from ‘_read_bytes’
LVM2.2.03.38/tools/pvck.c:939:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/tools/pvck.c:947:17: branch_true: ...to here
LVM2.2.03.38/tools/pvck.c:982:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/tools/pvck.c:983:17: branch_true: ...to here
LVM2.2.03.38/tools/pvck.c:983:17: branch_false: following ‘false’ branch (when ‘vgname’ is NULL)...
LVM2.2.03.38/tools/pvck.c:983:17: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:987:12: branch_false: following ‘false’ branch (when ‘print_metadata != 0’)...
LVM2.2.03.38/tools/pvck.c:990:12: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:990:12: branch_false: following ‘false’ branch (when ‘tofile’ is non-NULL)...
LVM2.2.03.38/tools/pvck.c:996:28: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:996:28: acquire_resource: opened here
LVM2.2.03.38/tools/pvck.c:996:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:1001:17: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:1003:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/tools/pvck.c:1004:25: branch_true: ...to here
LVM2.2.03.38/tools/pvck.c:1004:25: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/tools/pvck.c:1004:25: danger: ‘fopen(tofile, "wx")’ leaks here; was opened at [(19)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def563]
LVM2.2.03.38/tools/pvck.c:1004:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(tofile, "wx")’
LVM2.2.03.38/tools/pvck.c:885:12: enter_function: entry to ‘_dump_current_text’
LVM2.2.03.38/tools/pvck.c:901:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:915:13: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:939:22: call_function: calling ‘_read_bytes’ from ‘_dump_current_text’
LVM2.2.03.38/tools/pvck.c:939:22: return_function: returning to ‘_dump_current_text’ from ‘_read_bytes’
LVM2.2.03.38/tools/pvck.c:939:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/tools/pvck.c:947:17: branch_true: ...to here
LVM2.2.03.38/tools/pvck.c:982:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/tools/pvck.c:983:17: branch_true: ...to here
LVM2.2.03.38/tools/pvck.c:983:17: branch_false: following ‘false’ branch (when ‘vgname’ is NULL)...
LVM2.2.03.38/tools/pvck.c:983:17: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:987:12: branch_false: following ‘false’ branch (when ‘print_metadata != 0’)...
LVM2.2.03.38/tools/pvck.c:990:12: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:990:12: branch_false: following ‘false’ branch (when ‘tofile’ is non-NULL)...
LVM2.2.03.38/tools/pvck.c:996:28: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:996:28: acquire_memory: allocated here
LVM2.2.03.38/tools/pvck.c:996:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:1001:17: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:1003:20: branch_true: following ‘true’ branch...
LVM2.2.03.38/tools/pvck.c:1004:25: branch_true: ...to here
LVM2.2.03.38/tools/pvck.c:1004:25: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/tools/pvck.c:1004:25: danger: ‘fopen(tofile, "wx")’ leaks here; was allocated at [(19)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def564]
LVM2.2.03.38/tools/pvck.c:2132:14: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
LVM2.2.03.38/tools/pvck.c:2122:12: branch_false: following ‘false’ branch (when ‘device_size > 2097151’)...
LVM2.2.03.38/tools/pvck.c:2126:22: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2129:21: acquire_memory: allocated here
LVM2.2.03.38/tools/pvck.c:2129:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
LVM2.2.03.38/tools/pvck.c:2132:14: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2132:14: throw: if ‘dev_read_bytes’ throws an exception...
LVM2.2.03.38/tools/pvck.c:2132:14: danger: ‘buf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def565]
LVM2.2.03.38/tools/pvck.c:2834:19: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, back_size)’
LVM2.2.03.38/tools/pvck.c:2796:12: enter_function: entry to ‘_dump_backup_to_raw’
LVM2.2.03.38/tools/pvck.c:2810:12: branch_false: following ‘false’ branch (when ‘input’ is non-NULL)...
LVM2.2.03.38/tools/pvck.c:2815:19: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2815:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2820:13: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2820:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2825:37: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2825:12: branch_false: following ‘false’ branch (when ‘back_size != 0’)...
LVM2.2.03.38/tools/pvck.c:2830:26: call_function: inlined call to ‘zalloc’ from ‘_dump_backup_to_raw’
LVM2.2.03.38/tools/pvck.c:2830:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2833:14: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2834:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/tools/pvck.c:2835:17: branch_true: ...to here
LVM2.2.03.38/tools/pvck.c:2835:17: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/tools/pvck.c:2834:19: danger: ‘calloc(1, back_size)’ leaks here; was allocated at [(11)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def566]
LVM2.2.03.38/tools/pvck.c:2894:17: warning[-Wanalyzer-malloc-leak]: leak of ‘text_buf’
LVM2.2.03.38/tools/pvck.c:2944:12: enter_function: entry to ‘_read_metadata_file’
LVM2.2.03.38/tools/pvck.c:2952:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2957:13: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2957:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2962:37: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2962:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2967:33: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2967:26: acquire_memory: allocated here
LVM2.2.03.38/tools/pvck.c:2967:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2970:14: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2971:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2976:18: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2993:14: call_function: calling ‘_check_metadata_file’ from ‘_read_metadata_file’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def567]
LVM2.2.03.38/tools/pvck.c:2903:17: warning[-Wanalyzer-malloc-leak]: leak of ‘text_buf’
LVM2.2.03.38/tools/pvck.c:2944:12: enter_function: entry to ‘_read_metadata_file’
LVM2.2.03.38/tools/pvck.c:2952:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2957:13: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2957:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2962:37: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2962:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2967:33: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2967:26: acquire_memory: allocated here
LVM2.2.03.38/tools/pvck.c:2967:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2970:14: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2971:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2976:18: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2993:14: call_function: calling ‘_check_metadata_file’ from ‘_read_metadata_file’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def568]
LVM2.2.03.38/tools/pvck.c:2904:17: warning[-Wanalyzer-malloc-leak]: leak of ‘text_buf’
LVM2.2.03.38/tools/pvck.c:2944:12: enter_function: entry to ‘_read_metadata_file’
LVM2.2.03.38/tools/pvck.c:2952:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2957:13: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2957:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2962:37: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2962:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2967:33: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2967:26: acquire_memory: allocated here
LVM2.2.03.38/tools/pvck.c:2967:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2970:14: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2971:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2976:18: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2993:14: call_function: calling ‘_check_metadata_file’ from ‘_read_metadata_file’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def569]
LVM2.2.03.38/tools/pvck.c:2912:17: warning[-Wanalyzer-malloc-leak]: leak of ‘text_buf’
LVM2.2.03.38/tools/pvck.c:2944:12: enter_function: entry to ‘_read_metadata_file’
LVM2.2.03.38/tools/pvck.c:2952:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2957:13: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2957:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2962:37: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2962:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2967:33: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2967:26: acquire_memory: allocated here
LVM2.2.03.38/tools/pvck.c:2967:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2970:14: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2971:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2976:18: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2993:14: call_function: calling ‘_check_metadata_file’ from ‘_read_metadata_file’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def570]
LVM2.2.03.38/tools/pvck.c:2913:17: warning[-Wanalyzer-malloc-leak]: leak of ‘text_buf’
LVM2.2.03.38/tools/pvck.c:2944:12: enter_function: entry to ‘_read_metadata_file’
LVM2.2.03.38/tools/pvck.c:2952:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2957:13: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2957:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2962:37: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2962:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2967:33: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2967:26: acquire_memory: allocated here
LVM2.2.03.38/tools/pvck.c:2967:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2970:14: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2971:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2976:18: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2993:14: call_function: calling ‘_check_metadata_file’ from ‘_read_metadata_file’
Error: GCC_ANALYZER_WARNING (CWE-122): [#def571]
LVM2.2.03.38/tools/pvck.c:2919:13: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read
LVM2.2.03.38/tools/pvck.c:2944:12: enter_function: entry to ‘_read_metadata_file’
LVM2.2.03.38/tools/pvck.c:2952:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2957:13: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2957:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2962:37: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2962:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2967:33: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2967:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2970:14: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2971:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2976:18: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2993:14: call_function: calling ‘_check_metadata_file’ from ‘_read_metadata_file’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def572]
LVM2.2.03.38/tools/pvck.c:2920:17: warning[-Wanalyzer-malloc-leak]: leak of ‘text_buf’
LVM2.2.03.38/tools/pvck.c:2944:12: enter_function: entry to ‘_read_metadata_file’
LVM2.2.03.38/tools/pvck.c:2952:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2957:13: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2957:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2962:37: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2962:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2967:33: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2967:26: acquire_memory: allocated here
LVM2.2.03.38/tools/pvck.c:2967:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2970:14: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2971:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2976:18: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2993:14: call_function: calling ‘_check_metadata_file’ from ‘_read_metadata_file’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def573]
LVM2.2.03.38/tools/pvck.c:2931:9: warning[-Wanalyzer-malloc-leak]: leak of ‘text_buf’
LVM2.2.03.38/tools/pvck.c:2944:12: enter_function: entry to ‘_read_metadata_file’
LVM2.2.03.38/tools/pvck.c:2952:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2957:13: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2957:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2962:37: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2962:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2967:33: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2967:26: acquire_memory: allocated here
LVM2.2.03.38/tools/pvck.c:2967:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2970:14: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2971:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2976:18: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2993:14: call_function: calling ‘_check_metadata_file’ from ‘_read_metadata_file’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def574]
LVM2.2.03.38/tools/pvck.c:2971:19: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc((long unsigned int)sb.st_size + 1)’
LVM2.2.03.38/tools/pvck.c:2944:12: enter_function: entry to ‘_read_metadata_file’
LVM2.2.03.38/tools/pvck.c:2952:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2957:13: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2957:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2962:37: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2962:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2967:33: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2967:26: acquire_memory: allocated here
LVM2.2.03.38/tools/pvck.c:2967:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2970:14: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2971:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2976:18: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2981:13: call_function: inlined call to ‘_is_backup_file’ from ‘_read_metadata_file’
LVM2.2.03.38/tools/pvck.c:2981:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/tools/pvck.c:2984:17: branch_true: ...to here
LVM2.2.03.38/tools/pvck.c:2986:22: call_function: calling ‘_backup_file_to_raw_metadata’ from ‘_read_metadata_file’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def575]
LVM2.2.03.38/tools/pvck.c:2972:17: warning[-Wanalyzer-malloc-leak]: leak of ‘text_buf’
LVM2.2.03.38/tools/pvck.c:2952:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2957:13: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2957:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2962:37: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2962:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2967:33: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2967:26: acquire_memory: allocated here
LVM2.2.03.38/tools/pvck.c:2967:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2970:14: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2971:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/tools/pvck.c:2972:17: branch_true: ...to here
LVM2.2.03.38/tools/pvck.c:2972:17: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/tools/pvck.c:2972:17: danger: ‘text_buf’ leaks here; was allocated at [(7)](sarif:/runs/0/results/57/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def576]
LVM2.2.03.38/tools/pvck.c:2978:13: warning[-Wanalyzer-malloc-leak]: leak of ‘text_buf’
LVM2.2.03.38/tools/pvck.c:2952:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2957:13: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2957:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2962:37: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2962:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2967:33: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2967:26: acquire_memory: allocated here
LVM2.2.03.38/tools/pvck.c:2967:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2970:14: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2971:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2976:18: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2978:13: throw: if ‘close’ throws an exception...
LVM2.2.03.38/tools/pvck.c:2978:13: danger: ‘text_buf’ leaks here; was allocated at [(7)](sarif:/runs/0/results/58/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def577]
LVM2.2.03.38/tools/pvck.c:2979:17: warning[-Wanalyzer-malloc-leak]: leak of ‘text_buf’
LVM2.2.03.38/tools/pvck.c:2952:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2957:13: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2957:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2962:37: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2962:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2967:33: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2967:26: acquire_memory: allocated here
LVM2.2.03.38/tools/pvck.c:2967:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2970:14: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2971:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvck.c:2976:18: branch_false: ...to here
LVM2.2.03.38/tools/pvck.c:2978:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/tools/pvck.c:2979:17: branch_true: ...to here
LVM2.2.03.38/tools/pvck.c:2979:17: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/tools/pvck.c:2979:17: danger: ‘text_buf’ leaks here; was allocated at [(7)](sarif:/runs/0/results/59/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def578]
LVM2.2.03.38/tools/pvscan.c:244:22: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/run/lvm/pvs_online")’
LVM2.2.03.38/tools/pvscan.c:241:21: acquire_memory: allocated here
LVM2.2.03.38/tools/pvscan.c:241:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvscan.c:241:12: branch_false: ...to here
LVM2.2.03.38/tools/pvscan.c:244:22: throw: if ‘readdir’ throws an exception...
LVM2.2.03.38/tools/pvscan.c:244:22: danger: ‘opendir("/run/lvm/pvs_online")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def579]
LVM2.2.03.38/tools/pvscan.c:281:22: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(dirpath)’
LVM2.2.03.38/tools/pvscan.c:278:21: acquire_memory: allocated here
LVM2.2.03.38/tools/pvscan.c:278:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvscan.c:278:12: branch_false: ...to here
LVM2.2.03.38/tools/pvscan.c:281:22: throw: if ‘readdir’ throws an exception...
LVM2.2.03.38/tools/pvscan.c:281:22: danger: ‘opendir(dirpath)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def580]
LVM2.2.03.38/tools/pvscan.c:433:33: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/run/lvm/pvs_lookup")’
LVM2.2.03.38/tools/pvscan.c:424:21: acquire_memory: allocated here
LVM2.2.03.38/tools/pvscan.c:424:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvscan.c:424:12: branch_false: ...to here
LVM2.2.03.38/tools/pvscan.c:433:16: branch_true: following ‘true’ branch (when ‘vgname’ is NULL)...
LVM2.2.03.38/tools/pvscan.c:433:33: branch_true: ...to here
LVM2.2.03.38/tools/pvscan.c:433:33: throw: if ‘readdir’ throws an exception...
LVM2.2.03.38/tools/pvscan.c:433:33: danger: ‘opendir("/run/lvm/pvs_lookup")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def581]
LVM2.2.03.38/tools/pvscan.c:447:52: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&path, "r")’
LVM2.2.03.38/tools/pvscan.c:424:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvscan.c:424:12: branch_false: ...to here
LVM2.2.03.38/tools/pvscan.c:433:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/tools/pvscan.c:442:28: acquire_resource: opened here
LVM2.2.03.38/tools/pvscan.c:448:39: throw: if ‘dm_pool_strdup’ throws an exception...
LVM2.2.03.38/tools/pvscan.c:447:52: danger: ‘fopen(&path, "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def582]
LVM2.2.03.38/tools/pvscan.c:447:52: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&path, "r")’
LVM2.2.03.38/tools/pvscan.c:424:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/pvscan.c:424:12: branch_false: ...to here
LVM2.2.03.38/tools/pvscan.c:433:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/tools/pvscan.c:442:28: acquire_memory: allocated here
LVM2.2.03.38/tools/pvscan.c:448:39: throw: if ‘dm_pool_strdup’ throws an exception...
LVM2.2.03.38/tools/pvscan.c:447:52: danger: ‘fopen(&path, "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def583]
LVM2.2.03.38/tools/toollib.c:94:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open(&_devnull, 2), 0)’
LVM2.2.03.38/tools/toollib.c:68:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
LVM2.2.03.38/tools/toollib.c:74:12: branch_false: ...to here
LVM2.2.03.38/tools/toollib.c:74:12: branch_false: following ‘false’ branch (when ‘pid <= 0’)...
LVM2.2.03.38/tools/toollib.c:78:26: branch_false: ...to here
LVM2.2.03.38/tools/toollib.c:88:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/toollib.c:94:14: branch_false: ...to here
LVM2.2.03.38/tools/toollib.c:94:14: acquire_resource: opened here
LVM2.2.03.38/tools/toollib.c:94:12: danger: ‘dup2(open(&_devnull, 2), 0)’ leaks here; was opened at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def584]
LVM2.2.03.38/tools/toollib.c:94:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open(&_devnull, 2), 1)’
LVM2.2.03.38/tools/toollib.c:68:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
LVM2.2.03.38/tools/toollib.c:74:12: branch_false: ...to here
LVM2.2.03.38/tools/toollib.c:74:12: branch_false: following ‘false’ branch (when ‘pid <= 0’)...
LVM2.2.03.38/tools/toollib.c:78:26: branch_false: ...to here
LVM2.2.03.38/tools/toollib.c:88:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/toollib.c:94:14: branch_false: ...to here
LVM2.2.03.38/tools/toollib.c:94:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/toollib.c:95:14: branch_false: ...to here
LVM2.2.03.38/tools/toollib.c:95:14: acquire_resource: opened here
LVM2.2.03.38/tools/toollib.c:94:13: danger: ‘dup2(open(&_devnull, 2), 1)’ leaks here; was opened at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def585]
LVM2.2.03.38/tools/toollib.c:94:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open(&_devnull, 2), 2)’
LVM2.2.03.38/tools/toollib.c:68:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
LVM2.2.03.38/tools/toollib.c:74:12: branch_false: ...to here
LVM2.2.03.38/tools/toollib.c:74:12: branch_false: following ‘false’ branch (when ‘pid <= 0’)...
LVM2.2.03.38/tools/toollib.c:78:26: branch_false: ...to here
LVM2.2.03.38/tools/toollib.c:88:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/toollib.c:94:14: branch_false: ...to here
LVM2.2.03.38/tools/toollib.c:94:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/toollib.c:95:14: branch_false: ...to here
LVM2.2.03.38/tools/toollib.c:94:13: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/toollib.c:96:14: branch_false: ...to here
LVM2.2.03.38/tools/toollib.c:96:14: acquire_resource: opened here
LVM2.2.03.38/tools/toollib.c:94:13: danger: ‘dup2(open(&_devnull, 2), 2)’ leaks here; was opened at [(11)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def586]
LVM2.2.03.38/tools/toollib.c:97:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&_devnull, 2)’
LVM2.2.03.38/tools/toollib.c:68:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
LVM2.2.03.38/tools/toollib.c:74:12: branch_false: ...to here
LVM2.2.03.38/tools/toollib.c:74:12: branch_false: following ‘false’ branch (when ‘pid <= 0’)...
LVM2.2.03.38/tools/toollib.c:78:26: branch_false: ...to here
LVM2.2.03.38/tools/toollib.c:88:24: acquire_resource: opened here
LVM2.2.03.38/tools/toollib.c:88:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/toollib.c:94:14: branch_false: ...to here
LVM2.2.03.38/tools/toollib.c:97:17: throw: if ‘print_log’ throws an exception...
LVM2.2.03.38/tools/toollib.c:97:17: danger: ‘open(&_devnull, 2)’ leaks here; was opened at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def587]
LVM2.2.03.38/tools/toollib.c:102:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&_devnull, 2)’
LVM2.2.03.38/tools/toollib.c:68:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
LVM2.2.03.38/tools/toollib.c:74:12: branch_false: ...to here
LVM2.2.03.38/tools/toollib.c:74:12: branch_false: following ‘false’ branch (when ‘pid <= 0’)...
LVM2.2.03.38/tools/toollib.c:78:26: branch_false: ...to here
LVM2.2.03.38/tools/toollib.c:88:24: acquire_resource: opened here
LVM2.2.03.38/tools/toollib.c:88:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/toollib.c:94:14: branch_false: ...to here
LVM2.2.03.38/tools/toollib.c:94:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/toollib.c:95:14: branch_false: ...to here
LVM2.2.03.38/tools/toollib.c:94:13: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/toollib.c:96:14: branch_false: ...to here
LVM2.2.03.38/tools/toollib.c:94:13: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/toollib.c:102:12: branch_false: ...to here
LVM2.2.03.38/tools/toollib.c:102:12: danger: ‘open(&_devnull, 2)’ leaks here; was opened at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def588]
LVM2.2.03.38/tools/toollib.c:103:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&_devnull, 2)’
LVM2.2.03.38/tools/toollib.c:68:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
LVM2.2.03.38/tools/toollib.c:74:12: branch_false: ...to here
LVM2.2.03.38/tools/toollib.c:74:12: branch_false: following ‘false’ branch (when ‘pid <= 0’)...
LVM2.2.03.38/tools/toollib.c:78:26: branch_false: ...to here
LVM2.2.03.38/tools/toollib.c:88:24: acquire_resource: opened here
LVM2.2.03.38/tools/toollib.c:88:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/toollib.c:94:14: branch_false: ...to here
LVM2.2.03.38/tools/toollib.c:94:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/toollib.c:95:14: branch_false: ...to here
LVM2.2.03.38/tools/toollib.c:94:13: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/toollib.c:96:14: branch_false: ...to here
LVM2.2.03.38/tools/toollib.c:94:13: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/toollib.c:102:12: branch_false: ...to here
LVM2.2.03.38/tools/toollib.c:102:12: branch_true: following ‘true’ branch...
LVM2.2.03.38/tools/toollib.c:103:24: branch_true: ...to here
LVM2.2.03.38/tools/toollib.c:103:24: danger: ‘open(&_devnull, 2)’ leaks here; was opened at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def589]
LVM2.2.03.38/tools/toollib.c:1888:41: warning[-Wanalyzer-malloc-leak]: leak of ‘devl’
LVM2.2.03.38/tools/toollib.c:1860:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/toollib.c:1865:12: branch_false: ...to here
LVM2.2.03.38/tools/toollib.c:1865:12: branch_true: following ‘true’ branch (when ‘argc != 0’)...
LVM2.2.03.38/tools/toollib.c:1865:12: branch_true: ...to here
LVM2.2.03.38/tools/toollib.c:1866:24: branch_true: following ‘true’ branch (when ‘opt < argc’)...
LVM2.2.03.38/tools/toollib.c:1867:29: branch_true: ...to here
LVM2.2.03.38/tools/toollib.c:1867:28: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/toollib.c:1873:37: branch_false: ...to here
LVM2.2.03.38/tools/toollib.c:1885:54: acquire_memory: allocated here
LVM2.2.03.38/tools/toollib.c:1885:44: branch_false: following ‘false’ branch (when ‘devl’ is non-NULL)...
LVM2.2.03.38/tools/toollib.c:1887:41: branch_false: ...to here
LVM2.2.03.38/tools/toollib.c:1888:41: throw: if ‘dm_list_add’ throws an exception...
LVM2.2.03.38/tools/toollib.c:1888:41: danger: ‘devl’ leaks here; was allocated at [(9)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def590]
LVM2.2.03.38/tools/vgcfgbackup.c:37:13: warning[-Wanalyzer-malloc-leak]: leak of ‘filename’
LVM2.2.03.38/tools/vgcfgbackup.c:23:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/vgcfgbackup.c:31:26: branch_false: ...to here
LVM2.2.03.38/tools/vgcfgbackup.c:31:26: acquire_memory: allocated here
LVM2.2.03.38/tools/vgcfgbackup.c:31:12: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
LVM2.2.03.38/tools/vgcfgbackup.c:37:13: branch_false: ...to here
LVM2.2.03.38/tools/vgcfgbackup.c:37:13: throw: if ‘dm_snprintf’ throws an exception...
LVM2.2.03.38/tools/vgcfgbackup.c:37:13: danger: ‘filename’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def591]
LVM2.2.03.38/tools/vgimportclone.c:195:17: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 24)’
LVM2.2.03.38/tools/vgimportclone.c:177:12: enter_function: entry to ‘_get_other_devs’
LVM2.2.03.38/tools/vgimportclone.c:184:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/vgimportclone.c:184:12: branch_false: ...to here
LVM2.2.03.38/tools/vgimportclone.c:187:16: branch_true: following ‘true’ branch...
LVM2.2.03.38/tools/vgimportclone.c:188:21: branch_true: ...to here
LVM2.2.03.38/tools/vgimportclone.c:190:30: call_function: inlined call to ‘zalloc’ from ‘_get_other_devs’
LVM2.2.03.38/tools/vgimportclone.c:190:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/vgimportclone.c:194:17: branch_false: ...to here
LVM2.2.03.38/tools/vgimportclone.c:195:17: danger: ‘calloc(1, 24)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def592]
LVM2.2.03.38/tools/vgimportclone.c:280:17: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 24)’
LVM2.2.03.38/tools/vgimportclone.c:202:5: enter_function: entry to ‘vgimportclone’
LVM2.2.03.38/tools/vgimportclone.c:232:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/vgimportclone.c:235:9: branch_false: ...to here
LVM2.2.03.38/tools/vgimportclone.c:239:12: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/vgimportclone.c:249:13: branch_false: ...to here
LVM2.2.03.38/tools/vgimportclone.c:269:21: branch_true: following ‘true’ branch (when ‘i < argc’)...
LVM2.2.03.38/tools/vgimportclone.c:270:29: branch_true: ...to here
LVM2.2.03.38/tools/vgimportclone.c:270:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/vgimportclone.c:276:30: call_function: inlined call to ‘zalloc’ from ‘vgimportclone’
LVM2.2.03.38/tools/vgimportclone.c:276:20: branch_false: following ‘false’ branch...
LVM2.2.03.38/tools/vgimportclone.c:279:17: branch_false: ...to here
LVM2.2.03.38/tools/vgimportclone.c:280:17: danger: ‘calloc(1, 24)’ leaks here; was allocated at [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10)
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-127.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 | lvm2-2.03.38-1.fc44 |
| store-results-to | /tmp/tmpd3bw0_ae/lvm2-2.03.38-1.fc44.tar.xz |
| time-created | 2026-01-08 19:28:36 |
| time-finished | 2026-01-08 19:32:37 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpd3bw0_ae/lvm2-2.03.38-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpd3bw0_ae/lvm2-2.03.38-1.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |