Newly introduced findings
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
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: COMPILER_WARNING: [#def2]
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): [#def3]
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): [#def4]
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): [#def5]
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): [#def6]
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): [#def7]
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): [#def8]
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): [#def9]
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): [#def10]
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): [#def11]
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): [#def12]
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): [#def13]
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): [#def14]
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): [#def15]
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): [#def16]
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): [#def17]
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): [#def18]
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): [#def19]
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): [#def20]
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): [#def21]
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): [#def22]
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): [#def23]
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): [#def24]
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): [#def25]
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): [#def26]
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): [#def27]
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): [#def28]
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): [#def29]
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): [#def30]
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): [#def31]
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-688): [#def32]
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-775): [#def33]
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): [#def34]
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): [#def35]
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): [#def36]
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: GCC_ANALYZER_WARNING (CWE-401): [#def37]
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-775): [#def38]
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): [#def39]
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): [#def40]
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): [#def41]
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): [#def42]
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-401): [#def43]
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-401): [#def44]
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-775): [#def45]
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): [#def46]
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): [#def47]
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): [#def48]
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): [#def49]
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): [#def50]
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): [#def51]
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): [#def52]
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): [#def53]
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): [#def54]
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): [#def55]
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): [#def56]
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-401): [#def57]
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): [#def58]
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-775): [#def59]
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): [#def60]
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): [#def61]
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): [#def62]
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-457): [#def63]
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-457): [#def64]
LVM2.2.03.38/tools/lvmdevices.c:1036: error[legacyUninitvar]: Uninitialized variable: idname
Error: GCC_ANALYZER_WARNING (CWE-401): [#def65]
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): [#def66]
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)
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 |
| diffbase-analyzer-version-clippy | 1.92.0 |
| diffbase-analyzer-version-cppcheck | 2.19.1 |
| diffbase-analyzer-version-gcc | 16.0.0 |
| diffbase-analyzer-version-gcc-analyzer | 16.0.0 |
| diffbase-analyzer-version-shellcheck | 0.11.0 |
| diffbase-analyzer-version-unicontrol | 0.0.2 |
| diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| diffbase-exit-code | 0 |
| diffbase-host | ip-172-16-1-127.us-west-2.compute.internal |
| diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js |
| diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | lvm2-2.03.34-2.fc43 |
| diffbase-store-results-to | /tmp/tmpwiice9v_/lvm2-2.03.34-2.fc43.tar.xz |
| diffbase-time-created | 2026-01-08 19:23:29 |
| diffbase-time-finished | 2026-01-08 19:27:57 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpwiice9v_/lvm2-2.03.34-2.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpwiice9v_/lvm2-2.03.34-2.fc43.src.rpm' |
| diffbase-tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |
| 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 |
| title | Newly introduced findings |
| 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 |