xfsprogs-6.17.0-1.fc44
List of Findings
Error: SHELLCHECK_WARNING: [#def1]
/usr/bin/fsck.xfs:37:2: warning[SC2220]: Invalid flags are not handled. Add a *) case.
Error: SHELLCHECK_WARNING (CWE-569): [#def2]
/usr/bin/fsck.xfs:43:12: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
Error: SHELLCHECK_WARNING (CWE-569): [#def3]
/usr/bin/fsck.xfs:43:15: warning[SC1083]: This } is literal. Check expression (missing ;/\n?) or quote it.
Error: SHELLCHECK_WARNING (CWE-156): [#def4]
/usr/bin/fsck.xfs:84:8: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-156): [#def5]
/usr/bin/fsck.xfs:84:27: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-149): [#def6]
/usr/bin/xfs_admin:36:34: warning[SC2027]: The surrounding quotes actually unquote this. Remove or escape them.
Error: SHELLCHECK_WARNING (CWE-149): [#def7]
/usr/bin/xfs_admin:37:35: warning[SC2027]: The surrounding quotes actually unquote this. Remove or escape them.
Error: SHELLCHECK_WARNING (CWE-149): [#def8]
/usr/bin/xfs_admin:52:33: warning[SC2027]: The surrounding quotes actually unquote this. Remove or escape them.
Error: SHELLCHECK_WARNING (CWE-88): [#def9]
/usr/bin/xfs_admin:64:14: error[SC2068]: Double quote array expansions to avoid re-splitting elements.
Error: SHELLCHECK_WARNING (CWE-156): [#def10]
/usr/bin/xfs_bmap:29:7: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-563): [#def11]
/usr/bin/xfs_freeze:6:1: warning[SC2034]: OPTS appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-156): [#def12]
/usr/bin/xfs_freeze:29:7: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING: [#def13]
/usr/bin/xfs_info:14:2: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING (CWE-571): [#def14]
/usr/bin/xfs_info:14:8: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING (CWE-149): [#def15]
/usr/bin/xfs_metadump:17:20: warning[SC2027]: The surrounding quotes actually unquote this. Remove or escape them.
Error: SHELLCHECK_WARNING (CWE-149): [#def16]
/usr/bin/xfs_metadump:21:25: warning[SC2027]: The surrounding quotes actually unquote this. Remove or escape them.
Error: SHELLCHECK_WARNING (CWE-149): [#def17]
/usr/bin/xfs_metadump:23:20: warning[SC2027]: The surrounding quotes actually unquote this. Remove or escape them.
Error: SHELLCHECK_WARNING (CWE-149): [#def18]
/usr/bin/xfs_metadump:28:24: warning[SC2027]: The surrounding quotes actually unquote this. Remove or escape them.
Error: SHELLCHECK_WARNING (CWE-88): [#def19]
/usr/bin/xfs_metadump:34:14: error[SC2068]: Double quote array expansions to avoid re-splitting elements.
Error: SHELLCHECK_WARNING (CWE-563): [#def20]
/usr/bin/xfs_mkfile:6:1: warning[SC2034]: OPTS appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-156): [#def21]
/usr/bin/xfs_mkfile:28:7: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING: [#def22]
/usr/bin/xfs_ncheck:14:2: warning[SC2213]: getopts specified -b, but it's not handled by this 'case'.
Error: SHELLCHECK_WARNING (CWE-149): [#def23]
/usr/bin/xfs_ncheck:16:20: warning[SC2027]: The surrounding quotes actually unquote this. Remove or escape them.
Error: SHELLCHECK_WARNING (CWE-149): [#def24]
/usr/bin/xfs_ncheck:19:25: warning[SC2027]: The surrounding quotes actually unquote this. Remove or escape them.
Error: SHELLCHECK_WARNING (CWE-88): [#def25]
/usr/bin/xfs_ncheck:29:14: error[SC2068]: Double quote array expansions to avoid re-splitting elements.
Error: SHELLCHECK_WARNING (CWE-563): [#def26]
/usr/bin/xfs_property:8:1: warning[SC2034]: OPTS appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-571): [#def27]
/usr/bin/xfs_property:15:8: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
xfsprogs-6.17.0/copy/xfs_copy.c:1380:9: warning[-Wanalyzer-malloc-leak]: leak of ‘logbuf.data’
xfsprogs-6.17.0/copy/xfs_copy.c:1388:1: enter_function: entry to ‘format_logs’
xfsprogs-6.17.0/copy/xfs_copy.c:1396:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/copy/xfs_copy.c:1397:27: branch_true: ...to here
xfsprogs-6.17.0/copy/xfs_copy.c:1398:22: call_function: calling ‘wbuf_init’ from ‘format_logs’
xfsprogs-6.17.0/copy/xfs_copy.c:1398:22: return_function: returning to ‘format_logs’ from ‘wbuf_init’
xfsprogs-6.17.0/copy/xfs_copy.c:1398:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/copy/xfs_copy.c:1403:21: branch_false: ...to here
xfsprogs-6.17.0/copy/xfs_copy.c:1403:35: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/copy/xfs_copy.c:1404:21: call_function: inlined call to ‘xfs_has_crc’ from ‘format_logs’
xfsprogs-6.17.0/copy/xfs_copy.c:1404:20: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/copy/xfs_copy.c:1405:25: branch_true: ...to here
xfsprogs-6.17.0/copy/xfs_copy.c:1405:25: call_function: calling ‘format_log’ from ‘format_logs’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
xfsprogs-6.17.0/copy/xfs_copy.c:1400:32: warning[-Wanalyzer-malloc-leak]: leak of ‘logbuf.data’
xfsprogs-6.17.0/copy/xfs_copy.c:1388:1: enter_function: entry to ‘format_logs’
xfsprogs-6.17.0/copy/xfs_copy.c:1396:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/copy/xfs_copy.c:1397:27: branch_true: ...to here
xfsprogs-6.17.0/copy/xfs_copy.c:1398:22: call_function: calling ‘wbuf_init’ from ‘format_logs’
xfsprogs-6.17.0/copy/xfs_copy.c:1398:22: return_function: returning to ‘format_logs’ from ‘wbuf_init’
xfsprogs-6.17.0/copy/xfs_copy.c:1398:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/copy/xfs_copy.c:1403:21: branch_false: ...to here
xfsprogs-6.17.0/copy/xfs_copy.c:1403:35: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/copy/xfs_copy.c:1411:13: call_function: inlined call to ‘xfs_has_crc’ from ‘format_logs’
xfsprogs-6.17.0/copy/xfs_copy.c:1411:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/copy/xfs_copy.c:1400:32: branch_false: ...to here
xfsprogs-6.17.0/copy/xfs_copy.c:1400:32: danger: ‘logbuf.data’ leaks here; was allocated at [(8)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
xfsprogs-6.17.0/db/attrset.c:140:17: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
xfsprogs-6.17.0/db/attrset.c:132:15: acquire_memory: allocated here
xfsprogs-6.17.0/db/attrset.c:133:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
xfsprogs-6.17.0/db/attrset.c:138:14: branch_false: ...to here
xfsprogs-6.17.0/db/attrset.c:139:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/db/attrset.c:140:17: branch_true: ...to here
xfsprogs-6.17.0/db/attrset.c:140:17: throw: if ‘perror’ throws an exception...
xfsprogs-6.17.0/db/attrset.c:140:17: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
xfsprogs-6.17.0/db/attrset.c:371:25: warning[-Wanalyzer-malloc-leak]: leak of ‘args.name’
xfsprogs-6.17.0/db/attrset.c:218:1: enter_function: entry to ‘attr_set_f’
xfsprogs-6.17.0/db/attrset.c:236:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/attrset.c:240:13: branch_false: ...to here
xfsprogs-6.17.0/db/attrset.c:240:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/attrset.c:240:12: branch_false: ...to here
xfsprogs-6.17.0/db/attrset.c:245:16: branch_true: following ‘true’ branch (when ‘c != -1’)...
xfsprogs-6.17.0/db/attrset.c:246:17: branch_true: ...to here
xfsprogs-6.17.0/db/attrset.c:316:12: branch_true: following ‘true’ branch (when ‘name_from_file’ is non-NULL)...
xfsprogs-6.17.0/db/attrset.c:317:21: branch_true: ...to here
xfsprogs-6.17.0/db/attrset.c:319:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/attrset.c:324:29: branch_false: ...to here
xfsprogs-6.17.0/db/attrset.c:324:29: call_function: calling ‘get_buf_from_file’ from ‘attr_set_f’
xfsprogs-6.17.0/db/attrset.c:324:29: return_function: returning to ‘attr_set_f’ from ‘get_buf_from_file’
xfsprogs-6.17.0/db/attrset.c:326:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/attrset.c:329:17: branch_false: ...to here
xfsprogs-6.17.0/db/attrset.c:350:12: branch_false: following ‘false’ branch (when ‘value_from_file’ is NULL)...
xfsprogs-6.17.0/db/attrset.c:359:20: branch_false: ...to here
xfsprogs-6.17.0/db/attrset.c:359:19: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/attrset.c:367:30: branch_false: ...to here
xfsprogs-6.17.0/db/attrset.c:367:19: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/db/attrset.c:367:19: branch_true: ...to here
xfsprogs-6.17.0/db/attrset.c:370:20: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/db/attrset.c:371:34: branch_true: ...to here
xfsprogs-6.17.0/db/attrset.c:371:25: throw: if ‘dbprintf’ throws an exception...
xfsprogs-6.17.0/db/attrset.c:371:25: danger: ‘args.name’ leaks here; was allocated at [(14)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
xfsprogs-6.17.0/db/attrset.c:388:13: warning[-Wanalyzer-malloc-leak]: leak of ‘args.value’
xfsprogs-6.17.0/db/attrset.c:236:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/attrset.c:240:13: branch_false: ...to here
xfsprogs-6.17.0/db/attrset.c:240:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/attrset.c:240:12: branch_false: ...to here
xfsprogs-6.17.0/db/attrset.c:316:12: branch_false: following ‘false’ branch (when ‘name_from_file’ is NULL)...
xfsprogs-6.17.0/db/attrset.c:332:31: branch_false: ...to here
xfsprogs-6.17.0/db/attrset.c:338:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/attrset.c:343:32: branch_false: ...to here
xfsprogs-6.17.0/db/attrset.c:344:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/attrset.c:350:12: branch_false: ...to here
xfsprogs-6.17.0/db/attrset.c:350:12: branch_false: following ‘false’ branch (when ‘value_from_file’ is NULL)...
xfsprogs-6.17.0/db/attrset.c:359:20: branch_false: ...to here
xfsprogs-6.17.0/db/attrset.c:359:19: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/attrset.c:367:30: branch_false: ...to here
xfsprogs-6.17.0/db/attrset.c:367:19: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/db/attrset.c:367:19: branch_true: ...to here
xfsprogs-6.17.0/db/attrset.c:369:30: acquire_memory: allocated here
xfsprogs-6.17.0/db/attrset.c:370:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/attrset.c:377:12: branch_false: ...to here
xfsprogs-6.17.0/db/attrset.c:377:12: branch_false: following ‘false’ branch (when ‘fsprop == 0’)...
xfsprogs-6.17.0/db/attrset.c:388:44: branch_false: ...to here
xfsprogs-6.17.0/db/attrset.c:388:13: throw: if ‘libxfs_iget’ throws an exception...
xfsprogs-6.17.0/db/attrset.c:388:13: danger: ‘args.value’ leaks here; was allocated at [(17)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
xfsprogs-6.17.0/db/attrset.c:522:13: warning[-Wanalyzer-malloc-leak]: leak of ‘args.name’
xfsprogs-6.17.0/db/attrset.c:422:1: enter_function: entry to ‘attr_remove_f’
xfsprogs-6.17.0/db/attrset.c:437:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/attrset.c:441:13: branch_false: ...to here
xfsprogs-6.17.0/db/attrset.c:441:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/attrset.c:441:12: branch_false: ...to here
xfsprogs-6.17.0/db/attrset.c:446:16: branch_true: following ‘true’ branch (when ‘c != -1’)...
xfsprogs-6.17.0/db/attrset.c:447:17: branch_true: ...to here
xfsprogs-6.17.0/db/attrset.c:485:12: branch_true: following ‘true’ branch (when ‘name_from_file’ is non-NULL)...
xfsprogs-6.17.0/db/attrset.c:486:21: branch_true: ...to here
xfsprogs-6.17.0/db/attrset.c:488:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/attrset.c:493:29: branch_false: ...to here
xfsprogs-6.17.0/db/attrset.c:493:29: call_function: calling ‘get_buf_from_file’ from ‘attr_remove_f’
xfsprogs-6.17.0/db/attrset.c:493:29: return_function: returning to ‘attr_remove_f’ from ‘get_buf_from_file’
xfsprogs-6.17.0/db/attrset.c:495:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/attrset.c:498:17: branch_false: ...to here
xfsprogs-6.17.0/db/attrset.c:519:12: branch_false: following ‘false’ branch (when ‘fsprop == 0’)...
xfsprogs-6.17.0/db/attrset.c:522:44: branch_false: ...to here
xfsprogs-6.17.0/db/attrset.c:522:13: throw: if ‘libxfs_iget’ throws an exception...
xfsprogs-6.17.0/db/attrset.c:522:13: danger: ‘args.name’ leaks here; was allocated at [(14)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
xfsprogs-6.17.0/db/attrset.c:641:13: warning[-Wanalyzer-malloc-leak]: leak of ‘args.name’
xfsprogs-6.17.0/db/attrset.c:552:1: enter_function: entry to ‘attr_get_f’
xfsprogs-6.17.0/db/attrset.c:567:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/attrset.c:571:13: branch_false: ...to here
xfsprogs-6.17.0/db/attrset.c:571:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/attrset.c:571:12: branch_false: ...to here
xfsprogs-6.17.0/db/attrset.c:576:16: branch_true: following ‘true’ branch (when ‘c != -1’)...
xfsprogs-6.17.0/db/attrset.c:577:17: branch_true: ...to here
xfsprogs-6.17.0/db/attrset.c:607:12: branch_true: following ‘true’ branch (when ‘name_from_file’ is non-NULL)...
xfsprogs-6.17.0/db/attrset.c:608:21: branch_true: ...to here
xfsprogs-6.17.0/db/attrset.c:610:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/attrset.c:615:29: branch_false: ...to here
xfsprogs-6.17.0/db/attrset.c:615:29: call_function: calling ‘get_buf_from_file’ from ‘attr_get_f’
xfsprogs-6.17.0/db/attrset.c:615:29: return_function: returning to ‘attr_get_f’ from ‘get_buf_from_file’
xfsprogs-6.17.0/db/attrset.c:617:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/attrset.c:620:17: branch_false: ...to here
xfsprogs-6.17.0/db/attrset.c:641:13: throw: if ‘libxfs_iget’ throws an exception...
xfsprogs-6.17.0/db/attrset.c:641:13: danger: ‘args.name’ leaks here; was allocated at [(14)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def35]
xfsprogs-6.17.0/db/block.c:268:9: warning[-Wanalyzer-malloc-leak]: leak of ‘bmp’
xfsprogs-6.17.0/db/block.c:253:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/block.c:257:9: branch_false: ...to here
xfsprogs-6.17.0/db/block.c:262:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/block.c:266:20: branch_false: ...to here
xfsprogs-6.17.0/db/block.c:267:15: acquire_memory: allocated here
xfsprogs-6.17.0/db/block.c:268:9: throw: if ‘bmap’ throws an exception...
xfsprogs-6.17.0/db/block.c:268:9: danger: ‘bmp’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def36]
xfsprogs-6.17.0/db/btblock.c:186:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xfsprogs-6.17.0/db/btblock.c:262:9: branch_true: following ‘true’ branch (when ‘startoff == 0’)...
xfsprogs-6.17.0/db/btblock.c:263:9: branch_true: ...to here
xfsprogs-6.17.0/db/btblock.c:263:9: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/db/btblock.c:265:41: branch_true: ...to here
xfsprogs-6.17.0/db/btblock.c:265:19: call_function: inlined call to ‘btblock_maxrecs’ from ‘btblock_ptr_offset’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def37]
xfsprogs-6.17.0/db/btblock.c:244:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xfsprogs-6.17.0/db/btblock.c:241:9: branch_true: following ‘true’ branch (when ‘startoff == 0’)...
xfsprogs-6.17.0/db/btblock.c:242:9: branch_true: ...to here
xfsprogs-6.17.0/db/btblock.c:242:9: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/db/btblock.c:244:18: branch_true: ...to here
xfsprogs-6.17.0/db/btblock.c:244:18: danger: dereference of NULL ‘block_to_bt(obj)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def38]
xfsprogs-6.17.0/db/btblock.c:289:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xfsprogs-6.17.0/db/btblock.c:286:9: branch_true: following ‘true’ branch (when ‘startoff == 0’)...
xfsprogs-6.17.0/db/btblock.c:287:9: branch_true: ...to here
xfsprogs-6.17.0/db/btblock.c:287:9: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/db/btblock.c:289:18: branch_true: ...to here
xfsprogs-6.17.0/db/btblock.c:289:18: danger: dereference of NULL ‘block_to_bt(obj)’
Error: COMPILER_WARNING (CWE-704): [#def39]
xfsprogs-6.17.0/db/btheight.c: scope_hint: In function ‘construct_records_per_block’
xfsprogs-6.17.0/db/btheight.c:158:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def40]
xfsprogs-6.17.0/db/btheight.c:158:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-401): [#def41]
xfsprogs-6.17.0/db/btheight.c:172:23: warning[-Wanalyzer-malloc-leak]: leak of ‘toktag’
xfsprogs-6.17.0/db/btheight.c:387:1: enter_function: entry to ‘report_all’
xfsprogs-6.17.0/db/btheight.c:395:31: branch_true: following ‘true’ branch (when ‘i != 9’)...
xfsprogs-6.17.0/db/btheight.c:396:17: branch_true: ...to here
xfsprogs-6.17.0/db/btheight.c:396:17: call_function: calling ‘report’ from ‘report_all’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def42]
xfsprogs-6.17.0/db/faddr.c:141:9: warning[-Wanalyzer-malloc-leak]: leak of ‘bmp’
xfsprogs-6.17.0/db/faddr.c:135:12: branch_false: following ‘false’ branch (when ‘bno != 18446744073709551615’)...
xfsprogs-6.17.0/db/faddr.c:139:20: branch_false: ...to here
xfsprogs-6.17.0/db/faddr.c:140:15: acquire_memory: allocated here
xfsprogs-6.17.0/db/faddr.c:141:9: throw: if ‘bmap’ throws an exception...
xfsprogs-6.17.0/db/faddr.c:141:9: danger: ‘bmp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
xfsprogs-6.17.0/db/faddr.c:225:9: warning[-Wanalyzer-malloc-leak]: leak of ‘bmp’
xfsprogs-6.17.0/db/faddr.c:219:12: branch_false: following ‘false’ branch (when ‘bno != 18446744073709551615’)...
xfsprogs-6.17.0/db/faddr.c:223:20: branch_false: ...to here
xfsprogs-6.17.0/db/faddr.c:224:15: acquire_memory: allocated here
xfsprogs-6.17.0/db/faddr.c:225:9: throw: if ‘bmap’ throws an exception...
xfsprogs-6.17.0/db/faddr.c:225:9: danger: ‘bmp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def44]
xfsprogs-6.17.0/db/faddr.c:278:9: warning[-Wanalyzer-malloc-leak]: leak of ‘bmp’
xfsprogs-6.17.0/db/faddr.c:272:12: branch_false: following ‘false’ branch (when ‘bno != 0’)...
xfsprogs-6.17.0/db/faddr.c:276:17: branch_false: ...to here
xfsprogs-6.17.0/db/faddr.c:277:15: acquire_memory: allocated here
xfsprogs-6.17.0/db/faddr.c:278:9: throw: if ‘bmap’ throws an exception...
xfsprogs-6.17.0/db/faddr.c:278:9: danger: ‘bmp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def45]
xfsprogs-6.17.0/db/fuzz.c:336:9: warning[-Wanalyzer-malloc-leak]: leak of ‘b’
xfsprogs-6.17.0/db/fuzz.c:327:20: acquire_memory: allocated here
xfsprogs-6.17.0/db/fuzz.c:328:12: branch_false: following ‘false’ branch (when ‘b’ is non-NULL)...
xfsprogs-6.17.0/db/fuzz.c:328:12: branch_false: ...to here
xfsprogs-6.17.0/db/fuzz.c:333:21: branch_false: following ‘false’ branch (when ‘i >= bytes’)...
xfsprogs-6.17.0/db/fuzz.c:336:9: branch_false: ...to here
xfsprogs-6.17.0/db/fuzz.c:336:9: throw: if ‘setbitval’ throws an exception...
xfsprogs-6.17.0/db/fuzz.c:336:9: danger: ‘b’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def46]
xfsprogs-6.17.0/db/hash.c:205:39: warning[-Wanalyzer-malloc-leak]: leak of ‘tab’
xfsprogs-6.17.0/db/hash.c:382:1: enter_function: entry to ‘hashcoll_f’
xfsprogs-6.17.0/db/hash.c:418:12: branch_false: following ‘false’ branch (when ‘path’ is NULL)...
xfsprogs-6.17.0/db/hash.c:432:12: branch_false: ...to here
xfsprogs-6.17.0/db/hash.c:435:12: branch_false: following ‘false’ branch (when ‘read_stdin == 0’)...
xfsprogs-6.17.0/db/hash.c:452:14: branch_false: ...to here
xfsprogs-6.17.0/db/hash.c:452:26: branch_true: following ‘true’ branch (when ‘c < argc’)...
xfsprogs-6.17.0/db/hash.c:453:42: branch_true: ...to here
xfsprogs-6.17.0/db/hash.c:455:20: branch_false: following ‘false’ branch (when ‘create_xattr == 0’)...
xfsprogs-6.17.0/db/hash.c:458:33: branch_false: ...to here
xfsprogs-6.17.0/db/hash.c:458:33: call_function: calling ‘collide_dirents’ from ‘hashcoll_f’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def47]
xfsprogs-6.17.0/db/hash.c:235:31: warning[-Wanalyzer-malloc-leak]: leak of ‘tab’
xfsprogs-6.17.0/db/hash.c:382:1: enter_function: entry to ‘hashcoll_f’
xfsprogs-6.17.0/db/hash.c:418:12: branch_false: following ‘false’ branch (when ‘path’ is NULL)...
xfsprogs-6.17.0/db/hash.c:432:12: branch_false: ...to here
xfsprogs-6.17.0/db/hash.c:435:12: branch_false: following ‘false’ branch (when ‘read_stdin == 0’)...
xfsprogs-6.17.0/db/hash.c:452:14: branch_false: ...to here
xfsprogs-6.17.0/db/hash.c:452:26: branch_true: following ‘true’ branch (when ‘c < argc’)...
xfsprogs-6.17.0/db/hash.c:453:42: branch_true: ...to here
xfsprogs-6.17.0/db/hash.c:455:20: branch_false: following ‘false’ branch (when ‘create_xattr == 0’)...
xfsprogs-6.17.0/db/hash.c:458:33: branch_false: ...to here
xfsprogs-6.17.0/db/hash.c:458:33: call_function: calling ‘collide_dirents’ from ‘hashcoll_f’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def48]
xfsprogs-6.17.0/db/hash.c:245:20: warning[-Wanalyzer-malloc-leak]: leak of ‘dup’
xfsprogs-6.17.0/db/hash.c:382:1: enter_function: entry to ‘hashcoll_f’
xfsprogs-6.17.0/db/hash.c:418:12: branch_false: following ‘false’ branch (when ‘path’ is NULL)...
xfsprogs-6.17.0/db/hash.c:432:12: branch_false: ...to here
xfsprogs-6.17.0/db/hash.c:435:12: branch_false: following ‘false’ branch (when ‘read_stdin == 0’)...
xfsprogs-6.17.0/db/hash.c:452:14: branch_false: ...to here
xfsprogs-6.17.0/db/hash.c:452:26: branch_true: following ‘true’ branch (when ‘c < argc’)...
xfsprogs-6.17.0/db/hash.c:453:42: branch_true: ...to here
xfsprogs-6.17.0/db/hash.c:455:20: branch_false: following ‘false’ branch (when ‘create_xattr == 0’)...
xfsprogs-6.17.0/db/hash.c:458:33: branch_false: ...to here
xfsprogs-6.17.0/db/hash.c:458:33: call_function: calling ‘collide_dirents’ from ‘hashcoll_f’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def49]
xfsprogs-6.17.0/db/hash.c:245:20: warning[-Wanalyzer-malloc-leak]: leak of ‘tab’
xfsprogs-6.17.0/db/hash.c:382:1: enter_function: entry to ‘hashcoll_f’
xfsprogs-6.17.0/db/hash.c:418:12: branch_false: following ‘false’ branch (when ‘path’ is NULL)...
xfsprogs-6.17.0/db/hash.c:432:12: branch_false: ...to here
xfsprogs-6.17.0/db/hash.c:435:12: branch_false: following ‘false’ branch (when ‘read_stdin == 0’)...
xfsprogs-6.17.0/db/hash.c:452:14: branch_false: ...to here
xfsprogs-6.17.0/db/hash.c:452:26: branch_true: following ‘true’ branch (when ‘c < argc’)...
xfsprogs-6.17.0/db/hash.c:453:42: branch_true: ...to here
xfsprogs-6.17.0/db/hash.c:455:20: branch_false: following ‘false’ branch (when ‘create_xattr == 0’)...
xfsprogs-6.17.0/db/hash.c:458:33: branch_false: ...to here
xfsprogs-6.17.0/db/hash.c:458:33: call_function: calling ‘collide_dirents’ from ‘hashcoll_f’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def50]
xfsprogs-6.17.0/db/hash.c:297:17: warning[-Wanalyzer-malloc-leak]: leak of ‘tab’
xfsprogs-6.17.0/db/hash.c:382:1: enter_function: entry to ‘hashcoll_f’
xfsprogs-6.17.0/db/hash.c:418:12: branch_false: following ‘false’ branch (when ‘path’ is NULL)...
xfsprogs-6.17.0/db/hash.c:432:12: branch_false: ...to here
xfsprogs-6.17.0/db/hash.c:435:12: branch_false: following ‘false’ branch (when ‘read_stdin == 0’)...
xfsprogs-6.17.0/db/hash.c:452:14: branch_false: ...to here
xfsprogs-6.17.0/db/hash.c:452:26: branch_true: following ‘true’ branch (when ‘c < argc’)...
xfsprogs-6.17.0/db/hash.c:453:42: branch_true: ...to here
xfsprogs-6.17.0/db/hash.c:455:20: branch_false: following ‘false’ branch (when ‘create_xattr == 0’)...
xfsprogs-6.17.0/db/hash.c:458:33: branch_false: ...to here
xfsprogs-6.17.0/db/hash.c:458:33: call_function: calling ‘collide_dirents’ from ‘hashcoll_f’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def51]
xfsprogs-6.17.0/db/hash.c:298:17: warning[-Wanalyzer-malloc-leak]: leak of ‘tab’
xfsprogs-6.17.0/db/hash.c:382:1: enter_function: entry to ‘hashcoll_f’
xfsprogs-6.17.0/db/hash.c:418:12: branch_false: following ‘false’ branch (when ‘path’ is NULL)...
xfsprogs-6.17.0/db/hash.c:432:12: branch_false: ...to here
xfsprogs-6.17.0/db/hash.c:435:12: branch_false: following ‘false’ branch (when ‘read_stdin == 0’)...
xfsprogs-6.17.0/db/hash.c:452:14: branch_false: ...to here
xfsprogs-6.17.0/db/hash.c:452:26: branch_true: following ‘true’ branch (when ‘c < argc’)...
xfsprogs-6.17.0/db/hash.c:453:42: branch_true: ...to here
xfsprogs-6.17.0/db/hash.c:455:20: branch_false: following ‘false’ branch (when ‘create_xattr == 0’)...
xfsprogs-6.17.0/db/hash.c:458:33: branch_false: ...to here
xfsprogs-6.17.0/db/hash.c:458:33: call_function: calling ‘collide_dirents’ from ‘hashcoll_f’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def52]
xfsprogs-6.17.0/db/hash.c:467:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
xfsprogs-6.17.0/db/hash.c:394:16: branch_true: following ‘true’ branch (when ‘c != -1’)...
xfsprogs-6.17.0/db/hash.c:395:17: branch_true: ...to here
xfsprogs-6.17.0/db/hash.c:418:12: branch_true: following ‘true’ branch (when ‘path’ is non-NULL)...
xfsprogs-6.17.0/db/hash.c:421:20: branch_true: ...to here
xfsprogs-6.17.0/db/hash.c:424:22: acquire_resource: opened here
xfsprogs-6.17.0/db/hash.c:425:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/hash.c:432:12: branch_false: ...to here
xfsprogs-6.17.0/db/hash.c:435:12: branch_false: following ‘false’ branch (when ‘read_stdin == 0’)...
xfsprogs-6.17.0/db/hash.c:452:14: branch_false: ...to here
xfsprogs-6.17.0/db/hash.c:452:26: branch_false: following ‘false’ branch (when ‘c >= argc’)...
xfsprogs-6.17.0/db/hash.c:465:1: branch_false: ...to here
xfsprogs-6.17.0/db/hash.c:466:12: branch_true: following ‘true’ branch (when ‘fd != -1’)...
xfsprogs-6.17.0/db/hash.c:467:17: branch_true: ...to here
xfsprogs-6.17.0/db/hash.c:467:17: throw: if ‘close’ throws an exception...
xfsprogs-6.17.0/db/hash.c:467:17: danger: ‘fd’ leaks here; was opened at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def53]
xfsprogs-6.17.0/db/input.c:287:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(argv[1], "r")’
xfsprogs-6.17.0/db/input.c:294:1: enter_function: entry to ‘source_f’
xfsprogs-6.17.0/db/input.c:303:13: acquire_resource: opened here
xfsprogs-6.17.0/db/input.c:304:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/input.c:310:9: branch_false: ...to here
xfsprogs-6.17.0/db/input.c:310:9: call_function: calling ‘pushfile’ from ‘source_f’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def54]
xfsprogs-6.17.0/db/input.c:287:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(argv[1], "r")’
xfsprogs-6.17.0/db/input.c:294:1: enter_function: entry to ‘source_f’
xfsprogs-6.17.0/db/input.c:303:13: acquire_memory: allocated here
xfsprogs-6.17.0/db/input.c:304:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/input.c:310:9: branch_false: ...to here
xfsprogs-6.17.0/db/input.c:310:9: call_function: calling ‘pushfile’ from ‘source_f’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def55]
xfsprogs-6.17.0/db/metadump.c:3542:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘outfd’
xfsprogs-6.17.0/db/metadump.c:3393:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/metadump.c:3403:13: branch_false: ...to here
xfsprogs-6.17.0/db/metadump.c:3453:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/metadump.c:3458:15: branch_false: ...to here
xfsprogs-6.17.0/db/metadump.c:3494:25: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/db/metadump.c:3498:41: branch_true: ...to here
xfsprogs-6.17.0/db/metadump.c:3520:12: branch_true: following ‘true’ branch (when the strings are equal)...
xfsprogs-6.17.0/db/metadump.c:3521:21: branch_true: ...to here
xfsprogs-6.17.0/db/metadump.c:3521:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/metadump.c:3534:17: branch_false: ...to here
xfsprogs-6.17.0/db/metadump.c:3535:25: acquire_resource: opened here
xfsprogs-6.17.0/db/metadump.c:3536:20: branch_false: following ‘false’ branch (when ‘outfd >= 0’)...
xfsprogs-6.17.0/db/metadump.c:3540:23: branch_false: ...to here
xfsprogs-6.17.0/db/metadump.c:3541:20: branch_true: following ‘true’ branch (when ‘ret < 0’)...
xfsprogs-6.17.0/db/metadump.c:3542:25: branch_true: ...to here
xfsprogs-6.17.0/db/metadump.c:3542:25: throw: if ‘perror’ throws an exception...
xfsprogs-6.17.0/db/metadump.c:3542:25: danger: ‘outfd’ leaks here; was opened at [(12)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def56]
xfsprogs-6.17.0/db/metadump.c:3543:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘outfd’
xfsprogs-6.17.0/db/metadump.c:3393:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/metadump.c:3403:13: branch_false: ...to here
xfsprogs-6.17.0/db/metadump.c:3453:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/metadump.c:3458:15: branch_false: ...to here
xfsprogs-6.17.0/db/metadump.c:3494:25: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/db/metadump.c:3498:41: branch_true: ...to here
xfsprogs-6.17.0/db/metadump.c:3520:12: branch_true: following ‘true’ branch (when the strings are equal)...
xfsprogs-6.17.0/db/metadump.c:3521:21: branch_true: ...to here
xfsprogs-6.17.0/db/metadump.c:3521:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/metadump.c:3534:17: branch_false: ...to here
xfsprogs-6.17.0/db/metadump.c:3535:25: acquire_resource: opened here
xfsprogs-6.17.0/db/metadump.c:3536:20: branch_false: following ‘false’ branch (when ‘outfd >= 0’)...
xfsprogs-6.17.0/db/metadump.c:3540:23: branch_false: ...to here
xfsprogs-6.17.0/db/metadump.c:3541:20: branch_true: following ‘true’ branch (when ‘ret < 0’)...
xfsprogs-6.17.0/db/metadump.c:3542:25: branch_true: ...to here
xfsprogs-6.17.0/db/metadump.c:3543:25: throw: if ‘close’ throws an exception...
xfsprogs-6.17.0/db/metadump.c:3543:25: danger: ‘outfd’ leaks here; was opened at [(12)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def57]
xfsprogs-6.17.0/db/metadump.c:3550:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ret’
xfsprogs-6.17.0/db/metadump.c:3393:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/metadump.c:3403:13: branch_false: ...to here
xfsprogs-6.17.0/db/metadump.c:3453:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/metadump.c:3458:15: branch_false: ...to here
xfsprogs-6.17.0/db/metadump.c:3494:25: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/db/metadump.c:3498:41: branch_true: ...to here
xfsprogs-6.17.0/db/metadump.c:3520:12: branch_true: following ‘true’ branch (when the strings are equal)...
xfsprogs-6.17.0/db/metadump.c:3521:21: branch_true: ...to here
xfsprogs-6.17.0/db/metadump.c:3521:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/metadump.c:3534:17: branch_false: ...to here
xfsprogs-6.17.0/db/metadump.c:3536:20: branch_false: following ‘false’ branch (when ‘outfd >= 0’)...
xfsprogs-6.17.0/db/metadump.c:3540:23: branch_false: ...to here
xfsprogs-6.17.0/db/metadump.c:3540:23: acquire_resource: opened here
xfsprogs-6.17.0/db/metadump.c:3541:20: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
xfsprogs-6.17.0/db/metadump.c:3546:33: branch_false: ...to here
xfsprogs-6.17.0/db/metadump.c:3547:20: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/db/metadump.c:3548:25: branch_true: ...to here
xfsprogs-6.17.0/db/metadump.c:3550:25: throw: if ‘close’ throws an exception...
xfsprogs-6.17.0/db/metadump.c:3550:25: danger: ‘ret’ leaks here; was opened at [(14)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def58]
xfsprogs-6.17.0/db/metadump.c:3567:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ret’
xfsprogs-6.17.0/db/metadump.c:3393:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/metadump.c:3403:13: branch_false: ...to here
xfsprogs-6.17.0/db/metadump.c:3453:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/metadump.c:3458:15: branch_false: ...to here
xfsprogs-6.17.0/db/metadump.c:3494:25: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/db/metadump.c:3498:41: branch_true: ...to here
xfsprogs-6.17.0/db/metadump.c:3520:12: branch_true: following ‘true’ branch (when the strings are equal)...
xfsprogs-6.17.0/db/metadump.c:3521:21: branch_true: ...to here
xfsprogs-6.17.0/db/metadump.c:3521:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/metadump.c:3534:17: branch_false: ...to here
xfsprogs-6.17.0/db/metadump.c:3536:20: branch_false: following ‘false’ branch (when ‘outfd >= 0’)...
xfsprogs-6.17.0/db/metadump.c:3540:23: branch_false: ...to here
xfsprogs-6.17.0/db/metadump.c:3540:23: acquire_resource: opened here
xfsprogs-6.17.0/db/metadump.c:3541:20: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
xfsprogs-6.17.0/db/metadump.c:3546:33: branch_false: ...to here
xfsprogs-6.17.0/db/metadump.c:3547:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/metadump.c:3553:17: branch_false: ...to here
xfsprogs-6.17.0/db/metadump.c:3562:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/db/metadump.c:3562:12: branch_true: ...to here
xfsprogs-6.17.0/db/metadump.c:3567:15: throw: if the called function throws an exception...
xfsprogs-6.17.0/db/metadump.c:3567:15: danger: ‘ret’ leaks here; was opened at [(14)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def59]
xfsprogs-6.17.0/db/namei.c:67:28: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
xfsprogs-6.17.0/db/namei.c:1116:1: enter_function: entry to ‘link_f’
xfsprogs-6.17.0/db/namei.c:1127:16: branch_true: following ‘true’ branch (when ‘c != -1’)...
xfsprogs-6.17.0/db/namei.c:1128:17: branch_true: ...to here
xfsprogs-6.17.0/db/namei.c:1143:33: call_function: calling ‘path_walk’ from ‘link_f’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def60]
xfsprogs-6.17.0/db/namei.c:68:34: warning[-Wanalyzer-malloc-leak]: leak of ‘path_parse(p)’
xfsprogs-6.17.0/db/namei.c:1116:1: enter_function: entry to ‘link_f’
xfsprogs-6.17.0/db/namei.c:1127:16: branch_true: following ‘true’ branch (when ‘c != -1’)...
xfsprogs-6.17.0/db/namei.c:1128:17: branch_true: ...to here
xfsprogs-6.17.0/db/namei.c:1143:33: call_function: calling ‘path_walk’ from ‘link_f’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def61]
xfsprogs-6.17.0/db/namei.c:97:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
xfsprogs-6.17.0/db/namei.c:1116:1: enter_function: entry to ‘link_f’
xfsprogs-6.17.0/db/namei.c:1127:16: branch_true: following ‘true’ branch (when ‘c != -1’)...
xfsprogs-6.17.0/db/namei.c:1128:17: branch_true: ...to here
xfsprogs-6.17.0/db/namei.c:1143:33: call_function: calling ‘path_walk’ from ‘link_f’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def62]
xfsprogs-6.17.0/db/namei.c:99:18: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
xfsprogs-6.17.0/db/namei.c:1116:1: enter_function: entry to ‘link_f’
xfsprogs-6.17.0/db/namei.c:1127:16: branch_true: following ‘true’ branch (when ‘c != -1’)...
xfsprogs-6.17.0/db/namei.c:1128:17: branch_true: ...to here
xfsprogs-6.17.0/db/namei.c:1143:33: call_function: calling ‘path_walk’ from ‘link_f’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def63]
xfsprogs-6.17.0/db/namei.c:106:35: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xname.name’ where non-null expected
xfsprogs-6.17.0/db/namei.c:1116:1: enter_function: entry to ‘link_f’
xfsprogs-6.17.0/db/namei.c:1127:16: branch_true: following ‘true’ branch (when ‘c != -1’)...
xfsprogs-6.17.0/db/namei.c:1128:17: branch_true: ...to here
xfsprogs-6.17.0/db/namei.c:1143:33: call_function: calling ‘path_walk’ from ‘link_f’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def64]
xfsprogs-6.17.0/db/namei.c:171:17: warning[-Wanalyzer-malloc-leak]: leak of ‘path_parse(p)’
xfsprogs-6.17.0/db/namei.c:1116:1: enter_function: entry to ‘link_f’
xfsprogs-6.17.0/db/namei.c:1127:16: branch_true: following ‘true’ branch (when ‘c != -1’)...
xfsprogs-6.17.0/db/namei.c:1128:17: branch_true: ...to here
xfsprogs-6.17.0/db/namei.c:1143:33: call_function: calling ‘path_walk’ from ‘link_f’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def65]
xfsprogs-6.17.0/db/output.c:34:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
xfsprogs-6.17.0/db/output.c:31:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/output.c:33:9: branch_false: ...to here
xfsprogs-6.17.0/db/output.c:33:9: acquire_resource: ‘va_start’ called here
xfsprogs-6.17.0/db/output.c:34:9: throw: if ‘blockint’ throws an exception...
xfsprogs-6.17.0/db/output.c:34:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def66]
xfsprogs-6.17.0/db/output.c:39:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
xfsprogs-6.17.0/db/output.c:31:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/output.c:33:9: branch_false: ...to here
xfsprogs-6.17.0/db/output.c:33:9: acquire_resource: ‘va_start’ called here
xfsprogs-6.17.0/db/output.c:39:9: throw: if ‘unblockint’ throws an exception...
xfsprogs-6.17.0/db/output.c:39:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def67]
xfsprogs-6.17.0/db/rdump.c:98:35: warning[-Wanalyzer-malloc-leak]: leak of ‘cd’
xfsprogs-6.17.0/db/rdump.c:871:1: enter_function: entry to ‘rdump_path’
xfsprogs-6.17.0/db/rdump.c:884:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:889:16: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:890:12: branch_false: following ‘false’ branch (when ‘pbuf’ is non-NULL)...
xfsprogs-6.17.0/db/rdump.c:894:20: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:931:15: call_function: calling ‘rdump_file’ from ‘rdump_path’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def68]
xfsprogs-6.17.0/db/rdump.c:98:35: warning[-Wanalyzer-malloc-leak]: leak of ‘pbuf’
xfsprogs-6.17.0/db/rdump.c:871:1: enter_function: entry to ‘rdump_path’
xfsprogs-6.17.0/db/rdump.c:884:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:889:16: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:889:16: acquire_memory: allocated here
xfsprogs-6.17.0/db/rdump.c:890:12: branch_false: following ‘false’ branch (when ‘pbuf’ is non-NULL)...
xfsprogs-6.17.0/db/rdump.c:894:20: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:931:15: call_function: calling ‘rdump_file’ from ‘rdump_path’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def69]
xfsprogs-6.17.0/db/rdump.c:107:25: warning[-Wanalyzer-malloc-leak]: leak of ‘cd’
xfsprogs-6.17.0/db/rdump.c:871:1: enter_function: entry to ‘rdump_path’
xfsprogs-6.17.0/db/rdump.c:884:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:889:16: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:890:12: branch_false: following ‘false’ branch (when ‘pbuf’ is non-NULL)...
xfsprogs-6.17.0/db/rdump.c:894:20: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:931:15: call_function: calling ‘rdump_file’ from ‘rdump_path’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def70]
xfsprogs-6.17.0/db/rdump.c:107:25: warning[-Wanalyzer-malloc-leak]: leak of ‘pbuf’
xfsprogs-6.17.0/db/rdump.c:871:1: enter_function: entry to ‘rdump_path’
xfsprogs-6.17.0/db/rdump.c:884:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:889:16: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:889:16: acquire_memory: allocated here
xfsprogs-6.17.0/db/rdump.c:890:12: branch_false: following ‘false’ branch (when ‘pbuf’ is non-NULL)...
xfsprogs-6.17.0/db/rdump.c:894:20: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:931:15: call_function: calling ‘rdump_file’ from ‘rdump_path’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def71]
xfsprogs-6.17.0/db/rdump.c:119:25: warning[-Wanalyzer-malloc-leak]: leak of ‘cd’
xfsprogs-6.17.0/db/rdump.c:871:1: enter_function: entry to ‘rdump_path’
xfsprogs-6.17.0/db/rdump.c:884:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:889:16: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:890:12: branch_false: following ‘false’ branch (when ‘pbuf’ is non-NULL)...
xfsprogs-6.17.0/db/rdump.c:894:20: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:931:15: call_function: calling ‘rdump_file’ from ‘rdump_path’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
xfsprogs-6.17.0/db/rdump.c:139:25: warning[-Wanalyzer-malloc-leak]: leak of ‘cd’
xfsprogs-6.17.0/db/rdump.c:871:1: enter_function: entry to ‘rdump_path’
xfsprogs-6.17.0/db/rdump.c:884:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:889:16: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:890:12: branch_false: following ‘false’ branch (when ‘pbuf’ is non-NULL)...
xfsprogs-6.17.0/db/rdump.c:894:20: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:931:15: call_function: calling ‘rdump_file’ from ‘rdump_path’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def73]
xfsprogs-6.17.0/db/rdump.c:428:17: warning[-Wanalyzer-malloc-leak]: leak of ‘cd’
xfsprogs-6.17.0/db/rdump.c:871:1: enter_function: entry to ‘rdump_path’
xfsprogs-6.17.0/db/rdump.c:884:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:889:16: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:890:12: branch_false: following ‘false’ branch (when ‘pbuf’ is non-NULL)...
xfsprogs-6.17.0/db/rdump.c:894:20: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:931:15: call_function: calling ‘rdump_file’ from ‘rdump_path’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def74]
xfsprogs-6.17.0/db/rdump.c:437:15: warning[-Wanalyzer-malloc-leak]: leak of ‘cd’
xfsprogs-6.17.0/db/rdump.c:871:1: enter_function: entry to ‘rdump_path’
xfsprogs-6.17.0/db/rdump.c:884:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:889:16: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:890:12: branch_false: following ‘false’ branch (when ‘pbuf’ is non-NULL)...
xfsprogs-6.17.0/db/rdump.c:894:20: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:931:15: call_function: calling ‘rdump_file’ from ‘rdump_path’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def75]
xfsprogs-6.17.0/db/rdump.c:437:15: warning[-Wanalyzer-malloc-leak]: leak of ‘cx’
xfsprogs-6.17.0/db/rdump.c:871:1: enter_function: entry to ‘rdump_path’
xfsprogs-6.17.0/db/rdump.c:884:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:889:16: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:890:12: branch_false: following ‘false’ branch (when ‘pbuf’ is non-NULL)...
xfsprogs-6.17.0/db/rdump.c:894:20: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:931:15: call_function: calling ‘rdump_file’ from ‘rdump_path’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def76]
xfsprogs-6.17.0/db/rdump.c:439:17: warning[-Wanalyzer-malloc-leak]: leak of ‘cd’
xfsprogs-6.17.0/db/rdump.c:871:1: enter_function: entry to ‘rdump_path’
xfsprogs-6.17.0/db/rdump.c:884:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:889:16: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:890:12: branch_false: following ‘false’ branch (when ‘pbuf’ is non-NULL)...
xfsprogs-6.17.0/db/rdump.c:894:20: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:931:15: call_function: calling ‘rdump_file’ from ‘rdump_path’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def77]
xfsprogs-6.17.0/db/rdump.c:520:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘destdir.fd’
xfsprogs-6.17.0/db/rdump.c:938:1: enter_function: entry to ‘rdump_f’
xfsprogs-6.17.0/db/rdump.c:960:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:967:28: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:975:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:982:26: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:986:22: acquire_resource: opened here
xfsprogs-6.17.0/db/rdump.c:987:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:993:23: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:993:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/db/rdump.c:995:17: branch_true: ...to here
xfsprogs-6.17.0/db/rdump.c:996:23: call_function: calling ‘rdump_path’ from ‘rdump_f’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def78]
xfsprogs-6.17.0/db/rdump.c:520:17: warning[-Wanalyzer-malloc-leak]: leak of ‘pbuf’
xfsprogs-6.17.0/db/rdump.c:871:1: enter_function: entry to ‘rdump_path’
xfsprogs-6.17.0/db/rdump.c:884:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:889:16: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:889:16: acquire_memory: allocated here
xfsprogs-6.17.0/db/rdump.c:890:12: branch_false: following ‘false’ branch (when ‘pbuf’ is non-NULL)...
xfsprogs-6.17.0/db/rdump.c:894:20: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:931:15: call_function: calling ‘rdump_file’ from ‘rdump_path’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def79]
xfsprogs-6.17.0/db/rdump.c:534:25: warning[-Wanalyzer-malloc-leak]: leak of ‘cd’
xfsprogs-6.17.0/db/rdump.c:871:1: enter_function: entry to ‘rdump_path’
xfsprogs-6.17.0/db/rdump.c:884:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:889:16: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:890:12: branch_false: following ‘false’ branch (when ‘pbuf’ is non-NULL)...
xfsprogs-6.17.0/db/rdump.c:894:20: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:931:15: call_function: calling ‘rdump_file’ from ‘rdump_path’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def80]
xfsprogs-6.17.0/db/rdump.c:534:25: warning[-Wanalyzer-malloc-leak]: leak of ‘pbuf’
xfsprogs-6.17.0/db/rdump.c:871:1: enter_function: entry to ‘rdump_path’
xfsprogs-6.17.0/db/rdump.c:884:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:889:16: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:889:16: acquire_memory: allocated here
xfsprogs-6.17.0/db/rdump.c:890:12: branch_false: following ‘false’ branch (when ‘pbuf’ is non-NULL)...
xfsprogs-6.17.0/db/rdump.c:894:20: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:931:15: call_function: calling ‘rdump_file’ from ‘rdump_path’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def81]
xfsprogs-6.17.0/db/rdump.c:540:26: warning[-Wanalyzer-malloc-leak]: leak of ‘cd’
xfsprogs-6.17.0/db/rdump.c:871:1: enter_function: entry to ‘rdump_path’
xfsprogs-6.17.0/db/rdump.c:884:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:889:16: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:890:12: branch_false: following ‘false’ branch (when ‘pbuf’ is non-NULL)...
xfsprogs-6.17.0/db/rdump.c:894:20: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:931:15: call_function: calling ‘rdump_file’ from ‘rdump_path’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def82]
xfsprogs-6.17.0/db/rdump.c:540:26: warning[-Wanalyzer-malloc-leak]: leak of ‘pbuf’
xfsprogs-6.17.0/db/rdump.c:871:1: enter_function: entry to ‘rdump_path’
xfsprogs-6.17.0/db/rdump.c:884:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:889:16: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:889:16: acquire_memory: allocated here
xfsprogs-6.17.0/db/rdump.c:890:12: branch_false: following ‘false’ branch (when ‘pbuf’ is non-NULL)...
xfsprogs-6.17.0/db/rdump.c:894:20: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:931:15: call_function: calling ‘rdump_file’ from ‘rdump_path’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def83]
xfsprogs-6.17.0/db/rdump.c:543:25: warning[-Wanalyzer-malloc-leak]: leak of ‘cd’
xfsprogs-6.17.0/db/rdump.c:871:1: enter_function: entry to ‘rdump_path’
xfsprogs-6.17.0/db/rdump.c:884:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:889:16: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:890:12: branch_false: following ‘false’ branch (when ‘pbuf’ is non-NULL)...
xfsprogs-6.17.0/db/rdump.c:894:20: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:931:15: call_function: calling ‘rdump_file’ from ‘rdump_path’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def84]
xfsprogs-6.17.0/db/rdump.c:543:25: warning[-Wanalyzer-malloc-leak]: leak of ‘pbuf’
xfsprogs-6.17.0/db/rdump.c:871:1: enter_function: entry to ‘rdump_path’
xfsprogs-6.17.0/db/rdump.c:884:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:889:16: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:889:16: acquire_memory: allocated here
xfsprogs-6.17.0/db/rdump.c:890:12: branch_false: following ‘false’ branch (when ‘pbuf’ is non-NULL)...
xfsprogs-6.17.0/db/rdump.c:894:20: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:931:15: call_function: calling ‘rdump_file’ from ‘rdump_path’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def85]
xfsprogs-6.17.0/db/rdump.c:567:15: warning[-Wanalyzer-malloc-leak]: leak of ‘cd’
xfsprogs-6.17.0/db/rdump.c:871:1: enter_function: entry to ‘rdump_path’
xfsprogs-6.17.0/db/rdump.c:884:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:889:16: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:890:12: branch_false: following ‘false’ branch (when ‘pbuf’ is non-NULL)...
xfsprogs-6.17.0/db/rdump.c:894:20: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:931:15: call_function: calling ‘rdump_file’ from ‘rdump_path’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def86]
xfsprogs-6.17.0/db/rdump.c:583:24: warning[-Wanalyzer-malloc-leak]: leak of ‘cd’
xfsprogs-6.17.0/db/rdump.c:871:1: enter_function: entry to ‘rdump_path’
xfsprogs-6.17.0/db/rdump.c:884:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:889:16: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:890:12: branch_false: following ‘false’ branch (when ‘pbuf’ is non-NULL)...
xfsprogs-6.17.0/db/rdump.c:894:20: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:931:15: call_function: calling ‘rdump_file’ from ‘rdump_path’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def87]
xfsprogs-6.17.0/db/rdump.c:587:25: warning[-Wanalyzer-malloc-leak]: leak of ‘cd’
xfsprogs-6.17.0/db/rdump.c:871:1: enter_function: entry to ‘rdump_path’
xfsprogs-6.17.0/db/rdump.c:884:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:889:16: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:890:12: branch_false: following ‘false’ branch (when ‘pbuf’ is non-NULL)...
xfsprogs-6.17.0/db/rdump.c:894:20: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:931:15: call_function: calling ‘rdump_file’ from ‘rdump_path’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def88]
xfsprogs-6.17.0/db/rdump.c:844:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘destdir.fd’
xfsprogs-6.17.0/db/rdump.c:938:1: enter_function: entry to ‘rdump_f’
xfsprogs-6.17.0/db/rdump.c:960:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:967:28: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:975:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:982:26: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:986:22: acquire_resource: opened here
xfsprogs-6.17.0/db/rdump.c:987:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:993:23: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:993:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/db/rdump.c:995:17: branch_true: ...to here
xfsprogs-6.17.0/db/rdump.c:996:23: call_function: calling ‘rdump_path’ from ‘rdump_f’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def89]
xfsprogs-6.17.0/db/rdump.c:844:16: warning[-Wanalyzer-malloc-leak]: leak of ‘pbuf’
xfsprogs-6.17.0/db/rdump.c:871:1: enter_function: entry to ‘rdump_path’
xfsprogs-6.17.0/db/rdump.c:884:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:889:16: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:889:16: acquire_memory: allocated here
xfsprogs-6.17.0/db/rdump.c:890:12: branch_false: following ‘false’ branch (when ‘pbuf’ is non-NULL)...
xfsprogs-6.17.0/db/rdump.c:894:20: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:931:15: call_function: calling ‘rdump_file’ from ‘rdump_path’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def90]
xfsprogs-6.17.0/db/rdump.c:846:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘destdir.fd’
xfsprogs-6.17.0/db/rdump.c:938:1: enter_function: entry to ‘rdump_f’
xfsprogs-6.17.0/db/rdump.c:960:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:967:28: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:975:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:982:26: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:986:22: acquire_resource: opened here
xfsprogs-6.17.0/db/rdump.c:987:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:993:23: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:993:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/db/rdump.c:995:17: branch_true: ...to here
xfsprogs-6.17.0/db/rdump.c:996:23: call_function: calling ‘rdump_path’ from ‘rdump_f’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def91]
xfsprogs-6.17.0/db/rdump.c:846:17: warning[-Wanalyzer-malloc-leak]: leak of ‘pbuf’
xfsprogs-6.17.0/db/rdump.c:871:1: enter_function: entry to ‘rdump_path’
xfsprogs-6.17.0/db/rdump.c:884:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:889:16: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:889:16: acquire_memory: allocated here
xfsprogs-6.17.0/db/rdump.c:890:12: branch_false: following ‘false’ branch (when ‘pbuf’ is non-NULL)...
xfsprogs-6.17.0/db/rdump.c:894:20: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:931:15: call_function: calling ‘rdump_file’ from ‘rdump_path’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def92]
xfsprogs-6.17.0/db/rdump.c:891:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘destdir.fd’
xfsprogs-6.17.0/db/rdump.c:938:1: enter_function: entry to ‘rdump_f’
xfsprogs-6.17.0/db/rdump.c:960:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:967:28: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:975:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:982:26: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:986:22: acquire_resource: opened here
xfsprogs-6.17.0/db/rdump.c:987:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:993:23: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:993:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/db/rdump.c:995:17: branch_true: ...to here
xfsprogs-6.17.0/db/rdump.c:996:23: call_function: calling ‘rdump_path’ from ‘rdump_f’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def93]
xfsprogs-6.17.0/db/rdump.c:906:23: warning[-Wanalyzer-malloc-leak]: leak of ‘pbuf’
xfsprogs-6.17.0/db/rdump.c:884:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:889:16: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:889:16: acquire_memory: allocated here
xfsprogs-6.17.0/db/rdump.c:890:12: branch_false: following ‘false’ branch (when ‘pbuf’ is non-NULL)...
xfsprogs-6.17.0/db/rdump.c:894:20: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:905:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/db/rdump.c:906:23: branch_true: ...to here
xfsprogs-6.17.0/db/rdump.c:906:23: throw: if ‘path_walk’ throws an exception...
xfsprogs-6.17.0/db/rdump.c:906:23: danger: ‘pbuf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def94]
xfsprogs-6.17.0/db/rdump.c:908:25: warning[-Wanalyzer-malloc-leak]: leak of ‘pbuf’
xfsprogs-6.17.0/db/rdump.c:884:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:889:16: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:889:16: acquire_memory: allocated here
xfsprogs-6.17.0/db/rdump.c:890:12: branch_false: following ‘false’ branch (when ‘pbuf’ is non-NULL)...
xfsprogs-6.17.0/db/rdump.c:894:20: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:905:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/db/rdump.c:906:23: branch_true: ...to here
xfsprogs-6.17.0/db/rdump.c:907:20: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/db/rdump.c:908:25: branch_true: ...to here
xfsprogs-6.17.0/db/rdump.c:908:25: throw: if ‘dbprintf’ throws an exception...
xfsprogs-6.17.0/db/rdump.c:908:25: danger: ‘pbuf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def95]
xfsprogs-6.17.0/db/rdump.c:926:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘destdir.fd’
xfsprogs-6.17.0/db/rdump.c:938:1: enter_function: entry to ‘rdump_f’
xfsprogs-6.17.0/db/rdump.c:960:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:967:28: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:975:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:982:26: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:986:22: acquire_resource: opened here
xfsprogs-6.17.0/db/rdump.c:987:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:993:23: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:993:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/db/rdump.c:995:17: branch_true: ...to here
xfsprogs-6.17.0/db/rdump.c:996:23: call_function: calling ‘rdump_path’ from ‘rdump_f’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def96]
xfsprogs-6.17.0/db/rdump.c:926:17: warning[-Wanalyzer-malloc-leak]: leak of ‘pbuf’
xfsprogs-6.17.0/db/rdump.c:884:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:889:16: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:889:16: acquire_memory: allocated here
xfsprogs-6.17.0/db/rdump.c:890:12: branch_false: following ‘false’ branch (when ‘pbuf’ is non-NULL)...
xfsprogs-6.17.0/db/rdump.c:894:20: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:905:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:926:17: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:926:17: throw: if ‘set_cur_inode’ throws an exception...
xfsprogs-6.17.0/db/rdump.c:926:17: danger: ‘pbuf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def97]
xfsprogs-6.17.0/db/rdump.c:929:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘destdir.fd’
xfsprogs-6.17.0/db/rdump.c:938:1: enter_function: entry to ‘rdump_f’
xfsprogs-6.17.0/db/rdump.c:960:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:967:28: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:975:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:982:26: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:986:22: acquire_resource: opened here
xfsprogs-6.17.0/db/rdump.c:987:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:993:23: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:993:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/db/rdump.c:995:17: branch_true: ...to here
xfsprogs-6.17.0/db/rdump.c:996:23: call_function: calling ‘rdump_path’ from ‘rdump_f’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def98]
xfsprogs-6.17.0/db/rdump.c:929:14: warning[-Wanalyzer-malloc-leak]: leak of ‘pbuf’
xfsprogs-6.17.0/db/rdump.c:884:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:889:16: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:889:16: acquire_memory: allocated here
xfsprogs-6.17.0/db/rdump.c:890:12: branch_false: following ‘false’ branch (when ‘pbuf’ is non-NULL)...
xfsprogs-6.17.0/db/rdump.c:894:20: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:929:14: throw: if ‘libxfs_trans_alloc_empty’ throws an exception...
xfsprogs-6.17.0/db/rdump.c:929:14: danger: ‘pbuf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def99]
xfsprogs-6.17.0/db/rdump.c:935:1: warning[-Wanalyzer-malloc-leak]: leak of ‘pbuf’
xfsprogs-6.17.0/db/rdump.c:938:1: enter_function: entry to ‘rdump_f’
xfsprogs-6.17.0/db/rdump.c:960:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:967:28: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:975:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:982:26: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:987:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:993:23: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:993:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:993:12: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:1003:26: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/db/rdump.c:1004:42: branch_true: ...to here
xfsprogs-6.17.0/db/rdump.c:1012:23: call_function: calling ‘rdump_path’ from ‘rdump_f’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def100]
xfsprogs-6.17.0/db/rdump.c:995:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘destdir.fd’
xfsprogs-6.17.0/db/rdump.c:960:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:967:28: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:975:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:982:26: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:986:22: acquire_resource: opened here
xfsprogs-6.17.0/db/rdump.c:987:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:993:23: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:993:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/db/rdump.c:995:17: branch_true: ...to here
xfsprogs-6.17.0/db/rdump.c:995:17: throw: if ‘push_cur’ throws an exception...
xfsprogs-6.17.0/db/rdump.c:995:17: danger: ‘destdir.fd’ leaks here; was opened at [(5)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def101]
xfsprogs-6.17.0/db/rdump.c:1023:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘destdir.fd’
xfsprogs-6.17.0/db/rdump.c:960:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:967:28: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:975:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:982:26: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:986:22: acquire_resource: opened here
xfsprogs-6.17.0/db/rdump.c:987:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:993:23: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:993:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:993:12: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:1003:26: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/db/rdump.c:1022:1: branch_false: ...to here
xfsprogs-6.17.0/db/rdump.c:1023:15: throw: if ‘close’ throws an exception...
xfsprogs-6.17.0/db/rdump.c:1023:15: danger: ‘destdir.fd’ leaks here; was opened at [(5)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def102]
xfsprogs-6.17.0/db/write.c:753:48: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buf’
xfsprogs-6.17.0/db/write.c:738:1: enter_function: entry to ‘write_string’
xfsprogs-6.17.0/db/write.c:746:12: branch_false: following ‘false’ branch (when ‘argc == 1’)...
xfsprogs-6.17.0/db/write.c:751:43: branch_false: ...to here
xfsprogs-6.17.0/db/write.c:751:15: call_function: calling ‘convert_arg’ from ‘write_string’
xfsprogs-6.17.0/db/write.c:751:15: return_function: returning to ‘write_string’ from ‘convert_arg’
xfsprogs-6.17.0/db/write.c:752:21: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/db/write.c:753:26: branch_true: ...to here
xfsprogs-6.17.0/db/write.c:753:48: danger: dereference of NULL ‘buf’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def103]
xfsprogs-6.17.0/fsr/xfs_fsr.c:373:29: warning[-Wanalyzer-null-argument]: use of NULL ‘cp’ where non-null expected
xfsprogs-6.17.0/fsr/xfs_fsr.c:348:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/fsr/xfs_fsr.c:348:12: branch_false: ...to here
xfsprogs-6.17.0/fsr/xfs_fsr.c:358:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/fsr/xfs_fsr.c:358:12: branch_false: ...to here
xfsprogs-6.17.0/fsr/xfs_fsr.c:363:16: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/fsr/xfs_fsr.c:366:28: branch_true: ...to here
xfsprogs-6.17.0/fsr/xfs_fsr.c:373:29: danger: argument 2 (‘cp’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-457): [#def104]
xfsprogs-6.17.0/fsr/xfs_fsr.c:1210:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘cur_nextents’
xfsprogs-6.17.0/fsr/xfs_fsr.c:1180:1: enter_function: entry to ‘packfile’
xfsprogs-6.17.0/fsr/xfs_fsr.c:1208:20: call_function: calling ‘read_fd_bmap’ from ‘packfile’
xfsprogs-6.17.0/fsr/xfs_fsr.c:1208:20: return_function: returning to ‘packfile’ from ‘read_fd_bmap’
xfsprogs-6.17.0/fsr/xfs_fsr.c:1210:13: danger: use of uninitialized value ‘cur_nextents’ here
Error: GCC_ANALYZER_WARNING (CWE-404): [#def105]
xfsprogs-6.17.0/fsr/xfs_fsr.c:1707:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
xfsprogs-6.17.0/fsr/xfs_fsr.c:1703:9: acquire_resource: ‘va_start’ called here
xfsprogs-6.17.0/fsr/xfs_fsr.c:1704:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/fsr/xfs_fsr.c:1706:21: branch_true: ...to here
xfsprogs-6.17.0/fsr/xfs_fsr.c:1706:20: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/fsr/xfs_fsr.c:1707:25: branch_true: ...to here
xfsprogs-6.17.0/fsr/xfs_fsr.c:1707:25: throw: if ‘openlog’ throws an exception...
xfsprogs-6.17.0/fsr/xfs_fsr.c:1707:25: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def106]
xfsprogs-6.17.0/fsr/xfs_fsr.c:1710:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
xfsprogs-6.17.0/fsr/xfs_fsr.c:1703:9: acquire_resource: ‘va_start’ called here
xfsprogs-6.17.0/fsr/xfs_fsr.c:1704:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/fsr/xfs_fsr.c:1706:21: branch_true: ...to here
xfsprogs-6.17.0/fsr/xfs_fsr.c:1710:17: throw: if ‘vsyslog’ throws an exception...
xfsprogs-6.17.0/fsr/xfs_fsr.c:1710:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def107]
xfsprogs-6.17.0/io/encrypt.c:785:34: warning[-Wanalyzer-malloc-leak]: leak of ‘arg’
xfsprogs-6.17.0/io/encrypt.c:762:15: acquire_memory: allocated here
xfsprogs-6.17.0/io/encrypt.c:763:12: branch_false: following ‘false’ branch (when ‘arg’ is non-NULL)...
xfsprogs-6.17.0/io/encrypt.c:769:9: branch_false: ...to here
xfsprogs-6.17.0/io/encrypt.c:771:16: branch_true: following ‘true’ branch (when ‘c != -1’)...
xfsprogs-6.17.0/io/encrypt.c:772:17: branch_true: ...to here
xfsprogs-6.17.0/io/encrypt.c:785:34: throw: if ‘command_usage’ throws an exception...
xfsprogs-6.17.0/io/encrypt.c:785:34: danger: ‘arg’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def108]
xfsprogs-6.17.0/io/encrypt.c:794:26: warning[-Wanalyzer-malloc-leak]: leak of ‘arg’
xfsprogs-6.17.0/io/encrypt.c:762:15: acquire_memory: allocated here
xfsprogs-6.17.0/io/encrypt.c:763:12: branch_false: following ‘false’ branch (when ‘arg’ is non-NULL)...
xfsprogs-6.17.0/io/encrypt.c:769:9: branch_false: ...to here
xfsprogs-6.17.0/io/encrypt.c:771:16: branch_false: following ‘false’ branch (when ‘c == -1’)...
xfsprogs-6.17.0/io/encrypt.c:789:14: branch_false: ...to here
xfsprogs-6.17.0/io/encrypt.c:792:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/io/encrypt.c:793:17: branch_true: ...to here
xfsprogs-6.17.0/io/encrypt.c:794:26: throw: if ‘command_usage’ throws an exception...
xfsprogs-6.17.0/io/encrypt.c:794:26: danger: ‘arg’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def109]
xfsprogs-6.17.0/io/exchrange.c:273:19: warning[-Wanalyzer-malloc-leak]: leak of ‘path’
xfsprogs-6.17.0/io/exchrange.c:235:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/io/exchrange.c:241:30: branch_false: ...to here
xfsprogs-6.17.0/io/exchrange.c:242:12: branch_false: following ‘false’ branch (when ‘p’ is non-NULL)...
xfsprogs-6.17.0/io/exchrange.c:246:9: branch_false: ...to here
xfsprogs-6.17.0/io/exchrange.c:253:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
xfsprogs-6.17.0/io/exchrange.c:259:25: branch_false: ...to here
xfsprogs-6.17.0/io/exchrange.c:264:16: acquire_memory: allocated here
xfsprogs-6.17.0/io/exchrange.c:266:12: branch_false: following ‘false’ branch (when ‘d’ is non-NULL)...
xfsprogs-6.17.0/io/exchrange.c:270:9: branch_false: ...to here
xfsprogs-6.17.0/io/exchrange.c:273:19: throw: if ‘openfile’ throws an exception...
xfsprogs-6.17.0/io/exchrange.c:273:19: danger: ‘path’ leaks here; was allocated at [(8)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-126): [#def110]
xfsprogs-6.17.0/io/mmap.c:44:33: warning[-Wanalyzer-out-of-bounds]: buffer over-read
xfsprogs-6.17.0/io/mmap.c:44:33: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/io/mmap.c:45:30: branch_true: ...to here
xfsprogs-6.17.0/io/mmap.c:45:17: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/io/mmap.c:45:53: branch_true: ...to here
xfsprogs-6.17.0/io/mmap.c:44:33: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/io/mmap.c:45:30: branch_true: ...to here
xfsprogs-6.17.0/io/mmap.c:45:17: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/io/mmap.c:45:53: branch_true: ...to here
xfsprogs-6.17.0/io/mmap.c:44:33: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/io/mmap.c:45:30: branch_true: ...to here
xfsprogs-6.17.0/io/mmap.c:45:17: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/io/mmap.c:45:53: branch_true: ...to here
xfsprogs-6.17.0/io/mmap.c:44:33: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/io/mmap.c:45:30: branch_true: ...to here
xfsprogs-6.17.0/io/mmap.c:45:17: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/io/mmap.c:45:53: branch_true: ...to here
xfsprogs-6.17.0/io/mmap.c:44:33: danger: out-of-bounds read from byte 32 till byte 35 but ‘pflags’ ends at byte 32
Error: GCC_ANALYZER_WARNING (CWE-476): [#def111]
xfsprogs-6.17.0/io/mmap.c:45:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘map’
xfsprogs-6.17.0/io/mmap.c:501:1: enter_function: entry to ‘munmap_f’
xfsprogs-6.17.0/io/mmap.c:508:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/io/mmap.c:513:21: branch_false: ...to here
xfsprogs-6.17.0/io/mmap.c:523:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/io/mmap.c:524:45: branch_true: ...to here
xfsprogs-6.17.0/io/mmap.c:533:9: call_function: calling ‘maplist_f’ from ‘munmap_f’
Error: GCC_ANALYZER_WARNING (CWE-126): [#def112]
xfsprogs-6.17.0/io/mmap.c:45:53: warning[-Wanalyzer-out-of-bounds]: buffer over-read
xfsprogs-6.17.0/io/mmap.c:44:33: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/io/mmap.c:45:30: branch_true: ...to here
xfsprogs-6.17.0/io/mmap.c:45:17: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/io/mmap.c:45:53: branch_true: ...to here
xfsprogs-6.17.0/io/mmap.c:44:33: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/io/mmap.c:45:30: branch_true: ...to here
xfsprogs-6.17.0/io/mmap.c:45:17: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/io/mmap.c:45:53: branch_true: ...to here
xfsprogs-6.17.0/io/mmap.c:44:33: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/io/mmap.c:45:30: branch_true: ...to here
xfsprogs-6.17.0/io/mmap.c:45:17: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/io/mmap.c:45:53: branch_true: ...to here
xfsprogs-6.17.0/io/mmap.c:44:33: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/io/mmap.c:45:30: branch_true: ...to here
xfsprogs-6.17.0/io/mmap.c:45:17: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/io/mmap.c:45:53: branch_true: ...to here
xfsprogs-6.17.0/io/mmap.c:44:33: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/io/mmap.c:45:30: branch_true: ...to here
xfsprogs-6.17.0/io/mmap.c:45:17: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/io/mmap.c:45:53: branch_true: ...to here
xfsprogs-6.17.0/io/mmap.c:45:53: danger: out-of-bounds read from byte 36 till byte 39 but ‘pflags’ ends at byte 32
Error: GCC_ANALYZER_WARNING (CWE-476): [#def113]
xfsprogs-6.17.0/io/mmap.c:48:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘map’
xfsprogs-6.17.0/io/mmap.c:501:1: enter_function: entry to ‘munmap_f’
xfsprogs-6.17.0/io/mmap.c:508:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/io/mmap.c:513:21: branch_false: ...to here
xfsprogs-6.17.0/io/mmap.c:523:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/io/mmap.c:524:45: branch_true: ...to here
xfsprogs-6.17.0/io/mmap.c:533:9: call_function: calling ‘maplist_f’ from ‘munmap_f’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def114]
xfsprogs-6.17.0/io/mmap.c:259:17: warning[-Wanalyzer-malloc-leak]: leak of ‘filename’
xfsprogs-6.17.0/io/mmap.c:164:12: branch_false: following ‘false’ branch (when ‘argc != 1’)...
xfsprogs-6.17.0/io/mmap.c:172:19: branch_false: ...to here
xfsprogs-6.17.0/io/mmap.c:172:19: branch_false: following ‘false’ branch (when ‘argc != 2’)...
xfsprogs-6.17.0/io/mmap.c:180:20: branch_false: ...to here
xfsprogs-6.17.0/io/mmap.c:180:19: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/io/mmap.c:186:9: branch_false: ...to here
xfsprogs-6.17.0/io/mmap.c:219:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/io/mmap.c:224:50: branch_false: ...to here
xfsprogs-6.17.0/io/mmap.c:225:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/io/mmap.c:230:9: branch_false: ...to here
xfsprogs-6.17.0/io/mmap.c:232:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/io/mmap.c:238:31: branch_false: ...to here
xfsprogs-6.17.0/io/mmap.c:238:20: acquire_memory: allocated here
xfsprogs-6.17.0/io/mmap.c:239:12: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
xfsprogs-6.17.0/io/mmap.c:252:12: branch_false: ...to here
xfsprogs-6.17.0/io/mmap.c:258:12: branch_true: following ‘true’ branch (when ‘address == 18446744073709551615’)...
xfsprogs-6.17.0/io/mmap.c:259:17: branch_true: ...to here
xfsprogs-6.17.0/io/mmap.c:259:17: throw: if ‘perror’ throws an exception...
xfsprogs-6.17.0/io/mmap.c:259:17: danger: ‘filename’ leaks here; was allocated at [(13)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def115]
xfsprogs-6.17.0/io/mmap.c:269:17: warning[-Wanalyzer-malloc-leak]: leak of ‘filename’
xfsprogs-6.17.0/io/mmap.c:164:12: branch_false: following ‘false’ branch (when ‘argc != 1’)...
xfsprogs-6.17.0/io/mmap.c:172:19: branch_false: ...to here
xfsprogs-6.17.0/io/mmap.c:172:19: branch_false: following ‘false’ branch (when ‘argc != 2’)...
xfsprogs-6.17.0/io/mmap.c:180:20: branch_false: ...to here
xfsprogs-6.17.0/io/mmap.c:180:19: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/io/mmap.c:186:9: branch_false: ...to here
xfsprogs-6.17.0/io/mmap.c:219:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/io/mmap.c:224:50: branch_false: ...to here
xfsprogs-6.17.0/io/mmap.c:225:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/io/mmap.c:230:9: branch_false: ...to here
xfsprogs-6.17.0/io/mmap.c:232:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/io/mmap.c:238:31: branch_false: ...to here
xfsprogs-6.17.0/io/mmap.c:238:20: acquire_memory: allocated here
xfsprogs-6.17.0/io/mmap.c:239:12: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
xfsprogs-6.17.0/io/mmap.c:252:12: branch_false: ...to here
xfsprogs-6.17.0/io/mmap.c:258:12: branch_false: following ‘false’ branch (when ‘address != 18446744073709551615’)...
xfsprogs-6.17.0/io/mmap.c:267:41: branch_false: ...to here
xfsprogs-6.17.0/io/mmap.c:268:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/io/mmap.c:269:17: branch_true: ...to here
xfsprogs-6.17.0/io/mmap.c:269:17: throw: if ‘perror’ throws an exception...
xfsprogs-6.17.0/io/mmap.c:269:17: danger: ‘filename’ leaks here; was allocated at [(13)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def116]
xfsprogs-6.17.0/io/open.c:185:17: warning[-Wanalyzer-malloc-leak]: leak of ‘filename’
xfsprogs-6.17.0/io/open.c:174:20: acquire_memory: allocated here
xfsprogs-6.17.0/io/open.c:175:12: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
xfsprogs-6.17.0/io/open.c:183:41: branch_false: ...to here
xfsprogs-6.17.0/io/open.c:184:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/io/open.c:185:17: branch_true: ...to here
xfsprogs-6.17.0/io/open.c:185:17: throw: if ‘perror’ throws an exception...
xfsprogs-6.17.0/io/open.c:185:17: danger: ‘filename’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def117]
xfsprogs-6.17.0/io/open.c:426:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 0)’
xfsprogs-6.17.0/io/open.c:421:19: acquire_resource: opened here
xfsprogs-6.17.0/io/open.c:421:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/io/open.c:426:21: branch_false: ...to here
xfsprogs-6.17.0/io/open.c:426:21: throw: if ‘getprojid’ throws an exception...
xfsprogs-6.17.0/io/open.c:426:21: danger: ‘open(path, 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def118]
xfsprogs-6.17.0/io/open.c:503:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 0)’
xfsprogs-6.17.0/io/open.c:498:19: acquire_resource: opened here
xfsprogs-6.17.0/io/open.c:498:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/io/open.c:503:21: branch_false: ...to here
xfsprogs-6.17.0/io/open.c:503:21: throw: if ‘setprojid’ throws an exception...
xfsprogs-6.17.0/io/open.c:503:21: danger: ‘open(path, 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def119]
xfsprogs-6.17.0/io/readdir.c:165:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dfd’
xfsprogs-6.17.0/io/readdir.c:142:16: branch_false: following ‘false’ branch (when ‘c == -1’)...
xfsprogs-6.17.0/io/readdir.c:159:23: branch_false: ...to here
xfsprogs-6.17.0/io/readdir.c:159:15: acquire_resource: opened here
xfsprogs-6.17.0/io/readdir.c:160:12: branch_false: following ‘false’ branch (when ‘dfd >= 0’)...
xfsprogs-6.17.0/io/readdir.c:165:15: branch_false: ...to here
xfsprogs-6.17.0/io/readdir.c:165:15: throw: if ‘fdopendir’ throws an exception...
xfsprogs-6.17.0/io/readdir.c:165:15: danger: ‘dfd’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def120]
xfsprogs-6.17.0/io/scrub.c:494:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xfsprogs-6.17.0/io/scrub.c:479:1: enter_function: entry to ‘scrubv_fill_group’
xfsprogs-6.17.0/io/scrub.c:489:42: branch_true: following ‘true’ branch (when ‘i != 33’)...
xfsprogs-6.17.0/io/scrub.c:490:21: branch_true: ...to here
xfsprogs-6.17.0/io/scrub.c:493:21: call_function: inlined call to ‘xfrog_scrubv_next_vector’ from ‘scrubv_fill_group’
xfsprogs-6.17.0/io/scrub.c:494:17: branch_true: ...to here
xfsprogs-6.17.0/io/scrub.c:494:17: danger: dereference of NULL ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def121]
xfsprogs-6.17.0/io/scrub.c:499:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xfsprogs-6.17.0/io/scrub.c:479:1: enter_function: entry to ‘scrubv_fill_group’
xfsprogs-6.17.0/io/scrub.c:489:42: branch_true: following ‘true’ branch (when ‘i != 33’)...
xfsprogs-6.17.0/io/scrub.c:490:21: branch_true: ...to here
xfsprogs-6.17.0/io/scrub.c:493:21: call_function: inlined call to ‘xfrog_scrubv_next_vector’ from ‘scrubv_fill_group’
xfsprogs-6.17.0/io/scrub.c:496:20: branch_true: following ‘true’ branch (when ‘barrier_interval != 0’)...
xfsprogs-6.17.0/io/scrub.c:497:21: branch_true: ...to here
xfsprogs-6.17.0/io/scrub.c:496:21: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/io/scrub.c:498:29: call_function: inlined call to ‘xfrog_scrubv_next_vector’ from ‘scrubv_fill_group’
xfsprogs-6.17.0/io/scrub.c:499:25: branch_true: ...to here
xfsprogs-6.17.0/io/scrub.c:499:25: danger: dereference of NULL ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def122]
xfsprogs-6.17.0/libfrog/bitmap.c:154:44: warning[-Wanalyzer-malloc-leak]: leak of 'bitmap_node_init(start, length)'
xfsprogs-6.17.0/libfrog/bitmap.c:142:1: enter_function: entry to '__bitmap_insert'
xfsprogs-6.17.0/libfrog/bitmap.c:150:15: call_function: calling 'bitmap_node_init' from '__bitmap_insert'
xfsprogs-6.17.0/libfrog/bitmap.c:150:15: return_function: returning to '__bitmap_insert' from 'bitmap_node_init'
xfsprogs-6.17.0/libfrog/bitmap.c:151:12: branch_false: following 'false' branch...
xfsprogs-6.17.0/libfrog/bitmap.c:154:44: branch_false: ...to here
xfsprogs-6.17.0/libfrog/bitmap.c:154:16: throw: if 'avl64_insert' throws an exception...
xfsprogs-6.17.0/libfrog/bitmap.c:154:44: danger: 'bitmap_node_init(start, length)' leaks here; was allocated at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def123]
xfsprogs-6.17.0/libfrog/bitmap.c:195:21: warning[-Wanalyzer-null-dereference]: dereference of NULL 'pos'
xfsprogs-6.17.0/libfrog/bitmap.c:187:9: branch_true: following 'true' branch...
xfsprogs-6.17.0/libfrog/bitmap.c:191:9: branch_true: following 'true' branch (when 'pos != l')...
xfsprogs-6.17.0/libfrog/bitmap.c:195:21: branch_true: ...to here
xfsprogs-6.17.0/libfrog/bitmap.c:191:9: branch_true: following 'true' branch (when 'pos != l')...
xfsprogs-6.17.0/libfrog/bitmap.c:195:21: branch_true: ...to here
xfsprogs-6.17.0/libfrog/bitmap.c:195:21: danger: dereference of NULL 'pos'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def124]
xfsprogs-6.17.0/libfrog/bitmap.c:271:21: warning[-Wanalyzer-null-dereference]: dereference of NULL 'pos'
xfsprogs-6.17.0/libfrog/bitmap.c:264:9: branch_true: following 'true' branch...
xfsprogs-6.17.0/libfrog/bitmap.c:267:9: branch_true: following 'true' branch (when 'pos != l')...
xfsprogs-6.17.0/libfrog/bitmap.c:271:21: branch_true: ...to here
xfsprogs-6.17.0/libfrog/bitmap.c:267:9: branch_true: following 'true' branch (when 'pos != l')...
xfsprogs-6.17.0/libfrog/bitmap.c:271:21: branch_true: ...to here
xfsprogs-6.17.0/libfrog/bitmap.c:271:21: danger: dereference of NULL 'pos'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def125]
xfsprogs-6.17.0/libfrog/bitmap.c:304:60: warning[-Wanalyzer-malloc-leak]: leak of 'bitmap_node_init(start + len, new_length)'
xfsprogs-6.17.0/libfrog/bitmap.c:238:1: enter_function: entry to '__bitmap_clear'
xfsprogs-6.17.0/libfrog/bitmap.c:264:9: branch_true: following 'true' branch...
xfsprogs-6.17.0/libfrog/bitmap.c:267:9: branch_true: following 'true' branch (when 'pos != l')...
xfsprogs-6.17.0/libfrog/bitmap.c:271:21: branch_true: ...to here
xfsprogs-6.17.0/libfrog/bitmap.c:271:20: branch_true: following 'true' branch...
xfsprogs-6.17.0/libfrog/bitmap.c:271:20: branch_true: ...to here
xfsprogs-6.17.0/libfrog/bitmap.c:273:20: branch_true: following 'true' branch...
xfsprogs-6.17.0/libfrog/bitmap.c:274:25: branch_true: ...to here
xfsprogs-6.17.0/libfrog/bitmap.c:298:31: call_function: calling 'bitmap_node_init' from '__bitmap_clear'
xfsprogs-6.17.0/libfrog/bitmap.c:298:31: return_function: returning to '__bitmap_clear' from 'bitmap_node_init'
xfsprogs-6.17.0/libfrog/bitmap.c:299:28: branch_false: following 'false' branch...
xfsprogs-6.17.0/libfrog/bitmap.c:304:60: branch_false: ...to here
xfsprogs-6.17.0/libfrog/bitmap.c:304:60: danger: 'bitmap_node_init(start + len, new_length)' leaks here; was allocated at [(14)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def126]
xfsprogs-6.17.0/libfrog/bitmap.c:383:23: warning[-Wanalyzer-null-dereference]: dereference of NULL 'pos'
xfsprogs-6.17.0/libfrog/bitmap.c:381:9: branch_true: following 'true' branch (when 'pos != l')...
xfsprogs-6.17.0/libfrog/bitmap.c:383:23: branch_true: ...to here
xfsprogs-6.17.0/libfrog/bitmap.c:384:20: branch_false: following 'false' branch...
xfsprogs-6.17.0/libfrog/bitmap.c:381:9: branch_false: ...to here
xfsprogs-6.17.0/libfrog/bitmap.c:381:9: branch_true: following 'true' branch (when 'pos != l')...
xfsprogs-6.17.0/libfrog/bitmap.c:383:23: branch_true: ...to here
xfsprogs-6.17.0/libfrog/bitmap.c:383:23: danger: dereference of NULL 'pos'
Error: GCC_ANALYZER_WARNING (CWE-416): [#def127]
xfsprogs-6.17.0/libfrog/bitmask.h:25:9: warning[-Wanalyzer-use-after-free]: use after 'free' of 'lip'
xfsprogs-6.17.0/libxfs/trans.c:1236:1: enter_function: entry to 'libxfs_trans_alloc_dir'
xfsprogs-6.17.0/libxfs/trans.c:1250:17: call_function: calling 'libxfs_trans_alloc' from 'libxfs_trans_alloc_dir'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def128]
xfsprogs-6.17.0/libfrog/fakelibattr.h:32:16: warning[-Wanalyzer-malloc-leak]: leak of 'attrlist'
xfsprogs-6.17.0/libfrog/fsprops.c:65:1: enter_function: entry to 'fsprops_walk_names'
xfsprogs-6.17.0/libfrog/fsprops.c:74:20: acquire_memory: allocated here
xfsprogs-6.17.0/libfrog/fsprops.c:75:12: branch_false: following 'false' branch (when 'attrlist' is non-NULL)...
xfsprogs-6.17.0/libfrog/fsprops.c:75:12: branch_false: ...to here
xfsprogs-6.17.0/libfrog/fsprops.c:78:23: call_function: inlined call to 'libfrog_attr_list_by_handle' from 'fsprops_walk_names'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def129]
xfsprogs-6.17.0/libfrog/fakelibattr.h:32:16: warning[-Wanalyzer-malloc-leak]: leak of ‘attrlist’
xfsprogs-6.17.0/scrub/phase5.c:184:1: enter_function: entry to ‘check_xattr_ns_names’
xfsprogs-6.17.0/scrub/phase5.c:198:20: acquire_memory: allocated here
xfsprogs-6.17.0/scrub/phase5.c:199:12: branch_false: following ‘false’ branch (when ‘attrlist’ is non-NULL)...
xfsprogs-6.17.0/scrub/phase5.c:205:18: branch_false: ...to here
xfsprogs-6.17.0/scrub/phase5.c:206:12: branch_false: following ‘false’ branch (when ‘keybuf’ is non-NULL)...
xfsprogs-6.17.0/scrub/phase5.c:212:17: branch_false: ...to here
xfsprogs-6.17.0/scrub/phase5.c:213:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/phase5.c:213:12: branch_false: ...to here
xfsprogs-6.17.0/scrub/phase5.c:218:25: call_function: inlined call to ‘libfrog_attr_list_by_handle’ from ‘check_xattr_ns_names’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def130]
xfsprogs-6.17.0/libfrog/fakelibattr.h:32:16: warning[-Wanalyzer-malloc-leak]: leak of ‘keybuf’
xfsprogs-6.17.0/scrub/phase5.c:184:1: enter_function: entry to ‘check_xattr_ns_names’
xfsprogs-6.17.0/scrub/phase5.c:199:12: branch_false: following ‘false’ branch (when ‘attrlist’ is non-NULL)...
xfsprogs-6.17.0/scrub/phase5.c:205:18: branch_false: ...to here
xfsprogs-6.17.0/scrub/phase5.c:205:18: acquire_memory: allocated here
xfsprogs-6.17.0/scrub/phase5.c:206:12: branch_false: following ‘false’ branch (when ‘keybuf’ is non-NULL)...
xfsprogs-6.17.0/scrub/phase5.c:212:17: branch_false: ...to here
xfsprogs-6.17.0/scrub/phase5.c:213:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/phase5.c:213:12: branch_false: ...to here
xfsprogs-6.17.0/scrub/phase5.c:218:25: call_function: inlined call to ‘libfrog_attr_list_by_handle’ from ‘check_xattr_ns_names’
Error: GCC_ANALYZER_WARNING (CWE-122): [#def131]
xfsprogs-6.17.0/libfrog/histogram.c:137:9: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
xfsprogs-6.17.0/libfrog/histogram.c:119:9: branch_true: following 'true' branch...
xfsprogs-6.17.0/libfrog/histogram.c:121:15: branch_true: ...to here
xfsprogs-6.17.0/libfrog/histogram.c:122:12: branch_false: following 'false' branch (when 'cdf' is non-NULL)...
xfsprogs-6.17.0/libfrog/histogram.c:124:9: branch_false: ...to here
xfsprogs-6.17.0/libfrog/histogram.c:126:12: branch_false: following 'false' branch...
xfsprogs-6.17.0/libfrog/histogram.c:131:24: branch_false: ...to here
xfsprogs-6.17.0/libfrog/histogram.c:132:12: branch_false: following 'false' branch...
xfsprogs-6.17.0/libfrog/histogram.c:137:34: branch_false: ...to here
xfsprogs-6.17.0/libfrog/histogram.c:137:9: danger: write of 8 bytes at offset '(long unsigned int)(*hs.nr_buckets + 4294967295) * 32 + 16' exceeds the buffer
Error: GCC_ANALYZER_WARNING (CWE-122): [#def132]
xfsprogs-6.17.0/libfrog/histogram.c:138:9: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
xfsprogs-6.17.0/libfrog/histogram.c:119:9: branch_true: following 'true' branch...
xfsprogs-6.17.0/libfrog/histogram.c:121:15: branch_true: ...to here
xfsprogs-6.17.0/libfrog/histogram.c:122:12: branch_false: following 'false' branch (when 'cdf' is non-NULL)...
xfsprogs-6.17.0/libfrog/histogram.c:124:9: branch_false: ...to here
xfsprogs-6.17.0/libfrog/histogram.c:126:12: branch_false: following 'false' branch...
xfsprogs-6.17.0/libfrog/histogram.c:131:24: branch_false: ...to here
xfsprogs-6.17.0/libfrog/histogram.c:132:12: branch_false: following 'false' branch...
xfsprogs-6.17.0/libfrog/histogram.c:137:34: branch_false: ...to here
xfsprogs-6.17.0/libfrog/histogram.c:138:9: danger: write of 8 bytes at offset '(long unsigned int)(*hs.nr_buckets + 4294967295) * 32 + 24' exceeds the buffer
Error: GCC_ANALYZER_WARNING (CWE-122): [#def133]
xfsprogs-6.17.0/libfrog/histogram.c:142:17: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
xfsprogs-6.17.0/libfrog/histogram.c:119:9: branch_true: following 'true' branch...
xfsprogs-6.17.0/libfrog/histogram.c:121:15: branch_true: ...to here
xfsprogs-6.17.0/libfrog/histogram.c:122:12: branch_false: following 'false' branch (when 'cdf' is non-NULL)...
xfsprogs-6.17.0/libfrog/histogram.c:124:9: branch_false: ...to here
xfsprogs-6.17.0/libfrog/histogram.c:126:12: branch_false: following 'false' branch...
xfsprogs-6.17.0/libfrog/histogram.c:131:24: branch_false: ...to here
xfsprogs-6.17.0/libfrog/histogram.c:132:12: branch_false: following 'false' branch...
xfsprogs-6.17.0/libfrog/histogram.c:137:34: branch_false: ...to here
xfsprogs-6.17.0/libfrog/histogram.c:141:16: branch_true: following 'true' branch (when 'i != -1')...
xfsprogs-6.17.0/libfrog/histogram.c:142:42: branch_true: ...to here
xfsprogs-6.17.0/libfrog/histogram.c:142:17: danger: write of 8 bytes at offset '(long unsigned int)(int)(*hs.nr_buckets + 4294967294) * 32 + 16' exceeds the buffer
Error: GCC_ANALYZER_WARNING (CWE-122): [#def134]
xfsprogs-6.17.0/libfrog/histogram.c:143:41: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read
xfsprogs-6.17.0/libfrog/histogram.c:119:9: branch_true: following 'true' branch...
xfsprogs-6.17.0/libfrog/histogram.c:121:15: branch_true: ...to here
xfsprogs-6.17.0/libfrog/histogram.c:122:12: branch_false: following 'false' branch (when 'cdf' is non-NULL)...
xfsprogs-6.17.0/libfrog/histogram.c:124:9: branch_false: ...to here
xfsprogs-6.17.0/libfrog/histogram.c:126:12: branch_false: following 'false' branch...
xfsprogs-6.17.0/libfrog/histogram.c:131:24: branch_false: ...to here
xfsprogs-6.17.0/libfrog/histogram.c:132:12: branch_false: following 'false' branch...
xfsprogs-6.17.0/libfrog/histogram.c:137:34: branch_false: ...to here
xfsprogs-6.17.0/libfrog/histogram.c:141:16: branch_true: following 'true' branch (when 'i != -1')...
xfsprogs-6.17.0/libfrog/histogram.c:142:42: branch_true: ...to here
xfsprogs-6.17.0/libfrog/histogram.c:143:41: danger: read of 8 bytes at offset '(long unsigned int)(int)(*hs.nr_buckets + 4294967294) * 32 + 48' exceeds the buffer
Error: GCC_ANALYZER_WARNING (CWE-122): [#def135]
xfsprogs-6.17.0/libfrog/histogram.c:145:17: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
xfsprogs-6.17.0/libfrog/histogram.c:119:9: branch_true: following 'true' branch...
xfsprogs-6.17.0/libfrog/histogram.c:121:15: branch_true: ...to here
xfsprogs-6.17.0/libfrog/histogram.c:122:12: branch_false: following 'false' branch (when 'cdf' is non-NULL)...
xfsprogs-6.17.0/libfrog/histogram.c:124:9: branch_false: ...to here
xfsprogs-6.17.0/libfrog/histogram.c:126:12: branch_false: following 'false' branch...
xfsprogs-6.17.0/libfrog/histogram.c:131:24: branch_false: ...to here
xfsprogs-6.17.0/libfrog/histogram.c:132:12: branch_false: following 'false' branch...
xfsprogs-6.17.0/libfrog/histogram.c:137:34: branch_false: ...to here
xfsprogs-6.17.0/libfrog/histogram.c:141:16: branch_true: following 'true' branch (when 'i != -1')...
xfsprogs-6.17.0/libfrog/histogram.c:142:42: branch_true: ...to here
xfsprogs-6.17.0/libfrog/histogram.c:145:17: danger: write of 8 bytes at offset '(long unsigned int)(int)(*hs.nr_buckets + 4294967294) * 32 + 24' exceeds the buffer
Error: GCC_ANALYZER_WARNING (CWE-122): [#def136]
xfsprogs-6.17.0/libfrog/histogram.c:146:41: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read
xfsprogs-6.17.0/libfrog/histogram.c:119:9: branch_true: following 'true' branch...
xfsprogs-6.17.0/libfrog/histogram.c:121:15: branch_true: ...to here
xfsprogs-6.17.0/libfrog/histogram.c:122:12: branch_false: following 'false' branch (when 'cdf' is non-NULL)...
xfsprogs-6.17.0/libfrog/histogram.c:124:9: branch_false: ...to here
xfsprogs-6.17.0/libfrog/histogram.c:126:12: branch_false: following 'false' branch...
xfsprogs-6.17.0/libfrog/histogram.c:131:24: branch_false: ...to here
xfsprogs-6.17.0/libfrog/histogram.c:132:12: branch_false: following 'false' branch...
xfsprogs-6.17.0/libfrog/histogram.c:137:34: branch_false: ...to here
xfsprogs-6.17.0/libfrog/histogram.c:141:16: branch_true: following 'true' branch (when 'i != -1')...
xfsprogs-6.17.0/libfrog/histogram.c:142:42: branch_true: ...to here
xfsprogs-6.17.0/libfrog/histogram.c:146:41: danger: read of 8 bytes at offset '(long unsigned int)(int)(*hs.nr_buckets + 4294967294) * 32 + 56' exceeds the buffer
Error: GCC_ANALYZER_WARNING (CWE-476): [#def137]
xfsprogs-6.17.0/libfrog/histogram.c:216:33: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xfsprogs-6.17.0/libfrog/histogram.c:164:1: enter_function: entry to 'hist_print'
xfsprogs-6.17.0/libfrog/histogram.c:174:15: call_function: calling 'hist_cdf' from 'hist_print'
xfsprogs-6.17.0/libfrog/histogram.c:174:15: return_function: returning to 'hist_print' from 'hist_cdf'
xfsprogs-6.17.0/libfrog/histogram.c:175:12: branch_false: following 'false' branch...
xfsprogs-6.17.0/libfrog/histogram.c:175:12: branch_false: ...to here
xfsprogs-6.17.0/libfrog/histogram.c:180:21: branch_false: following 'false' branch...
xfsprogs-6.17.0/libfrog/histogram.c:199:9: branch_false: ...to here
xfsprogs-6.17.0/libfrog/histogram.c:205:21: branch_true: following 'true' branch...
xfsprogs-6.17.0/libfrog/histogram.c:206:21: branch_true: ...to here
xfsprogs-6.17.0/libfrog/histogram.c:206:20: branch_false: following 'false' branch...
xfsprogs-6.17.0/libfrog/histogram.c:216:33: branch_false: ...to here
xfsprogs-6.17.0/libfrog/histogram.c:216:33: release_memory: using NULL here
xfsprogs-6.17.0/libfrog/histogram.c:216:33: danger: dereference of NULL '*<unknown>.buckets + (long unsigned int)i * 32'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def138]
xfsprogs-6.17.0/libfrog/list_sort.c:75:17: warning[-Wanalyzer-null-dereference]: dereference of NULL 'list'
xfsprogs-6.17.0/libfrog/list_sort.c:97:6: enter_function: entry to 'list_sort'
xfsprogs-6.17.0/libfrog/list_sort.c:105:12: branch_false: following 'false' branch...
xfsprogs-6.17.0/libfrog/list_sort.c:108:9: branch_false: ...to here
xfsprogs-6.17.0/libfrog/list_sort.c:113:16: branch_false: following 'false' branch (when 'list' is NULL)...
xfsprogs-6.17.0/libfrog/list_sort.c:113:16: branch_false: ...to here
xfsprogs-6.17.0/libfrog/list_sort.c:131:23: branch_false: following 'false' branch (when 'lev >= max_lev')...
xfsprogs-6.17.0/libfrog/list_sort.c:135:9: branch_false: ...to here
xfsprogs-6.17.0/libfrog/list_sort.c:135:9: release_memory: 'list' is NULL
xfsprogs-6.17.0/libfrog/list_sort.c:135:9: call_function: calling 'merge_and_restore_back_links' from 'list_sort'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def139]
xfsprogs-6.17.0/libfrog/workqueue.c:180:25: warning[-Wanalyzer-malloc-leak]: leak of 'wi'
xfsprogs-6.17.0/libfrog/workqueue.c:154:9: branch_false: following 'false' branch...
xfsprogs-6.17.0/libfrog/workqueue.c:156:13: branch_false: ...to here
xfsprogs-6.17.0/libfrog/workqueue.c:156:12: branch_false: following 'false' branch...
xfsprogs-6.17.0/libfrog/workqueue.c:161:14: branch_false: ...to here
xfsprogs-6.17.0/libfrog/workqueue.c:161:14: acquire_memory: allocated here
xfsprogs-6.17.0/libfrog/workqueue.c:162:12: branch_false: following 'false' branch (when 'wi' is non-NULL)...
xfsprogs-6.17.0/libfrog/workqueue.c:165:9: branch_false: ...to here
xfsprogs-6.17.0/libfrog/workqueue.c:174:12: branch_false: following 'false' branch...
xfsprogs-6.17.0/libfrog/workqueue.c:179:21: branch_false: ...to here
xfsprogs-6.17.0/libfrog/workqueue.c:179:20: branch_true: following 'true' branch...
xfsprogs-6.17.0/libfrog/workqueue.c:180:25: throw: if 'pthread_cond_wait' throws an exception...
xfsprogs-6.17.0/libfrog/workqueue.c:180:25: danger: 'wi' leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def140]
xfsprogs-6.17.0/libxcmd/command.c:188:13: warning[-Wanalyzer-malloc-leak]: leak of 'input'
xfsprogs-6.17.0/libxcmd/command.c:209:1: enter_function: entry to 'command_loop'
xfsprogs-6.17.0/libxcmd/command.c:215:12: branch_false: following 'false' branch...
xfsprogs-6.17.0/libxcmd/command.c:215:12: branch_false: ...to here
xfsprogs-6.17.0/libxcmd/command.c:227:21: branch_true: following 'true' branch...
xfsprogs-6.17.0/libxcmd/command.c:228:25: acquire_memory: allocated here
xfsprogs-6.17.0/libxcmd/command.c:229:20: branch_false: following 'false' branch (when 'input' is non-NULL)...
xfsprogs-6.17.0/libxcmd/command.c:235:24: branch_false: ...to here
xfsprogs-6.17.0/libxcmd/command.c:235:24: call_function: calling 'process_input' from 'command_loop'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def141]
xfsprogs-6.17.0/libxcmd/input.c:61:17: warning[-Wanalyzer-malloc-leak]: leak of 'line'
xfsprogs-6.17.0/libxcmd/input.c:51:12: branch_false: following 'false' branch...
xfsprogs-6.17.0/libxcmd/input.c:54:16: branch_false: ...to here
xfsprogs-6.17.0/libxcmd/input.c:54:16: acquire_memory: allocated here
xfsprogs-6.17.0/libxcmd/input.c:55:12: branch_false: following 'false' branch (when 'line' is non-NULL)...
xfsprogs-6.17.0/libxcmd/input.c:58:13: branch_false: ...to here
xfsprogs-6.17.0/libxcmd/input.c:60:12: branch_true: following 'true' branch...
xfsprogs-6.17.0/libxcmd/input.c:61:17: branch_true: ...to here
xfsprogs-6.17.0/libxcmd/input.c:61:17: throw: if 'history' throws an exception...
xfsprogs-6.17.0/libxcmd/input.c:61:17: danger: 'line' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def142]
xfsprogs-6.17.0/libxfs/libxfs_io.h:146:16: warning[-Wanalyzer-null-dereference]: dereference of NULL 'bp'
xfsprogs-6.17.0/libxfs/xfs_btree.c:4644:1: enter_function: entry to 'xfs_btree_visit_block'
xfsprogs-6.17.0/libxfs/xfs_btree.c:4657:17: call_function: calling 'libxfs_btree_get_block' from 'xfs_btree_visit_block'
xfsprogs-6.17.0/libxfs/xfs_btree.c:4657:17: return_function: returning to 'xfs_btree_visit_block' from 'libxfs_btree_get_block'
xfsprogs-6.17.0/libxfs/xfs_btree.c:4661:12: branch_false: following 'false' branch...
xfsprogs-6.17.0/libxfs/xfs_btree.c:4665:9: branch_false: ...to here
xfsprogs-6.17.0/libxfs/xfs_btree.c:4665:9: call_function: calling 'xfs_btree_get_sibling' from 'xfs_btree_visit_block'
xfsprogs-6.17.0/libxfs/xfs_btree.c:4665:9: return_function: returning to 'xfs_btree_visit_block' from 'xfs_btree_get_sibling'
xfsprogs-6.17.0/libxfs/xfs_btree.c:4666:12: branch_false: following 'false' branch...
xfsprogs-6.17.0/libxfs/xfs_btree.c:4675:9: branch_false: ...to here
xfsprogs-6.17.0/libxfs/xfs_btree.c:4675:9: release_memory: 'bp' is NULL
xfsprogs-6.17.0/libxfs/xfs_btree.c:4675:9: call_function: calling 'xfs_btree_buf_to_ptr' from 'xfs_btree_visit_block'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def143]
xfsprogs-6.17.0/libxfs/libxfs_io.h:192:16: warning[-Wanalyzer-malloc-leak]: leak of ‘sb’
xfsprogs-6.17.0/repair/scan.c:3290:1: enter_function: entry to ‘scan_ag’
xfsprogs-6.17.0/repair/scan.c:3309:31: acquire_memory: allocated here
xfsprogs-6.17.0/repair/scan.c:3310:12: branch_false: following ‘false’ branch (when ‘sb’ is non-NULL)...
xfsprogs-6.17.0/repair/scan.c:3315:17: branch_false: ...to here
xfsprogs-6.17.0/repair/scan.c:3315:17: call_function: calling ‘salvage_buffer’ from ‘scan_ag’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def144]
xfsprogs-6.17.0/libxfs/libxfs_io.h:206:16: warning[-Wanalyzer-malloc-leak]: leak of ‘sb’
xfsprogs-6.17.0/repair/scan.c:3290:1: enter_function: entry to ‘scan_ag’
xfsprogs-6.17.0/repair/scan.c:3309:31: acquire_memory: allocated here
xfsprogs-6.17.0/repair/scan.c:3310:12: branch_false: following ‘false’ branch (when ‘sb’ is non-NULL)...
xfsprogs-6.17.0/repair/scan.c:3315:17: branch_false: ...to here
xfsprogs-6.17.0/repair/scan.c:3315:17: call_function: calling ‘salvage_buffer’ from ‘scan_ag’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def145]
xfsprogs-6.17.0/libxfs/libxfs_io.h:206:16: warning[-Wanalyzer-malloc-leak]: leak of ‘value’
xfsprogs-6.17.0/repair/attr_repair.c:1316:1: enter_function: entry to ‘process_attributes’
xfsprogs-6.17.0/repair/attr_repair.c:1329:12: branch_false: following ‘false’ branch (when ‘aformat != 1’)...
xfsprogs-6.17.0/repair/attr_repair.c:1333:20: branch_false: ...to here
xfsprogs-6.17.0/repair/attr_repair.c:1333:19: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/attr_repair.c:1335:31: branch_true: ...to here
xfsprogs-6.17.0/repair/attr_repair.c:1335:31: call_function: calling ‘process_longform_attr’ from ‘process_attributes’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def146]
xfsprogs-6.17.0/libxfs/rdwr.c:105:30: warning[-Wanalyzer-malloc-leak]: leak of 'z'
xfsprogs-6.17.0/libxfs/rdwr.c:1169:1: enter_function: entry to 'libxfs_log_clear'
xfsprogs-6.17.0/libxfs/rdwr.c:1189:12: branch_false: following 'false' branch...
xfsprogs-6.17.0/libxfs/rdwr.c:1189:13: branch_false: ...to here
xfsprogs-6.17.0/libxfs/rdwr.c:1190:13: branch_false: following 'false' branch...
xfsprogs-6.17.0/libxfs/rdwr.c:1194:12: branch_true: following 'true' branch (when 'btp' is non-NULL)...
xfsprogs-6.17.0/libxfs/rdwr.c:1195:17: branch_true: ...to here
xfsprogs-6.17.0/libxfs/rdwr.c:1195:17: call_function: calling 'libxfs_device_zero' from 'libxfs_log_clear'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def147]
xfsprogs-6.17.0/libxfs/topology.c:165:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(device, 0)'
xfsprogs-6.17.0/libxfs/topology.c:157:12: branch_false: following 'false' branch...
xfsprogs-6.17.0/libxfs/topology.c:162:14: acquire_resource: opened here
xfsprogs-6.17.0/libxfs/topology.c:163:12: branch_false: following 'false' branch...
xfsprogs-6.17.0/libxfs/topology.c:165:9: branch_false: ...to here
xfsprogs-6.17.0/libxfs/topology.c:165:9: throw: if 'platform_findsizes' throws an exception...
xfsprogs-6.17.0/libxfs/topology.c:165:9: danger: 'open(device, 0)' leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def148]
xfsprogs-6.17.0/libxfs/xfs_ag_resv.c:142:52: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xfsprogs-6.17.0/libxfs/xfs_ag_resv.c:131:1: enter_function: entry to '__xfs_ag_resv_free'
xfsprogs-6.17.0/libxfs/xfs_ag_resv.c:140:16: call_function: inlined call to 'xfs_perag_resv' from '__xfs_ag_resv_free'
xfsprogs-6.17.0/libxfs/xfs_ag_resv.c:141:13: call_function: inlined call to 'pag_agno' from '__xfs_ag_resv_free'
xfsprogs-6.17.0/libxfs/xfs_ag_resv.c:141:12: branch_true: following 'true' branch...
xfsprogs-6.17.0/libxfs/xfs_ag_resv.c:142:17: call_function: inlined call to 'pag_mount' from '__xfs_ag_resv_free'
xfsprogs-6.17.0/libxfs/xfs_ag_resv.c:142:52: danger: dereference of NULL '<unknown>'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def149]
xfsprogs-6.17.0/libxfs/xfs_ag_resv.c:151:17: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xfsprogs-6.17.0/libxfs/xfs_ag_resv.c:131:1: enter_function: entry to '__xfs_ag_resv_free'
xfsprogs-6.17.0/libxfs/xfs_ag_resv.c:140:16: call_function: inlined call to 'xfs_perag_resv' from '__xfs_ag_resv_free'
xfsprogs-6.17.0/libxfs/xfs_ag_resv.c:141:13: call_function: inlined call to 'pag_agno' from '__xfs_ag_resv_free'
xfsprogs-6.17.0/libxfs/xfs_ag_resv.c:141:12: branch_false: following 'false' branch...
xfsprogs-6.17.0/libxfs/xfs_ag_resv.c:148:12: branch_false: ...to here
xfsprogs-6.17.0/libxfs/xfs_ag_resv.c:148:12: branch_false: following 'false' branch (when 'type != 3')...
xfsprogs-6.17.0/libxfs/xfs_ag_resv.c:151:17: branch_false: ...to here
xfsprogs-6.17.0/libxfs/xfs_ag_resv.c:151:17: danger: dereference of NULL '<unknown>'
Error: GCC_ANALYZER_WARNING (CWE-457): [#def150]
xfsprogs-6.17.0/libxfs/xfs_alloc.c:2945:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'bno'
xfsprogs-6.17.0/libxfs/xfs_alloc.c:3965:1: enter_function: entry to 'xfs_free_extent_fix_freelist'
xfsprogs-6.17.0/libxfs/xfs_alloc.c:3983:12: branch_false: following 'false' branch...
xfsprogs-6.17.0/libxfs/xfs_alloc.c:3986:17: branch_false: ...to here
xfsprogs-6.17.0/libxfs/xfs_alloc.c:3986:17: call_function: calling 'libxfs_alloc_fix_freelist' from 'xfs_free_extent_fix_freelist'
Error: COMPILER_WARNING: [#def151]
xfsprogs-6.17.0/libxfs/xfs_alloc.c: scope_hint: In function '__xfs_free_extent'
xfsprogs-6.17.0/libxfs/xfs_alloc.c:4013:41: warning[-Wunused-but-set-variable=]: variable 'busy_flags' set but not used
Error: GCC_ANALYZER_WARNING (CWE-126): [#def152]
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:431:34: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:416:16: branch_true: following 'true' branch...
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:417:17: branch_true: ...to here
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:421:20: branch_false: following 'false' branch...
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:421:20: branch_false: ...to here
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:425:29: branch_true: following 'true' branch...
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:431:34: branch_true: ...to here
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:435:28: branch_true: following 'true' branch...
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:436:33: branch_true: ...to here
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:442:28: branch_false: following 'false' branch...
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:444:28: branch_false: ...to here
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:444:28: branch_false: following 'false' branch...
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:447:33: branch_false: ...to here
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:450:28: branch_false: following 'false' branch...
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:454:35: branch_false: ...to here
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:425:29: branch_true: following 'true' branch...
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:431:34: danger: out-of-bounds read from byte 40 till byte 47 but 'map' ends at byte 32
Error: GCC_ANALYZER_WARNING (CWE-126): [#def153]
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:432:35: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:416:16: branch_true: following 'true' branch...
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:417:17: branch_true: ...to here
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:421:20: branch_false: following 'false' branch...
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:421:20: branch_false: ...to here
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:425:29: branch_true: following 'true' branch...
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:431:34: branch_true: ...to here
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:435:28: branch_true: following 'true' branch...
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:436:33: branch_true: ...to here
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:442:28: branch_false: following 'false' branch...
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:444:28: branch_false: ...to here
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:444:28: branch_false: following 'false' branch...
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:447:33: branch_false: ...to here
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:450:28: branch_false: following 'false' branch...
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:454:35: branch_false: ...to here
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:425:29: branch_true: following 'true' branch...
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:432:35: danger: out-of-bounds read from byte 48 till byte 55 but 'map' ends at byte 32
Error: GCC_ANALYZER_WARNING (CWE-126): [#def154]
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:454:35: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:395:1: enter_function: entry to 'libxfs_attr_rmtval_get'
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:416:16: branch_true: following 'true' branch...
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:417:17: branch_true: ...to here
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:421:20: branch_false: following 'false' branch...
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:421:20: branch_false: ...to here
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:425:29: branch_true: following 'true' branch...
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:431:34: branch_true: ...to here
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:435:28: branch_true: following 'true' branch...
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:436:33: branch_true: ...to here
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:442:28: branch_false: following 'false' branch...
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:444:28: branch_false: ...to here
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:444:28: branch_false: following 'false' branch...
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:447:33: branch_false: ...to here
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:450:28: branch_false: following 'false' branch...
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:454:35: branch_false: ...to here
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:425:29: branch_true: following 'true' branch...
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:435:28: branch_true: following 'true' branch...
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:436:33: branch_true: ...to here
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:442:28: branch_false: following 'false' branch...
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:444:28: branch_false: ...to here
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:444:28: branch_false: following 'false' branch...
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:447:33: branch_false: ...to here
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:447:33: call_function: calling 'xfs_attr_rmtval_copyout' from 'libxfs_attr_rmtval_get'
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:447:33: return_function: returning to 'libxfs_attr_rmtval_get' from 'xfs_attr_rmtval_copyout'
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:450:28: branch_false: following 'false' branch...
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:454:35: branch_false: ...to here
xfsprogs-6.17.0/libxfs/xfs_attr_remote.c:454:35: danger: out-of-bounds read from byte 48 till byte 55 but 'map' ends at byte 32
Error: GCC_ANALYZER_WARNING (CWE-476): [#def155]
xfsprogs-6.17.0/libxfs/xfs_bmap.c:563:34: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xfsprogs-6.17.0/libxfs/xfs_bmap.c:5528:1: enter_function: entry to 'xfs_bmse_merge'
xfsprogs-6.17.0/libxfs/xfs_bmap.c:5539:48: call_function: calling 'xfs_ifork_ptr' from 'xfs_bmse_merge'
xfsprogs-6.17.0/libxfs/xfs_bmap.c:5539:48: return_function: returning to 'xfs_bmse_merge' from 'xfs_ifork_ptr'
xfsprogs-6.17.0/libxfs/xfs_bmap.c:5559:12: branch_false: following 'false' branch (when 'cur' is non-NULL)...
xfsprogs-6.17.0/libxfs/xfs_bmap.c:5565:17: call_function: inlined call to 'xfs_bmbt_lookup_eq' from 'xfs_bmse_merge'
xfsprogs-6.17.0/libxfs/xfs_bmap.c:5566:12: branch_false: following 'false' branch...
xfsprogs-6.17.0/libxfs/xfs_bmap.c:5568:13: branch_false: ...to here
xfsprogs-6.17.0/libxfs/xfs_bmap.c:5568:13: branch_false: following 'false' branch...
xfsprogs-6.17.0/libxfs/xfs_bmap.c:5573:17: branch_false: ...to here
xfsprogs-6.17.0/libxfs/xfs_bmap.c:5574:12: branch_false: following 'false' branch...
xfsprogs-6.17.0/libxfs/xfs_bmap.c:5576:13: branch_false: ...to here
xfsprogs-6.17.0/libxfs/xfs_bmap.c:5576:13: branch_false: following 'false' branch...
xfsprogs-6.17.0/libxfs/xfs_bmap.c:5582:17: call_function: inlined call to 'xfs_bmbt_lookup_eq' from 'xfs_bmse_merge'
xfsprogs-6.17.0/libxfs/xfs_bmap.c:5583:12: branch_false: following 'false' branch...
xfsprogs-6.17.0/libxfs/xfs_bmap.c:5585:13: branch_false: ...to here
xfsprogs-6.17.0/libxfs/xfs_bmap.c:5585:13: branch_false: following 'false' branch...
xfsprogs-6.17.0/libxfs/xfs_bmap.c:5590:17: branch_false: ...to here
xfsprogs-6.17.0/libxfs/xfs_bmap.c:5591:12: branch_false: following 'false' branch...
xfsprogs-6.17.0/libxfs/xfs_bmap.c:5595:17: branch_false: ...to here
xfsprogs-6.17.0/libxfs/xfs_bmap.c:5595:17: call_function: calling 'xfs_bmap_btree_to_extents' from 'xfs_bmse_merge'
Error: COMPILER_WARNING: [#def156]
xfsprogs-6.17.0/libxfs/xfs_bmap.c: scope_hint: In function 'xfs_bmapi_convert_one_delalloc'
xfsprogs-6.17.0/libxfs/xfs_bmap.c:4369:33: warning[-Wunused-but-set-variable=]: variable 'flags' set but not used
Error: GCC_ANALYZER_WARNING (CWE-476): [#def157]
xfsprogs-6.17.0/libxfs/xfs_bmap.c:5557:9: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def158]
xfsprogs-6.17.0/libxfs/xfs_bmap_btree.c:549:44: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def159]
xfsprogs-6.17.0/libxfs/xfs_bmap_btree.c:683:35: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xfsprogs-6.17.0/libxfs/xfs_bmap_btree.c:680:12: branch_true: following 'true' branch (when 'whichfork != -1')...
xfsprogs-6.17.0/libxfs/xfs_bmap_btree.c:681:48: branch_true: ...to here
xfsprogs-6.17.0/libxfs/xfs_bmap_btree.c:683:35: danger: dereference of NULL 'xfs_ifork_ptr(ip, whichfork)'
Error: GCC_ANALYZER_WARNING (CWE-688): [#def160]
xfsprogs-6.17.0/libxfs/xfs_bmap_btree.c:726:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-476): [#def161]
xfsprogs-6.17.0/libxfs/xfs_btree.c:834:16: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xfsprogs-6.17.0/libxfs/xfs_btree.c:842:1: enter_function: entry to 'libxfs_btree_get_block'
xfsprogs-6.17.0/libxfs/xfs_btree.c:849:24: call_function: inlined call to 'xfs_btree_get_iroot' from 'libxfs_btree_get_block'
xfsprogs-6.17.0/libxfs/xfs_btree.c:849:24: call_function: inlined call to 'xfs_btree_get_iroot' from 'libxfs_btree_get_block'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def162]
xfsprogs-6.17.0/libxfs/xfs_btree.h:433:16: warning[-Wanalyzer-null-dereference]: dereference of NULL 'block'
xfsprogs-6.17.0/libxfs/xfs_btree.c:5562:1: enter_function: entry to 'libxfs_btree_goto_left_edge'
xfsprogs-6.17.0/libxfs/xfs_btree.c:5569:17: call_function: calling 'libxfs_btree_lookup' from 'libxfs_btree_goto_left_edge'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def163]
xfsprogs-6.17.0/libxfs/xfs_cksum.h:20:15: warning[-Wanalyzer-malloc-leak]: leak of ‘list’
xfsprogs-6.17.0/repair/sb.c:708:1: enter_function: entry to ‘verify_set_primary_sb’
xfsprogs-6.17.0/repair/sb.c:740:9: call_function: calling ‘get_sb_geometry’ from ‘verify_set_primary_sb’
xfsprogs-6.17.0/repair/sb.c:740:9: return_function: returning to ‘verify_set_primary_sb’ from ‘get_sb_geometry’
xfsprogs-6.17.0/repair/sb.c:741:16: call_function: calling ‘add_geo’ from ‘verify_set_primary_sb’
xfsprogs-6.17.0/repair/sb.c:741:16: return_function: returning to ‘verify_set_primary_sb’ from ‘add_geo’
xfsprogs-6.17.0/repair/sb.c:747:24: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/sb.c:748:23: branch_true: ...to here
xfsprogs-6.17.0/repair/sb.c:750:26: call_function: calling ‘get_sb’ from ‘verify_set_primary_sb’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def164]
xfsprogs-6.17.0/libxfs/xfs_da_btree.c:2150:14: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'blk'
xfsprogs-6.17.0/libxfs/xfs_da_btree.c:1124:1: enter_function: entry to 'xfs_da3_join'
xfsprogs-6.17.0/libxfs/xfs_da_btree.c:1144:18: branch_true: following 'true' branch...
xfsprogs-6.17.0/libxfs/xfs_da_btree.c:1152:25: branch_true: ...to here
xfsprogs-6.17.0/libxfs/xfs_da_btree.c:1176:33: call_function: calling 'xfs_da3_node_toosmall' from 'xfs_da3_join'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def165]
xfsprogs-6.17.0/libxfs/xfs_dir2_block.c:1242:32: warning[-Wanalyzer-null-dereference]: dereference of NULL 'sfep'
xfsprogs-6.17.0/libxfs/xfs_dir2_block.c:1127:12: branch_false: following 'false' branch...
xfsprogs-6.17.0/libxfs/xfs_dir2_block.c:1132:17: branch_false: ...to here
xfsprogs-6.17.0/libxfs/xfs_dir2_block.c:1133:12: branch_false: following 'false' branch...
xfsprogs-6.17.0/libxfs/xfs_dir2_block.c:1135:9: branch_false: ...to here
xfsprogs-6.17.0/libxfs/xfs_dir2_block.c:1151:12: branch_false: following 'false' branch...
xfsprogs-6.17.0/libxfs/xfs_dir2_block.c:1157:15: branch_false: ...to here
xfsprogs-6.17.0/libxfs/xfs_dir2_block.c:1168:12: branch_false: following 'false' branch...
xfsprogs-6.17.0/libxfs/xfs_dir2_block.c:1174:17: branch_false: ...to here
xfsprogs-6.17.0/libxfs/xfs_dir2_block.c:1205:12: branch_true: following 'true' branch...
xfsprogs-6.17.0/libxfs/xfs_dir2_block.c:1205:12: branch_true: ...to here
xfsprogs-6.17.0/libxfs/xfs_dir2_block.c:1214:16: branch_true: following 'true' branch...
xfsprogs-6.17.0/libxfs/xfs_dir2_block.c:1218:20: branch_true: ...to here
xfsprogs-6.17.0/libxfs/xfs_dir2_block.c:1218:20: branch_true: following 'true' branch (when 'sfep' is NULL)...
xfsprogs-6.17.0/libxfs/xfs_dir2_block.c:1225:21: branch_true: ...to here
xfsprogs-6.17.0/libxfs/xfs_dir2_block.c:1242:32: danger: dereference of NULL 'sfep'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def166]
xfsprogs-6.17.0/libxfs/xfs_dir2_leaf.c:1341:57: warning[-Wanalyzer-null-dereference]: dereference of NULL 'dbp'
xfsprogs-6.17.0/libxfs/xfs_dir2_leaf.c:1272:34: release_memory: 'dbp' is NULL
xfsprogs-6.17.0/libxfs/xfs_dir2_leaf.c:1292:12: branch_false: following 'false' branch...
xfsprogs-6.17.0/libxfs/xfs_dir2_leaf.c:1295:9: branch_false: ...to here
xfsprogs-6.17.0/libxfs/xfs_dir2_leaf.c:1309:14: branch_true: following 'true' branch...
xfsprogs-6.17.0/libxfs/xfs_dir2_leaf.c:1310:25: branch_true: ...to here
xfsprogs-6.17.0/libxfs/xfs_dir2_leaf.c:1309:14: branch_true: following 'true' branch...
xfsprogs-6.17.0/libxfs/xfs_dir2_leaf.c:1315:21: branch_true: ...to here
xfsprogs-6.17.0/libxfs/xfs_dir2_leaf.c:1326:20: branch_false: following 'false' branch...
xfsprogs-6.17.0/libxfs/xfs_dir2_leaf.c:1341:60: branch_false: ...to here
xfsprogs-6.17.0/libxfs/xfs_dir2_leaf.c:1341:60: release_memory: 'dbp' is NULL
xfsprogs-6.17.0/libxfs/xfs_dir2_leaf.c:1341:57: danger: dereference of NULL 'dbp'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def167]
xfsprogs-6.17.0/libxfs/xfs_dir2_node.c:880:57: warning[-Wanalyzer-null-dereference]: dereference of NULL 'curbp'
xfsprogs-6.17.0/libxfs/xfs_dir2_node.c:939:1: enter_function: entry to 'xfs_dir2_leafn_lookup_int'
xfsprogs-6.17.0/libxfs/xfs_dir2_node.c:945:12: branch_false: following 'false' branch...
xfsprogs-6.17.0/libxfs/xfs_dir2_node.c:948:16: branch_false: ...to here
xfsprogs-6.17.0/libxfs/xfs_dir2_node.c:948:16: call_function: calling 'xfs_dir2_leafn_lookup_for_entry' from 'xfs_dir2_leafn_lookup_int'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def168]
xfsprogs-6.17.0/libxfs/xfs_exchmaps.c:878:13: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xfsprogs-6.17.0/libxfs/xfs_exchmaps.c:859:1: enter_function: entry to 'xmi_ensure_delta_nextents'
xfsprogs-6.17.0/libxfs/xfs_exchmaps.c:866:40: call_function: calling 'xfs_ifork_ptr' from 'xmi_ensure_delta_nextents'
xfsprogs-6.17.0/libxfs/xfs_exchmaps.c:866:40: return_function: returning to 'xmi_ensure_delta_nextents' from 'xfs_ifork_ptr'
xfsprogs-6.17.0/libxfs/xfs_exchmaps.c:870:12: branch_false: following 'false' branch (when 'delta >= 0')...
xfsprogs-6.17.0/libxfs/xfs_exchmaps.c:878:13: branch_false: ...to here
xfsprogs-6.17.0/libxfs/xfs_exchmaps.c:878:13: danger: dereference of NULL 'xfs_ifork_ptr(ip, <unknown>)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def169]
xfsprogs-6.17.0/libxfs/xfs_inode_fork.c:62:17: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xfsprogs-6.17.0/libxfs/xfs_inode_fork.c:54:12: branch_true: following 'true' branch (when 'size != 0')...
xfsprogs-6.17.0/libxfs/xfs_inode_fork.c:55:34: branch_true: ...to here
xfsprogs-6.17.0/libxfs/xfs_inode_fork.c:59:20: branch_false: following 'false' branch...
xfsprogs-6.17.0/libxfs/xfs_inode_fork.c:62:17: branch_false: ...to here
xfsprogs-6.17.0/libxfs/xfs_inode_fork.c:62:17: danger: dereference of NULL 'xfs_ifork_ptr(ip, whichfork)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def170]
xfsprogs-6.17.0/libxfs/xfs_inode_fork.c:64:17: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xfsprogs-6.17.0/libxfs/xfs_inode_fork.c:54:12: branch_false: following 'false' branch (when 'size == 0')...
xfsprogs-6.17.0/libxfs/xfs_inode_fork.c:64:17: branch_false: ...to here
xfsprogs-6.17.0/libxfs/xfs_inode_fork.c:64:17: danger: dereference of NULL 'xfs_ifork_ptr(ip, whichfork)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def171]
xfsprogs-6.17.0/libxfs/xfs_inode_fork.c:135:9: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xfsprogs-6.17.0/libxfs/xfs_inode_fork.c:125:12: branch_false: following 'false' branch...
xfsprogs-6.17.0/libxfs/xfs_inode_fork.c:135:9: danger: dereference of NULL 'xfs_ifork_ptr(ip, whichfork)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def172]
xfsprogs-6.17.0/libxfs/xfs_inode_fork.c:199:13: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def173]
xfsprogs-6.17.0/libxfs/xfs_inode_fork.c:457:44: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def174]
xfsprogs-6.17.0/libxfs/xfs_inode_fork.c:753:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xfsprogs-6.17.0/libxfs/xfs_inode_fork.c:749:12: branch_false: following 'false' branch (when 'whichfork != 2')...
xfsprogs-6.17.0/libxfs/xfs_inode_fork.c:753:19: branch_false: ...to here
xfsprogs-6.17.0/libxfs/xfs_inode_fork.c:753:19: danger: dereference of NULL 'xfs_ifork_ptr(ip, whichfork)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def175]
xfsprogs-6.17.0/libxfs/xfs_inode_fork.h:84:16: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xfsprogs-6.17.0/libxfs/xfs_bmap.c:5472:1: enter_function: entry to 'libxfs_bunmapi'
xfsprogs-6.17.0/libxfs/xfs_bmap.c:5483:17: call_function: calling '__xfs_bunmapi' from 'libxfs_bunmapi'
Error: COMPILER_WARNING: [#def176]
xfsprogs-6.17.0/libxfs/xfs_log_rlimit.c: scope_hint: In function 'libxfs_log_get_max_trans_res'
xfsprogs-6.17.0/libxfs/xfs_log_rlimit.c:162:33: warning[-Wunused-but-set-variable=]: variable 'i' set but not used
Error: GCC_ANALYZER_WARNING (CWE-457): [#def177]
xfsprogs-6.17.0/libxfs/xfs_rmap.c:361:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*irec.rm_flags'
xfsprogs-6.17.0/libxfs/xfs_rmap.c:2549:1: enter_function: entry to 'xfs_rmap_query_range_helper'
xfsprogs-6.17.0/libxfs/xfs_rmap.c:2558:14: call_function: calling 'xfs_rmap_btrec_to_irec' from 'xfs_rmap_query_range_helper'
xfsprogs-6.17.0/libxfs/xfs_rmap.c:2558:14: return_function: returning to 'xfs_rmap_query_range_helper' from 'xfs_rmap_btrec_to_irec'
xfsprogs-6.17.0/libxfs/xfs_rmap.c:2559:12: branch_false: following 'false' branch...
xfsprogs-6.17.0/libxfs/xfs_rmap.c:2562:24: branch_false: ...to here
xfsprogs-6.17.0/libxfs/xfs_rmap.c:2562:24: call_function: calling 'xfs_rmap_complain_bad_rec' from 'xfs_rmap_query_range_helper'
Error: GCC_ANALYZER_WARNING (CWE-457): [#def178]
xfsprogs-6.17.0/logprint/log_misc.c:1419:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘len’
xfsprogs-6.17.0/logprint/log_misc.c:1337:6: enter_function: entry to ‘xfs_log_print’
xfsprogs-6.17.0/logprint/log_misc.c:1360:8: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/logprint/log_misc.c:1364:8: branch_false: ...to here
xfsprogs-6.17.0/logprint/log_misc.c:1364:8: branch_true: following ‘true’ branch (when ‘print_block_start == -1’)...
xfsprogs-6.17.0/logprint/log_misc.c:1365:9: branch_true: ...to here
xfsprogs-6.17.0/logprint/log_misc.c:1368:5: call_function: calling ‘xlog_print_lseek’ from ‘xfs_log_print’
xfsprogs-6.17.0/logprint/log_misc.c:1368:5: return_function: returning to ‘xfs_log_print’ from ‘xlog_print_lseek’
xfsprogs-6.17.0/logprint/log_misc.c:1372:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/logprint/log_misc.c:1377:13: branch_false: ...to here
xfsprogs-6.17.0/logprint/log_misc.c:1386:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/logprint/log_misc.c:1396:13: branch_false: ...to here
xfsprogs-6.17.0/logprint/log_misc.c:1396:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/logprint/log_misc.c:1396:13: branch_false: ...to here
xfsprogs-6.17.0/logprint/log_misc.c:1396:13: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/logprint/log_misc.c:1418:13: branch_false: ...to here
xfsprogs-6.17.0/logprint/log_misc.c:1418:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/logprint/log_misc.c:1419:17: branch_true: ...to here
xfsprogs-6.17.0/logprint/log_misc.c:1419:17: danger: use of uninitialized value ‘len’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def179]
xfsprogs-6.17.0/logprint/log_misc.c:1423:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘len’
xfsprogs-6.17.0/logprint/log_misc.c:1337:6: enter_function: entry to ‘xfs_log_print’
xfsprogs-6.17.0/logprint/log_misc.c:1360:8: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/logprint/log_misc.c:1364:8: branch_false: ...to here
xfsprogs-6.17.0/logprint/log_misc.c:1364:8: branch_true: following ‘true’ branch (when ‘print_block_start == -1’)...
xfsprogs-6.17.0/logprint/log_misc.c:1365:9: branch_true: ...to here
xfsprogs-6.17.0/logprint/log_misc.c:1368:5: call_function: calling ‘xlog_print_lseek’ from ‘xfs_log_print’
xfsprogs-6.17.0/logprint/log_misc.c:1368:5: return_function: returning to ‘xfs_log_print’ from ‘xlog_print_lseek’
xfsprogs-6.17.0/logprint/log_misc.c:1372:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/logprint/log_misc.c:1377:13: branch_false: ...to here
xfsprogs-6.17.0/logprint/log_misc.c:1386:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/logprint/log_misc.c:1396:13: branch_false: ...to here
xfsprogs-6.17.0/logprint/log_misc.c:1396:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/logprint/log_misc.c:1396:13: branch_false: ...to here
xfsprogs-6.17.0/logprint/log_misc.c:1396:13: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/logprint/log_misc.c:1418:13: branch_false: ...to here
xfsprogs-6.17.0/logprint/log_misc.c:1418:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/logprint/log_misc.c:1423:17: branch_false: ...to here
xfsprogs-6.17.0/logprint/log_misc.c:1423:17: danger: use of uninitialized value ‘len’ here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def180]
xfsprogs-6.17.0/logprint/log_redo.c:854:17: warning[-Wanalyzer-malloc-leak]: leak of ‘src_f’
xfsprogs-6.17.0/logprint/log_redo.c:809:12: branch_false: following ‘false’ branch (when ‘src_len == 40’)...
xfsprogs-6.17.0/logprint/log_redo.c:819:17: branch_false: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:819:17: acquire_memory: allocated here
xfsprogs-6.17.0/logprint/log_redo.c:820:12: branch_false: following ‘false’ branch (when ‘src_f’ is non-NULL)...
xfsprogs-6.17.0/logprint/log_redo.c:825:9: branch_false: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:828:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/logprint/log_redo.c:834:17: branch_false: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:850:12: branch_true: following ‘true’ branch (when ‘name_len != 0’)...
xfsprogs-6.17.0/logprint/log_redo.c:851:24: branch_true: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:854:17: throw: if ‘xlog_print_op_header’ throws an exception...
xfsprogs-6.17.0/logprint/log_redo.c:854:17: danger: ‘src_f’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def181]
xfsprogs-6.17.0/logprint/log_redo.c:866:17: warning[-Wanalyzer-malloc-leak]: leak of ‘src_f’
xfsprogs-6.17.0/logprint/log_redo.c:809:12: branch_false: following ‘false’ branch (when ‘src_len == 40’)...
xfsprogs-6.17.0/logprint/log_redo.c:819:17: branch_false: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:819:17: acquire_memory: allocated here
xfsprogs-6.17.0/logprint/log_redo.c:820:12: branch_false: following ‘false’ branch (when ‘src_f’ is non-NULL)...
xfsprogs-6.17.0/logprint/log_redo.c:825:9: branch_false: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:828:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/logprint/log_redo.c:829:33: branch_true: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:850:12: branch_false: following ‘false’ branch (when ‘name_len == 0’)...
xfsprogs-6.17.0/logprint/log_redo.c:862:12: branch_false: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:862:12: branch_true: following ‘true’ branch (when ‘new_name_len != 0’)...
xfsprogs-6.17.0/logprint/log_redo.c:863:24: branch_true: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:866:17: throw: if ‘xlog_print_op_header’ throws an exception...
xfsprogs-6.17.0/logprint/log_redo.c:866:17: danger: ‘src_f’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def182]
xfsprogs-6.17.0/logprint/log_redo.c:878:17: warning[-Wanalyzer-malloc-leak]: leak of ‘src_f’
xfsprogs-6.17.0/logprint/log_redo.c:809:12: branch_false: following ‘false’ branch (when ‘src_len == 40’)...
xfsprogs-6.17.0/logprint/log_redo.c:819:17: branch_false: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:819:17: acquire_memory: allocated here
xfsprogs-6.17.0/logprint/log_redo.c:820:12: branch_false: following ‘false’ branch (when ‘src_f’ is non-NULL)...
xfsprogs-6.17.0/logprint/log_redo.c:825:9: branch_false: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:828:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/logprint/log_redo.c:834:17: branch_false: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:850:12: branch_true: following ‘true’ branch (when ‘name_len != 0’)...
xfsprogs-6.17.0/logprint/log_redo.c:851:24: branch_true: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:862:12: branch_false: following ‘false’ branch (when ‘new_name_len == 0’)...
xfsprogs-6.17.0/logprint/log_redo.c:874:12: branch_false: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:874:12: branch_true: following ‘true’ branch (when ‘value_len != 0’)...
xfsprogs-6.17.0/logprint/log_redo.c:875:24: branch_true: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:878:17: throw: if ‘xlog_print_op_header’ throws an exception...
xfsprogs-6.17.0/logprint/log_redo.c:878:17: danger: ‘src_f’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def183]
xfsprogs-6.17.0/logprint/log_redo.c:890:17: warning[-Wanalyzer-malloc-leak]: leak of ‘src_f’
xfsprogs-6.17.0/logprint/log_redo.c:809:12: branch_false: following ‘false’ branch (when ‘src_len == 40’)...
xfsprogs-6.17.0/logprint/log_redo.c:819:17: branch_false: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:819:17: acquire_memory: allocated here
xfsprogs-6.17.0/logprint/log_redo.c:820:12: branch_false: following ‘false’ branch (when ‘src_f’ is non-NULL)...
xfsprogs-6.17.0/logprint/log_redo.c:825:9: branch_false: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:828:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/logprint/log_redo.c:829:33: branch_true: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:850:12: branch_true: following ‘true’ branch (when ‘name_len != 0’)...
xfsprogs-6.17.0/logprint/log_redo.c:851:24: branch_true: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:862:12: branch_false: following ‘false’ branch (when ‘new_name_len == 0’)...
xfsprogs-6.17.0/logprint/log_redo.c:874:12: branch_false: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:874:12: branch_true: following ‘true’ branch (when ‘value_len != 0’)...
xfsprogs-6.17.0/logprint/log_redo.c:875:24: branch_true: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:886:12: branch_true: following ‘true’ branch (when ‘new_value_len != 0’)...
xfsprogs-6.17.0/logprint/log_redo.c:887:24: branch_true: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:890:17: throw: if ‘xlog_print_op_header’ throws an exception...
xfsprogs-6.17.0/logprint/log_redo.c:890:17: danger: ‘src_f’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def184]
xfsprogs-6.17.0/logprint/log_redo.c:917:9: warning[-Wanalyzer-malloc-leak]: leak of ‘src_f’
xfsprogs-6.17.0/logprint/log_redo.c:790:1: enter_function: entry to ‘xlog_print_trans_attri’
xfsprogs-6.17.0/logprint/log_redo.c:809:12: branch_false: following ‘false’ branch (when ‘src_len == 40’)...
xfsprogs-6.17.0/logprint/log_redo.c:819:17: branch_false: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:819:17: acquire_memory: allocated here
xfsprogs-6.17.0/logprint/log_redo.c:820:12: branch_false: following ‘false’ branch (when ‘src_f’ is non-NULL)...
xfsprogs-6.17.0/logprint/log_redo.c:825:9: branch_false: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:828:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/logprint/log_redo.c:834:17: branch_false: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:850:12: branch_true: following ‘true’ branch (when ‘name_len != 0’)...
xfsprogs-6.17.0/logprint/log_redo.c:851:24: branch_true: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:856:25: call_function: calling ‘xlog_print_trans_attri_name’ from ‘xlog_print_trans_attri’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def185]
xfsprogs-6.17.0/logprint/log_redo.c:934:9: warning[-Wanalyzer-malloc-leak]: leak of ‘src_f’
xfsprogs-6.17.0/logprint/log_redo.c:790:1: enter_function: entry to ‘xlog_print_trans_attri’
xfsprogs-6.17.0/logprint/log_redo.c:809:12: branch_false: following ‘false’ branch (when ‘src_len == 40’)...
xfsprogs-6.17.0/logprint/log_redo.c:819:17: branch_false: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:819:17: acquire_memory: allocated here
xfsprogs-6.17.0/logprint/log_redo.c:820:12: branch_false: following ‘false’ branch (when ‘src_f’ is non-NULL)...
xfsprogs-6.17.0/logprint/log_redo.c:825:9: branch_false: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:828:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/logprint/log_redo.c:834:17: branch_false: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:850:12: branch_true: following ‘true’ branch (when ‘name_len != 0’)...
xfsprogs-6.17.0/logprint/log_redo.c:851:24: branch_true: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:862:12: branch_false: following ‘false’ branch (when ‘new_name_len == 0’)...
xfsprogs-6.17.0/logprint/log_redo.c:874:12: branch_false: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:874:12: branch_true: following ‘true’ branch (when ‘value_len != 0’)...
xfsprogs-6.17.0/logprint/log_redo.c:875:24: branch_true: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:880:25: call_function: calling ‘xlog_print_trans_attri_value’ from ‘xlog_print_trans_attri’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def186]
xfsprogs-6.17.0/logprint/log_redo.c:999:17: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
xfsprogs-6.17.0/logprint/log_redo.c:942:1: enter_function: entry to ‘xlog_recover_print_attri’
xfsprogs-6.17.0/logprint/log_redo.c:966:50: acquire_memory: allocated here
xfsprogs-6.17.0/logprint/log_redo.c:966:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
xfsprogs-6.17.0/logprint/log_redo.c:971:13: branch_false: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:971:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/logprint/log_redo.c:974:13: call_function: inlined call to ‘xfs_attr_log_item_op’ from ‘xlog_recover_print_attri’
xfsprogs-6.17.0/logprint/log_redo.c:996:12: branch_true: following ‘true’ branch (when ‘name_len != 0’)...
xfsprogs-6.17.0/logprint/log_redo.c:998:24: branch_true: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:999:17: throw: if ‘print_or_dump’ throws an exception...
xfsprogs-6.17.0/logprint/log_redo.c:999:17: danger: ‘f’ leaks here; was allocated at [(2)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def187]
xfsprogs-6.17.0/logprint/log_redo.c:1007:17: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
xfsprogs-6.17.0/logprint/log_redo.c:942:1: enter_function: entry to ‘xlog_recover_print_attri’
xfsprogs-6.17.0/logprint/log_redo.c:966:50: acquire_memory: allocated here
xfsprogs-6.17.0/logprint/log_redo.c:966:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
xfsprogs-6.17.0/logprint/log_redo.c:971:13: branch_false: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:971:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/logprint/log_redo.c:974:13: call_function: inlined call to ‘xfs_attr_log_item_op’ from ‘xlog_recover_print_attri’
xfsprogs-6.17.0/logprint/log_redo.c:996:12: branch_false: following ‘false’ branch (when ‘name_len == 0’)...
xfsprogs-6.17.0/logprint/log_redo.c:1004:12: branch_false: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:1004:12: branch_true: following ‘true’ branch (when ‘new_name_len != 0’)...
xfsprogs-6.17.0/logprint/log_redo.c:1005:17: branch_true: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:1007:17: throw: if ‘print_or_dump’ throws an exception...
xfsprogs-6.17.0/logprint/log_redo.c:1007:17: danger: ‘f’ leaks here; was allocated at [(2)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def188]
xfsprogs-6.17.0/logprint/log_redo.c:1017:17: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
xfsprogs-6.17.0/logprint/log_redo.c:942:1: enter_function: entry to ‘xlog_recover_print_attri’
xfsprogs-6.17.0/logprint/log_redo.c:966:50: acquire_memory: allocated here
xfsprogs-6.17.0/logprint/log_redo.c:966:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
xfsprogs-6.17.0/logprint/log_redo.c:971:13: branch_false: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:971:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/logprint/log_redo.c:974:13: call_function: inlined call to ‘xfs_attr_log_item_op’ from ‘xlog_recover_print_attri’
xfsprogs-6.17.0/logprint/log_redo.c:996:12: branch_false: following ‘false’ branch (when ‘name_len == 0’)...
xfsprogs-6.17.0/logprint/log_redo.c:1004:12: branch_false: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:1004:12: branch_false: following ‘false’ branch (when ‘new_name_len == 0’)...
xfsprogs-6.17.0/logprint/log_redo.c:1012:12: branch_false: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:1012:12: branch_true: following ‘true’ branch (when ‘value_len != 0’)...
xfsprogs-6.17.0/logprint/log_redo.c:1013:31: branch_true: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:1017:17: throw: if ‘print_or_dump’ throws an exception...
xfsprogs-6.17.0/logprint/log_redo.c:1017:17: danger: ‘f’ leaks here; was allocated at [(2)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def189]
xfsprogs-6.17.0/logprint/log_redo.c:1026:17: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
xfsprogs-6.17.0/logprint/log_redo.c:942:1: enter_function: entry to ‘xlog_recover_print_attri’
xfsprogs-6.17.0/logprint/log_redo.c:966:50: acquire_memory: allocated here
xfsprogs-6.17.0/logprint/log_redo.c:966:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
xfsprogs-6.17.0/logprint/log_redo.c:971:13: branch_false: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:971:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/logprint/log_redo.c:974:13: call_function: inlined call to ‘xfs_attr_log_item_op’ from ‘xlog_recover_print_attri’
xfsprogs-6.17.0/logprint/log_redo.c:996:12: branch_false: following ‘false’ branch (when ‘name_len == 0’)...
xfsprogs-6.17.0/logprint/log_redo.c:1004:12: branch_false: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:1004:12: branch_false: following ‘false’ branch (when ‘new_name_len == 0’)...
xfsprogs-6.17.0/logprint/log_redo.c:1012:12: branch_false: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:1012:12: branch_true: following ‘true’ branch (when ‘value_len != 0’)...
xfsprogs-6.17.0/logprint/log_redo.c:1013:31: branch_true: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:1021:12: branch_true: following ‘true’ branch (when ‘new_value_len != 0’)...
xfsprogs-6.17.0/logprint/log_redo.c:1022:31: branch_true: ...to here
xfsprogs-6.17.0/logprint/log_redo.c:1026:17: throw: if ‘print_or_dump’ throws an exception...
xfsprogs-6.17.0/logprint/log_redo.c:1026:17: danger: ‘f’ leaks here; was allocated at [(2)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def190]
xfsprogs-6.17.0/logprint/logprint.c:114:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(x.log.name, 0)’
xfsprogs-6.17.0/logprint/logprint.c:67:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/logprint/logprint.c:72:9: branch_false: ...to here
xfsprogs-6.17.0/logprint/logprint.c:73:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/logprint/logprint.c:77:9: branch_false: ...to here
xfsprogs-6.17.0/logprint/logprint.c:79:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/logprint/logprint.c:80:34: branch_false: ...to here
xfsprogs-6.17.0/logprint/logprint.c:108:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/logprint/logprint.c:109:27: acquire_resource: opened here
xfsprogs-6.17.0/logprint/logprint.c:109:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/logprint/logprint.c:114:17: branch_false: ...to here
xfsprogs-6.17.0/logprint/logprint.c:114:17: danger: ‘open(x.log.name, 0)’ leaks here; was opened at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-617): [#def191]
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:53:9: warning[-Wanalyzer-tainted-assertion]: use of attacked-controlled value in condition for assertion
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:418:1: enter_function: entry to ‘restore_v2’
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:434:12: branch_false: following ‘false’ branch (when ‘block_buffer’ is non-NULL)...
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:437:13: branch_false: ...to here
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:437:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:440:13: branch_false: ...to here
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:443:17: call_function: calling ‘fatal’ from ‘restore_v2’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def192]
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:133:13: warning[-Wanalyzer-null-argument]: use of NULL ‘path’ where non-null expected
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:536:1: enter_function: entry to ‘main’
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:581:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:585:14: branch_false: ...to here
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:594:12: branch_true: following ‘true’ branch (when the strings are equal)...
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:595:17: branch_true: ...to here
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:596:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:604:13: branch_false: ...to here
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:604:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:607:17: branch_false: ...to here
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:609:20: branch_false: following ‘false’ branch (when ‘logdev_path’ is NULL)...
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:611:17: branch_false: ...to here
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:623:9: call_function: calling ‘read_header_v1’ from ‘main’
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:623:9: return_function: returning to ‘main’ from ‘read_header_v1’
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:635:9: call_function: calling ‘open_device’ from ‘main’
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:635:9: return_function: returning to ‘main’ from ‘open_device’
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:642:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:643:17: branch_true: ...to here
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:643:17: call_function: calling ‘open_device’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def193]
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:277:9: warning[-Wanalyzer-malloc-leak]: leak of ‘metablock’
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:256:40: acquire_memory: allocated here
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:257:12: branch_false: following ‘false’ branch (when ‘metablock’ is non-NULL)...
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:260:20: branch_false: ...to here
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:261:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:264:9: branch_false: ...to here
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:267:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:271:13: branch_false: ...to here
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:271:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:274:45: branch_false: ...to here
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:274:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:277:9: branch_false: ...to here
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:277:9: throw: if ‘libxfs_sb_from_disk’ throws an exception...
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:277:9: danger: ‘metablock’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def194]
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:450:9: warning[-Wanalyzer-malloc-leak]: leak of ‘block_buffer’
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:433:24: acquire_memory: allocated here
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:434:12: branch_false: following ‘false’ branch (when ‘block_buffer’ is non-NULL)...
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:437:13: branch_false: ...to here
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:437:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:440:13: branch_false: ...to here
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:440:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:447:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:450:9: branch_false: ...to here
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:450:9: throw: if ‘libxfs_sb_from_disk’ throws an exception...
xfsprogs-6.17.0/mdrestore/xfs_mdrestore.c:450:9: danger: ‘block_buffer’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def195]
xfsprogs-6.17.0/mkfs/proto.c:1487:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘ip’
xfsprogs-6.17.0/mkfs/proto.c:1784:1: enter_function: entry to ‘walk_dir’
xfsprogs-6.17.0/mkfs/proto.c:1798:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/mkfs/proto.c:1798:12: branch_false: ...to here
xfsprogs-6.17.0/mkfs/proto.c:1803:16: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/mkfs/proto.c:1804:28: branch_true: ...to here
xfsprogs-6.17.0/mkfs/proto.c:1808:17: call_function: calling ‘handle_direntry’ from ‘walk_dir’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def196]
xfsprogs-6.17.0/mkfs/proto.c:1581:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘ip’
xfsprogs-6.17.0/mkfs/proto.c:1784:1: enter_function: entry to ‘walk_dir’
xfsprogs-6.17.0/mkfs/proto.c:1798:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/mkfs/proto.c:1798:12: branch_false: ...to here
xfsprogs-6.17.0/mkfs/proto.c:1803:16: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/mkfs/proto.c:1804:28: branch_true: ...to here
xfsprogs-6.17.0/mkfs/proto.c:1808:17: call_function: calling ‘handle_direntry’ from ‘walk_dir’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def197]
xfsprogs-6.17.0/mkfs/proto.c:1653:29: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path_buf, 2228224)’
xfsprogs-6.17.0/mkfs/proto.c:1642:18: acquire_resource: opened here
xfsprogs-6.17.0/mkfs/proto.c:1643:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/mkfs/proto.c:1653:29: branch_false: ...to here
xfsprogs-6.17.0/mkfs/proto.c:1653:14: throw: if ‘openat’ throws an exception...
xfsprogs-6.17.0/mkfs/proto.c:1653:29: danger: ‘open(path_buf, 2228224)’ leaks here; was opened at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def198]
xfsprogs-6.17.0/mkfs/proto.c:1803:25: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(path_buf)’
xfsprogs-6.17.0/mkfs/proto.c:1798:20: acquire_memory: allocated here
xfsprogs-6.17.0/mkfs/proto.c:1798:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/mkfs/proto.c:1798:12: branch_false: ...to here
xfsprogs-6.17.0/mkfs/proto.c:1803:25: throw: if ‘readdir’ throws an exception...
xfsprogs-6.17.0/mkfs/proto.c:1803:25: danger: ‘opendir(path_buf)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def199]
xfsprogs-6.17.0/mkfs/proto.c:1852:27: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path_buf, 393216)’
xfsprogs-6.17.0/mkfs/proto.c:1814:1: enter_function: entry to ‘populate_from_dir’
xfsprogs-6.17.0/mkfs/proto.c:1833:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/mkfs/proto.c:1836:13: branch_false: ...to here
xfsprogs-6.17.0/mkfs/proto.c:1836:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/mkfs/proto.c:1841:14: branch_false: ...to here
xfsprogs-6.17.0/mkfs/proto.c:1841:14: acquire_resource: opened here
xfsprogs-6.17.0/mkfs/proto.c:1842:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/mkfs/proto.c:1852:27: branch_false: ...to here
xfsprogs-6.17.0/mkfs/proto.c:1857:14: call_function: calling ‘getres’ from ‘populate_from_dir’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def200]
xfsprogs-6.17.0/mkfs/xfs_mkfs.c:1518:15: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
xfsprogs-6.17.0/mkfs/xfs_mkfs.c:5465:1: enter_function: entry to ‘prepare_devices’
xfsprogs-6.17.0/mkfs/xfs_mkfs.c:5482:12: branch_true: following ‘true’ branch (when ‘clear_stale != 0’)...
xfsprogs-6.17.0/mkfs/xfs_mkfs.c:5483:17: branch_true: ...to here
xfsprogs-6.17.0/mkfs/xfs_mkfs.c:5483:17: call_function: calling ‘zero_old_xfs_structures’ from ‘prepare_devices’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def201]
xfsprogs-6.17.0/mkfs/xfs_mkfs.c:5738:17: warning[-Wanalyzer-malloc-leak]: leak of ‘xi.data.name’
xfsprogs-6.17.0/mkfs/xfs_mkfs.c:5912:1: enter_function: entry to ‘main’
xfsprogs-6.17.0/mkfs/xfs_mkfs.c:6058:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/mkfs/xfs_mkfs.c:6061:19: branch_false: ...to here
xfsprogs-6.17.0/mkfs/xfs_mkfs.c:6061:19: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/mkfs/xfs_mkfs.c:6062:43: branch_true: ...to here
xfsprogs-6.17.0/mkfs/xfs_mkfs.c:6062:32: call_function: calling ‘getstr’ from ‘main’
xfsprogs-6.17.0/mkfs/xfs_mkfs.c:6062:32: return_function: returning to ‘main’ from ‘getstr’
xfsprogs-6.17.0/mkfs/xfs_mkfs.c:6071:9: call_function: calling ‘cfgfile_parse’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-126): [#def202]
xfsprogs-6.17.0/quota/edit.c:342:25: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
xfsprogs-6.17.0/quota/edit.c:336:16: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/quota/edit.c:337:21: branch_true: ...to here
xfsprogs-6.17.0/quota/edit.c:337:20: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/quota/edit.c:342:25: branch_true: ...to here
xfsprogs-6.17.0/quota/edit.c:342:25: danger: out-of-bounds read from byte 512 till byte 515 but ‘buffer’ ends at byte 512
Error: GCC_ANALYZER_WARNING (CWE-476): [#def203]
xfsprogs-6.17.0/repair/agbtree.c:416:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xfsprogs-6.17.0/repair/agbtree.c:395:1: enter_function: entry to ‘get_inobt_records’
xfsprogs-6.17.0/repair/agbtree.c:406:16: branch_true: following ‘true’ branch (when ‘loaded < nr_wanted’)...
xfsprogs-6.17.0/repair/agbtree.c:413:42: branch_true: ...to here
xfsprogs-6.17.0/repair/agbtree.c:413:42: call_function: calling ‘get_ino_rec’ from ‘get_inobt_records’
xfsprogs-6.17.0/repair/agbtree.c:413:42: return_function: returning to ‘get_inobt_records’ from ‘get_ino_rec’
xfsprogs-6.17.0/repair/agbtree.c:413:17: release_memory: using NULL here
xfsprogs-6.17.0/repair/agbtree.c:416:37: danger: dereference of NULL ‘get_ino_rec(cur, *(struct bt_rebuild *)priv.<U 3c0>.<U 320>.ino_rec)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def204]
xfsprogs-6.17.0/repair/attr_repair.c:62:20: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, (long unsigned int)(*mp.m_sb.sb_blocksize >> 3))’
xfsprogs-6.17.0/repair/attr_repair.c:1316:1: enter_function: entry to ‘process_attributes’
xfsprogs-6.17.0/repair/attr_repair.c:1329:12: branch_false: following ‘false’ branch (when ‘aformat != 1’)...
xfsprogs-6.17.0/repair/attr_repair.c:1333:20: branch_false: ...to here
xfsprogs-6.17.0/repair/attr_repair.c:1333:19: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/attr_repair.c:1335:31: branch_true: ...to here
xfsprogs-6.17.0/repair/attr_repair.c:1335:31: call_function: calling ‘process_longform_attr’ from ‘process_attributes’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def205]
xfsprogs-6.17.0/repair/attr_repair.c:70:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘map’
xfsprogs-6.17.0/repair/attr_repair.c:1316:1: enter_function: entry to ‘process_attributes’
xfsprogs-6.17.0/repair/attr_repair.c:1329:12: branch_false: following ‘false’ branch (when ‘aformat != 1’)...
xfsprogs-6.17.0/repair/attr_repair.c:1333:20: branch_false: ...to here
xfsprogs-6.17.0/repair/attr_repair.c:1333:19: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/attr_repair.c:1335:31: branch_true: ...to here
xfsprogs-6.17.0/repair/attr_repair.c:1335:31: call_function: calling ‘process_longform_attr’ from ‘process_attributes’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def206]
xfsprogs-6.17.0/repair/attr_repair.c:439:23: warning[-Wanalyzer-malloc-leak]: leak of ‘value’
xfsprogs-6.17.0/repair/attr_repair.c:1316:1: enter_function: entry to ‘process_attributes’
xfsprogs-6.17.0/repair/attr_repair.c:1329:12: branch_false: following ‘false’ branch (when ‘aformat != 1’)...
xfsprogs-6.17.0/repair/attr_repair.c:1333:20: branch_false: ...to here
xfsprogs-6.17.0/repair/attr_repair.c:1333:19: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/attr_repair.c:1335:31: branch_true: ...to here
xfsprogs-6.17.0/repair/attr_repair.c:1335:31: call_function: calling ‘process_longform_attr’ from ‘process_attributes’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def207]
xfsprogs-6.17.0/repair/attr_repair.c:471:17: warning[-Wanalyzer-malloc-leak]: leak of ‘value’
xfsprogs-6.17.0/repair/attr_repair.c:1316:1: enter_function: entry to ‘process_attributes’
xfsprogs-6.17.0/repair/attr_repair.c:1329:12: branch_false: following ‘false’ branch (when ‘aformat != 1’)...
xfsprogs-6.17.0/repair/attr_repair.c:1333:20: branch_false: ...to here
xfsprogs-6.17.0/repair/attr_repair.c:1333:19: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/attr_repair.c:1335:31: branch_true: ...to here
xfsprogs-6.17.0/repair/attr_repair.c:1335:31: call_function: calling ‘process_longform_attr’ from ‘process_attributes’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def208]
xfsprogs-6.17.0/repair/attr_repair.c:1282:17: warning[-Wanalyzer-malloc-leak]: leak of ‘valuep’
xfsprogs-6.17.0/repair/attr_repair.c:1316:1: enter_function: entry to ‘process_attributes’
xfsprogs-6.17.0/repair/attr_repair.c:1329:12: branch_true: following ‘true’ branch (when ‘aformat == 1’)...
xfsprogs-6.17.0/repair/attr_repair.c:1330:17: branch_true: ...to here
xfsprogs-6.17.0/repair/attr_repair.c:1330:17: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/attr_repair.c:1332:23: branch_true: ...to here
xfsprogs-6.17.0/repair/attr_repair.c:1332:23: call_function: calling ‘process_shortform_attr’ from ‘process_attributes’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def209]
xfsprogs-6.17.0/repair/attr_repair.c:1291:17: warning[-Wanalyzer-malloc-leak]: leak of ‘valuep’
xfsprogs-6.17.0/repair/attr_repair.c:1316:1: enter_function: entry to ‘process_attributes’
xfsprogs-6.17.0/repair/attr_repair.c:1329:12: branch_true: following ‘true’ branch (when ‘aformat == 1’)...
xfsprogs-6.17.0/repair/attr_repair.c:1330:17: branch_true: ...to here
xfsprogs-6.17.0/repair/attr_repair.c:1330:17: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/attr_repair.c:1332:23: branch_true: ...to here
xfsprogs-6.17.0/repair/attr_repair.c:1332:23: call_function: calling ‘process_shortform_attr’ from ‘process_attributes’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def210]
xfsprogs-6.17.0/repair/attr_repair.c:1292:17: warning[-Wanalyzer-malloc-leak]: leak of ‘valuep’
xfsprogs-6.17.0/repair/attr_repair.c:1316:1: enter_function: entry to ‘process_attributes’
xfsprogs-6.17.0/repair/attr_repair.c:1329:12: branch_true: following ‘true’ branch (when ‘aformat == 1’)...
xfsprogs-6.17.0/repair/attr_repair.c:1330:17: branch_true: ...to here
xfsprogs-6.17.0/repair/attr_repair.c:1330:17: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/attr_repair.c:1332:23: branch_true: ...to here
xfsprogs-6.17.0/repair/attr_repair.c:1332:23: call_function: calling ‘process_shortform_attr’ from ‘process_attributes’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def211]
xfsprogs-6.17.0/repair/da_util.c:67:9: warning[-Wanalyzer-malloc-leak]: leak of ‘map’
xfsprogs-6.17.0/repair/da_util.c:53:12: branch_true: following ‘true’ branch (when ‘nex > 4’)...
xfsprogs-6.17.0/repair/da_util.c:54:23: branch_true: ...to here
xfsprogs-6.17.0/repair/da_util.c:54:23: acquire_memory: allocated here
xfsprogs-6.17.0/repair/da_util.c:55:20: branch_false: following ‘false’ branch (when ‘map’ is non-NULL)...
xfsprogs-6.17.0/repair/da_util.c:63:9: branch_false: ...to here
xfsprogs-6.17.0/repair/da_util.c:63:21: branch_true: following ‘true’ branch (when ‘i < nex’)...
xfsprogs-6.17.0/repair/da_util.c:64:32: branch_true: ...to here
xfsprogs-6.17.0/repair/da_util.c:63:21: branch_true: following ‘true’ branch (when ‘i < nex’)...
xfsprogs-6.17.0/repair/da_util.c:64:32: branch_true: ...to here
xfsprogs-6.17.0/repair/da_util.c:67:9: throw: if ‘libxfs_buf_read_map’ throws an exception...
xfsprogs-6.17.0/repair/da_util.c:67:9: danger: ‘map’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def212]
xfsprogs-6.17.0/repair/dir2.c:100:15: warning[-Wanalyzer-malloc-leak]: leak of ‘oldsfp’
xfsprogs-6.17.0/repair/dir2.c:1480:1: enter_function: entry to ‘process_dir2’
xfsprogs-6.17.0/repair/dir2.c:1507:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/dir2.c:1508:25: branch_true: ...to here
xfsprogs-6.17.0/repair/dir2.c:1507:13: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/dir2.c:1509:23: branch_true: ...to here
xfsprogs-6.17.0/repair/dir2.c:1510:23: call_function: calling ‘process_sf_dir2’ from ‘process_dir2’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def213]
xfsprogs-6.17.0/repair/incore.c:364:17: warning[-Wanalyzer-malloc-leak]: leak of ‘bmap’
xfsprogs-6.17.0/repair/incore.c:359:16: acquire_memory: allocated here
xfsprogs-6.17.0/repair/incore.c:360:12: branch_false: following ‘false’ branch (when ‘bmap’ is non-NULL)...
xfsprogs-6.17.0/repair/incore.c:360:12: branch_false: ...to here
xfsprogs-6.17.0/repair/incore.c:363:21: branch_true: following ‘true’ branch (when ‘i < nr_groups’)...
xfsprogs-6.17.0/repair/incore.c:364:33: branch_true: ...to here
xfsprogs-6.17.0/repair/incore.c:364:17: throw: if ‘btree_init’ throws an exception...
xfsprogs-6.17.0/repair/incore.c:364:17: danger: ‘bmap’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def214]
xfsprogs-6.17.0/repair/incore_ext.c:219:39: warning[-Wanalyzer-malloc-leak]: leak of ‘mk_extent_tree_nodes(startblock, blockcount, 2)’
xfsprogs-6.17.0/repair/incore_ext.c:209:1: enter_function: entry to ‘add_bno_extent’
xfsprogs-6.17.0/repair/incore_ext.c:214:9: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/incore_ext.c:215:9: branch_true: ...to here
xfsprogs-6.17.0/repair/incore_ext.c:215:9: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/incore_ext.c:217:15: branch_true: ...to here
xfsprogs-6.17.0/repair/incore_ext.c:217:15: call_function: calling ‘mk_extent_tree_nodes’ from ‘add_bno_extent’
xfsprogs-6.17.0/repair/incore_ext.c:217:15: return_function: returning to ‘add_bno_extent’ from ‘mk_extent_tree_nodes’
xfsprogs-6.17.0/repair/incore_ext.c:219:39: danger: ‘mk_extent_tree_nodes(startblock, blockcount, 2)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def215]
xfsprogs-6.17.0/repair/incore_ext.c:276:9: warning[-Wanalyzer-malloc-leak]: leak of ‘mk_extent_tree_nodes(startblock, blockcount, 2)’
xfsprogs-6.17.0/repair/incore_ext.c:263:1: enter_function: entry to ‘add_bcnt_extent’
xfsprogs-6.17.0/repair/incore_ext.c:271:9: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/incore_ext.c:272:9: branch_true: ...to here
xfsprogs-6.17.0/repair/incore_ext.c:272:9: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/incore_ext.c:274:15: branch_true: ...to here
xfsprogs-6.17.0/repair/incore_ext.c:274:15: call_function: calling ‘mk_extent_tree_nodes’ from ‘add_bcnt_extent’
xfsprogs-6.17.0/repair/incore_ext.c:274:15: return_function: returning to ‘add_bcnt_extent’ from ‘mk_extent_tree_nodes’
xfsprogs-6.17.0/repair/incore_ext.c:276:9: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/incore_ext.c:282:47: branch_true: ...to here
xfsprogs-6.17.0/repair/incore_ext.c:282:47: throw: if ‘avl_find’ throws an exception...
xfsprogs-6.17.0/repair/incore_ext.c:276:9: danger: ‘mk_extent_tree_nodes(startblock, blockcount, 2)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def216]
xfsprogs-6.17.0/repair/incore_ext.c:624:21: warning[-Wanalyzer-malloc-leak]: leak of ‘mk_rt_extent_tree_nodes(startrtx, rtxlen, 6)’
xfsprogs-6.17.0/repair/incore_ext.c:604:1: enter_function: entry to ‘add_rt_dup_extent’
xfsprogs-6.17.0/repair/incore_ext.c:619:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/incore_ext.c:622:23: call_function: calling ‘mk_rt_extent_tree_nodes’ from ‘add_rt_dup_extent’
xfsprogs-6.17.0/repair/incore_ext.c:622:23: return_function: returning to ‘add_rt_dup_extent’ from ‘mk_rt_extent_tree_nodes’
xfsprogs-6.17.0/repair/incore_ext.c:624:21: danger: ‘mk_rt_extent_tree_nodes(startrtx, rtxlen, 6)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def217]
xfsprogs-6.17.0/repair/incore_ext.c:679:13: warning[-Wanalyzer-malloc-leak]: leak of ‘mk_rt_extent_tree_nodes(new_startrtx, new_rtxlen, 6)’
xfsprogs-6.17.0/repair/incore_ext.c:604:1: enter_function: entry to ‘add_rt_dup_extent’
xfsprogs-6.17.0/repair/incore_ext.c:633:9: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/incore_ext.c:677:15: call_function: calling ‘mk_rt_extent_tree_nodes’ from ‘add_rt_dup_extent’
xfsprogs-6.17.0/repair/incore_ext.c:677:15: return_function: returning to ‘add_rt_dup_extent’ from ‘mk_rt_extent_tree_nodes’
xfsprogs-6.17.0/repair/incore_ext.c:679:13: danger: ‘mk_rt_extent_tree_nodes(new_startrtx, new_rtxlen, 6)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def218]
xfsprogs-6.17.0/repair/incore_ino.c:35:17: warning[-Wanalyzer-malloc-leak]: leak of ‘irec’
xfsprogs-6.17.0/repair/incore_ino.c:241:1: enter_function: entry to ‘alloc_ino_node’
xfsprogs-6.17.0/repair/incore_ino.c:247:16: acquire_memory: allocated here
xfsprogs-6.17.0/repair/incore_ino.c:248:12: branch_false: following ‘false’ branch (when ‘irec’ is non-NULL)...
xfsprogs-6.17.0/repair/incore_ino.c:251:9: branch_false: ...to here
xfsprogs-6.17.0/repair/incore_ino.c:265:33: call_function: calling ‘alloc_nlink_array’ from ‘alloc_ino_node’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def219]
xfsprogs-6.17.0/repair/incore_ino.c:223:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
xfsprogs-6.17.0/repair/incore_ino.c:241:1: enter_function: entry to ‘alloc_ino_node’
xfsprogs-6.17.0/repair/incore_ino.c:248:12: branch_false: following ‘false’ branch (when ‘irec’ is non-NULL)...
xfsprogs-6.17.0/repair/incore_ino.c:251:9: branch_false: ...to here
xfsprogs-6.17.0/repair/incore_ino.c:265:33: call_function: calling ‘alloc_nlink_array’ from ‘alloc_ino_node’
xfsprogs-6.17.0/repair/incore_ino.c:265:33: return_function: returning to ‘alloc_ino_node’ from ‘alloc_nlink_array’
xfsprogs-6.17.0/repair/incore_ino.c:266:24: call_function: calling ‘alloc_ftypes_array’ from ‘alloc_ino_node’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def220]
xfsprogs-6.17.0/repair/incore_ino.c:223:17: warning[-Wanalyzer-malloc-leak]: leak of ‘irec’
xfsprogs-6.17.0/repair/incore_ino.c:241:1: enter_function: entry to ‘alloc_ino_node’
xfsprogs-6.17.0/repair/incore_ino.c:247:16: acquire_memory: allocated here
xfsprogs-6.17.0/repair/incore_ino.c:248:12: branch_false: following ‘false’ branch (when ‘irec’ is non-NULL)...
xfsprogs-6.17.0/repair/incore_ino.c:251:9: branch_false: ...to here
xfsprogs-6.17.0/repair/incore_ino.c:265:33: call_function: calling ‘alloc_nlink_array’ from ‘alloc_ino_node’
xfsprogs-6.17.0/repair/incore_ino.c:265:33: return_function: returning to ‘alloc_ino_node’ from ‘alloc_nlink_array’
xfsprogs-6.17.0/repair/incore_ino.c:266:24: call_function: calling ‘alloc_ftypes_array’ from ‘alloc_ino_node’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def221]
xfsprogs-6.17.0/repair/phase1.c:26:22: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_ag_buf(524288)’
xfsprogs-6.17.0/repair/phase1.c:40:1: enter_function: entry to ‘phase1’
xfsprogs-6.17.0/repair/phase1.c:60:17: call_function: calling ‘alloc_ag_buf’ from ‘phase1’
xfsprogs-6.17.0/repair/phase1.c:60:17: return_function: returning to ‘phase1’ from ‘alloc_ag_buf’
xfsprogs-6.17.0/repair/phase1.c:63:16: throw: if ‘get_sb’ throws an exception...
xfsprogs-6.17.0/repair/phase1.c:26:22: danger: ‘alloc_ag_buf(524288)’ leaks here; was allocated at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def222]
xfsprogs-6.17.0/repair/phase3.c:167:17: warning[-Wanalyzer-malloc-leak]: leak of ‘counts’
xfsprogs-6.17.0/repair/phase3.c:153:18: acquire_memory: allocated here
xfsprogs-6.17.0/repair/phase3.c:154:12: branch_false: following ‘false’ branch (when ‘counts’ is non-NULL)...
xfsprogs-6.17.0/repair/phase3.c:154:12: branch_false: ...to here
xfsprogs-6.17.0/repair/phase3.c:167:17: throw: if ‘create_work_queue’ throws an exception...
xfsprogs-6.17.0/repair/phase3.c:167:17: danger: ‘counts’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def223]
xfsprogs-6.17.0/repair/phase3.c:170:25: warning[-Wanalyzer-malloc-leak]: leak of ‘counts’
xfsprogs-6.17.0/repair/phase3.c:153:18: acquire_memory: allocated here
xfsprogs-6.17.0/repair/phase3.c:154:12: branch_false: following ‘false’ branch (when ‘counts’ is non-NULL)...
xfsprogs-6.17.0/repair/phase3.c:154:12: branch_false: ...to here
xfsprogs-6.17.0/repair/phase3.c:169:29: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/phase3.c:170:74: branch_true: ...to here
xfsprogs-6.17.0/repair/phase3.c:170:25: throw: if ‘queue_work’ throws an exception...
xfsprogs-6.17.0/repair/phase3.c:170:25: danger: ‘counts’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def224]
xfsprogs-6.17.0/repair/phase3.c:172:17: warning[-Wanalyzer-malloc-leak]: leak of ‘counts’
xfsprogs-6.17.0/repair/phase3.c:153:18: acquire_memory: allocated here
xfsprogs-6.17.0/repair/phase3.c:154:12: branch_false: following ‘false’ branch (when ‘counts’ is non-NULL)...
xfsprogs-6.17.0/repair/phase3.c:154:12: branch_false: ...to here
xfsprogs-6.17.0/repair/phase3.c:169:29: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/phase3.c:172:17: branch_false: ...to here
xfsprogs-6.17.0/repair/phase3.c:172:17: throw: if ‘destroy_work_queue’ throws an exception...
xfsprogs-6.17.0/repair/phase3.c:172:17: danger: ‘counts’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def225]
xfsprogs-6.17.0/repair/phase6.c:137:18: warning[-Wanalyzer-malloc-leak]: leak of ‘freetab’
xfsprogs-6.17.0/repair/phase6.c:3286:1: enter_function: entry to ‘do_dir_inode’
xfsprogs-6.17.0/repair/phase6.c:3294:21: branch_true: following ‘true’ branch (when ‘i != 64’)...
xfsprogs-6.17.0/repair/phase6.c:3295:21: call_function: inlined call to ‘inode_isadir’ from ‘do_dir_inode’
xfsprogs-6.17.0/repair/phase6.c:3295:20: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/phase6.c:3296:43: branch_true: ...to here
xfsprogs-6.17.0/repair/phase6.c:3296:25: call_function: calling ‘process_dir_inode’ from ‘do_dir_inode’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def226]
xfsprogs-6.17.0/repair/phase6.c:142:19: warning[-Wanalyzer-malloc-leak]: leak of ‘freetab’
xfsprogs-6.17.0/repair/phase6.c:3286:1: enter_function: entry to ‘do_dir_inode’
xfsprogs-6.17.0/repair/phase6.c:3294:21: branch_true: following ‘true’ branch (when ‘i != 64’)...
xfsprogs-6.17.0/repair/phase6.c:3295:21: call_function: inlined call to ‘inode_isadir’ from ‘do_dir_inode’
xfsprogs-6.17.0/repair/phase6.c:3295:20: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/phase6.c:3296:43: branch_true: ...to here
xfsprogs-6.17.0/repair/phase6.c:3296:25: call_function: calling ‘process_dir_inode’ from ‘do_dir_inode’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def227]
xfsprogs-6.17.0/repair/phase6.c:321:17: warning[-Wanalyzer-malloc-leak]: leak of ‘dir_hash_init(*ip.i_disk_size)’
xfsprogs-6.17.0/repair/phase6.c:3348:1: enter_function: entry to ‘update_missing_dotdot_entries’
xfsprogs-6.17.0/repair/phase6.c:3358:16: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/phase6.c:3359:23: branch_true: ...to here
xfsprogs-6.17.0/repair/phase6.c:3362:17: call_function: calling ‘process_dir_inode’ from ‘update_missing_dotdot_entries’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def228]
xfsprogs-6.17.0/repair/phase6.c:432:18: warning[-Wanalyzer-malloc-leak]: leak of ‘freetab’
xfsprogs-6.17.0/repair/phase6.c:3286:1: enter_function: entry to ‘do_dir_inode’
xfsprogs-6.17.0/repair/phase6.c:3294:21: branch_true: following ‘true’ branch (when ‘i != 64’)...
xfsprogs-6.17.0/repair/phase6.c:3295:21: call_function: inlined call to ‘inode_isadir’ from ‘do_dir_inode’
xfsprogs-6.17.0/repair/phase6.c:3295:20: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/phase6.c:3296:43: branch_true: ...to here
xfsprogs-6.17.0/repair/phase6.c:3296:25: call_function: calling ‘process_dir_inode’ from ‘do_dir_inode’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def229]
xfsprogs-6.17.0/repair/phase6.c:437:14: warning[-Wanalyzer-malloc-leak]: leak of ‘freetab’
xfsprogs-6.17.0/repair/phase6.c:3286:1: enter_function: entry to ‘do_dir_inode’
xfsprogs-6.17.0/repair/phase6.c:3294:21: branch_true: following ‘true’ branch (when ‘i != 64’)...
xfsprogs-6.17.0/repair/phase6.c:3295:21: call_function: inlined call to ‘inode_isadir’ from ‘do_dir_inode’
xfsprogs-6.17.0/repair/phase6.c:3295:20: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/phase6.c:3296:43: branch_true: ...to here
xfsprogs-6.17.0/repair/phase6.c:3296:25: call_function: calling ‘process_dir_inode’ from ‘do_dir_inode’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def230]
xfsprogs-6.17.0/repair/phase6.c:449:17: warning[-Wanalyzer-malloc-leak]: leak of ‘freetab’
xfsprogs-6.17.0/repair/phase6.c:3348:1: enter_function: entry to ‘update_missing_dotdot_entries’
xfsprogs-6.17.0/repair/phase6.c:3358:16: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/phase6.c:3359:23: branch_true: ...to here
xfsprogs-6.17.0/repair/phase6.c:3362:17: call_function: calling ‘process_dir_inode’ from ‘update_missing_dotdot_entries’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def231]
xfsprogs-6.17.0/repair/phase6.c:451:17: warning[-Wanalyzer-malloc-leak]: leak of ‘freetab’
xfsprogs-6.17.0/repair/phase6.c:3348:1: enter_function: entry to ‘update_missing_dotdot_entries’
xfsprogs-6.17.0/repair/phase6.c:3358:16: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/phase6.c:3359:23: branch_true: ...to here
xfsprogs-6.17.0/repair/phase6.c:3362:17: call_function: calling ‘process_dir_inode’ from ‘update_missing_dotdot_entries’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def232]
xfsprogs-6.17.0/repair/phase6.c:1298:9: warning[-Wanalyzer-malloc-leak]: leak of ‘freetab’
xfsprogs-6.17.0/repair/phase6.c:3348:1: enter_function: entry to ‘update_missing_dotdot_entries’
xfsprogs-6.17.0/repair/phase6.c:3358:16: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/phase6.c:3359:23: branch_true: ...to here
xfsprogs-6.17.0/repair/phase6.c:3362:17: call_function: calling ‘process_dir_inode’ from ‘update_missing_dotdot_entries’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def233]
xfsprogs-6.17.0/repair/phase6.c:1306:21: warning[-Wanalyzer-malloc-leak]: leak of ‘freetab’
xfsprogs-6.17.0/repair/phase6.c:3348:1: enter_function: entry to ‘update_missing_dotdot_entries’
xfsprogs-6.17.0/repair/phase6.c:3358:16: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/phase6.c:3359:23: branch_true: ...to here
xfsprogs-6.17.0/repair/phase6.c:3362:17: call_function: calling ‘process_dir_inode’ from ‘update_missing_dotdot_entries’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def234]
xfsprogs-6.17.0/repair/phase6.c:1308:13: warning[-Wanalyzer-malloc-leak]: leak of ‘freetab’
xfsprogs-6.17.0/repair/phase6.c:3348:1: enter_function: entry to ‘update_missing_dotdot_entries’
xfsprogs-6.17.0/repair/phase6.c:3358:16: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/phase6.c:3359:23: branch_true: ...to here
xfsprogs-6.17.0/repair/phase6.c:3362:17: call_function: calling ‘process_dir_inode’ from ‘update_missing_dotdot_entries’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def235]
xfsprogs-6.17.0/repair/phase6.c:1311:16: warning[-Wanalyzer-malloc-leak]: leak of ‘freetab’
xfsprogs-6.17.0/repair/phase6.c:3348:1: enter_function: entry to ‘update_missing_dotdot_entries’
xfsprogs-6.17.0/repair/phase6.c:3358:16: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/phase6.c:3359:23: branch_true: ...to here
xfsprogs-6.17.0/repair/phase6.c:3362:17: call_function: calling ‘process_dir_inode’ from ‘update_missing_dotdot_entries’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def236]
xfsprogs-6.17.0/repair/phase6.c:1312:18: warning[-Wanalyzer-malloc-leak]: leak of ‘freetab’
xfsprogs-6.17.0/repair/phase6.c:3348:1: enter_function: entry to ‘update_missing_dotdot_entries’
xfsprogs-6.17.0/repair/phase6.c:3358:16: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/phase6.c:3359:23: branch_true: ...to here
xfsprogs-6.17.0/repair/phase6.c:3362:17: call_function: calling ‘process_dir_inode’ from ‘update_missing_dotdot_entries’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def237]
xfsprogs-6.17.0/repair/phase6.c:1315:9: warning[-Wanalyzer-malloc-leak]: leak of ‘freetab’
xfsprogs-6.17.0/repair/phase6.c:3348:1: enter_function: entry to ‘update_missing_dotdot_entries’
xfsprogs-6.17.0/repair/phase6.c:3358:16: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/phase6.c:3359:23: branch_true: ...to here
xfsprogs-6.17.0/repair/phase6.c:3362:17: call_function: calling ‘process_dir_inode’ from ‘update_missing_dotdot_entries’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def238]
xfsprogs-6.17.0/repair/phase6.c:1625:21: warning[-Wanalyzer-malloc-leak]: leak of ‘freetab’
xfsprogs-6.17.0/repair/phase6.c:3286:1: enter_function: entry to ‘do_dir_inode’
xfsprogs-6.17.0/repair/phase6.c:3294:21: branch_true: following ‘true’ branch (when ‘i != 64’)...
xfsprogs-6.17.0/repair/phase6.c:3295:21: call_function: inlined call to ‘inode_isadir’ from ‘do_dir_inode’
xfsprogs-6.17.0/repair/phase6.c:3295:20: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/phase6.c:3296:43: branch_true: ...to here
xfsprogs-6.17.0/repair/phase6.c:3296:25: call_function: calling ‘process_dir_inode’ from ‘do_dir_inode’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def239]
xfsprogs-6.17.0/repair/phase6.c:2087:17: warning[-Wanalyzer-malloc-leak]: leak of ‘freetab’
xfsprogs-6.17.0/repair/phase6.c:3286:1: enter_function: entry to ‘do_dir_inode’
xfsprogs-6.17.0/repair/phase6.c:3294:21: branch_true: following ‘true’ branch (when ‘i != 64’)...
xfsprogs-6.17.0/repair/phase6.c:3295:21: call_function: inlined call to ‘inode_isadir’ from ‘do_dir_inode’
xfsprogs-6.17.0/repair/phase6.c:3295:20: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/phase6.c:3296:43: branch_true: ...to here
xfsprogs-6.17.0/repair/phase6.c:3296:25: call_function: calling ‘process_dir_inode’ from ‘do_dir_inode’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def240]
xfsprogs-6.17.0/repair/phase6.c:2092:17: warning[-Wanalyzer-malloc-leak]: leak of ‘freetab’
xfsprogs-6.17.0/repair/phase6.c:3286:1: enter_function: entry to ‘do_dir_inode’
xfsprogs-6.17.0/repair/phase6.c:3294:21: branch_true: following ‘true’ branch (when ‘i != 64’)...
xfsprogs-6.17.0/repair/phase6.c:3295:21: call_function: inlined call to ‘inode_isadir’ from ‘do_dir_inode’
xfsprogs-6.17.0/repair/phase6.c:3295:20: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/phase6.c:3296:43: branch_true: ...to here
xfsprogs-6.17.0/repair/phase6.c:3296:25: call_function: calling ‘process_dir_inode’ from ‘do_dir_inode’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def241]
xfsprogs-6.17.0/repair/phase6.c:2099:9: warning[-Wanalyzer-malloc-leak]: leak of ‘freetab’
xfsprogs-6.17.0/repair/phase6.c:3286:1: enter_function: entry to ‘do_dir_inode’
xfsprogs-6.17.0/repair/phase6.c:3294:21: branch_true: following ‘true’ branch (when ‘i != 64’)...
xfsprogs-6.17.0/repair/phase6.c:3295:21: call_function: inlined call to ‘inode_isadir’ from ‘do_dir_inode’
xfsprogs-6.17.0/repair/phase6.c:3295:20: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/phase6.c:3296:43: branch_true: ...to here
xfsprogs-6.17.0/repair/phase6.c:3296:25: call_function: calling ‘process_dir_inode’ from ‘do_dir_inode’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def242]
xfsprogs-6.17.0/repair/phase6.c:2180:22: warning[-Wanalyzer-malloc-leak]: leak of ‘freetab’
xfsprogs-6.17.0/repair/phase6.c:3348:1: enter_function: entry to ‘update_missing_dotdot_entries’
xfsprogs-6.17.0/repair/phase6.c:3358:16: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/phase6.c:3359:23: branch_true: ...to here
xfsprogs-6.17.0/repair/phase6.c:3362:17: call_function: calling ‘process_dir_inode’ from ‘update_missing_dotdot_entries’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def243]
xfsprogs-6.17.0/repair/phase6.c:2202:17: warning[-Wanalyzer-malloc-leak]: leak of ‘freetab’
xfsprogs-6.17.0/repair/phase6.c:3348:1: enter_function: entry to ‘update_missing_dotdot_entries’
xfsprogs-6.17.0/repair/phase6.c:3358:16: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/phase6.c:3359:23: branch_true: ...to here
xfsprogs-6.17.0/repair/phase6.c:3362:17: call_function: calling ‘process_dir_inode’ from ‘update_missing_dotdot_entries’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def244]
xfsprogs-6.17.0/repair/phase6.c:2380:15: warning[-Wanalyzer-malloc-leak]: leak of ‘freetab’
xfsprogs-6.17.0/repair/phase6.c:3286:1: enter_function: entry to ‘do_dir_inode’
xfsprogs-6.17.0/repair/phase6.c:3294:21: branch_true: following ‘true’ branch (when ‘i != 64’)...
xfsprogs-6.17.0/repair/phase6.c:3295:21: call_function: inlined call to ‘inode_isadir’ from ‘do_dir_inode’
xfsprogs-6.17.0/repair/phase6.c:3295:20: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/phase6.c:3296:43: branch_true: ...to here
xfsprogs-6.17.0/repair/phase6.c:3296:25: call_function: calling ‘process_dir_inode’ from ‘do_dir_inode’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def245]
xfsprogs-6.17.0/repair/phase6.c:2403:22: warning[-Wanalyzer-malloc-leak]: leak of ‘freetab’
xfsprogs-6.17.0/repair/phase6.c:3286:1: enter_function: entry to ‘do_dir_inode’
xfsprogs-6.17.0/repair/phase6.c:3294:21: branch_true: following ‘true’ branch (when ‘i != 64’)...
xfsprogs-6.17.0/repair/phase6.c:3295:21: call_function: inlined call to ‘inode_isadir’ from ‘do_dir_inode’
xfsprogs-6.17.0/repair/phase6.c:3295:20: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/phase6.c:3296:43: branch_true: ...to here
xfsprogs-6.17.0/repair/phase6.c:3296:25: call_function: calling ‘process_dir_inode’ from ‘do_dir_inode’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def246]
xfsprogs-6.17.0/repair/phase6.c:2404:25: warning[-Wanalyzer-malloc-leak]: leak of ‘freetab’
xfsprogs-6.17.0/repair/phase6.c:3286:1: enter_function: entry to ‘do_dir_inode’
xfsprogs-6.17.0/repair/phase6.c:3294:21: branch_true: following ‘true’ branch (when ‘i != 64’)...
xfsprogs-6.17.0/repair/phase6.c:3295:21: call_function: inlined call to ‘inode_isadir’ from ‘do_dir_inode’
xfsprogs-6.17.0/repair/phase6.c:3295:20: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/phase6.c:3296:43: branch_true: ...to here
xfsprogs-6.17.0/repair/phase6.c:3296:25: call_function: calling ‘process_dir_inode’ from ‘do_dir_inode’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def247]
xfsprogs-6.17.0/repair/phase6.c:2417:25: warning[-Wanalyzer-malloc-leak]: leak of ‘freetab’
xfsprogs-6.17.0/repair/phase6.c:3286:1: enter_function: entry to ‘do_dir_inode’
xfsprogs-6.17.0/repair/phase6.c:3294:21: branch_true: following ‘true’ branch (when ‘i != 64’)...
xfsprogs-6.17.0/repair/phase6.c:3295:21: call_function: inlined call to ‘inode_isadir’ from ‘do_dir_inode’
xfsprogs-6.17.0/repair/phase6.c:3295:20: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/phase6.c:3296:43: branch_true: ...to here
xfsprogs-6.17.0/repair/phase6.c:3296:25: call_function: calling ‘process_dir_inode’ from ‘do_dir_inode’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def248]
xfsprogs-6.17.0/repair/phase6.c:2459:41: warning[-Wanalyzer-malloc-leak]: leak of ‘freetab’
xfsprogs-6.17.0/repair/phase6.c:3286:1: enter_function: entry to ‘do_dir_inode’
xfsprogs-6.17.0/repair/phase6.c:3294:21: branch_true: following ‘true’ branch (when ‘i != 64’)...
xfsprogs-6.17.0/repair/phase6.c:3295:21: call_function: inlined call to ‘inode_isadir’ from ‘do_dir_inode’
xfsprogs-6.17.0/repair/phase6.c:3295:20: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/phase6.c:3296:43: branch_true: ...to here
xfsprogs-6.17.0/repair/phase6.c:3296:25: call_function: calling ‘process_dir_inode’ from ‘do_dir_inode’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def249]
xfsprogs-6.17.0/repair/phase6.c:2468:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘bp’
xfsprogs-6.17.0/repair/phase6.c:3286:1: enter_function: entry to ‘do_dir_inode’
xfsprogs-6.17.0/repair/phase6.c:3294:21: branch_true: following ‘true’ branch (when ‘i != 64’)...
xfsprogs-6.17.0/repair/phase6.c:3295:21: call_function: inlined call to ‘inode_isadir’ from ‘do_dir_inode’
xfsprogs-6.17.0/repair/phase6.c:3295:20: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/phase6.c:3296:43: branch_true: ...to here
xfsprogs-6.17.0/repair/phase6.c:3296:25: call_function: calling ‘process_dir_inode’ from ‘do_dir_inode’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def250]
xfsprogs-6.17.0/repair/phase6.c:2486:17: warning[-Wanalyzer-malloc-leak]: leak of ‘freetab’
xfsprogs-6.17.0/repair/phase6.c:3348:1: enter_function: entry to ‘update_missing_dotdot_entries’
xfsprogs-6.17.0/repair/phase6.c:3358:16: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/phase6.c:3359:23: branch_true: ...to here
xfsprogs-6.17.0/repair/phase6.c:3362:17: call_function: calling ‘process_dir_inode’ from ‘update_missing_dotdot_entries’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def251]
xfsprogs-6.17.0/repair/phase6.c:2494:25: warning[-Wanalyzer-malloc-leak]: leak of ‘freetab’
xfsprogs-6.17.0/repair/phase6.c:3348:1: enter_function: entry to ‘update_missing_dotdot_entries’
xfsprogs-6.17.0/repair/phase6.c:3358:16: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/phase6.c:3359:23: branch_true: ...to here
xfsprogs-6.17.0/repair/phase6.c:3362:17: call_function: calling ‘process_dir_inode’ from ‘update_missing_dotdot_entries’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def252]
xfsprogs-6.17.0/repair/phase6.c:3532:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘ip’
xfsprogs-6.17.0/repair/phase6.c:3491:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/phase6.c:3494:13: branch_true: ...to here
xfsprogs-6.17.0/repair/phase6.c:3494:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/phase6.c:3500:14: branch_false: ...to here
xfsprogs-6.17.0/repair/phase6.c:3500:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/phase6.c:3515:13: branch_true: ...to here
xfsprogs-6.17.0/repair/phase6.c:3515:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/phase6.c:3529:42: branch_false: ...to here
xfsprogs-6.17.0/repair/phase6.c:3532:17: danger: use of uninitialized value ‘ip’ here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def253]
xfsprogs-6.17.0/repair/pptr.c:463:26: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
xfsprogs-6.17.0/repair/pptr.c:1205:1: enter_function: entry to ‘check_file_parent_ptrs’
xfsprogs-6.17.0/repair/pptr.c:1213:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/pptr.c:1217:9: branch_false: ...to here
xfsprogs-6.17.0/repair/pptr.c:1224:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/pptr.c:1235:13: branch_false: ...to here
xfsprogs-6.17.0/repair/pptr.c:1235:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/pptr.c:1236:17: call_function: calling ‘remove_garbage_xattrs’ from ‘check_file_parent_ptrs’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def254]
xfsprogs-6.17.0/repair/progress.c:196:17: warning[-Wanalyzer-malloc-leak]: leak of ‘msgbuf’
xfsprogs-6.17.0/repair/progress.c:178:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/progress.c:181:31: branch_false: ...to here
xfsprogs-6.17.0/repair/progress.c:181:31: acquire_memory: allocated here
xfsprogs-6.17.0/repair/progress.c:181:12: branch_false: following ‘false’ branch (when ‘msgbuf’ is non-NULL)...
xfsprogs-6.17.0/repair/progress.c:184:9: branch_false: ...to here
xfsprogs-6.17.0/repair/progress.c:195:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/progress.c:196:26: branch_true: ...to here
xfsprogs-6.17.0/repair/progress.c:196:17: throw: if ‘do_error’ throws an exception...
xfsprogs-6.17.0/repair/progress.c:196:17: danger: ‘msgbuf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def255]
xfsprogs-6.17.0/repair/progress.c:199:17: warning[-Wanalyzer-malloc-leak]: leak of ‘msgbuf’
xfsprogs-6.17.0/repair/progress.c:178:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/progress.c:181:31: branch_false: ...to here
xfsprogs-6.17.0/repair/progress.c:181:31: acquire_memory: allocated here
xfsprogs-6.17.0/repair/progress.c:181:12: branch_false: following ‘false’ branch (when ‘msgbuf’ is non-NULL)...
xfsprogs-6.17.0/repair/progress.c:184:9: branch_false: ...to here
xfsprogs-6.17.0/repair/progress.c:195:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/progress.c:198:13: branch_false: ...to here
xfsprogs-6.17.0/repair/progress.c:198:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/progress.c:199:26: branch_true: ...to here
xfsprogs-6.17.0/repair/progress.c:199:17: throw: if ‘do_error’ throws an exception...
xfsprogs-6.17.0/repair/progress.c:199:17: danger: ‘msgbuf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def256]
xfsprogs-6.17.0/repair/progress.c:209:9: warning[-Wanalyzer-malloc-leak]: leak of ‘msgbuf’
xfsprogs-6.17.0/repair/progress.c:178:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/progress.c:181:31: branch_false: ...to here
xfsprogs-6.17.0/repair/progress.c:181:31: acquire_memory: allocated here
xfsprogs-6.17.0/repair/progress.c:181:12: branch_false: following ‘false’ branch (when ‘msgbuf’ is non-NULL)...
xfsprogs-6.17.0/repair/progress.c:184:9: branch_false: ...to here
xfsprogs-6.17.0/repair/progress.c:195:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/progress.c:198:13: branch_false: ...to here
xfsprogs-6.17.0/repair/progress.c:198:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/progress.c:206:9: branch_false: ...to here
xfsprogs-6.17.0/repair/progress.c:209:9: throw: if ‘sigwait’ throws an exception...
xfsprogs-6.17.0/repair/progress.c:209:9: danger: ‘msgbuf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def257]
xfsprogs-6.17.0/repair/progress.c:223:25: warning[-Wanalyzer-malloc-leak]: leak of ‘msgbuf’
xfsprogs-6.17.0/repair/progress.c:178:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/progress.c:181:31: branch_false: ...to here
xfsprogs-6.17.0/repair/progress.c:181:31: acquire_memory: allocated here
xfsprogs-6.17.0/repair/progress.c:181:12: branch_false: following ‘false’ branch (when ‘msgbuf’ is non-NULL)...
xfsprogs-6.17.0/repair/progress.c:184:9: branch_false: ...to here
xfsprogs-6.17.0/repair/progress.c:195:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/progress.c:198:13: branch_false: ...to here
xfsprogs-6.17.0/repair/progress.c:198:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/progress.c:206:9: branch_false: ...to here
xfsprogs-6.17.0/repair/progress.c:211:16: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/progress.c:222:21: branch_true: ...to here
xfsprogs-6.17.0/repair/progress.c:222:20: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/progress.c:223:34: branch_true: ...to here
xfsprogs-6.17.0/repair/progress.c:223:25: throw: if ‘do_error’ throws an exception...
xfsprogs-6.17.0/repair/progress.c:223:25: danger: ‘msgbuf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def258]
xfsprogs-6.17.0/repair/progress.c:260:17: warning[-Wanalyzer-malloc-leak]: leak of ‘msgbuf’
xfsprogs-6.17.0/repair/progress.c:178:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/progress.c:181:31: branch_false: ...to here
xfsprogs-6.17.0/repair/progress.c:181:31: acquire_memory: allocated here
xfsprogs-6.17.0/repair/progress.c:181:12: branch_false: following ‘false’ branch (when ‘msgbuf’ is non-NULL)...
xfsprogs-6.17.0/repair/progress.c:184:9: branch_false: ...to here
xfsprogs-6.17.0/repair/progress.c:195:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/progress.c:198:13: branch_false: ...to here
xfsprogs-6.17.0/repair/progress.c:198:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/progress.c:206:9: branch_false: ...to here
xfsprogs-6.17.0/repair/progress.c:211:16: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/progress.c:222:21: branch_true: ...to here
xfsprogs-6.17.0/repair/progress.c:222:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/progress.c:226:21: branch_false: ...to here
xfsprogs-6.17.0/repair/progress.c:226:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/progress.c:229:23: branch_false: ...to here
xfsprogs-6.17.0/repair/progress.c:238:29: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/progress.c:243:24: branch_false: ...to here
xfsprogs-6.17.0/repair/progress.c:260:17: throw: if ‘do_log’ throws an exception...
xfsprogs-6.17.0/repair/progress.c:260:17: danger: ‘msgbuf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def259]
xfsprogs-6.17.0/repair/progress.c:288:17: warning[-Wanalyzer-malloc-leak]: leak of ‘msgbuf’
xfsprogs-6.17.0/repair/progress.c:178:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/progress.c:181:31: branch_false: ...to here
xfsprogs-6.17.0/repair/progress.c:181:31: acquire_memory: allocated here
xfsprogs-6.17.0/repair/progress.c:181:12: branch_false: following ‘false’ branch (when ‘msgbuf’ is non-NULL)...
xfsprogs-6.17.0/repair/progress.c:184:9: branch_false: ...to here
xfsprogs-6.17.0/repair/progress.c:195:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/progress.c:198:13: branch_false: ...to here
xfsprogs-6.17.0/repair/progress.c:198:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/progress.c:206:9: branch_false: ...to here
xfsprogs-6.17.0/repair/progress.c:287:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/progress.c:288:25: branch_true: ...to here
xfsprogs-6.17.0/repair/progress.c:288:17: throw: if ‘do_warn’ throws an exception...
xfsprogs-6.17.0/repair/progress.c:288:17: danger: ‘msgbuf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def260]
xfsprogs-6.17.0/repair/rcbag.c:50:25: warning[-Wanalyzer-malloc-leak]: leak of ‘bag’
xfsprogs-6.17.0/repair/rcbag.c:42:15: acquire_memory: allocated here
xfsprogs-6.17.0/repair/rcbag.c:43:12: branch_false: following ‘false’ branch (when ‘bag’ is non-NULL)...
xfsprogs-6.17.0/repair/rcbag.c:47:9: branch_false: ...to here
xfsprogs-6.17.0/repair/rcbag.c:50:25: throw: if ‘rcbagbt_calc_size’ throws an exception...
xfsprogs-6.17.0/repair/rcbag.c:50:25: danger: ‘bag’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def261]
xfsprogs-6.17.0/repair/rcbag.c:51:17: warning[-Wanalyzer-malloc-leak]: leak of ‘bag’
xfsprogs-6.17.0/repair/rcbag.c:42:15: acquire_memory: allocated here
xfsprogs-6.17.0/repair/rcbag.c:43:12: branch_false: following ‘false’ branch (when ‘bag’ is non-NULL)...
xfsprogs-6.17.0/repair/rcbag.c:47:9: branch_false: ...to here
xfsprogs-6.17.0/repair/rcbag.c:51:17: throw: if ‘kasprintf’ throws an exception...
xfsprogs-6.17.0/repair/rcbag.c:51:17: danger: ‘bag’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def262]
xfsprogs-6.17.0/repair/rcbag.c:53:18: warning[-Wanalyzer-malloc-leak]: leak of ‘bag’
xfsprogs-6.17.0/repair/rcbag.c:42:15: acquire_memory: allocated here
xfsprogs-6.17.0/repair/rcbag.c:43:12: branch_false: following ‘false’ branch (when ‘bag’ is non-NULL)...
xfsprogs-6.17.0/repair/rcbag.c:47:9: branch_false: ...to here
xfsprogs-6.17.0/repair/rcbag.c:53:18: throw: if ‘xmbuf_alloc’ throws an exception...
xfsprogs-6.17.0/repair/rcbag.c:53:18: danger: ‘bag’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def263]
xfsprogs-6.17.0/repair/rt.c:507:37: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘error’
xfsprogs-6.17.0/repair/rt.c:489:1: enter_function: entry to ‘discover_rtgroup_inodes’
xfsprogs-6.17.0/repair/rt.c:504:23: call_function: calling ‘xfs_rtgroup_next’ from ‘discover_rtgroup_inodes’
xfsprogs-6.17.0/repair/rt.c:504:23: return_function: returning to ‘discover_rtgroup_inodes’ from ‘xfs_rtgroup_next’
xfsprogs-6.17.0/repair/rt.c:504:16: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/rt.c:504:16: branch_true: ...to here
xfsprogs-6.17.0/repair/rt.c:505:29: branch_true: following ‘true’ branch (when ‘i != 4’)...
xfsprogs-6.17.0/repair/rt.c:506:32: branch_true: ...to here
xfsprogs-6.17.0/repair/rt.c:507:37: danger: use of uninitialized value ‘error’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def264]
xfsprogs-6.17.0/repair/rt.c:514:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘error’
xfsprogs-6.17.0/repair/rt.c:489:1: enter_function: entry to ‘discover_rtgroup_inodes’
xfsprogs-6.17.0/repair/rt.c:504:23: call_function: calling ‘xfs_rtgroup_next’ from ‘discover_rtgroup_inodes’
xfsprogs-6.17.0/repair/rt.c:504:23: return_function: returning to ‘discover_rtgroup_inodes’ from ‘xfs_rtgroup_next’
xfsprogs-6.17.0/repair/rt.c:504:16: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/rt.c:512:1: branch_false: ...to here
xfsprogs-6.17.0/repair/rt.c:514:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/rt.c:514:13: branch_true: ...to here
xfsprogs-6.17.0/repair/rt.c:514:13: danger: use of uninitialized value ‘error’ here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def265]
xfsprogs-6.17.0/repair/sb.c:137:17: warning[-Wanalyzer-malloc-leak]: leak of ‘sb’
xfsprogs-6.17.0/repair/sb.c:204:1: enter_function: entry to ‘find_secondary_sb’
xfsprogs-6.17.0/repair/sb.c:219:13: call_function: inlined call to ‘verify_sb_blocksize’ from ‘find_secondary_sb’
xfsprogs-6.17.0/repair/sb.c:220:34: branch_false: ...to here
xfsprogs-6.17.0/repair/sb.c:221:20: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/sb.c:222:34: branch_true: ...to here
xfsprogs-6.17.0/repair/sb.c:222:34: call_function: calling ‘__find_secondary_sb’ from ‘find_secondary_sb’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def266]
xfsprogs-6.17.0/repair/sb.c:145:25: warning[-Wanalyzer-malloc-leak]: leak of ‘sb’
xfsprogs-6.17.0/repair/sb.c:204:1: enter_function: entry to ‘find_secondary_sb’
xfsprogs-6.17.0/repair/sb.c:219:13: call_function: inlined call to ‘verify_sb_blocksize’ from ‘find_secondary_sb’
xfsprogs-6.17.0/repair/sb.c:220:34: branch_false: ...to here
xfsprogs-6.17.0/repair/sb.c:221:20: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/sb.c:222:34: branch_true: ...to here
xfsprogs-6.17.0/repair/sb.c:222:34: call_function: calling ‘__find_secondary_sb’ from ‘find_secondary_sb’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def267]
xfsprogs-6.17.0/repair/sb.c:403:14: warning[-Wanalyzer-malloc-leak]: leak of ‘list’
xfsprogs-6.17.0/repair/sb.c:708:1: enter_function: entry to ‘verify_set_primary_sb’
xfsprogs-6.17.0/repair/sb.c:740:9: call_function: calling ‘get_sb_geometry’ from ‘verify_set_primary_sb’
xfsprogs-6.17.0/repair/sb.c:740:9: return_function: returning to ‘verify_set_primary_sb’ from ‘get_sb_geometry’
xfsprogs-6.17.0/repair/sb.c:741:16: call_function: calling ‘add_geo’ from ‘verify_set_primary_sb’
xfsprogs-6.17.0/repair/sb.c:741:16: return_function: returning to ‘verify_set_primary_sb’ from ‘add_geo’
xfsprogs-6.17.0/repair/sb.c:747:24: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/sb.c:748:23: branch_true: ...to here
xfsprogs-6.17.0/repair/sb.c:750:26: call_function: calling ‘get_sb’ from ‘verify_set_primary_sb’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def268]
xfsprogs-6.17.0/repair/sb.c:552:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
xfsprogs-6.17.0/repair/sb.c:537:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/sb.c:540:15: branch_false: ...to here
xfsprogs-6.17.0/repair/sb.c:540:15: acquire_memory: allocated here
xfsprogs-6.17.0/repair/sb.c:541:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
xfsprogs-6.17.0/repair/sb.c:545:9: branch_false: ...to here
xfsprogs-6.17.0/repair/sb.c:547:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/sb.c:552:9: branch_false: ...to here
xfsprogs-6.17.0/repair/sb.c:552:9: throw: if ‘libxfs_sb_to_disk’ throws an exception...
xfsprogs-6.17.0/repair/sb.c:552:9: danger: ‘buf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def269]
xfsprogs-6.17.0/repair/sb.c:574:24: warning[-Wanalyzer-malloc-leak]: leak of ‘list’
xfsprogs-6.17.0/repair/sb.c:708:1: enter_function: entry to ‘verify_set_primary_sb’
xfsprogs-6.17.0/repair/sb.c:740:9: call_function: calling ‘get_sb_geometry’ from ‘verify_set_primary_sb’
xfsprogs-6.17.0/repair/sb.c:740:9: return_function: returning to ‘verify_set_primary_sb’ from ‘get_sb_geometry’
xfsprogs-6.17.0/repair/sb.c:741:16: call_function: calling ‘add_geo’ from ‘verify_set_primary_sb’
xfsprogs-6.17.0/repair/sb.c:741:16: return_function: returning to ‘verify_set_primary_sb’ from ‘add_geo’
xfsprogs-6.17.0/repair/sb.c:747:24: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/sb.c:748:23: branch_true: ...to here
xfsprogs-6.17.0/repair/sb.c:750:26: call_function: calling ‘get_sb’ from ‘verify_set_primary_sb’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def270]
xfsprogs-6.17.0/repair/sb.c:576:17: warning[-Wanalyzer-malloc-leak]: leak of ‘list’
xfsprogs-6.17.0/repair/sb.c:708:1: enter_function: entry to ‘verify_set_primary_sb’
xfsprogs-6.17.0/repair/sb.c:740:9: call_function: calling ‘get_sb_geometry’ from ‘verify_set_primary_sb’
xfsprogs-6.17.0/repair/sb.c:740:9: return_function: returning to ‘verify_set_primary_sb’ from ‘get_sb_geometry’
xfsprogs-6.17.0/repair/sb.c:741:16: call_function: calling ‘add_geo’ from ‘verify_set_primary_sb’
xfsprogs-6.17.0/repair/sb.c:741:16: return_function: returning to ‘verify_set_primary_sb’ from ‘add_geo’
xfsprogs-6.17.0/repair/sb.c:747:24: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/sb.c:748:23: branch_true: ...to here
xfsprogs-6.17.0/repair/sb.c:750:26: call_function: calling ‘get_sb’ from ‘verify_set_primary_sb’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def271]
xfsprogs-6.17.0/repair/sb.c:587:17: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
xfsprogs-6.17.0/repair/sb.c:574:15: acquire_memory: allocated here
xfsprogs-6.17.0/repair/sb.c:575:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
xfsprogs-6.17.0/repair/sb.c:581:9: branch_false: ...to here
xfsprogs-6.17.0/repair/sb.c:586:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/sb.c:588:9: branch_true: ...to here
xfsprogs-6.17.0/repair/sb.c:587:17: throw: if ‘do_warn’ throws an exception...
xfsprogs-6.17.0/repair/sb.c:587:17: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def272]
xfsprogs-6.17.0/repair/sb.c:587:17: warning[-Wanalyzer-malloc-leak]: leak of ‘list’
xfsprogs-6.17.0/repair/sb.c:708:1: enter_function: entry to ‘verify_set_primary_sb’
xfsprogs-6.17.0/repair/sb.c:740:9: call_function: calling ‘get_sb_geometry’ from ‘verify_set_primary_sb’
xfsprogs-6.17.0/repair/sb.c:740:9: return_function: returning to ‘verify_set_primary_sb’ from ‘get_sb_geometry’
xfsprogs-6.17.0/repair/sb.c:741:16: call_function: calling ‘add_geo’ from ‘verify_set_primary_sb’
xfsprogs-6.17.0/repair/sb.c:741:16: return_function: returning to ‘verify_set_primary_sb’ from ‘add_geo’
xfsprogs-6.17.0/repair/sb.c:747:24: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/sb.c:748:23: branch_true: ...to here
xfsprogs-6.17.0/repair/sb.c:750:26: call_function: calling ‘get_sb’ from ‘verify_set_primary_sb’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def273]
xfsprogs-6.17.0/repair/sb.c:596:17: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
xfsprogs-6.17.0/repair/sb.c:574:15: acquire_memory: allocated here
xfsprogs-6.17.0/repair/sb.c:575:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
xfsprogs-6.17.0/repair/sb.c:581:9: branch_false: ...to here
xfsprogs-6.17.0/repair/sb.c:586:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/sb.c:594:21: branch_false: ...to here
xfsprogs-6.17.0/repair/sb.c:594:12: branch_true: following ‘true’ branch (when ‘size != rval’)...
xfsprogs-6.17.0/repair/sb.c:595:25: branch_true: ...to here
xfsprogs-6.17.0/repair/sb.c:596:17: throw: if ‘do_warn’ throws an exception...
xfsprogs-6.17.0/repair/sb.c:596:17: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def274]
xfsprogs-6.17.0/repair/sb.c:596:17: warning[-Wanalyzer-malloc-leak]: leak of ‘list’
xfsprogs-6.17.0/repair/sb.c:708:1: enter_function: entry to ‘verify_set_primary_sb’
xfsprogs-6.17.0/repair/sb.c:740:9: call_function: calling ‘get_sb_geometry’ from ‘verify_set_primary_sb’
xfsprogs-6.17.0/repair/sb.c:740:9: return_function: returning to ‘verify_set_primary_sb’ from ‘get_sb_geometry’
xfsprogs-6.17.0/repair/sb.c:741:16: call_function: calling ‘add_geo’ from ‘verify_set_primary_sb’
xfsprogs-6.17.0/repair/sb.c:741:16: return_function: returning to ‘verify_set_primary_sb’ from ‘add_geo’
xfsprogs-6.17.0/repair/sb.c:747:24: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/sb.c:748:23: branch_true: ...to here
xfsprogs-6.17.0/repair/sb.c:750:26: call_function: calling ‘get_sb’ from ‘verify_set_primary_sb’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def275]
xfsprogs-6.17.0/repair/sb.c:599:17: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
xfsprogs-6.17.0/repair/sb.c:574:15: acquire_memory: allocated here
xfsprogs-6.17.0/repair/sb.c:575:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
xfsprogs-6.17.0/repair/sb.c:581:9: branch_false: ...to here
xfsprogs-6.17.0/repair/sb.c:586:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/sb.c:594:21: branch_false: ...to here
xfsprogs-6.17.0/repair/sb.c:594:12: branch_true: following ‘true’ branch (when ‘size != rval’)...
xfsprogs-6.17.0/repair/sb.c:595:25: branch_true: ...to here
xfsprogs-6.17.0/repair/sb.c:599:17: throw: if ‘do_error’ throws an exception...
xfsprogs-6.17.0/repair/sb.c:599:17: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def276]
xfsprogs-6.17.0/repair/sb.c:599:17: warning[-Wanalyzer-malloc-leak]: leak of ‘list’
xfsprogs-6.17.0/repair/sb.c:708:1: enter_function: entry to ‘verify_set_primary_sb’
xfsprogs-6.17.0/repair/sb.c:740:9: call_function: calling ‘get_sb_geometry’ from ‘verify_set_primary_sb’
xfsprogs-6.17.0/repair/sb.c:740:9: return_function: returning to ‘verify_set_primary_sb’ from ‘get_sb_geometry’
xfsprogs-6.17.0/repair/sb.c:741:16: call_function: calling ‘add_geo’ from ‘verify_set_primary_sb’
xfsprogs-6.17.0/repair/sb.c:741:16: return_function: returning to ‘verify_set_primary_sb’ from ‘add_geo’
xfsprogs-6.17.0/repair/sb.c:747:24: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/sb.c:748:23: branch_true: ...to here
xfsprogs-6.17.0/repair/sb.c:750:26: call_function: calling ‘get_sb’ from ‘verify_set_primary_sb’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def277]
xfsprogs-6.17.0/repair/sb.c:601:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
xfsprogs-6.17.0/repair/sb.c:574:15: acquire_memory: allocated here
xfsprogs-6.17.0/repair/sb.c:575:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
xfsprogs-6.17.0/repair/sb.c:581:9: branch_false: ...to here
xfsprogs-6.17.0/repair/sb.c:586:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/sb.c:594:21: branch_false: ...to here
xfsprogs-6.17.0/repair/sb.c:594:12: branch_false: following ‘false’ branch (when ‘size == rval’)...
xfsprogs-6.17.0/repair/sb.c:601:9: branch_false: ...to here
xfsprogs-6.17.0/repair/sb.c:601:9: throw: if ‘libxfs_sb_from_disk’ throws an exception...
xfsprogs-6.17.0/repair/sb.c:601:9: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def278]
xfsprogs-6.17.0/repair/sb.c:601:9: warning[-Wanalyzer-malloc-leak]: leak of ‘list’
xfsprogs-6.17.0/repair/sb.c:708:1: enter_function: entry to ‘verify_set_primary_sb’
xfsprogs-6.17.0/repair/sb.c:740:9: call_function: calling ‘get_sb_geometry’ from ‘verify_set_primary_sb’
xfsprogs-6.17.0/repair/sb.c:740:9: return_function: returning to ‘verify_set_primary_sb’ from ‘get_sb_geometry’
xfsprogs-6.17.0/repair/sb.c:741:16: call_function: calling ‘add_geo’ from ‘verify_set_primary_sb’
xfsprogs-6.17.0/repair/sb.c:741:16: return_function: returning to ‘verify_set_primary_sb’ from ‘add_geo’
xfsprogs-6.17.0/repair/sb.c:747:24: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/sb.c:748:23: branch_true: ...to here
xfsprogs-6.17.0/repair/sb.c:750:26: call_function: calling ‘get_sb’ from ‘verify_set_primary_sb’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def279]
xfsprogs-6.17.0/repair/sb.c:795:33: warning[-Wanalyzer-malloc-leak]: leak of ‘list’
xfsprogs-6.17.0/repair/sb.c:708:1: enter_function: entry to ‘verify_set_primary_sb’
xfsprogs-6.17.0/repair/sb.c:740:9: call_function: calling ‘get_sb_geometry’ from ‘verify_set_primary_sb’
xfsprogs-6.17.0/repair/sb.c:740:9: return_function: returning to ‘verify_set_primary_sb’ from ‘get_sb_geometry’
xfsprogs-6.17.0/repair/sb.c:741:16: call_function: calling ‘add_geo’ from ‘verify_set_primary_sb’
xfsprogs-6.17.0/repair/sb.c:741:16: return_function: returning to ‘verify_set_primary_sb’ from ‘add_geo’
xfsprogs-6.17.0/repair/sb.c:747:24: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/sb.c:772:22: branch_false: ...to here
xfsprogs-6.17.0/repair/sb.c:772:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/sb.c:772:12: branch_false: ...to here
xfsprogs-6.17.0/repair/sb.c:777:19: call_function: inlined call to ‘get_best_geo’ from ‘verify_set_primary_sb’
xfsprogs-6.17.0/repair/sb.c:784:9: branch_false: ...to here
xfsprogs-6.17.0/repair/sb.c:793:20: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/sb.c:794:29: branch_true: ...to here
xfsprogs-6.17.0/repair/sb.c:794:28: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/sb.c:796:9: branch_true: ...to here
xfsprogs-6.17.0/repair/sb.c:795:33: throw: if ‘do_warn’ throws an exception...
xfsprogs-6.17.0/repair/sb.c:795:33: danger: ‘list’ leaks here; was allocated at [(13)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def280]
xfsprogs-6.17.0/repair/sb.c:811:25: warning[-Wanalyzer-malloc-leak]: leak of ‘list’
xfsprogs-6.17.0/repair/sb.c:708:1: enter_function: entry to ‘verify_set_primary_sb’
xfsprogs-6.17.0/repair/sb.c:740:9: call_function: calling ‘get_sb_geometry’ from ‘verify_set_primary_sb’
xfsprogs-6.17.0/repair/sb.c:740:9: return_function: returning to ‘verify_set_primary_sb’ from ‘get_sb_geometry’
xfsprogs-6.17.0/repair/sb.c:741:16: call_function: calling ‘add_geo’ from ‘verify_set_primary_sb’
xfsprogs-6.17.0/repair/sb.c:741:16: return_function: returning to ‘verify_set_primary_sb’ from ‘add_geo’
xfsprogs-6.17.0/repair/sb.c:747:24: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/sb.c:772:22: branch_false: ...to here
xfsprogs-6.17.0/repair/sb.c:772:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/sb.c:772:12: branch_false: ...to here
xfsprogs-6.17.0/repair/sb.c:777:19: call_function: inlined call to ‘get_best_geo’ from ‘verify_set_primary_sb’
xfsprogs-6.17.0/repair/sb.c:784:9: branch_false: ...to here
xfsprogs-6.17.0/repair/sb.c:810:20: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/sb.c:812:9: branch_true: ...to here
xfsprogs-6.17.0/repair/sb.c:811:25: throw: if ‘do_warn’ throws an exception...
xfsprogs-6.17.0/repair/sb.c:811:25: danger: ‘list’ leaks here; was allocated at [(13)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def281]
xfsprogs-6.17.0/repair/scan.c:3322:17: warning[-Wanalyzer-malloc-leak]: leak of ‘sb’
xfsprogs-6.17.0/repair/scan.c:3309:31: acquire_memory: allocated here
xfsprogs-6.17.0/repair/scan.c:3310:12: branch_false: following ‘false’ branch (when ‘sb’ is non-NULL)...
xfsprogs-6.17.0/repair/scan.c:3315:17: branch_false: ...to here
xfsprogs-6.17.0/repair/scan.c:3317:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/scan.c:3321:18: branch_false: ...to here
xfsprogs-6.17.0/repair/scan.c:3321:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/scan.c:3322:25: branch_true: ...to here
xfsprogs-6.17.0/repair/scan.c:3322:17: throw: if ‘do_warn’ throws an exception...
xfsprogs-6.17.0/repair/scan.c:3322:17: danger: ‘sb’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def282]
xfsprogs-6.17.0/repair/scan.c:3323:9: warning[-Wanalyzer-malloc-leak]: leak of ‘sb’
xfsprogs-6.17.0/repair/scan.c:3309:31: acquire_memory: allocated here
xfsprogs-6.17.0/repair/scan.c:3310:12: branch_false: following ‘false’ branch (when ‘sb’ is non-NULL)...
xfsprogs-6.17.0/repair/scan.c:3315:17: branch_false: ...to here
xfsprogs-6.17.0/repair/scan.c:3317:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/scan.c:3321:18: branch_false: ...to here
xfsprogs-6.17.0/repair/scan.c:3323:9: throw: if ‘libxfs_sb_from_disk’ throws an exception...
xfsprogs-6.17.0/repair/scan.c:3323:9: danger: ‘sb’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def283]
xfsprogs-6.17.0/repair/scan.c:3478:9: warning[-Wanalyzer-malloc-leak]: leak of ‘agcnts’
xfsprogs-6.17.0/repair/scan.c:3471:18: acquire_memory: allocated here
xfsprogs-6.17.0/repair/scan.c:3472:12: branch_false: following ‘false’ branch (when ‘agcnts’ is non-NULL)...
xfsprogs-6.17.0/repair/scan.c:3476:9: branch_false: ...to here
xfsprogs-6.17.0/repair/scan.c:3478:9: throw: if ‘create_work_queue’ throws an exception...
xfsprogs-6.17.0/repair/scan.c:3478:9: danger: ‘agcnts’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def284]
xfsprogs-6.17.0/repair/scan.c:3481:17: warning[-Wanalyzer-malloc-leak]: leak of ‘agcnts’
xfsprogs-6.17.0/repair/scan.c:3471:18: acquire_memory: allocated here
xfsprogs-6.17.0/repair/scan.c:3472:12: branch_false: following ‘false’ branch (when ‘agcnts’ is non-NULL)...
xfsprogs-6.17.0/repair/scan.c:3476:9: branch_false: ...to here
xfsprogs-6.17.0/repair/scan.c:3480:21: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/scan.c:3481:52: branch_true: ...to here
xfsprogs-6.17.0/repair/scan.c:3481:17: throw: if ‘queue_work’ throws an exception...
xfsprogs-6.17.0/repair/scan.c:3481:17: danger: ‘agcnts’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def285]
xfsprogs-6.17.0/repair/scan.c:3483:9: warning[-Wanalyzer-malloc-leak]: leak of ‘agcnts’
xfsprogs-6.17.0/repair/scan.c:3471:18: acquire_memory: allocated here
xfsprogs-6.17.0/repair/scan.c:3472:12: branch_false: following ‘false’ branch (when ‘agcnts’ is non-NULL)...
xfsprogs-6.17.0/repair/scan.c:3476:9: branch_false: ...to here
xfsprogs-6.17.0/repair/scan.c:3480:21: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/scan.c:3483:9: branch_false: ...to here
xfsprogs-6.17.0/repair/scan.c:3483:9: throw: if ‘destroy_work_queue’ throws an exception...
xfsprogs-6.17.0/repair/scan.c:3483:9: danger: ‘agcnts’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def286]
xfsprogs-6.17.0/repair/slab.c:229:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘qs’
xfsprogs-6.17.0/repair/slab.c:215:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/slab.c:225:38: branch_false: ...to here
xfsprogs-6.17.0/repair/slab.c:227:16: branch_true: following ‘true’ branch (when ‘hdr’ is non-NULL)...
xfsprogs-6.17.0/repair/slab.c:228:22: branch_true: ...to here
xfsprogs-6.17.0/repair/slab.c:228:22: acquire_memory: this call could return NULL
xfsprogs-6.17.0/repair/slab.c:229:17: danger: ‘qs’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def287]
xfsprogs-6.17.0/repair/slab.c:232:17: warning[-Wanalyzer-malloc-leak]: leak of ‘qs’
xfsprogs-6.17.0/repair/slab.c:215:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/slab.c:225:38: branch_false: ...to here
xfsprogs-6.17.0/repair/slab.c:227:16: branch_true: following ‘true’ branch (when ‘hdr’ is non-NULL)...
xfsprogs-6.17.0/repair/slab.c:228:22: branch_true: ...to here
xfsprogs-6.17.0/repair/slab.c:228:22: acquire_memory: allocated here
xfsprogs-6.17.0/repair/slab.c:232:17: throw: if ‘queue_work’ throws an exception...
xfsprogs-6.17.0/repair/slab.c:232:17: danger: ‘qs’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def288]
xfsprogs-6.17.0/repair/strblobs.c:55:18: warning[-Wanalyzer-malloc-leak]: leak of ‘sb’
xfsprogs-6.17.0/repair/strblobs.c:51:14: acquire_memory: allocated here
xfsprogs-6.17.0/repair/strblobs.c:52:12: branch_false: following ‘false’ branch (when ‘sb’ is non-NULL)...
xfsprogs-6.17.0/repair/strblobs.c:55:18: branch_false: ...to here
xfsprogs-6.17.0/repair/strblobs.c:55:18: throw: if ‘xfblob_create’ throws an exception...
xfsprogs-6.17.0/repair/strblobs.c:55:18: danger: ‘sb’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def289]
xfsprogs-6.17.0/repair/strblobs.c:210:17: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
xfsprogs-6.17.0/repair/strblobs.c:96:1: enter_function: entry to ‘__strblobs_lookup’
xfsprogs-6.17.0/repair/strblobs.c:111:45: branch_true: following ‘true’ branch (when ‘ent’ is non-NULL)...
xfsprogs-6.17.0/repair/strblobs.c:112:21: branch_true: ...to here
xfsprogs-6.17.0/repair/strblobs.c:115:20: branch_true: following ‘true’ branch (when ‘buf’ is NULL)...
xfsprogs-6.17.0/repair/strblobs.c:116:31: branch_true: ...to here
xfsprogs-6.17.0/repair/strblobs.c:116:31: acquire_memory: allocated here
xfsprogs-6.17.0/repair/strblobs.c:117:28: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
xfsprogs-6.17.0/repair/strblobs.c:121:25: branch_false: ...to here
xfsprogs-6.17.0/repair/strblobs.c:121:25: call_function: inlined call to ‘strblobs_load’ from ‘__strblobs_lookup’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def290]
xfsprogs-6.17.0/repair/xfs_repair.c:609:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘sb.sb_unit’
xfsprogs-6.17.0/repair/xfs_repair.c:593:24: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/xfs_repair.c:606:29: branch_false: ...to here
xfsprogs-6.17.0/repair/xfs_repair.c:606:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/xfs_repair.c:607:25: branch_true: ...to here
xfsprogs-6.17.0/repair/xfs_repair.c:609:17: danger: use of uninitialized value ‘sb.sb_unit’ here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def291]
xfsprogs-6.17.0/repair/xfs_repair.c:840:16: warning[-Wanalyzer-malloc-leak]: leak of ‘msgbuf’
xfsprogs-6.17.0/repair/xfs_repair.c:1086:1: enter_function: entry to ‘main’
xfsprogs-6.17.0/repair/xfs_repair.c:1109:9: call_function: calling ‘process_args’ from ‘main’
xfsprogs-6.17.0/repair/xfs_repair.c:1109:9: return_function: returning to ‘main’ from ‘process_args’
xfsprogs-6.17.0/repair/xfs_repair.c:1112:18: acquire_memory: allocated here
xfsprogs-6.17.0/repair/xfs_repair.c:1128:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/xfs_repair.c:1130:24: branch_true: ...to here
xfsprogs-6.17.0/repair/xfs_repair.c:1131:20: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/xfs_repair.c:1132:25: branch_true: ...to here
xfsprogs-6.17.0/repair/xfs_repair.c:1132:25: call_function: calling ‘check_fs_vs_host_sectsize’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def292]
xfsprogs-6.17.0/repair/xfs_repair.c:849:29: warning[-Wanalyzer-malloc-leak]: leak of ‘msgbuf’
xfsprogs-6.17.0/repair/xfs_repair.c:1086:1: enter_function: entry to ‘main’
xfsprogs-6.17.0/repair/xfs_repair.c:1109:9: call_function: calling ‘process_args’ from ‘main’
xfsprogs-6.17.0/repair/xfs_repair.c:1109:9: return_function: returning to ‘main’ from ‘process_args’
xfsprogs-6.17.0/repair/xfs_repair.c:1112:18: acquire_memory: allocated here
xfsprogs-6.17.0/repair/xfs_repair.c:1128:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/xfs_repair.c:1130:24: branch_true: ...to here
xfsprogs-6.17.0/repair/xfs_repair.c:1131:20: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/xfs_repair.c:1132:25: branch_true: ...to here
xfsprogs-6.17.0/repair/xfs_repair.c:1132:25: call_function: calling ‘check_fs_vs_host_sectsize’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def293]
xfsprogs-6.17.0/repair/xfs_repair.c:850:21: warning[-Wanalyzer-malloc-leak]: leak of ‘msgbuf’
xfsprogs-6.17.0/repair/xfs_repair.c:1086:1: enter_function: entry to ‘main’
xfsprogs-6.17.0/repair/xfs_repair.c:1109:9: call_function: calling ‘process_args’ from ‘main’
xfsprogs-6.17.0/repair/xfs_repair.c:1109:9: return_function: returning to ‘main’ from ‘process_args’
xfsprogs-6.17.0/repair/xfs_repair.c:1112:18: acquire_memory: allocated here
xfsprogs-6.17.0/repair/xfs_repair.c:1128:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/xfs_repair.c:1130:24: branch_true: ...to here
xfsprogs-6.17.0/repair/xfs_repair.c:1131:20: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/xfs_repair.c:1132:25: branch_true: ...to here
xfsprogs-6.17.0/repair/xfs_repair.c:1132:25: call_function: calling ‘check_fs_vs_host_sectsize’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def294]
xfsprogs-6.17.0/repair/xfs_repair.c:1064:9: warning[-Wanalyzer-malloc-leak]: leak of ‘msgbuf’
xfsprogs-6.17.0/repair/xfs_repair.c:1086:1: enter_function: entry to ‘main’
xfsprogs-6.17.0/repair/xfs_repair.c:1109:9: call_function: calling ‘process_args’ from ‘main’
xfsprogs-6.17.0/repair/xfs_repair.c:1109:9: return_function: returning to ‘main’ from ‘process_args’
xfsprogs-6.17.0/repair/xfs_repair.c:1112:18: acquire_memory: allocated here
xfsprogs-6.17.0/repair/xfs_repair.c:1115:9: call_function: calling ‘phase_end’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def295]
xfsprogs-6.17.0/repair/xfs_repair.c:1114:9: warning[-Wanalyzer-malloc-leak]: leak of ‘msgbuf’
xfsprogs-6.17.0/repair/xfs_repair.c:1086:1: enter_function: entry to ‘main’
xfsprogs-6.17.0/repair/xfs_repair.c:1109:9: call_function: calling ‘process_args’ from ‘main’
xfsprogs-6.17.0/repair/xfs_repair.c:1109:9: return_function: returning to ‘main’ from ‘process_args’
xfsprogs-6.17.0/repair/xfs_repair.c:1112:18: acquire_memory: allocated here
xfsprogs-6.17.0/repair/xfs_repair.c:1114:9: throw: if ‘timestamp’ throws an exception...
xfsprogs-6.17.0/repair/xfs_repair.c:1114:9: danger: ‘msgbuf’ leaks here; was allocated at [(9)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def296]
xfsprogs-6.17.0/repair/xfs_repair.c:1130:24: warning[-Wanalyzer-malloc-leak]: leak of ‘msgbuf’
xfsprogs-6.17.0/repair/xfs_repair.c:1086:1: enter_function: entry to ‘main’
xfsprogs-6.17.0/repair/xfs_repair.c:1109:9: call_function: calling ‘process_args’ from ‘main’
xfsprogs-6.17.0/repair/xfs_repair.c:1109:9: return_function: returning to ‘main’ from ‘process_args’
xfsprogs-6.17.0/repair/xfs_repair.c:1112:18: acquire_memory: allocated here
xfsprogs-6.17.0/repair/xfs_repair.c:1128:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/xfs_repair.c:1130:24: branch_true: ...to here
xfsprogs-6.17.0/repair/xfs_repair.c:1130:24: throw: if ‘get_sb’ throws an exception...
xfsprogs-6.17.0/repair/xfs_repair.c:1130:24: danger: ‘msgbuf’ leaks here; was allocated at [(9)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def297]
xfsprogs-6.17.0/repair/xfs_repair.c:1136:9: warning[-Wanalyzer-malloc-leak]: leak of ‘msgbuf’
xfsprogs-6.17.0/repair/xfs_repair.c:1086:1: enter_function: entry to ‘main’
xfsprogs-6.17.0/repair/xfs_repair.c:1109:9: call_function: calling ‘process_args’ from ‘main’
xfsprogs-6.17.0/repair/xfs_repair.c:1109:9: return_function: returning to ‘main’ from ‘process_args’
xfsprogs-6.17.0/repair/xfs_repair.c:1112:18: acquire_memory: allocated here
xfsprogs-6.17.0/repair/xfs_repair.c:1136:9: throw: if ‘phase1’ throws an exception...
xfsprogs-6.17.0/repair/xfs_repair.c:1136:9: danger: ‘msgbuf’ leaks here; was allocated at [(9)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def298]
xfsprogs-6.17.0/repair/xfs_repair.c:1146:16: warning[-Wanalyzer-malloc-leak]: leak of ‘msgbuf’
xfsprogs-6.17.0/repair/xfs_repair.c:1086:1: enter_function: entry to ‘main’
xfsprogs-6.17.0/repair/xfs_repair.c:1109:9: call_function: calling ‘process_args’ from ‘main’
xfsprogs-6.17.0/repair/xfs_repair.c:1109:9: return_function: returning to ‘main’ from ‘process_args’
xfsprogs-6.17.0/repair/xfs_repair.c:1112:18: acquire_memory: allocated here
xfsprogs-6.17.0/repair/xfs_repair.c:1146:16: throw: if ‘get_sb’ throws an exception...
xfsprogs-6.17.0/repair/xfs_repair.c:1146:16: danger: ‘msgbuf’ leaks here; was allocated at [(9)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def299]
xfsprogs-6.17.0/repair/xfs_repair.c:1166:14: warning[-Wanalyzer-malloc-leak]: leak of ‘msgbuf’
xfsprogs-6.17.0/repair/xfs_repair.c:1086:1: enter_function: entry to ‘main’
xfsprogs-6.17.0/repair/xfs_repair.c:1109:9: call_function: calling ‘process_args’ from ‘main’
xfsprogs-6.17.0/repair/xfs_repair.c:1109:9: return_function: returning to ‘main’ from ‘process_args’
xfsprogs-6.17.0/repair/xfs_repair.c:1112:18: acquire_memory: allocated here
xfsprogs-6.17.0/repair/xfs_repair.c:1147:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/xfs_repair.c:1157:13: branch_false: ...to here
xfsprogs-6.17.0/repair/xfs_repair.c:1166:14: throw: if ‘libxfs_mount’ throws an exception...
xfsprogs-6.17.0/repair/xfs_repair.c:1166:14: danger: ‘msgbuf’ leaks here; was allocated at [(9)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def300]
xfsprogs-6.17.0/repair/xfs_repair.c:1191:30: warning[-Wanalyzer-malloc-leak]: leak of ‘msgbuf’
xfsprogs-6.17.0/repair/xfs_repair.c:1086:1: enter_function: entry to ‘main’
xfsprogs-6.17.0/repair/xfs_repair.c:1109:9: call_function: calling ‘process_args’ from ‘main’
xfsprogs-6.17.0/repair/xfs_repair.c:1109:9: return_function: returning to ‘main’ from ‘process_args’
xfsprogs-6.17.0/repair/xfs_repair.c:1112:18: acquire_memory: allocated here
xfsprogs-6.17.0/repair/xfs_repair.c:1147:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/xfs_repair.c:1157:13: branch_false: ...to here
xfsprogs-6.17.0/repair/xfs_repair.c:1168:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/xfs_repair.c:1174:9: branch_false: ...to here
xfsprogs-6.17.0/repair/xfs_repair.c:1191:30: throw: if ‘libxfs_symlink_blocks’ throws an exception...
xfsprogs-6.17.0/repair/xfs_repair.c:1191:30: danger: ‘msgbuf’ leaks here; was allocated at [(9)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def301]
xfsprogs-6.17.0/repair/xfs_repair.c:1230:35: warning[-Wanalyzer-malloc-leak]: leak of ‘msgbuf’
xfsprogs-6.17.0/repair/xfs_repair.c:1086:1: enter_function: entry to ‘main’
xfsprogs-6.17.0/repair/xfs_repair.c:1109:9: call_function: calling ‘process_args’ from ‘main’
xfsprogs-6.17.0/repair/xfs_repair.c:1109:9: return_function: returning to ‘main’ from ‘process_args’
xfsprogs-6.17.0/repair/xfs_repair.c:1112:18: acquire_memory: allocated here
xfsprogs-6.17.0/repair/xfs_repair.c:1147:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/xfs_repair.c:1157:13: branch_false: ...to here
xfsprogs-6.17.0/repair/xfs_repair.c:1168:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/xfs_repair.c:1174:9: branch_false: ...to here
xfsprogs-6.17.0/repair/xfs_repair.c:1229:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/xfs_repair.c:1230:35: branch_true: ...to here
xfsprogs-6.17.0/repair/xfs_repair.c:1230:35: throw: if ‘platform_nproc’ throws an exception...
xfsprogs-6.17.0/repair/xfs_repair.c:1230:35: danger: ‘msgbuf’ leaks here; was allocated at [(9)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def302]
xfsprogs-6.17.0/repair/xfs_repair.c:1239:25: warning[-Wanalyzer-malloc-leak]: leak of ‘msgbuf’
xfsprogs-6.17.0/repair/xfs_repair.c:1086:1: enter_function: entry to ‘main’
xfsprogs-6.17.0/repair/xfs_repair.c:1109:9: call_function: calling ‘process_args’ from ‘main’
xfsprogs-6.17.0/repair/xfs_repair.c:1109:9: return_function: returning to ‘main’ from ‘process_args’
xfsprogs-6.17.0/repair/xfs_repair.c:1112:18: acquire_memory: allocated here
xfsprogs-6.17.0/repair/xfs_repair.c:1147:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/xfs_repair.c:1157:13: branch_false: ...to here
xfsprogs-6.17.0/repair/xfs_repair.c:1168:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/xfs_repair.c:1174:9: branch_false: ...to here
xfsprogs-6.17.0/repair/xfs_repair.c:1229:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/xfs_repair.c:1230:35: branch_true: ...to here
xfsprogs-6.17.0/repair/xfs_repair.c:1238:20: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/xfs_repair.c:1239:25: branch_true: ...to here
xfsprogs-6.17.0/repair/xfs_repair.c:1239:25: throw: if ‘thread_init’ throws an exception...
xfsprogs-6.17.0/repair/xfs_repair.c:1239:25: danger: ‘msgbuf’ leaks here; was allocated at [(9)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def303]
xfsprogs-6.17.0/repair/xfs_repair.c:1247:17: warning[-Wanalyzer-malloc-leak]: leak of ‘msgbuf’
xfsprogs-6.17.0/repair/xfs_repair.c:1086:1: enter_function: entry to ‘main’
xfsprogs-6.17.0/repair/xfs_repair.c:1109:9: call_function: calling ‘process_args’ from ‘main’
xfsprogs-6.17.0/repair/xfs_repair.c:1109:9: return_function: returning to ‘main’ from ‘process_args’
xfsprogs-6.17.0/repair/xfs_repair.c:1112:18: acquire_memory: allocated here
xfsprogs-6.17.0/repair/xfs_repair.c:1147:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/xfs_repair.c:1157:13: branch_false: ...to here
xfsprogs-6.17.0/repair/xfs_repair.c:1168:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/xfs_repair.c:1174:9: branch_false: ...to here
xfsprogs-6.17.0/repair/xfs_repair.c:1229:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/xfs_repair.c:1230:35: branch_true: ...to here
xfsprogs-6.17.0/repair/xfs_repair.c:1246:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/xfs_repair.c:1247:17: throw: if ‘init_progress_rpt’ throws an exception...
xfsprogs-6.17.0/repair/xfs_repair.c:1247:17: danger: ‘msgbuf’ leaks here; was allocated at [(9)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def304]
xfsprogs-6.17.0/repair/xfs_repair.c:1249:25: warning[-Wanalyzer-malloc-leak]: leak of ‘msgbuf’
xfsprogs-6.17.0/repair/xfs_repair.c:1086:1: enter_function: entry to ‘main’
xfsprogs-6.17.0/repair/xfs_repair.c:1109:9: call_function: calling ‘process_args’ from ‘main’
xfsprogs-6.17.0/repair/xfs_repair.c:1109:9: return_function: returning to ‘main’ from ‘process_args’
xfsprogs-6.17.0/repair/xfs_repair.c:1112:18: acquire_memory: allocated here
xfsprogs-6.17.0/repair/xfs_repair.c:1147:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/xfs_repair.c:1157:13: branch_false: ...to here
xfsprogs-6.17.0/repair/xfs_repair.c:1168:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/xfs_repair.c:1174:9: branch_false: ...to here
xfsprogs-6.17.0/repair/xfs_repair.c:1229:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/xfs_repair.c:1230:35: branch_true: ...to here
xfsprogs-6.17.0/repair/xfs_repair.c:1246:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/repair/xfs_repair.c:1248:20: branch_true: following ‘true’ branch (when ‘msgbuf’ is non-NULL)...
xfsprogs-6.17.0/repair/xfs_repair.c:1249:25: branch_true: ...to here
xfsprogs-6.17.0/repair/xfs_repair.c:1249:25: throw: if ‘duration’ throws an exception...
xfsprogs-6.17.0/repair/xfs_repair.c:1249:25: danger: ‘msgbuf’ leaks here; was allocated at [(9)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def305]
xfsprogs-6.17.0/repair/xfs_repair.c:1274:17: warning[-Wanalyzer-malloc-leak]: leak of ‘msgbuf’
xfsprogs-6.17.0/repair/xfs_repair.c:1086:1: enter_function: entry to ‘main’
xfsprogs-6.17.0/repair/xfs_repair.c:1109:9: call_function: calling ‘process_args’ from ‘main’
xfsprogs-6.17.0/repair/xfs_repair.c:1109:9: return_function: returning to ‘main’ from ‘process_args’
xfsprogs-6.17.0/repair/xfs_repair.c:1112:18: acquire_memory: allocated here
xfsprogs-6.17.0/repair/xfs_repair.c:1147:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/xfs_repair.c:1157:13: branch_false: ...to here
xfsprogs-6.17.0/repair/xfs_repair.c:1168:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/xfs_repair.c:1174:9: branch_false: ...to here
xfsprogs-6.17.0/repair/xfs_repair.c:1246:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/xfs_repair.c:1269:13: branch_false: ...to here
xfsprogs-6.17.0/repair/xfs_repair.c:1274:17: throw: if ‘libxfs_bcache_purge’ throws an exception...
xfsprogs-6.17.0/repair/xfs_repair.c:1274:17: danger: ‘msgbuf’ leaks here; was allocated at [(9)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def306]
xfsprogs-6.17.0/repair/xfs_repair.c:1275:17: warning[-Wanalyzer-malloc-leak]: leak of ‘msgbuf’
xfsprogs-6.17.0/repair/xfs_repair.c:1086:1: enter_function: entry to ‘main’
xfsprogs-6.17.0/repair/xfs_repair.c:1109:9: call_function: calling ‘process_args’ from ‘main’
xfsprogs-6.17.0/repair/xfs_repair.c:1109:9: return_function: returning to ‘main’ from ‘process_args’
xfsprogs-6.17.0/repair/xfs_repair.c:1112:18: acquire_memory: allocated here
xfsprogs-6.17.0/repair/xfs_repair.c:1147:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/xfs_repair.c:1157:13: branch_false: ...to here
xfsprogs-6.17.0/repair/xfs_repair.c:1168:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/xfs_repair.c:1174:9: branch_false: ...to here
xfsprogs-6.17.0/repair/xfs_repair.c:1246:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/xfs_repair.c:1269:13: branch_false: ...to here
xfsprogs-6.17.0/repair/xfs_repair.c:1275:17: throw: if ‘cache_destroy’ throws an exception...
xfsprogs-6.17.0/repair/xfs_repair.c:1275:17: danger: ‘msgbuf’ leaks here; was allocated at [(9)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def307]
xfsprogs-6.17.0/repair/xfs_repair.c:1281:47: warning[-Wanalyzer-malloc-leak]: leak of ‘msgbuf’
xfsprogs-6.17.0/repair/xfs_repair.c:1086:1: enter_function: entry to ‘main’
xfsprogs-6.17.0/repair/xfs_repair.c:1109:9: call_function: calling ‘process_args’ from ‘main’
xfsprogs-6.17.0/repair/xfs_repair.c:1109:9: return_function: returning to ‘main’ from ‘process_args’
xfsprogs-6.17.0/repair/xfs_repair.c:1112:18: acquire_memory: allocated here
xfsprogs-6.17.0/repair/xfs_repair.c:1147:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/xfs_repair.c:1157:13: branch_false: ...to here
xfsprogs-6.17.0/repair/xfs_repair.c:1168:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/xfs_repair.c:1174:9: branch_false: ...to here
xfsprogs-6.17.0/repair/xfs_repair.c:1246:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/xfs_repair.c:1269:13: branch_false: ...to here
xfsprogs-6.17.0/repair/xfs_repair.c:1280:27: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/repair/xfs_repair.c:1281:47: branch_false: ...to here
xfsprogs-6.17.0/repair/xfs_repair.c:1281:47: throw: if ‘platform_physmem’ throws an exception...
xfsprogs-6.17.0/repair/xfs_repair.c:1281:47: danger: ‘msgbuf’ leaks here; was allocated at [(9)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def308]
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:276:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fromfd’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:101:1: enter_function: entry to ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:126:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:135:9: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:146:27: call_function: calling ‘xfsrtextsize’ from ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:146:27: return_function: returning to ‘rtcp’ from ‘xfsrtextsize’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:146:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:156:9: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:196:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:202:22: call_function: inlined call to ‘xfsctl’ from ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:202:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:213:24: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:213:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:223:20: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:236:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:245:9: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:259:32: acquire_resource: opened here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:259:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:272:14: call_function: inlined call to ‘xfsctl’ from ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:272:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:275:44: branch_true: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:276:17: throw: if ‘close’ throws an exception...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:276:17: danger: ‘fromfd’ leaks here; was opened at [(22)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/21)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def309]
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:286:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fromfd’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:101:1: enter_function: entry to ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:126:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:135:9: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:146:27: call_function: calling ‘xfsrtextsize’ from ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:146:27: return_function: returning to ‘rtcp’ from ‘xfsrtextsize’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:146:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:156:9: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:196:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:202:22: call_function: inlined call to ‘xfsctl’ from ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:202:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:213:24: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:213:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:223:20: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:236:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:245:9: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:259:32: acquire_resource: opened here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:259:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:272:14: call_function: inlined call to ‘xfsctl’ from ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:272:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:283:14: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:283:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:284:17: branch_true: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:286:17: throw: if ‘close’ throws an exception...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:286:17: danger: ‘fromfd’ leaks here; was opened at [(22)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/21)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def310]
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:310:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fromfd’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:101:1: enter_function: entry to ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:126:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:135:9: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:146:27: call_function: calling ‘xfsrtextsize’ from ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:146:27: return_function: returning to ‘rtcp’ from ‘xfsrtextsize’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:146:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:156:9: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:196:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:202:22: call_function: inlined call to ‘xfsctl’ from ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:202:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:213:24: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:213:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:223:20: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:236:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:245:9: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:259:32: acquire_resource: opened here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:259:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:272:14: call_function: inlined call to ‘xfsctl’ from ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:272:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:283:14: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:283:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:297:14: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:297:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:298:24: branch_true: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:300:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:307:25: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:310:25: throw: if ‘close’ throws an exception...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:310:25: danger: ‘fromfd’ leaks here; was opened at [(22)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/21)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def311]
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:320:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fbuf’ where non-null expected
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:101:1: enter_function: entry to ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:126:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:135:9: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:146:27: call_function: calling ‘xfsrtextsize’ from ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:146:27: return_function: returning to ‘rtcp’ from ‘xfsrtextsize’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:146:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:156:9: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:196:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:202:22: call_function: inlined call to ‘xfsctl’ from ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:202:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:213:24: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:213:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:223:20: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:236:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:245:9: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:247:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:250:24: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:250:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:272:14: call_function: inlined call to ‘xfsctl’ from ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:272:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:283:14: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:283:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:297:14: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:319:16: acquire_memory: this call could return NULL
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:320:9: danger: argument 1 (‘fbuf’) from [(31)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/30) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-775): [#def312]
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:346:27: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fromfd’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:101:1: enter_function: entry to ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:126:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:135:9: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:146:27: call_function: calling ‘xfsrtextsize’ from ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:146:27: return_function: returning to ‘rtcp’ from ‘xfsrtextsize’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:146:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:156:9: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:196:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:202:22: call_function: inlined call to ‘xfsctl’ from ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:202:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:213:24: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:213:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:223:20: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:236:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:245:9: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:259:32: acquire_resource: opened here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:259:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:272:14: call_function: inlined call to ‘xfsctl’ from ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:272:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:283:14: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:283:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:297:14: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:325:17: branch_true: following ‘true’ branch (when ‘readct != 0’)...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:329:20: branch_true: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:329:20: branch_false: following ‘false’ branch (when ‘readct >= 0’)...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:336:20: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:346:27: throw: if ‘write’ throws an exception...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:346:27: danger: ‘fromfd’ leaks here; was opened at [(22)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/21)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def313]
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:346:27: warning[-Wanalyzer-malloc-leak]: leak of ‘fbuf’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:101:1: enter_function: entry to ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:126:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:135:9: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:146:27: call_function: calling ‘xfsrtextsize’ from ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:146:27: return_function: returning to ‘rtcp’ from ‘xfsrtextsize’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:146:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:156:9: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:196:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:202:22: call_function: inlined call to ‘xfsctl’ from ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:202:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:213:24: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:213:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:223:20: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:236:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:245:9: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:247:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:250:24: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:250:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:272:14: call_function: inlined call to ‘xfsctl’ from ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:272:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:283:14: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:283:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:297:14: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:319:16: acquire_memory: allocated here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:325:17: branch_true: following ‘true’ branch (when ‘readct != 0’)...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:329:20: branch_true: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:329:20: branch_false: following ‘false’ branch (when ‘readct >= 0’)...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:336:20: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:346:27: throw: if ‘write’ throws an exception...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:346:27: danger: ‘fbuf’ leaks here; was allocated at [(31)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/30)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def314]
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:351:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fromfd’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:101:1: enter_function: entry to ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:126:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:135:9: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:146:27: call_function: calling ‘xfsrtextsize’ from ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:146:27: return_function: returning to ‘rtcp’ from ‘xfsrtextsize’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:146:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:156:9: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:196:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:202:22: call_function: inlined call to ‘xfsctl’ from ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:202:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:213:24: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:213:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:223:20: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:236:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:245:9: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:259:32: acquire_resource: opened here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:259:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:272:14: call_function: inlined call to ‘xfsctl’ from ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:272:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:283:14: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:283:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:297:14: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:325:17: branch_true: following ‘true’ branch (when ‘readct != 0’)...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:329:20: branch_true: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:329:20: branch_false: following ‘false’ branch (when ‘readct >= 0’)...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:336:20: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:351:25: throw: if ‘close’ throws an exception...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:351:25: danger: ‘fromfd’ leaks here; was opened at [(22)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/21)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def315]
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:351:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fbuf’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:101:1: enter_function: entry to ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:126:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:135:9: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:146:27: call_function: calling ‘xfsrtextsize’ from ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:146:27: return_function: returning to ‘rtcp’ from ‘xfsrtextsize’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:146:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:156:9: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:196:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:202:22: call_function: inlined call to ‘xfsctl’ from ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:202:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:213:24: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:213:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:223:20: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:236:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:245:9: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:247:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:250:24: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:250:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:272:14: call_function: inlined call to ‘xfsctl’ from ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:272:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:283:14: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:283:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:297:14: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:319:16: acquire_memory: allocated here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:325:17: branch_true: following ‘true’ branch (when ‘readct != 0’)...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:329:20: branch_true: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:329:20: branch_false: following ‘false’ branch (when ‘readct >= 0’)...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:336:20: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:351:25: throw: if ‘close’ throws an exception...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:351:25: danger: ‘fbuf’ leaks here; was allocated at [(31)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/30)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def316]
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:352:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fbuf’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:101:1: enter_function: entry to ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:126:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:135:9: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:146:27: call_function: calling ‘xfsrtextsize’ from ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:146:27: return_function: returning to ‘rtcp’ from ‘xfsrtextsize’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:146:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:156:9: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:196:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:202:22: call_function: inlined call to ‘xfsctl’ from ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:202:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:213:24: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:213:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:223:20: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:236:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:245:9: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:272:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:283:14: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:283:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:297:14: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:319:16: acquire_memory: allocated here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:325:17: branch_true: following ‘true’ branch (when ‘readct != 0’)...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:329:20: branch_true: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:329:20: branch_false: following ‘false’ branch (when ‘readct >= 0’)...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:336:20: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:352:25: throw: if ‘close’ throws an exception...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:352:25: danger: ‘fbuf’ leaks here; was allocated at [(26)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/25)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def317]
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:360:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fromfd’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:101:1: enter_function: entry to ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:126:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:135:9: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:146:27: call_function: calling ‘xfsrtextsize’ from ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:146:27: return_function: returning to ‘rtcp’ from ‘xfsrtextsize’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:146:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:156:9: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:196:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:202:22: call_function: inlined call to ‘xfsctl’ from ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:202:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:213:24: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:213:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:223:20: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:236:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:245:9: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:259:32: acquire_resource: opened here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:259:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:272:14: call_function: inlined call to ‘xfsctl’ from ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:272:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:283:14: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:283:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:297:14: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:360:9: throw: if ‘close’ throws an exception...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:360:9: danger: ‘fromfd’ leaks here; was opened at [(22)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/21)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def318]
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:360:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fbuf’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:101:1: enter_function: entry to ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:126:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:135:9: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:146:27: call_function: calling ‘xfsrtextsize’ from ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:146:27: return_function: returning to ‘rtcp’ from ‘xfsrtextsize’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:146:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:156:9: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:196:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:202:22: call_function: inlined call to ‘xfsctl’ from ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:202:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:213:24: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:213:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:223:20: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:236:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:245:9: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:247:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:250:24: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:250:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:272:14: call_function: inlined call to ‘xfsctl’ from ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:272:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:283:14: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:283:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:297:14: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:319:16: acquire_memory: allocated here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:360:9: throw: if ‘close’ throws an exception...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:360:9: danger: ‘fbuf’ leaks here; was allocated at [(31)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/30)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def319]
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:361:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fbuf’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:101:1: enter_function: entry to ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:126:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:135:9: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:146:27: call_function: calling ‘xfsrtextsize’ from ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:146:27: return_function: returning to ‘rtcp’ from ‘xfsrtextsize’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:146:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:156:9: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:196:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:202:22: call_function: inlined call to ‘xfsctl’ from ‘rtcp’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:202:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:213:24: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:213:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:223:20: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:236:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:245:9: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:272:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:283:14: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:283:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:297:14: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:319:16: acquire_memory: allocated here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:361:9: throw: if ‘close’ throws an exception...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:361:9: danger: ‘fbuf’ leaks here; was allocated at [(26)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/25)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def320]
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:381:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 0)’
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:375:14: acquire_resource: opened here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:376:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:381:17: branch_false: ...to here
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:381:17: throw: if ‘xfrog_geometry’ throws an exception...
xfsprogs-6.17.0/rtcp/xfs_rtcp.c:381:17: danger: ‘open(path, 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def321]
xfsprogs-6.17.0/scrub/counter.c:41:16: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
xfsprogs-6.17.0/scrub/counter.c:38:13: acquire_memory: allocated here
xfsprogs-6.17.0/scrub/counter.c:39:12: branch_false: following ‘false’ branch (when ‘p’ is non-NULL)...
xfsprogs-6.17.0/scrub/counter.c:41:16: branch_false: ...to here
xfsprogs-6.17.0/scrub/counter.c:41:16: throw: if ‘ptvar_alloc’ throws an exception...
xfsprogs-6.17.0/scrub/counter.c:41:16: danger: ‘p’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def322]
xfsprogs-6.17.0/scrub/disk.c:194:22: warning[-Wanalyzer-malloc-leak]: leak of ‘disk’
xfsprogs-6.17.0/scrub/disk.c:190:16: acquire_memory: allocated here
xfsprogs-6.17.0/scrub/disk.c:191:12: branch_false: following ‘false’ branch (when ‘disk’ is non-NULL)...
xfsprogs-6.17.0/scrub/disk.c:194:22: branch_false: ...to here
xfsprogs-6.17.0/scrub/disk.c:194:22: throw: if ‘open’ throws an exception...
xfsprogs-6.17.0/scrub/disk.c:194:22: danger: ‘disk’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def323]
xfsprogs-6.17.0/scrub/fscounters.c:88:16: warning[-Wanalyzer-malloc-leak]: leak of ‘ci’
xfsprogs-6.17.0/scrub/fscounters.c:83:14: acquire_memory: allocated here
xfsprogs-6.17.0/scrub/fscounters.c:85:12: branch_false: following ‘false’ branch (when ‘ci’ is non-NULL)...
xfsprogs-6.17.0/scrub/fscounters.c:88:16: branch_false: ...to here
xfsprogs-6.17.0/scrub/fscounters.c:88:16: throw: if ‘scrub_nproc_workqueue’ throws an exception...
xfsprogs-6.17.0/scrub/fscounters.c:88:16: danger: ‘ci’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def324]
xfsprogs-6.17.0/scrub/fscounters.c:94:24: warning[-Wanalyzer-malloc-leak]: leak of ‘ci’
xfsprogs-6.17.0/scrub/fscounters.c:83:14: acquire_memory: allocated here
xfsprogs-6.17.0/scrub/fscounters.c:85:12: branch_false: following ‘false’ branch (when ‘ci’ is non-NULL)...
xfsprogs-6.17.0/scrub/fscounters.c:88:16: branch_false: ...to here
xfsprogs-6.17.0/scrub/fscounters.c:90:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/fscounters.c:90:12: branch_false: ...to here
xfsprogs-6.17.0/scrub/fscounters.c:93:24: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/scrub/fscounters.c:94:24: throw: if ‘workqueue_add’ throws an exception...
xfsprogs-6.17.0/scrub/fscounters.c:94:24: danger: ‘ci’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def325]
xfsprogs-6.17.0/scrub/fscounters.c:99:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ci’
xfsprogs-6.17.0/scrub/fscounters.c:83:14: acquire_memory: allocated here
xfsprogs-6.17.0/scrub/fscounters.c:85:12: branch_false: following ‘false’ branch (when ‘ci’ is non-NULL)...
xfsprogs-6.17.0/scrub/fscounters.c:88:16: branch_false: ...to here
xfsprogs-6.17.0/scrub/fscounters.c:90:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/fscounters.c:90:12: branch_false: ...to here
xfsprogs-6.17.0/scrub/fscounters.c:99:17: throw: if ‘workqueue_terminate’ throws an exception...
xfsprogs-6.17.0/scrub/fscounters.c:99:17: danger: ‘ci’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def326]
xfsprogs-6.17.0/scrub/fscounters.c:102:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ci’
xfsprogs-6.17.0/scrub/fscounters.c:83:14: acquire_memory: allocated here
xfsprogs-6.17.0/scrub/fscounters.c:85:12: branch_false: following ‘false’ branch (when ‘ci’ is non-NULL)...
xfsprogs-6.17.0/scrub/fscounters.c:88:16: branch_false: ...to here
xfsprogs-6.17.0/scrub/fscounters.c:90:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/fscounters.c:90:12: branch_false: ...to here
xfsprogs-6.17.0/scrub/fscounters.c:102:9: throw: if ‘workqueue_destroy’ throws an exception...
xfsprogs-6.17.0/scrub/fscounters.c:102:9: danger: ‘ci’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def327]
xfsprogs-6.17.0/scrub/inodes.c:473:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg’
xfsprogs-6.17.0/scrub/inodes.c:557:1: enter_function: entry to ‘scan_ag_inumbers’
xfsprogs-6.17.0/scrub/inodes.c:562:34: release_memory: ‘ichunk’ is NULL
xfsprogs-6.17.0/scrub/inodes.c:572:17: call_function: calling ‘alloc_ichunk’ from ‘scan_ag_inumbers’
xfsprogs-6.17.0/scrub/inodes.c:572:17: return_function: returning to ‘scan_ag_inumbers’ from ‘alloc_ichunk’
xfsprogs-6.17.0/scrub/inodes.c:573:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/inodes.c:575:16: branch_false: ...to here
xfsprogs-6.17.0/scrub/inodes.c:575:16: release_memory: ‘ichunk’ is NULL
xfsprogs-6.17.0/scrub/inodes.c:579:16: branch_true: following ‘true’ branch (when ‘error == 0’)...
xfsprogs-6.17.0/scrub/inodes.c:579:27: branch_true: ...to here
xfsprogs-6.17.0/scrub/inodes.c:579:16: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/inodes.c:579:42: branch_false: ...to here
xfsprogs-6.17.0/scrub/inodes.c:579:16: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/scrub/inodes.c:584:31: branch_true: ...to here
xfsprogs-6.17.0/scrub/inodes.c:584:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/inodes.c:593:17: branch_false: ...to here
xfsprogs-6.17.0/scrub/inodes.c:602:27: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/inodes.c:618:25: branch_false: ...to here
xfsprogs-6.17.0/scrub/inodes.c:618:25: release_memory: ‘ichunk’ is NULL
xfsprogs-6.17.0/scrub/inodes.c:618:25: call_function: calling ‘scan_ag_bulkstat’ from ‘scan_ag_inumbers’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def328]
xfsprogs-6.17.0/scrub/inodes.c:578:18: warning[-Wanalyzer-malloc-leak]: leak of ‘ichunk’
xfsprogs-6.17.0/scrub/inodes.c:557:1: enter_function: entry to ‘scan_ag_inumbers’
xfsprogs-6.17.0/scrub/inodes.c:572:17: call_function: calling ‘alloc_ichunk’ from ‘scan_ag_inumbers’
xfsprogs-6.17.0/scrub/inodes.c:572:17: return_function: returning to ‘scan_ag_inumbers’ from ‘alloc_ichunk’
xfsprogs-6.17.0/scrub/inodes.c:573:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/inodes.c:575:16: branch_false: ...to here
xfsprogs-6.17.0/scrub/inodes.c:578:18: throw: if ‘xfrog_inumbers’ throws an exception...
xfsprogs-6.17.0/scrub/inodes.c:578:18: danger: ‘ichunk’ leaks here; was allocated at [(4)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def329]
xfsprogs-6.17.0/scrub/inodes.c:794:16: warning[-Wanalyzer-malloc-leak]: leak of ‘ureq’
xfsprogs-6.17.0/scrub/inodes.c:783:16: acquire_memory: allocated here
xfsprogs-6.17.0/scrub/inodes.c:785:12: branch_false: following ‘false’ branch (when ‘ureq’ is non-NULL)...
xfsprogs-6.17.0/scrub/inodes.c:790:9: branch_false: ...to here
xfsprogs-6.17.0/scrub/inodes.c:794:16: throw: if ‘xfrog_bulkstat’ throws an exception...
xfsprogs-6.17.0/scrub/inodes.c:794:16: danger: ‘ureq’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def330]
xfsprogs-6.17.0/scrub/phase5.c:134:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fdopendir(*fd)’
xfsprogs-6.17.0/scrub/phase5.c:378:1: enter_function: entry to ‘check_inode_names’
xfsprogs-6.17.0/scrub/phase5.c:399:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/phase5.c:403:20: branch_false: ...to here
xfsprogs-6.17.0/scrub/phase5.c:403:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/phase5.c:408:13: branch_false: ...to here
xfsprogs-6.17.0/scrub/phase5.c:408:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/phase5.c:420:13: branch_false: ...to here
xfsprogs-6.17.0/scrub/phase5.c:420:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/scrub/phase5.c:421:22: branch_true: ...to here
xfsprogs-6.17.0/scrub/phase5.c:422:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/phase5.c:430:25: branch_false: ...to here
xfsprogs-6.17.0/scrub/phase5.c:430:25: call_function: calling ‘check_dirent_names’ from ‘check_inode_names’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def331]
xfsprogs-6.17.0/scrub/phase5.c:136:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fdopendir(*fd)’
xfsprogs-6.17.0/scrub/phase5.c:378:1: enter_function: entry to ‘check_inode_names’
xfsprogs-6.17.0/scrub/phase5.c:399:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/phase5.c:403:20: branch_false: ...to here
xfsprogs-6.17.0/scrub/phase5.c:403:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/phase5.c:408:13: branch_false: ...to here
xfsprogs-6.17.0/scrub/phase5.c:408:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/phase5.c:420:13: branch_false: ...to here
xfsprogs-6.17.0/scrub/phase5.c:420:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/scrub/phase5.c:421:22: branch_true: ...to here
xfsprogs-6.17.0/scrub/phase5.c:422:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/phase5.c:430:25: branch_false: ...to here
xfsprogs-6.17.0/scrub/phase5.c:430:25: call_function: calling ‘check_dirent_names’ from ‘check_inode_names’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def332]
xfsprogs-6.17.0/scrub/phase5.c:141:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fdopendir(*fd)’
xfsprogs-6.17.0/scrub/phase5.c:378:1: enter_function: entry to ‘check_inode_names’
xfsprogs-6.17.0/scrub/phase5.c:399:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/phase5.c:403:20: branch_false: ...to here
xfsprogs-6.17.0/scrub/phase5.c:403:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/phase5.c:408:13: branch_false: ...to here
xfsprogs-6.17.0/scrub/phase5.c:408:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/phase5.c:420:13: branch_false: ...to here
xfsprogs-6.17.0/scrub/phase5.c:420:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/scrub/phase5.c:421:22: branch_true: ...to here
xfsprogs-6.17.0/scrub/phase5.c:422:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/phase5.c:430:25: branch_false: ...to here
xfsprogs-6.17.0/scrub/phase5.c:430:25: call_function: calling ‘check_dirent_names’ from ‘check_inode_names’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def333]
xfsprogs-6.17.0/scrub/phase5.c:162:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fdopendir(*fd)’
xfsprogs-6.17.0/scrub/phase5.c:378:1: enter_function: entry to ‘check_inode_names’
xfsprogs-6.17.0/scrub/phase5.c:399:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/phase5.c:403:20: branch_false: ...to here
xfsprogs-6.17.0/scrub/phase5.c:403:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/phase5.c:408:13: branch_false: ...to here
xfsprogs-6.17.0/scrub/phase5.c:408:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/phase5.c:420:13: branch_false: ...to here
xfsprogs-6.17.0/scrub/phase5.c:420:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/scrub/phase5.c:421:22: branch_true: ...to here
xfsprogs-6.17.0/scrub/phase5.c:422:20: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/phase5.c:430:25: branch_false: ...to here
xfsprogs-6.17.0/scrub/phase5.c:430:25: call_function: calling ‘check_dirent_names’ from ‘check_inode_names’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def334]
xfsprogs-6.17.0/scrub/phase5.c:208:17: warning[-Wanalyzer-malloc-leak]: leak of ‘attrlist’
xfsprogs-6.17.0/scrub/phase5.c:198:20: acquire_memory: allocated here
xfsprogs-6.17.0/scrub/phase5.c:199:12: branch_false: following ‘false’ branch (when ‘attrlist’ is non-NULL)...
xfsprogs-6.17.0/scrub/phase5.c:205:18: branch_false: ...to here
xfsprogs-6.17.0/scrub/phase5.c:206:12: branch_true: following ‘true’ branch (when ‘keybuf’ is NULL)...
xfsprogs-6.17.0/scrub/phase5.c:207:25: branch_true: ...to here
xfsprogs-6.17.0/scrub/phase5.c:208:17: throw: if ‘__descr_render’ throws an exception...
xfsprogs-6.17.0/scrub/phase5.c:208:17: danger: ‘attrlist’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def335]
xfsprogs-6.17.0/scrub/phase5.c:212:17: warning[-Wanalyzer-malloc-leak]: leak of ‘attrlist’
xfsprogs-6.17.0/scrub/phase5.c:198:20: acquire_memory: allocated here
xfsprogs-6.17.0/scrub/phase5.c:199:12: branch_false: following ‘false’ branch (when ‘attrlist’ is non-NULL)...
xfsprogs-6.17.0/scrub/phase5.c:205:18: branch_false: ...to here
xfsprogs-6.17.0/scrub/phase5.c:206:12: branch_false: following ‘false’ branch (when ‘keybuf’ is non-NULL)...
xfsprogs-6.17.0/scrub/phase5.c:212:17: branch_false: ...to here
xfsprogs-6.17.0/scrub/phase5.c:212:17: throw: if ‘unicrash_xattr_init’ throws an exception...
xfsprogs-6.17.0/scrub/phase5.c:212:17: danger: ‘attrlist’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def336]
xfsprogs-6.17.0/scrub/phase5.c:212:17: warning[-Wanalyzer-malloc-leak]: leak of ‘keybuf’
xfsprogs-6.17.0/scrub/phase5.c:199:12: branch_false: following ‘false’ branch (when ‘attrlist’ is non-NULL)...
xfsprogs-6.17.0/scrub/phase5.c:205:18: branch_false: ...to here
xfsprogs-6.17.0/scrub/phase5.c:205:18: acquire_memory: allocated here
xfsprogs-6.17.0/scrub/phase5.c:206:12: branch_false: following ‘false’ branch (when ‘keybuf’ is non-NULL)...
xfsprogs-6.17.0/scrub/phase5.c:212:17: branch_false: ...to here
xfsprogs-6.17.0/scrub/phase5.c:212:17: throw: if ‘unicrash_xattr_init’ throws an exception...
xfsprogs-6.17.0/scrub/phase5.c:212:17: danger: ‘keybuf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def337]
xfsprogs-6.17.0/scrub/phase5.c:214:17: warning[-Wanalyzer-malloc-leak]: leak of ‘attrlist’
xfsprogs-6.17.0/scrub/phase5.c:198:20: acquire_memory: allocated here
xfsprogs-6.17.0/scrub/phase5.c:199:12: branch_false: following ‘false’ branch (when ‘attrlist’ is non-NULL)...
xfsprogs-6.17.0/scrub/phase5.c:205:18: branch_false: ...to here
xfsprogs-6.17.0/scrub/phase5.c:206:12: branch_false: following ‘false’ branch (when ‘keybuf’ is non-NULL)...
xfsprogs-6.17.0/scrub/phase5.c:212:17: branch_false: ...to here
xfsprogs-6.17.0/scrub/phase5.c:213:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/scrub/phase5.c:214:17: branch_true: ...to here
xfsprogs-6.17.0/scrub/phase5.c:214:17: throw: if ‘__descr_render’ throws an exception...
xfsprogs-6.17.0/scrub/phase5.c:214:17: danger: ‘attrlist’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def338]
xfsprogs-6.17.0/scrub/phase5.c:214:17: warning[-Wanalyzer-malloc-leak]: leak of ‘keybuf’
xfsprogs-6.17.0/scrub/phase5.c:199:12: branch_false: following ‘false’ branch (when ‘attrlist’ is non-NULL)...
xfsprogs-6.17.0/scrub/phase5.c:205:18: branch_false: ...to here
xfsprogs-6.17.0/scrub/phase5.c:205:18: acquire_memory: allocated here
xfsprogs-6.17.0/scrub/phase5.c:206:12: branch_false: following ‘false’ branch (when ‘keybuf’ is non-NULL)...
xfsprogs-6.17.0/scrub/phase5.c:212:17: branch_false: ...to here
xfsprogs-6.17.0/scrub/phase5.c:213:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/scrub/phase5.c:214:17: branch_true: ...to here
xfsprogs-6.17.0/scrub/phase5.c:214:17: throw: if ‘__descr_render’ throws an exception...
xfsprogs-6.17.0/scrub/phase5.c:214:17: danger: ‘keybuf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def339]
xfsprogs-6.17.0/scrub/phase5.c:249:25: warning[-Wanalyzer-malloc-leak]: leak of ‘keybuf’
xfsprogs-6.17.0/scrub/phase5.c:199:12: branch_false: following ‘false’ branch (when ‘attrlist’ is non-NULL)...
xfsprogs-6.17.0/scrub/phase5.c:205:18: branch_false: ...to here
xfsprogs-6.17.0/scrub/phase5.c:205:18: acquire_memory: allocated here
xfsprogs-6.17.0/scrub/phase5.c:206:12: branch_false: following ‘false’ branch (when ‘keybuf’ is non-NULL)...
xfsprogs-6.17.0/scrub/phase5.c:212:17: branch_false: ...to here
xfsprogs-6.17.0/scrub/phase5.c:213:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/phase5.c:213:12: branch_false: ...to here
xfsprogs-6.17.0/scrub/phase5.c:244:12: branch_true: following ‘true’ branch (when ‘error != 0’)...
xfsprogs-6.17.0/scrub/phase5.c:245:21: branch_true: ...to here
xfsprogs-6.17.0/scrub/phase5.c:248:20: branch_true: following ‘true’ branch (when ‘error != 0’)...
xfsprogs-6.17.0/scrub/phase5.c:249:25: branch_true: ...to here
xfsprogs-6.17.0/scrub/phase5.c:249:25: throw: if ‘__descr_render’ throws an exception...
xfsprogs-6.17.0/scrub/phase5.c:249:25: danger: ‘keybuf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def340]
xfsprogs-6.17.0/scrub/phase5.c:689:16: warning[-Wanalyzer-malloc-leak]: leak of ‘item’
xfsprogs-6.17.0/scrub/phase5.c:679:16: acquire_memory: allocated here
xfsprogs-6.17.0/scrub/phase5.c:680:12: branch_false: following ‘false’ branch (when ‘item’ is non-NULL)...
xfsprogs-6.17.0/scrub/phase5.c:685:9: branch_false: ...to here
xfsprogs-6.17.0/scrub/phase5.c:689:16: throw: if ‘workqueue_add’ throws an exception...
xfsprogs-6.17.0/scrub/phase5.c:689:16: danger: ‘item’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def341]
xfsprogs-6.17.0/scrub/phase5.c:766:16: warning[-Wanalyzer-malloc-leak]: leak of ‘item’
xfsprogs-6.17.0/scrub/phase5.c:756:16: acquire_memory: allocated here
xfsprogs-6.17.0/scrub/phase5.c:757:12: branch_false: following ‘false’ branch (when ‘item’ is non-NULL)...
xfsprogs-6.17.0/scrub/phase5.c:757:12: branch_false: ...to here
xfsprogs-6.17.0/scrub/phase5.c:766:16: throw: if ‘workqueue_add’ throws an exception...
xfsprogs-6.17.0/scrub/phase5.c:766:16: danger: ‘item’ leaks here; was allocated at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def342]
xfsprogs-6.17.0/scrub/read_verify.c:314:16: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
xfsprogs-6.17.0/scrub/read_verify.c:306:15: acquire_memory: allocated here
xfsprogs-6.17.0/scrub/read_verify.c:307:12: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
xfsprogs-6.17.0/scrub/read_verify.c:312:9: branch_false: ...to here
xfsprogs-6.17.0/scrub/read_verify.c:314:16: throw: if ‘workqueue_add’ throws an exception...
xfsprogs-6.17.0/scrub/read_verify.c:314:16: danger: ‘tmp’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def343]
xfsprogs-6.17.0/scrub/scrub.c:305:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xfsprogs-6.17.0/scrub/scrub.c:296:1: enter_function: entry to ‘xfrog_scrubv_add_item’
xfsprogs-6.17.0/scrub/scrub.c:304:13: call_function: inlined call to ‘xfrog_scrubv_next_vector’ from ‘xfrog_scrubv_add_item’
xfsprogs-6.17.0/scrub/scrub.c:305:9: branch_true: ...to here
xfsprogs-6.17.0/scrub/scrub.c:305:9: danger: dereference of NULL ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def344]
xfsprogs-6.17.0/scrub/scrub.c:321:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xfsprogs-6.17.0/scrub/scrub.c:314:1: enter_function: entry to ‘xfrog_scrubv_add_barrier’
xfsprogs-6.17.0/scrub/scrub.c:319:13: call_function: inlined call to ‘xfrog_scrubv_next_vector’ from ‘xfrog_scrubv_add_barrier’
xfsprogs-6.17.0/scrub/scrub.c:321:9: branch_true: ...to here
xfsprogs-6.17.0/scrub/scrub.c:321:9: danger: dereference of NULL ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def345]
xfsprogs-6.17.0/scrub/vfs.c:100:18: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
xfsprogs-6.17.0/scrub/vfs.c:87:12: branch_false: following ‘false’ branch (when ‘new_sftd’ is non-NULL)...
xfsprogs-6.17.0/scrub/vfs.c:90:26: branch_false: ...to here
xfsprogs-6.17.0/scrub/vfs.c:90:26: acquire_memory: allocated here
xfsprogs-6.17.0/scrub/vfs.c:91:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/vfs.c:96:9: branch_false: ...to here
xfsprogs-6.17.0/scrub/vfs.c:100:18: throw: if ‘workqueue_add’ throws an exception...
xfsprogs-6.17.0/scrub/vfs.c:100:18: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def346]
xfsprogs-6.17.0/scrub/vfs.c:100:18: warning[-Wanalyzer-malloc-leak]: leak of ‘new_sftd’
xfsprogs-6.17.0/scrub/vfs.c:86:20: acquire_memory: allocated here
xfsprogs-6.17.0/scrub/vfs.c:87:12: branch_false: following ‘false’ branch (when ‘new_sftd’ is non-NULL)...
xfsprogs-6.17.0/scrub/vfs.c:90:26: branch_false: ...to here
xfsprogs-6.17.0/scrub/vfs.c:91:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/vfs.c:96:9: branch_false: ...to here
xfsprogs-6.17.0/scrub/vfs.c:100:18: throw: if ‘workqueue_add’ throws an exception...
xfsprogs-6.17.0/scrub/vfs.c:100:18: danger: ‘new_sftd’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def347]
xfsprogs-6.17.0/scrub/vfs.c:141:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(*(struct scan_fs_tree_dir *)arg.path, 393472)’
xfsprogs-6.17.0/scrub/vfs.c:133:18: acquire_resource: opened here
xfsprogs-6.17.0/scrub/vfs.c:134:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/vfs.c:141:17: branch_false: ...to here
xfsprogs-6.17.0/scrub/vfs.c:141:17: throw: if the called function throws an exception...
xfsprogs-6.17.0/scrub/vfs.c:141:17: danger: ‘open(*(struct scan_fs_tree_dir *)arg.path, 393472)’ leaks here; was opened at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def348]
xfsprogs-6.17.0/scrub/xfs_scrub.c:750:42: warning[-Wanalyzer-malloc-leak]: leak of ‘progress_fp’
xfsprogs-6.17.0/scrub/xfs_scrub.c:737:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/xfs_scrub.c:744:9: branch_false: ...to here
xfsprogs-6.17.0/scrub/xfs_scrub.c:747:16: branch_true: following ‘true’ branch (when ‘c != -1’)...
xfsprogs-6.17.0/scrub/xfs_scrub.c:748:17: branch_true: ...to here
xfsprogs-6.17.0/scrub/xfs_scrub.c:763:28: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/xfs_scrub.c:767:39: branch_false: ...to here
xfsprogs-6.17.0/scrub/xfs_scrub.c:767:39: acquire_memory: allocated here
xfsprogs-6.17.0/scrub/xfs_scrub.c:768:28: branch_false: following ‘false’ branch (when ‘progress_fp’ is non-NULL)...
xfsprogs-6.17.0/scrub/xfs_scrub.c:768:28: branch_false: ...to here
xfsprogs-6.17.0/scrub/xfs_scrub.c:747:16: branch_true: following ‘true’ branch (when ‘c != -1’)...
xfsprogs-6.17.0/scrub/xfs_scrub.c:748:17: branch_true: ...to here
xfsprogs-6.17.0/scrub/xfs_scrub.c:750:42: throw: if ‘cvt_u64’ throws an exception...
xfsprogs-6.17.0/scrub/xfs_scrub.c:750:42: danger: ‘progress_fp’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def349]
xfsprogs-6.17.0/scrub/xfs_scrub.c:752:33: warning[-Wanalyzer-malloc-leak]: leak of ‘progress_fp’
xfsprogs-6.17.0/scrub/xfs_scrub.c:737:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/xfs_scrub.c:744:9: branch_false: ...to here
xfsprogs-6.17.0/scrub/xfs_scrub.c:747:16: branch_true: following ‘true’ branch (when ‘c != -1’)...
xfsprogs-6.17.0/scrub/xfs_scrub.c:748:17: branch_true: ...to here
xfsprogs-6.17.0/scrub/xfs_scrub.c:763:28: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/xfs_scrub.c:767:39: branch_false: ...to here
xfsprogs-6.17.0/scrub/xfs_scrub.c:767:39: acquire_memory: allocated here
xfsprogs-6.17.0/scrub/xfs_scrub.c:768:28: branch_false: following ‘false’ branch (when ‘progress_fp’ is non-NULL)...
xfsprogs-6.17.0/scrub/xfs_scrub.c:768:28: branch_false: ...to here
xfsprogs-6.17.0/scrub/xfs_scrub.c:747:16: branch_true: following ‘true’ branch (when ‘c != -1’)...
xfsprogs-6.17.0/scrub/xfs_scrub.c:748:17: branch_true: ...to here
xfsprogs-6.17.0/scrub/xfs_scrub.c:752:33: throw: if ‘perror’ throws an exception...
xfsprogs-6.17.0/scrub/xfs_scrub.c:752:33: danger: ‘progress_fp’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def350]
xfsprogs-6.17.0/scrub/xfs_scrub.c:762:30: warning[-Wanalyzer-malloc-leak]: leak of ‘progress_fp’
xfsprogs-6.17.0/scrub/xfs_scrub.c:737:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/xfs_scrub.c:744:9: branch_false: ...to here
xfsprogs-6.17.0/scrub/xfs_scrub.c:747:16: branch_true: following ‘true’ branch (when ‘c != -1’)...
xfsprogs-6.17.0/scrub/xfs_scrub.c:748:17: branch_true: ...to here
xfsprogs-6.17.0/scrub/xfs_scrub.c:763:28: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/xfs_scrub.c:767:39: branch_false: ...to here
xfsprogs-6.17.0/scrub/xfs_scrub.c:767:39: acquire_memory: allocated here
xfsprogs-6.17.0/scrub/xfs_scrub.c:768:28: branch_false: following ‘false’ branch (when ‘progress_fp’ is non-NULL)...
xfsprogs-6.17.0/scrub/xfs_scrub.c:768:28: branch_false: ...to here
xfsprogs-6.17.0/scrub/xfs_scrub.c:747:16: branch_true: following ‘true’ branch (when ‘c != -1’)...
xfsprogs-6.17.0/scrub/xfs_scrub.c:748:17: branch_true: ...to here
xfsprogs-6.17.0/scrub/xfs_scrub.c:762:30: throw: if ‘cvt_u32’ throws an exception...
xfsprogs-6.17.0/scrub/xfs_scrub.c:762:30: danger: ‘progress_fp’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def351]
xfsprogs-6.17.0/scrub/xfs_scrub.c:764:33: warning[-Wanalyzer-malloc-leak]: leak of ‘progress_fp’
xfsprogs-6.17.0/scrub/xfs_scrub.c:737:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/xfs_scrub.c:744:9: branch_false: ...to here
xfsprogs-6.17.0/scrub/xfs_scrub.c:747:16: branch_true: following ‘true’ branch (when ‘c != -1’)...
xfsprogs-6.17.0/scrub/xfs_scrub.c:748:17: branch_true: ...to here
xfsprogs-6.17.0/scrub/xfs_scrub.c:763:28: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/xfs_scrub.c:767:39: branch_false: ...to here
xfsprogs-6.17.0/scrub/xfs_scrub.c:767:39: acquire_memory: allocated here
xfsprogs-6.17.0/scrub/xfs_scrub.c:768:28: branch_false: following ‘false’ branch (when ‘progress_fp’ is non-NULL)...
xfsprogs-6.17.0/scrub/xfs_scrub.c:768:28: branch_false: ...to here
xfsprogs-6.17.0/scrub/xfs_scrub.c:747:16: branch_true: following ‘true’ branch (when ‘c != -1’)...
xfsprogs-6.17.0/scrub/xfs_scrub.c:748:17: branch_true: ...to here
xfsprogs-6.17.0/scrub/xfs_scrub.c:764:33: throw: if ‘perror’ throws an exception...
xfsprogs-6.17.0/scrub/xfs_scrub.c:764:33: danger: ‘progress_fp’ leaks here; was allocated at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def352]
xfsprogs-6.17.0/scrub/xfs_scrub.c:769:33: warning[-Wanalyzer-malloc-leak]: leak of ‘progress_fp’
xfsprogs-6.17.0/scrub/xfs_scrub.c:737:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/xfs_scrub.c:744:9: branch_false: ...to here
xfsprogs-6.17.0/scrub/xfs_scrub.c:747:16: branch_true: following ‘true’ branch (when ‘c != -1’)...
xfsprogs-6.17.0/scrub/xfs_scrub.c:748:17: branch_true: ...to here
xfsprogs-6.17.0/scrub/xfs_scrub.c:763:28: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/xfs_scrub.c:767:39: branch_false: ...to here
xfsprogs-6.17.0/scrub/xfs_scrub.c:767:39: acquire_memory: allocated here
xfsprogs-6.17.0/scrub/xfs_scrub.c:768:28: branch_false: following ‘false’ branch (when ‘progress_fp’ is non-NULL)...
xfsprogs-6.17.0/scrub/xfs_scrub.c:768:28: branch_false: ...to here
xfsprogs-6.17.0/scrub/xfs_scrub.c:747:16: branch_true: following ‘true’ branch (when ‘c != -1’)...
xfsprogs-6.17.0/scrub/xfs_scrub.c:748:17: branch_true: ...to here
xfsprogs-6.17.0/scrub/xfs_scrub.c:763:28: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/xfs_scrub.c:767:39: branch_false: ...to here
xfsprogs-6.17.0/scrub/xfs_scrub.c:769:33: throw: if ‘perror’ throws an exception...
xfsprogs-6.17.0/scrub/xfs_scrub.c:769:33: danger: ‘progress_fp’ leaks here; was allocated at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def353]
xfsprogs-6.17.0/scrub/xfs_scrub.c:847:21: warning[-Wanalyzer-malloc-leak]: leak of ‘progress_fp’
xfsprogs-6.17.0/scrub/xfs_scrub.c:737:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/xfs_scrub.c:744:9: branch_false: ...to here
xfsprogs-6.17.0/scrub/xfs_scrub.c:747:16: branch_true: following ‘true’ branch (when ‘c != -1’)...
xfsprogs-6.17.0/scrub/xfs_scrub.c:748:17: branch_true: ...to here
xfsprogs-6.17.0/scrub/xfs_scrub.c:763:28: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/xfs_scrub.c:767:39: branch_false: ...to here
xfsprogs-6.17.0/scrub/xfs_scrub.c:767:39: acquire_memory: allocated here
xfsprogs-6.17.0/scrub/xfs_scrub.c:768:28: branch_false: following ‘false’ branch (when ‘progress_fp’ is non-NULL)...
xfsprogs-6.17.0/scrub/xfs_scrub.c:768:28: branch_false: ...to here
xfsprogs-6.17.0/scrub/xfs_scrub.c:831:12: branch_false: following ‘false’ branch (when ‘vflag == 0’)...
xfsprogs-6.17.0/scrub/xfs_scrub.c:844:13: branch_false: ...to here
xfsprogs-6.17.0/scrub/xfs_scrub.c:844:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/scrub/xfs_scrub.c:847:21: branch_true: ...to here
xfsprogs-6.17.0/scrub/xfs_scrub.c:847:21: throw: if ‘cvt_u32’ throws an exception...
xfsprogs-6.17.0/scrub/xfs_scrub.c:847:21: danger: ‘progress_fp’ leaks here; was allocated at [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def354]
xfsprogs-6.17.0/scrub/xfs_scrub.c:849:25: warning[-Wanalyzer-malloc-leak]: leak of ‘progress_fp’
xfsprogs-6.17.0/scrub/xfs_scrub.c:737:12: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/xfs_scrub.c:744:9: branch_false: ...to here
xfsprogs-6.17.0/scrub/xfs_scrub.c:747:16: branch_true: following ‘true’ branch (when ‘c != -1’)...
xfsprogs-6.17.0/scrub/xfs_scrub.c:748:17: branch_true: ...to here
xfsprogs-6.17.0/scrub/xfs_scrub.c:763:28: branch_false: following ‘false’ branch...
xfsprogs-6.17.0/scrub/xfs_scrub.c:767:39: branch_false: ...to here
xfsprogs-6.17.0/scrub/xfs_scrub.c:767:39: acquire_memory: allocated here
xfsprogs-6.17.0/scrub/xfs_scrub.c:768:28: branch_false: following ‘false’ branch (when ‘progress_fp’ is non-NULL)...
xfsprogs-6.17.0/scrub/xfs_scrub.c:768:28: branch_false: ...to here
xfsprogs-6.17.0/scrub/xfs_scrub.c:831:12: branch_false: following ‘false’ branch (when ‘vflag == 0’)...
xfsprogs-6.17.0/scrub/xfs_scrub.c:844:13: branch_false: ...to here
xfsprogs-6.17.0/scrub/xfs_scrub.c:844:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/scrub/xfs_scrub.c:847:21: branch_true: ...to here
xfsprogs-6.17.0/scrub/xfs_scrub.c:848:20: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/scrub/xfs_scrub.c:849:25: branch_true: ...to here
xfsprogs-6.17.0/scrub/xfs_scrub.c:849:25: throw: if ‘perror’ throws an exception...
xfsprogs-6.17.0/scrub/xfs_scrub.c:849:25: danger: ‘progress_fp’ leaks here; was allocated at [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def355]
xfsprogs-6.17.0/spaceman/file.c:98:17: warning[-Wanalyzer-malloc-leak]: leak of ‘filename’
xfsprogs-6.17.0/spaceman/file.c:87:20: acquire_memory: allocated here
xfsprogs-6.17.0/spaceman/file.c:88:12: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
xfsprogs-6.17.0/spaceman/file.c:96:41: branch_false: ...to here
xfsprogs-6.17.0/spaceman/file.c:97:12: branch_true: following ‘true’ branch...
xfsprogs-6.17.0/spaceman/file.c:98:17: branch_true: ...to here
xfsprogs-6.17.0/spaceman/file.c:98:17: throw: if ‘perror’ throws an exception...
xfsprogs-6.17.0/spaceman/file.c:98:17: danger: ‘filename’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Scan Properties
| analyzer-version-clippy | 1.92.0 |
| analyzer-version-cppcheck | 2.19.1 |
| analyzer-version-gcc | 16.0.0 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-83.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | xfsprogs-6.17.0-1.fc44 |
| store-results-to | /tmp/tmpwgd8ulpr/xfsprogs-6.17.0-1.fc44.tar.xz |
| time-created | 2026-01-08 22:15:27 |
| time-finished | 2026-01-08 22:18:46 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpwgd8ulpr/xfsprogs-6.17.0-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpwgd8ulpr/xfsprogs-6.17.0-1.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |