Fixed findings
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1]
flac-1.5.0/examples/c/encode/file/main.c:72:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(argv[1], "rb")’
flac-1.5.0/examples/c/encode/file/main.c:59:11: branch_false: following ‘false’ branch (when ‘argc == 3’)...
flac-1.5.0/examples/c/encode/file/main.c:64:19: branch_false: ...to here
flac-1.5.0/examples/c/encode/file/main.c:64:19: acquire_resource: opened here
flac-1.5.0/examples/c/encode/file/main.c:64:11: branch_false: following ‘false’ branch...
flac-1.5.0/examples/c/encode/file/main.c:71:17: branch_false: ...to here
flac-1.5.0/examples/c/encode/file/main.c:70:11: branch_false: following ‘false’ branch...
flac-1.5.0/examples/c/encode/file/main.c:72:17: branch_false: ...to here
flac-1.5.0/examples/c/encode/file/main.c:71:17: branch_false: following ‘false’ branch...
flac-1.5.0/examples/c/encode/file/main.c:73:17: branch_false: ...to here
flac-1.5.0/examples/c/encode/file/main.c:71:17: branch_false: following ‘false’ branch...
flac-1.5.0/examples/c/encode/file/main.c:74:17: branch_false: ...to here
flac-1.5.0/examples/c/encode/file/main.c:71:17: branch_false: following ‘false’ branch...
flac-1.5.0/examples/c/encode/file/main.c:80:38: branch_false: ...to here
flac-1.5.0/examples/c/encode/file/main.c:86:23: throw: if ‘FLAC__stream_encoder_new’ throws an exception...
flac-1.5.0/examples/c/encode/file/main.c:72:17: danger: ‘fopen(argv[1], "rb")’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
flac-1.5.0/examples/c/encode/file/main.c:72:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(argv[1], "rb")’
flac-1.5.0/examples/c/encode/file/main.c:59:11: branch_false: following ‘false’ branch (when ‘argc == 3’)...
flac-1.5.0/examples/c/encode/file/main.c:64:19: branch_false: ...to here
flac-1.5.0/examples/c/encode/file/main.c:64:19: acquire_memory: allocated here
flac-1.5.0/examples/c/encode/file/main.c:64:11: branch_false: following ‘false’ branch...
flac-1.5.0/examples/c/encode/file/main.c:71:17: branch_false: ...to here
flac-1.5.0/examples/c/encode/file/main.c:70:11: branch_false: following ‘false’ branch...
flac-1.5.0/examples/c/encode/file/main.c:72:17: branch_false: ...to here
flac-1.5.0/examples/c/encode/file/main.c:71:17: branch_false: following ‘false’ branch...
flac-1.5.0/examples/c/encode/file/main.c:73:17: branch_false: ...to here
flac-1.5.0/examples/c/encode/file/main.c:71:17: branch_false: following ‘false’ branch...
flac-1.5.0/examples/c/encode/file/main.c:74:17: branch_false: ...to here
flac-1.5.0/examples/c/encode/file/main.c:71:17: branch_false: following ‘false’ branch...
flac-1.5.0/examples/c/encode/file/main.c:80:38: branch_false: ...to here
flac-1.5.0/examples/c/encode/file/main.c:86:23: throw: if ‘FLAC__stream_encoder_new’ throws an exception...
flac-1.5.0/examples/c/encode/file/main.c:72:17: danger: ‘fopen(argv[1], "rb")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-789): [#def3]
flac-1.5.0/include/share/alloc.h:98:16: warning[-Wanalyzer-tainted-allocation-size]: use of attacker-controlled value ‘buffer_size + 4’ as allocation size without upper-bounds checking
flac-1.5.0/src/metaflac/operations.c:284:15: branch_true: following ‘true’ branch...
flac-1.5.0/src/metaflac/operations.c:286:46: branch_true: ...to here
flac-1.5.0/src/metaflac/operations.c:287:26: call_function: inlined call to ‘safe_malloc_’ from ‘do_major_operation__append’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def4]
flac-1.5.0/include/share/alloc.h:122:12: warning[-Wanalyzer-malloc-leak]: leak of 'safe_calloc_((long unsigned int)num_tracks, 32)'
flac-1.5.0/src/libFLAC/metadata_object.c:2007:6: enter_function: entry to 'metadata_callback_'
flac-1.5.0/src/libFLAC/metadata_object.c:2017:39: call_function: calling 'FLAC__metadata_object_clone' from 'metadata_callback_'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def5]
flac-1.5.0/src/flac/decode.c:341:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(infilename, "rb")’
flac-1.5.0/src/flac/decode.c:329:11: branch_true: following ‘true’ branch...
flac-1.5.0/src/flac/decode.c:335:30: acquire_resource: opened here
flac-1.5.0/src/flac/decode.c:335:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/decode.c:340:20: branch_false: ...to here
flac-1.5.0/src/flac/decode.c:340:19: branch_true: following ‘true’ branch...
flac-1.5.0/src/flac/decode.c:341:25: branch_true: ...to here
flac-1.5.0/src/flac/decode.c:341:25: throw: if ‘flac__utils_printf’ throws an exception...
flac-1.5.0/src/flac/decode.c:341:25: danger: ‘fopen(infilename, "rb")’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def6]
flac-1.5.0/src/flac/decode.c:341:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(infilename, "rb")’
flac-1.5.0/src/flac/decode.c:329:11: branch_true: following ‘true’ branch...
flac-1.5.0/src/flac/decode.c:335:30: acquire_memory: allocated here
flac-1.5.0/src/flac/decode.c:335:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/decode.c:340:20: branch_false: ...to here
flac-1.5.0/src/flac/decode.c:340:19: branch_true: following ‘true’ branch...
flac-1.5.0/src/flac/decode.c:341:25: branch_true: ...to here
flac-1.5.0/src/flac/decode.c:341:25: throw: if ‘flac__utils_printf’ throws an exception...
flac-1.5.0/src/flac/decode.c:341:25: danger: ‘fopen(infilename, "rb")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def7]
flac-1.5.0/src/flac/decode.c:346:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(infilename, "rb")’
flac-1.5.0/src/flac/decode.c:329:11: branch_true: following ‘true’ branch...
flac-1.5.0/src/flac/decode.c:335:30: acquire_resource: opened here
flac-1.5.0/src/flac/decode.c:335:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/decode.c:340:20: branch_false: ...to here
flac-1.5.0/src/flac/decode.c:340:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/decode.c:345:20: branch_false: ...to here
flac-1.5.0/src/flac/decode.c:345:19: branch_true: following ‘true’ branch...
flac-1.5.0/src/flac/decode.c:346:25: branch_true: ...to here
flac-1.5.0/src/flac/decode.c:346:25: throw: if ‘flac__utils_printf’ throws an exception...
flac-1.5.0/src/flac/decode.c:346:25: danger: ‘fopen(infilename, "rb")’ leaks here; was opened at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
flac-1.5.0/src/flac/decode.c:346:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(infilename, "rb")’
flac-1.5.0/src/flac/decode.c:329:11: branch_true: following ‘true’ branch...
flac-1.5.0/src/flac/decode.c:335:30: acquire_memory: allocated here
flac-1.5.0/src/flac/decode.c:335:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/decode.c:340:20: branch_false: ...to here
flac-1.5.0/src/flac/decode.c:340:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/decode.c:345:20: branch_false: ...to here
flac-1.5.0/src/flac/decode.c:345:19: branch_true: following ‘true’ branch...
flac-1.5.0/src/flac/decode.c:346:25: branch_true: ...to here
flac-1.5.0/src/flac/decode.c:346:25: throw: if ‘flac__utils_printf’ throws an exception...
flac-1.5.0/src/flac/decode.c:346:25: danger: ‘fopen(infilename, "rb")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def9]
flac-1.5.0/src/flac/decode.c:352:20: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(infilename, "rb")’
flac-1.5.0/src/flac/decode.c:329:11: branch_true: following ‘true’ branch...
flac-1.5.0/src/flac/decode.c:335:30: acquire_resource: opened here
flac-1.5.0/src/flac/decode.c:335:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/decode.c:340:20: branch_false: ...to here
flac-1.5.0/src/flac/decode.c:340:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/decode.c:345:20: branch_false: ...to here
flac-1.5.0/src/flac/decode.c:352:20: throw: if ‘fseek’ throws an exception...
flac-1.5.0/src/flac/decode.c:352:20: danger: ‘fopen(infilename, "rb")’ leaks here; was opened at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def10]
flac-1.5.0/src/flac/decode.c:352:20: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(infilename, "rb")’
flac-1.5.0/src/flac/decode.c:329:11: branch_true: following ‘true’ branch...
flac-1.5.0/src/flac/decode.c:335:30: acquire_memory: allocated here
flac-1.5.0/src/flac/decode.c:335:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/decode.c:340:20: branch_false: ...to here
flac-1.5.0/src/flac/decode.c:340:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/decode.c:345:20: branch_false: ...to here
flac-1.5.0/src/flac/decode.c:352:20: throw: if ‘fseek’ throws an exception...
flac-1.5.0/src/flac/decode.c:352:20: danger: ‘fopen(infilename, "rb")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def11]
flac-1.5.0/src/flac/decode.c:353:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(infilename, "rb")’
flac-1.5.0/src/flac/decode.c:329:11: branch_true: following ‘true’ branch...
flac-1.5.0/src/flac/decode.c:335:30: acquire_resource: opened here
flac-1.5.0/src/flac/decode.c:335:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/decode.c:340:20: branch_false: ...to here
flac-1.5.0/src/flac/decode.c:340:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/decode.c:345:20: branch_false: ...to here
flac-1.5.0/src/flac/decode.c:352:19: branch_true: following ‘true’ branch...
flac-1.5.0/src/flac/decode.c:353:25: throw: if ‘flac__utils_printf’ throws an exception...
flac-1.5.0/src/flac/decode.c:353:25: danger: ‘fopen(infilename, "rb")’ leaks here; was opened at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def12]
flac-1.5.0/src/flac/decode.c:353:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(infilename, "rb")’
flac-1.5.0/src/flac/decode.c:329:11: branch_true: following ‘true’ branch...
flac-1.5.0/src/flac/decode.c:335:30: acquire_memory: allocated here
flac-1.5.0/src/flac/decode.c:335:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/decode.c:340:20: branch_false: ...to here
flac-1.5.0/src/flac/decode.c:340:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/decode.c:345:20: branch_false: ...to here
flac-1.5.0/src/flac/decode.c:352:19: branch_true: following ‘true’ branch...
flac-1.5.0/src/flac/decode.c:353:25: throw: if ‘flac__utils_printf’ throws an exception...
flac-1.5.0/src/flac/decode.c:353:25: danger: ‘fopen(infilename, "rb")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def13]
flac-1.5.0/src/flac/encode.c:1487:32: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*e.fmt.flac.client_data.num_metadata_blocks’
flac-1.5.0/src/flac/encode.c:862:5: enter_function: entry to ‘flac__encode_file’
flac-1.5.0/src/flac/encode.c:867:13: call_function: calling ‘EncoderSession_construct’ from ‘flac__encode_file’
Error: COMPILER_WARNING (CWE-457): [#def14]
flac-1.5.0/src/flac/encode.c:2227:11: warning[-Wmaybe-uninitialized]: 'has_real_points' may be used uninitialized
flac-1.5.0/src/flac/encode.c: scope_hint: In function 'EncoderSession_init_encoder'
flac-1.5.0/src/flac/encode.c:2191:20: note: 'has_real_points' was declared here
Error: CPPCHECK_WARNING (CWE-476): [#def15]
flac-1.5.0/src/flac/main.c:721: warning[nullPointer]: Possible null pointer dereference: long_option
Error: GCC_ANALYZER_WARNING (CWE-775): [#def16]
flac-1.5.0/src/flac/main.c:1455:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘encode_infile’
flac-1.5.0/src/flac/main.c:1458:5: enter_function: entry to ‘encode_file’
flac-1.5.0/src/flac/main.c:1472:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/main.c:1477:17: branch_false: ...to here
flac-1.5.0/src/flac/main.c:1477:11: branch_false: following ‘false’ branch (when the strings are non-equal)...
flac-1.5.0/src/flac/main.c:1483:30: branch_false: ...to here
flac-1.5.0/src/flac/main.c:1484:42: acquire_resource: opened here
flac-1.5.0/src/flac/main.c:1484:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/main.c:1490:13: branch_false: ...to here
flac-1.5.0/src/flac/main.c:1490:11: branch_true: following ‘true’ branch...
flac-1.5.0/src/flac/main.c:1492:37: branch_true: ...to here
flac-1.5.0/src/flac/main.c:1511:19: branch_true: following ‘true’ branch (when ‘lookahead_length <= 11’)...
flac-1.5.0/src/flac/main.c:1513:27: branch_true: ...to here
flac-1.5.0/src/flac/main.c:1513:27: branch_true: following ‘true’ branch (when ‘input_format != 0’)...
flac-1.5.0/src/flac/main.c:1514:33: branch_true: ...to here
flac-1.5.0/src/flac/main.c:1514:33: call_function: calling ‘format_mistake’ from ‘encode_file’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
flac-1.5.0/src/flac/main.c:1455:9: warning[-Wanalyzer-malloc-leak]: leak of ‘encode_infile’
flac-1.5.0/src/flac/main.c:1458:5: enter_function: entry to ‘encode_file’
flac-1.5.0/src/flac/main.c:1472:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/main.c:1477:17: branch_false: ...to here
flac-1.5.0/src/flac/main.c:1477:11: branch_false: following ‘false’ branch (when the strings are non-equal)...
flac-1.5.0/src/flac/main.c:1483:30: branch_false: ...to here
flac-1.5.0/src/flac/main.c:1484:42: acquire_memory: allocated here
flac-1.5.0/src/flac/main.c:1484:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/main.c:1490:13: branch_false: ...to here
flac-1.5.0/src/flac/main.c:1490:11: branch_true: following ‘true’ branch...
flac-1.5.0/src/flac/main.c:1492:37: branch_true: ...to here
flac-1.5.0/src/flac/main.c:1511:19: branch_true: following ‘true’ branch (when ‘lookahead_length <= 11’)...
flac-1.5.0/src/flac/main.c:1513:27: branch_true: ...to here
flac-1.5.0/src/flac/main.c:1513:27: branch_true: following ‘true’ branch (when ‘input_format != 0’)...
flac-1.5.0/src/flac/main.c:1514:33: branch_true: ...to here
flac-1.5.0/src/flac/main.c:1514:33: call_function: calling ‘format_mistake’ from ‘encode_file’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def18]
flac-1.5.0/src/flac/main.c:1525:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘encode_infile’
flac-1.5.0/src/flac/main.c:1472:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/main.c:1477:17: branch_false: ...to here
flac-1.5.0/src/flac/main.c:1477:11: branch_false: following ‘false’ branch (when the strings are non-equal)...
flac-1.5.0/src/flac/main.c:1483:30: branch_false: ...to here
flac-1.5.0/src/flac/main.c:1484:42: acquire_resource: opened here
flac-1.5.0/src/flac/main.c:1484:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/main.c:1490:13: branch_false: ...to here
flac-1.5.0/src/flac/main.c:1490:11: branch_true: following ‘true’ branch...
flac-1.5.0/src/flac/main.c:1492:37: branch_true: ...to here
flac-1.5.0/src/flac/main.c:1511:19: branch_false: following ‘false’ branch (when ‘lookahead_length > 11’)...
flac-1.5.0/src/flac/main.c:1524:29: branch_false: ...to here
flac-1.5.0/src/flac/main.c:1524:27: branch_true: following ‘true’ branch...
flac-1.5.0/src/flac/main.c:1525:33: branch_true: ...to here
flac-1.5.0/src/flac/main.c:1525:33: throw: if ‘flac__utils_printf’ throws an exception...
flac-1.5.0/src/flac/main.c:1525:33: danger: ‘encode_infile’ leaks here; was opened at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
flac-1.5.0/src/flac/main.c:1525:33: warning[-Wanalyzer-malloc-leak]: leak of ‘encode_infile’
flac-1.5.0/src/flac/main.c:1472:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/main.c:1477:17: branch_false: ...to here
flac-1.5.0/src/flac/main.c:1477:11: branch_false: following ‘false’ branch (when the strings are non-equal)...
flac-1.5.0/src/flac/main.c:1483:30: branch_false: ...to here
flac-1.5.0/src/flac/main.c:1484:42: acquire_memory: allocated here
flac-1.5.0/src/flac/main.c:1484:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/main.c:1490:13: branch_false: ...to here
flac-1.5.0/src/flac/main.c:1490:11: branch_true: following ‘true’ branch...
flac-1.5.0/src/flac/main.c:1492:37: branch_true: ...to here
flac-1.5.0/src/flac/main.c:1511:19: branch_false: following ‘false’ branch (when ‘lookahead_length > 11’)...
flac-1.5.0/src/flac/main.c:1524:29: branch_false: ...to here
flac-1.5.0/src/flac/main.c:1524:27: branch_true: following ‘true’ branch...
flac-1.5.0/src/flac/main.c:1525:33: branch_true: ...to here
flac-1.5.0/src/flac/main.c:1525:33: throw: if ‘flac__utils_printf’ throws an exception...
flac-1.5.0/src/flac/main.c:1525:33: danger: ‘encode_infile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-404): [#def20]
flac-1.5.0/src/flac/main.c:1576: error[resourceLeak]: Resource leak: encode_infile
Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
flac-1.5.0/src/flac/main.c:1726:17: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(dest_len)’
flac-1.5.0/src/flac/main.c:1458:5: enter_function: entry to ‘encode_file’
flac-1.5.0/src/flac/main.c:1472:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/main.c:1477:17: branch_false: ...to here
flac-1.5.0/src/flac/main.c:1477:11: branch_true: following ‘true’ branch (when the strings are equal)...
flac-1.5.0/src/flac/main.c:1479:33: branch_true: ...to here
flac-1.5.0/src/flac/main.c:1490:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/main.c:1559:13: branch_false: ...to here
flac-1.5.0/src/flac/main.c:1567:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/main.c:1580:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/main.c:1635:11: branch_true: following ‘true’ branch (when ‘input_format == 0’)...
flac-1.5.0/src/flac/main.c:1636:20: branch_true: ...to here
flac-1.5.0/src/flac/main.c:1636:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/main.c:1659:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/main.c:1664:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/main.c:1669:17: branch_false: ...to here
flac-1.5.0/src/flac/main.c:1677:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/main.c:1684:40: branch_false: ...to here
flac-1.5.0/src/flac/main.c:1717:11: branch_true: following ‘true’ branch...
flac-1.5.0/src/flac/main.c:1721:44: call_function: inlined call to ‘safe_malloc_’ from ‘encode_file’
flac-1.5.0/src/flac/main.c:1721:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/main.c:1726:17: branch_false: ...to here
flac-1.5.0/src/flac/main.c:1726:17: throw: if ‘flac_snprintf’ throws an exception...
flac-1.5.0/src/flac/main.c:1726:17: danger: ‘malloc(dest_len)’ leaks here; was allocated at [(25)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/24)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def22]
flac-1.5.0/src/flac/main.c:2068:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘encode_infile’
flac-1.5.0/src/flac/main.c:1458:5: enter_function: entry to ‘encode_file’
flac-1.5.0/src/flac/main.c:1472:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/main.c:1477:17: branch_false: ...to here
flac-1.5.0/src/flac/main.c:1477:11: branch_false: following ‘false’ branch (when the strings are non-equal)...
flac-1.5.0/src/flac/main.c:1483:30: branch_false: ...to here
flac-1.5.0/src/flac/main.c:1484:42: acquire_resource: opened here
flac-1.5.0/src/flac/main.c:1484:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/main.c:1490:13: branch_false: ...to here
flac-1.5.0/src/flac/main.c:1526:33: call_function: calling ‘conditional_fclose’ from ‘encode_file’
flac-1.5.0/src/flac/main.c:1526:33: return_function: returning to ‘encode_file’ from ‘conditional_fclose’
flac-1.5.0/src/flac/main.c:2068:16: danger: ‘encode_infile’ leaks here; was opened at [(6)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
flac-1.5.0/src/flac/main.c:2068:16: warning[-Wanalyzer-malloc-leak]: leak of ‘encode_infile’
flac-1.5.0/src/flac/main.c:1458:5: enter_function: entry to ‘encode_file’
flac-1.5.0/src/flac/main.c:1472:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/main.c:1477:17: branch_false: ...to here
flac-1.5.0/src/flac/main.c:1477:11: branch_false: following ‘false’ branch (when the strings are non-equal)...
flac-1.5.0/src/flac/main.c:1483:30: branch_false: ...to here
flac-1.5.0/src/flac/main.c:1484:42: acquire_memory: allocated here
flac-1.5.0/src/flac/main.c:1484:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/main.c:1490:13: branch_false: ...to here
flac-1.5.0/src/flac/main.c:1526:33: call_function: calling ‘conditional_fclose’ from ‘encode_file’
flac-1.5.0/src/flac/main.c:1526:33: return_function: returning to ‘encode_file’ from ‘conditional_fclose’
flac-1.5.0/src/flac/main.c:2068:16: danger: ‘encode_infile’ leaks here; was allocated at [(6)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
flac-1.5.0/src/flac/vorbiscomment.c:148:25: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flac-1.5.0/src/flac/vorbiscomment.c:114:11: branch_true: following ‘true’ branch...
flac-1.5.0/src/flac/vorbiscomment.c:118:69: branch_true: ...to here
flac-1.5.0/src/flac/vorbiscomment.c:119:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/vorbiscomment.c:123:19: branch_false: ...to here
flac-1.5.0/src/flac/vorbiscomment.c:123:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/vorbiscomment.c:127:40: branch_false: ...to here
flac-1.5.0/src/flac/vorbiscomment.c:127:33: acquire_memory: allocated here
flac-1.5.0/src/flac/vorbiscomment.c:127:19: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flac-1.5.0/src/flac/vorbiscomment.c:129:21: branch_false: ...to here
flac-1.5.0/src/flac/vorbiscomment.c:130:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/vorbiscomment.c:138:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/vorbiscomment.c:145:19: branch_false: ...to here
flac-1.5.0/src/flac/vorbiscomment.c:145:19: branch_false: following ‘false’ branch (when ‘raw == 0’)...
flac-1.5.0/src/flac/vorbiscomment.c:148:25: branch_false: ...to here
flac-1.5.0/src/flac/vorbiscomment.c:148:25: throw: if ‘utf8_encode’ throws an exception...
flac-1.5.0/src/flac/vorbiscomment.c:148:25: danger: ‘data’ leaks here; was allocated at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
flac-1.5.0/src/flac/vorbiscomment.c:158:21: warning[-Wanalyzer-malloc-leak]: leak of ‘converted’
flac-1.5.0/src/flac/vorbiscomment.c:114:11: branch_true: following ‘true’ branch...
flac-1.5.0/src/flac/vorbiscomment.c:118:69: branch_true: ...to here
flac-1.5.0/src/flac/vorbiscomment.c:119:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/vorbiscomment.c:123:19: branch_false: ...to here
flac-1.5.0/src/flac/vorbiscomment.c:123:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/vorbiscomment.c:127:40: branch_false: ...to here
flac-1.5.0/src/flac/vorbiscomment.c:127:33: acquire_memory: allocated here
flac-1.5.0/src/flac/vorbiscomment.c:127:19: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flac-1.5.0/src/flac/vorbiscomment.c:129:21: branch_false: ...to here
flac-1.5.0/src/flac/vorbiscomment.c:130:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/vorbiscomment.c:138:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/vorbiscomment.c:145:19: branch_false: ...to here
flac-1.5.0/src/flac/vorbiscomment.c:145:19: branch_true: following ‘true’ branch (when ‘raw != 0’)...
flac-1.5.0/src/flac/vorbiscomment.c:146:25: branch_true: ...to here
flac-1.5.0/src/flac/vorbiscomment.c:158:21: throw: if ‘FLAC__metadata_object_vorbiscomment_entry_from_name_value_pair’ throws an exception...
flac-1.5.0/src/flac/vorbiscomment.c:158:21: danger: ‘converted’ leaks here; was allocated at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
flac-1.5.0/src/flac/vorbiscomment.c:164:21: warning[-Wanalyzer-malloc-leak]: leak of ‘parsed.field_name’
flac-1.5.0/src/flac/vorbiscomment.c:230:12: enter_function: entry to ‘flac__vorbiscomment_add’
flac-1.5.0/src/flac/vorbiscomment.c:242:13: call_function: calling ‘parse_vorbis_comment_field’ from ‘flac__vorbiscomment_add’
flac-1.5.0/src/flac/vorbiscomment.c:242:13: return_function: returning to ‘flac__vorbiscomment_add’ from ‘parse_vorbis_comment_field’
flac-1.5.0/src/flac/vorbiscomment.c:242:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/vorbiscomment.c:247:12: branch_false: ...to here
flac-1.5.0/src/flac/vorbiscomment.c:247:11: branch_true: following ‘true’ branch...
flac-1.5.0/src/flac/vorbiscomment.c:247:46: branch_true: ...to here
flac-1.5.0/src/flac/vorbiscomment.c:247:46: call_function: calling ‘set_vc_field’ from ‘flac__vorbiscomment_add’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
flac-1.5.0/src/flac/vorbiscomment.c:164:21: warning[-Wanalyzer-malloc-leak]: leak of ‘parsed.field_value’
flac-1.5.0/src/flac/vorbiscomment.c:230:12: enter_function: entry to ‘flac__vorbiscomment_add’
flac-1.5.0/src/flac/vorbiscomment.c:242:13: call_function: calling ‘parse_vorbis_comment_field’ from ‘flac__vorbiscomment_add’
flac-1.5.0/src/flac/vorbiscomment.c:242:13: return_function: returning to ‘flac__vorbiscomment_add’ from ‘parse_vorbis_comment_field’
flac-1.5.0/src/flac/vorbiscomment.c:242:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/vorbiscomment.c:247:12: branch_false: ...to here
flac-1.5.0/src/flac/vorbiscomment.c:247:11: branch_true: following ‘true’ branch...
flac-1.5.0/src/flac/vorbiscomment.c:247:46: branch_true: ...to here
flac-1.5.0/src/flac/vorbiscomment.c:247:46: call_function: calling ‘set_vc_field’ from ‘flac__vorbiscomment_add’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
flac-1.5.0/src/flac/vorbiscomment.c:164:21: warning[-Wanalyzer-malloc-leak]: leak of ‘parsed.field’
flac-1.5.0/src/flac/vorbiscomment.c:230:12: enter_function: entry to ‘flac__vorbiscomment_add’
flac-1.5.0/src/flac/vorbiscomment.c:242:13: call_function: calling ‘parse_vorbis_comment_field’ from ‘flac__vorbiscomment_add’
flac-1.5.0/src/flac/vorbiscomment.c:242:13: return_function: returning to ‘flac__vorbiscomment_add’ from ‘parse_vorbis_comment_field’
flac-1.5.0/src/flac/vorbiscomment.c:242:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/vorbiscomment.c:247:12: branch_false: ...to here
flac-1.5.0/src/flac/vorbiscomment.c:247:11: branch_true: following ‘true’ branch...
flac-1.5.0/src/flac/vorbiscomment.c:247:46: branch_true: ...to here
flac-1.5.0/src/flac/vorbiscomment.c:247:46: call_function: calling ‘set_vc_field’ from ‘flac__vorbiscomment_add’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
flac-1.5.0/src/flac/vorbiscomment.c:181:25: warning[-Wanalyzer-malloc-leak]: leak of ‘parsed.field_name’
flac-1.5.0/src/flac/vorbiscomment.c:230:12: enter_function: entry to ‘flac__vorbiscomment_add’
flac-1.5.0/src/flac/vorbiscomment.c:242:13: call_function: calling ‘parse_vorbis_comment_field’ from ‘flac__vorbiscomment_add’
flac-1.5.0/src/flac/vorbiscomment.c:242:13: return_function: returning to ‘flac__vorbiscomment_add’ from ‘parse_vorbis_comment_field’
flac-1.5.0/src/flac/vorbiscomment.c:242:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/vorbiscomment.c:247:12: branch_false: ...to here
flac-1.5.0/src/flac/vorbiscomment.c:247:11: branch_true: following ‘true’ branch...
flac-1.5.0/src/flac/vorbiscomment.c:247:46: branch_true: ...to here
flac-1.5.0/src/flac/vorbiscomment.c:247:46: call_function: calling ‘set_vc_field’ from ‘flac__vorbiscomment_add’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
flac-1.5.0/src/flac/vorbiscomment.c:181:25: warning[-Wanalyzer-malloc-leak]: leak of ‘parsed.field_value’
flac-1.5.0/src/flac/vorbiscomment.c:230:12: enter_function: entry to ‘flac__vorbiscomment_add’
flac-1.5.0/src/flac/vorbiscomment.c:242:13: call_function: calling ‘parse_vorbis_comment_field’ from ‘flac__vorbiscomment_add’
flac-1.5.0/src/flac/vorbiscomment.c:242:13: return_function: returning to ‘flac__vorbiscomment_add’ from ‘parse_vorbis_comment_field’
flac-1.5.0/src/flac/vorbiscomment.c:242:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/vorbiscomment.c:247:12: branch_false: ...to here
flac-1.5.0/src/flac/vorbiscomment.c:247:11: branch_true: following ‘true’ branch...
flac-1.5.0/src/flac/vorbiscomment.c:247:46: branch_true: ...to here
flac-1.5.0/src/flac/vorbiscomment.c:247:46: call_function: calling ‘set_vc_field’ from ‘flac__vorbiscomment_add’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
flac-1.5.0/src/flac/vorbiscomment.c:181:25: warning[-Wanalyzer-malloc-leak]: leak of ‘parsed.field’
flac-1.5.0/src/flac/vorbiscomment.c:230:12: enter_function: entry to ‘flac__vorbiscomment_add’
flac-1.5.0/src/flac/vorbiscomment.c:242:13: call_function: calling ‘parse_vorbis_comment_field’ from ‘flac__vorbiscomment_add’
flac-1.5.0/src/flac/vorbiscomment.c:242:13: return_function: returning to ‘flac__vorbiscomment_add’ from ‘parse_vorbis_comment_field’
flac-1.5.0/src/flac/vorbiscomment.c:242:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/vorbiscomment.c:247:12: branch_false: ...to here
flac-1.5.0/src/flac/vorbiscomment.c:247:11: branch_true: following ‘true’ branch...
flac-1.5.0/src/flac/vorbiscomment.c:247:46: branch_true: ...to here
flac-1.5.0/src/flac/vorbiscomment.c:247:46: call_function: calling ‘set_vc_field’ from ‘flac__vorbiscomment_add’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
flac-1.5.0/src/flac/vorbiscomment.c:191:21: warning[-Wanalyzer-malloc-leak]: leak of ‘parsed.field_name’
flac-1.5.0/src/flac/vorbiscomment.c:230:12: enter_function: entry to ‘flac__vorbiscomment_add’
flac-1.5.0/src/flac/vorbiscomment.c:242:13: call_function: calling ‘parse_vorbis_comment_field’ from ‘flac__vorbiscomment_add’
flac-1.5.0/src/flac/vorbiscomment.c:242:13: return_function: returning to ‘flac__vorbiscomment_add’ from ‘parse_vorbis_comment_field’
flac-1.5.0/src/flac/vorbiscomment.c:242:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/vorbiscomment.c:247:12: branch_false: ...to here
flac-1.5.0/src/flac/vorbiscomment.c:247:11: branch_true: following ‘true’ branch...
flac-1.5.0/src/flac/vorbiscomment.c:247:46: branch_true: ...to here
flac-1.5.0/src/flac/vorbiscomment.c:247:46: call_function: calling ‘set_vc_field’ from ‘flac__vorbiscomment_add’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
flac-1.5.0/src/flac/vorbiscomment.c:191:21: warning[-Wanalyzer-malloc-leak]: leak of ‘parsed.field_value’
flac-1.5.0/src/flac/vorbiscomment.c:230:12: enter_function: entry to ‘flac__vorbiscomment_add’
flac-1.5.0/src/flac/vorbiscomment.c:242:13: call_function: calling ‘parse_vorbis_comment_field’ from ‘flac__vorbiscomment_add’
flac-1.5.0/src/flac/vorbiscomment.c:242:13: return_function: returning to ‘flac__vorbiscomment_add’ from ‘parse_vorbis_comment_field’
flac-1.5.0/src/flac/vorbiscomment.c:242:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/vorbiscomment.c:247:12: branch_false: ...to here
flac-1.5.0/src/flac/vorbiscomment.c:247:11: branch_true: following ‘true’ branch...
flac-1.5.0/src/flac/vorbiscomment.c:247:46: branch_true: ...to here
flac-1.5.0/src/flac/vorbiscomment.c:247:46: call_function: calling ‘set_vc_field’ from ‘flac__vorbiscomment_add’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
flac-1.5.0/src/flac/vorbiscomment.c:191:21: warning[-Wanalyzer-malloc-leak]: leak of ‘parsed.field’
flac-1.5.0/src/flac/vorbiscomment.c:230:12: enter_function: entry to ‘flac__vorbiscomment_add’
flac-1.5.0/src/flac/vorbiscomment.c:242:13: call_function: calling ‘parse_vorbis_comment_field’ from ‘flac__vorbiscomment_add’
flac-1.5.0/src/flac/vorbiscomment.c:242:13: return_function: returning to ‘flac__vorbiscomment_add’ from ‘parse_vorbis_comment_field’
flac-1.5.0/src/flac/vorbiscomment.c:242:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/flac/vorbiscomment.c:247:12: branch_false: ...to here
flac-1.5.0/src/flac/vorbiscomment.c:247:11: branch_true: following ‘true’ branch...
flac-1.5.0/src/flac/vorbiscomment.c:247:46: branch_true: ...to here
flac-1.5.0/src/flac/vorbiscomment.c:247:46: call_function: calling ‘set_vc_field’ from ‘flac__vorbiscomment_add’
Error: COMPILER_WARNING (CWE-9001): [#def35]
flac-1.5.0/src/libFLAC/bitwriter.c: scope_hint: In function 'FLAC__add_metadata_block'
flac-1.5.0/src/libFLAC/bitwriter.c:354:19: warning[-Winline]: inlining failed in call to 'FLAC__bitwriter_write_raw_uint32': call is unlikely and code size would grow
flac-1.5.0/src/libFLAC/stream_encoder_framing.c:96:29: note: called from here
Error: COMPILER_WARNING (CWE-9001): [#def36]
flac-1.5.0/src/libFLAC/bitwriter.c:372:19: warning[-Winline]: inlining failed in call to 'FLAC__bitwriter_write_raw_uint64': --param max-inline-insns-single limit reached
flac-1.5.0/src/libFLAC/stream_encoder_framing.c:103:37: note: called from here
Error: COMPILER_WARNING (CWE-9001): [#def37]
flac-1.5.0/src/libFLAC/bitwriter.c:393:19: warning[-Winline]: inlining failed in call to 'FLAC__bitwriter_write_raw_uint32_little_endian': --param max-inline-insns-single limit reached
flac-1.5.0/src/libFLAC/stream_encoder_framing.c:134:37: note: called from here
Error: COMPILER_WARNING (CWE-9001): [#def38]
flac-1.5.0/src/libFLAC/bitwriter.c:409:19: warning[-Winline]: inlining failed in call to 'FLAC__bitwriter_write_byte_block': call is unlikely and code size would grow
flac-1.5.0/src/libFLAC/stream_encoder_framing.c:109:29: note: called from here
Error: CPPCHECK_WARNING (CWE-758): [#def39]
flac-1.5.0/src/libFLAC/bitwriter.c:616: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: GCC_ANALYZER_WARNING (CWE-131): [#def40]
flac-1.5.0/src/libFLAC/memory.c:79:14: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
flac-1.5.0/src/libFLAC/memory.c:63:12: enter_function: entry to 'FLAC__memory_alloc_aligned_int32_array'
flac-1.5.0/src/libFLAC/memory.c:76:11: branch_false: following 'false' branch (when 'elements <= 4611686018427387903')...
flac-1.5.0/src/libFLAC/memory.c:79:41: branch_false: ...to here
flac-1.5.0/src/libFLAC/memory.c:79:14: call_function: calling 'FLAC__memory_alloc_aligned' from 'FLAC__memory_alloc_aligned_int32_array'
flac-1.5.0/src/libFLAC/memory.c:79:14: danger: assigned to 'FLAC__int32 *' {{aka 'int *'}} here; 'sizeof (FLAC__int32 {{aka int}})' is '4'
Error: GCC_ANALYZER_WARNING (CWE-131): [#def41]
flac-1.5.0/src/libFLAC/memory.c:108:14: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
flac-1.5.0/src/libFLAC/memory.c:92:12: enter_function: entry to 'FLAC__memory_alloc_aligned_uint32_array'
flac-1.5.0/src/libFLAC/memory.c:105:11: branch_false: following 'false' branch (when 'elements <= 4611686018427387903')...
flac-1.5.0/src/libFLAC/memory.c:108:41: branch_false: ...to here
flac-1.5.0/src/libFLAC/memory.c:108:14: call_function: calling 'FLAC__memory_alloc_aligned' from 'FLAC__memory_alloc_aligned_uint32_array'
flac-1.5.0/src/libFLAC/memory.c:108:14: danger: assigned to 'FLAC__uint32 *' {{aka 'unsigned int *'}} here; 'sizeof (FLAC__uint32 {{aka unsigned int}})' is '4'
Error: GCC_ANALYZER_WARNING (CWE-131): [#def42]
flac-1.5.0/src/libFLAC/memory.c:137:14: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
flac-1.5.0/src/libFLAC/memory.c:121:12: enter_function: entry to 'FLAC__memory_alloc_aligned_int64_array'
flac-1.5.0/src/libFLAC/memory.c:134:11: branch_false: following 'false' branch (when 'elements <= 2305843009213693951')...
flac-1.5.0/src/libFLAC/memory.c:137:41: branch_false: ...to here
flac-1.5.0/src/libFLAC/memory.c:137:14: call_function: calling 'FLAC__memory_alloc_aligned' from 'FLAC__memory_alloc_aligned_int64_array'
flac-1.5.0/src/libFLAC/memory.c:137:14: danger: assigned to 'FLAC__int64 *' {{aka 'long int *'}} here; 'sizeof (FLAC__int64 {{aka long int}})' is '8'
Error: GCC_ANALYZER_WARNING (CWE-131): [#def43]
flac-1.5.0/src/libFLAC/memory.c:166:14: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
flac-1.5.0/src/libFLAC/memory.c:150:12: enter_function: entry to 'FLAC__memory_alloc_aligned_uint64_array'
flac-1.5.0/src/libFLAC/memory.c:163:11: branch_false: following 'false' branch (when 'elements <= 2305843009213693951')...
flac-1.5.0/src/libFLAC/memory.c:166:41: branch_false: ...to here
flac-1.5.0/src/libFLAC/memory.c:166:14: call_function: calling 'FLAC__memory_alloc_aligned' from 'FLAC__memory_alloc_aligned_uint64_array'
flac-1.5.0/src/libFLAC/memory.c:166:14: danger: assigned to 'FLAC__uint64 *' {{aka 'long unsigned int *'}} here; 'sizeof (FLAC__uint64 {{aka long unsigned int}})' is '8'
Error: GCC_ANALYZER_WARNING (CWE-131): [#def44]
flac-1.5.0/src/libFLAC/memory.c:197:14: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
flac-1.5.0/src/libFLAC/memory.c:181:12: enter_function: entry to 'FLAC__memory_alloc_aligned_real_array'
flac-1.5.0/src/libFLAC/memory.c:194:11: branch_false: following 'false' branch (when 'elements <= 4611686018427387903')...
flac-1.5.0/src/libFLAC/memory.c:197:41: branch_false: ...to here
flac-1.5.0/src/libFLAC/memory.c:197:14: call_function: calling 'FLAC__memory_alloc_aligned' from 'FLAC__memory_alloc_aligned_real_array'
flac-1.5.0/src/libFLAC/memory.c:197:14: danger: assigned to 'FLAC__real *' {{aka 'float *'}} here; 'sizeof (FLAC__real {{aka float}})' is '4'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def45]
flac-1.5.0/src/libFLAC/metadata_object.c:153:13: warning[-Wanalyzer-malloc-leak]: leak of 'FLAC__metadata_object_cuesheet_track_new()'
flac-1.5.0/src/libFLAC/metadata_object.c:1482:47: enter_function: entry to 'FLAC__metadata_object_cuesheet_track_clone'
flac-1.5.0/src/libFLAC/metadata_object.c:1488:19: call_function: calling 'FLAC__metadata_object_cuesheet_track_new' from 'FLAC__metadata_object_cuesheet_track_clone'
flac-1.5.0/src/libFLAC/metadata_object.c:1488:19: return_function: returning to 'FLAC__metadata_object_cuesheet_track_clone' from 'FLAC__metadata_object_cuesheet_track_new'
flac-1.5.0/src/libFLAC/metadata_object.c:1488:12: branch_true: following 'true' branch...
flac-1.5.0/src/libFLAC/metadata_object.c:1489:22: branch_true: ...to here
flac-1.5.0/src/libFLAC/metadata_object.c:1489:22: call_function: calling 'copy_track_' from 'FLAC__metadata_object_cuesheet_track_clone'
Error: GCC_ANALYZER_WARNING (CWE-131): [#def46]
flac-1.5.0/src/libFLAC/metadata_object.c:214:16: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
flac-1.5.0/src/libFLAC/metadata_object.c:1456:14: enter_function: entry to 'FLAC__metadata_object_vorbiscomment_remove_entries_matching'
flac-1.5.0/src/libFLAC/metadata_object.c:1467:69: branch_true: following 'true' branch...
flac-1.5.0/src/libFLAC/metadata_object.c:1468:71: branch_true: ...to here
flac-1.5.0/src/libFLAC/metadata_object.c:1468:20: branch_true: following 'true' branch...
flac-1.5.0/src/libFLAC/metadata_object.c:1469:25: branch_true: ...to here
flac-1.5.0/src/libFLAC/metadata_object.c:1470:31: call_function: calling 'FLAC__metadata_object_vorbiscomment_delete_comment' from 'FLAC__metadata_object_vorbiscomment_remove_entries_matching'
flac-1.5.0/src/libFLAC/metadata_object.c:1470:31: return_function: returning to 'FLAC__metadata_object_vorbiscomment_remove_entries_matching' from 'FLAC__metadata_object_vorbiscomment_delete_comment'
flac-1.5.0/src/libFLAC/metadata_object.c:1467:69: branch_true: following 'true' branch...
flac-1.5.0/src/libFLAC/metadata_object.c:1468:71: branch_true: ...to here
flac-1.5.0/src/libFLAC/metadata_object.c:1468:20: branch_true: following 'true' branch...
flac-1.5.0/src/libFLAC/metadata_object.c:1469:25: branch_true: ...to here
flac-1.5.0/src/libFLAC/metadata_object.c:1470:31: call_function: calling 'FLAC__metadata_object_vorbiscomment_delete_comment' from 'FLAC__metadata_object_vorbiscomment_remove_entries_matching'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def47]
flac-1.5.0/src/libFLAC/metadata_object.c:320:17: warning[-Wanalyzer-malloc-leak]: leak of 'FLAC__metadata_object_new(*object.type)'
flac-1.5.0/src/libFLAC/metadata_object.c:2007:6: enter_function: entry to 'metadata_callback_'
flac-1.5.0/src/libFLAC/metadata_object.c:2017:39: call_function: calling 'FLAC__metadata_object_clone' from 'metadata_callback_'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def48]
flac-1.5.0/src/libFLAC/metadata_object.c:338:35: warning[-Wanalyzer-null-dereference]: dereference of NULL '*object.data.cue_sheet.tracks'
flac-1.5.0/src/libFLAC/metadata_object.c:1611:21: enter_function: entry to 'FLAC__metadata_object_cuesheet_resize_tracks'
flac-1.5.0/src/libFLAC/metadata_object.c:1616:12: branch_false: following 'false' branch...
flac-1.5.0/src/libFLAC/metadata_object.c:1624:41: branch_false: ...to here
flac-1.5.0/src/libFLAC/metadata_object.c:1628:20: branch_false: following 'false' branch (when 'new_num_tracks <= 134217727')...
flac-1.5.0/src/libFLAC/metadata_object.c:1634:20: branch_false: ...to here
flac-1.5.0/src/libFLAC/metadata_object.c:1634:20: branch_false: following 'false' branch...
flac-1.5.0/src/libFLAC/metadata_object.c:1640:20: branch_false: ...to here
flac-1.5.0/src/libFLAC/metadata_object.c:1640:20: branch_true: following 'true' branch (when 'new_size == 0')...
flac-1.5.0/src/libFLAC/metadata_object.c:1641:30: branch_true: ...to here
flac-1.5.0/src/libFLAC/metadata_object.c:1659:9: call_function: calling 'cuesheet_calculate_length_' from 'FLAC__metadata_object_cuesheet_resize_tracks'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def49]
flac-1.5.0/src/libFLAC/metadata_object.c:1909:9: warning[-Wanalyzer-malloc-leak]: leak of 'malloc(max(bytes, 1))'
flac-1.5.0/src/libFLAC/metadata_object.c:1872:23: enter_function: entry to 'FLAC__metadata_object_get_raw'
flac-1.5.0/src/libFLAC/metadata_object.c:1881:11: branch_false: following 'false' branch...
flac-1.5.0/src/libFLAC/metadata_object.c:1883:13: branch_false: ...to here
flac-1.5.0/src/libFLAC/metadata_object.c:1883:11: branch_false: following 'false' branch...
flac-1.5.0/src/libFLAC/metadata_object.c:1887:13: branch_false: ...to here
flac-1.5.0/src/libFLAC/metadata_object.c:1887:11: branch_false: following 'false' branch...
flac-1.5.0/src/libFLAC/metadata_object.c:1892:13: branch_false: ...to here
flac-1.5.0/src/libFLAC/metadata_object.c:1892:11: branch_false: following 'false' branch...
flac-1.5.0/src/libFLAC/metadata_object.c:1898:22: branch_false: ...to here
flac-1.5.0/src/libFLAC/metadata_object.c:1898:11: branch_false: following 'false' branch...
flac-1.5.0/src/libFLAC/metadata_object.c:1903:18: call_function: inlined call to 'safe_malloc_' from 'FLAC__metadata_object_get_raw'
flac-1.5.0/src/libFLAC/metadata_object.c:1904:11: branch_false: following 'false' branch...
flac-1.5.0/src/libFLAC/metadata_object.c:1909:9: branch_false: ...to here
flac-1.5.0/src/libFLAC/metadata_object.c:1910:9: throw: if 'FLAC__bitwriter_delete' throws an exception...
flac-1.5.0/src/libFLAC/metadata_object.c:1909:9: danger: 'malloc(max(bytes, 1))' leaks here; was allocated at [(13)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def50]
flac-1.5.0/src/libFLAC/stream_decoder.c:1804:58: warning[-Wanalyzer-malloc-leak]: leak of 'block.data.application.data'
flac-1.5.0/src/libFLAC/stream_decoder.c:3905:12: enter_function: entry to 'seek_to_absolute_sample_ogg_'
flac-1.5.0/src/libFLAC/stream_decoder.c:3928:11: branch_true: following 'true' branch...
flac-1.5.0/src/libFLAC/stream_decoder.c:3931:17: branch_true: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:3932:23: branch_false: following 'false' branch...
flac-1.5.0/src/libFLAC/stream_decoder.c:3951:17: branch_false: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:3954:19: branch_true: following 'true' branch...
flac-1.5.0/src/libFLAC/stream_decoder.c:3955:28: branch_true: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:3955:27: branch_false: following 'false' branch...
flac-1.5.0/src/libFLAC/stream_decoder.c:3959:29: branch_false: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:3959:27: branch_false: following 'false' branch...
flac-1.5.0/src/libFLAC/stream_decoder.c:3963:25: branch_false: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:3965:29: call_function: calling 'FLAC__stream_decoder_process_until_end_of_metadata' from 'seek_to_absolute_sample_ogg_'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def51]
flac-1.5.0/src/libFLAC/stream_decoder.c:1832:58: warning[-Wanalyzer-malloc-leak]: leak of 'block.data.unknown.data'
flac-1.5.0/src/libFLAC/stream_decoder.c:3905:12: enter_function: entry to 'seek_to_absolute_sample_ogg_'
flac-1.5.0/src/libFLAC/stream_decoder.c:3928:11: branch_true: following 'true' branch...
flac-1.5.0/src/libFLAC/stream_decoder.c:3931:17: branch_true: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:3932:23: branch_false: following 'false' branch...
flac-1.5.0/src/libFLAC/stream_decoder.c:3951:17: branch_false: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:3954:19: branch_true: following 'true' branch...
flac-1.5.0/src/libFLAC/stream_decoder.c:3955:28: branch_true: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:3955:27: branch_false: following 'false' branch...
flac-1.5.0/src/libFLAC/stream_decoder.c:3959:29: branch_false: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:3959:27: branch_false: following 'false' branch...
flac-1.5.0/src/libFLAC/stream_decoder.c:3963:25: branch_false: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:3965:29: call_function: calling 'FLAC__stream_decoder_process_until_end_of_metadata' from 'seek_to_absolute_sample_ogg_'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def52]
flac-1.5.0/src/libFLAC/stream_decoder.c:2049:22: warning[-Wanalyzer-malloc-leak]: leak of 'block.data.application.data'
flac-1.5.0/src/libFLAC/stream_decoder.c:3905:12: enter_function: entry to 'seek_to_absolute_sample_ogg_'
flac-1.5.0/src/libFLAC/stream_decoder.c:3928:11: branch_true: following 'true' branch...
flac-1.5.0/src/libFLAC/stream_decoder.c:3931:17: branch_true: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:3932:23: branch_false: following 'false' branch...
flac-1.5.0/src/libFLAC/stream_decoder.c:3951:17: branch_false: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:3954:19: branch_true: following 'true' branch...
flac-1.5.0/src/libFLAC/stream_decoder.c:3955:28: branch_true: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:3955:27: branch_false: following 'false' branch...
flac-1.5.0/src/libFLAC/stream_decoder.c:3959:29: branch_false: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:3959:27: branch_false: following 'false' branch...
flac-1.5.0/src/libFLAC/stream_decoder.c:3963:25: branch_false: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:3965:29: call_function: calling 'FLAC__stream_decoder_process_until_end_of_metadata' from 'seek_to_absolute_sample_ogg_'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def53]
flac-1.5.0/src/libFLAC/stream_decoder.c:2098:33: warning[-Wanalyzer-malloc-leak]: leak of 'malloc(size2)'
flac-1.5.0/src/libFLAC/stream_decoder.c:2026:12: enter_function: entry to 'read_metadata_vorbiscomment_'
flac-1.5.0/src/libFLAC/stream_decoder.c:2033:12: branch_true: following 'true' branch (when 'length > 7')...
flac-1.5.0/src/libFLAC/stream_decoder.c:2034:17: branch_true: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:2036:20: branch_false: following 'false' branch...
flac-1.5.0/src/libFLAC/stream_decoder.c:2038:30: branch_false: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:2038:20: branch_false: following 'false' branch...
flac-1.5.0/src/libFLAC/stream_decoder.c:2044:25: branch_false: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:2045:20: branch_false: following 'false' branch...
flac-1.5.0/src/libFLAC/stream_decoder.c:2049:69: branch_false: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:2049:20: branch_false: following 'false' branch...
flac-1.5.0/src/libFLAC/stream_decoder.c:2051:17: branch_false: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:2055:20: branch_false: following 'false' branch...
flac-1.5.0/src/libFLAC/stream_decoder.c:2059:21: branch_false: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:2059:20: branch_false: following 'false' branch...
flac-1.5.0/src/libFLAC/stream_decoder.c:2064:20: branch_false: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:2064:20: branch_true: following 'true' branch...
flac-1.5.0/src/libFLAC/stream_decoder.c:2065:51: branch_true: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:2065:28: branch_false: following 'false' branch...
flac-1.5.0/src/libFLAC/stream_decoder.c:2065:28: branch_false: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:2070:37: branch_true: following 'true' branch...
flac-1.5.0/src/libFLAC/stream_decoder.c:2072:33: branch_true: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:2076:36: branch_false: following 'false' branch (when 'length > 3')...
flac-1.5.0/src/libFLAC/stream_decoder.c:2081:41: branch_false: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:2082:36: branch_false: following 'false' branch...
flac-1.5.0/src/libFLAC/stream_decoder.c:2086:46: branch_false: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:2086:36: branch_false: following 'false' branch...
flac-1.5.0/src/libFLAC/stream_decoder.c:2092:41: branch_false: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:2093:68: call_function: inlined call to 'safe_malloc_add_2op_' from 'read_metadata_vorbiscomment_'
flac-1.5.0/src/libFLAC/stream_decoder.c:2093:36: branch_false: following 'false' branch...
flac-1.5.0/src/libFLAC/stream_decoder.c:2098:33: branch_false: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:2098:33: danger: 'malloc(size2)' leaks here; was allocated at [(30)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/29)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def54]
flac-1.5.0/src/libFLAC/stream_decoder.c:2162:29: warning[-Wanalyzer-malloc-leak]: leak of 'block.data.cue_sheet.tracks'
flac-1.5.0/src/libFLAC/stream_decoder.c:3905:12: enter_function: entry to 'seek_to_absolute_sample_ogg_'
flac-1.5.0/src/libFLAC/stream_decoder.c:3928:11: branch_true: following 'true' branch...
flac-1.5.0/src/libFLAC/stream_decoder.c:3931:17: branch_true: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:3932:23: branch_false: following 'false' branch...
flac-1.5.0/src/libFLAC/stream_decoder.c:3951:17: branch_false: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:3954:19: branch_true: following 'true' branch...
flac-1.5.0/src/libFLAC/stream_decoder.c:3955:28: branch_true: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:3955:27: branch_false: following 'false' branch...
flac-1.5.0/src/libFLAC/stream_decoder.c:3959:29: branch_false: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:3959:27: branch_false: following 'false' branch...
flac-1.5.0/src/libFLAC/stream_decoder.c:3963:25: branch_false: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:3965:29: call_function: calling 'FLAC__stream_decoder_process_until_end_of_metadata' from 'seek_to_absolute_sample_ogg_'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def55]
flac-1.5.0/src/libFLAC/stream_decoder.c:2242:21: warning[-Wanalyzer-malloc-leak]: leak of 'block.data.application.data'
flac-1.5.0/src/libFLAC/stream_decoder.c:3905:12: enter_function: entry to 'seek_to_absolute_sample_ogg_'
flac-1.5.0/src/libFLAC/stream_decoder.c:3928:11: branch_true: following 'true' branch...
flac-1.5.0/src/libFLAC/stream_decoder.c:3931:17: branch_true: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:3932:23: branch_false: following 'false' branch...
flac-1.5.0/src/libFLAC/stream_decoder.c:3951:17: branch_false: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:3954:19: branch_true: following 'true' branch...
flac-1.5.0/src/libFLAC/stream_decoder.c:3955:28: branch_true: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:3955:27: branch_false: following 'false' branch...
flac-1.5.0/src/libFLAC/stream_decoder.c:3959:29: branch_false: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:3959:27: branch_false: following 'false' branch...
flac-1.5.0/src/libFLAC/stream_decoder.c:3963:25: branch_false: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:3965:29: call_function: calling 'FLAC__stream_decoder_process_until_end_of_metadata' from 'seek_to_absolute_sample_ogg_'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
flac-1.5.0/src/libFLAC/stream_decoder.c:2248:13: warning[-Wanalyzer-malloc-leak]: leak of 'block.data.application.data'
flac-1.5.0/src/libFLAC/stream_decoder.c:3905:12: enter_function: entry to 'seek_to_absolute_sample_ogg_'
flac-1.5.0/src/libFLAC/stream_decoder.c:3928:11: branch_true: following 'true' branch...
flac-1.5.0/src/libFLAC/stream_decoder.c:3931:17: branch_true: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:3932:23: branch_false: following 'false' branch...
flac-1.5.0/src/libFLAC/stream_decoder.c:3951:17: branch_false: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:3954:19: branch_true: following 'true' branch...
flac-1.5.0/src/libFLAC/stream_decoder.c:3955:28: branch_true: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:3955:27: branch_false: following 'false' branch...
flac-1.5.0/src/libFLAC/stream_decoder.c:3959:29: branch_false: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:3959:27: branch_false: following 'false' branch...
flac-1.5.0/src/libFLAC/stream_decoder.c:3963:25: branch_false: ...to here
flac-1.5.0/src/libFLAC/stream_decoder.c:3965:29: call_function: calling 'FLAC__stream_decoder_process_until_end_of_metadata' from 'seek_to_absolute_sample_ogg_'
Error: CPPCHECK_WARNING (CWE-190): [#def57]
flac-1.5.0/src/libFLAC/stream_encoder.c:2518: error[integerOverflow]: Signed integer overflow for expression '-2147483647-1'.
Error: CPPCHECK_WARNING (CWE-190): [#def58]
flac-1.5.0/src/libFLAC/stream_encoder.c:2569: error[integerOverflow]: Signed integer overflow for expression '-2147483647-1'.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def59]
flac-1.5.0/src/metaflac/operations.c:290:17: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc((long unsigned int)(buffer_size + 4))’
flac-1.5.0/src/metaflac/operations.c:235:12: enter_function: entry to ‘do_major_operation__append’
flac-1.5.0/src/metaflac/operations.c:284:15: branch_true: following ‘true’ branch...
flac-1.5.0/src/metaflac/operations.c:286:46: branch_true: ...to here
flac-1.5.0/src/metaflac/operations.c:287:26: call_function: inlined call to ‘safe_malloc_’ from ‘do_major_operation__append’
flac-1.5.0/src/metaflac/operations.c:288:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/metaflac/operations.c:290:17: branch_false: ...to here
flac-1.5.0/src/metaflac/operations.c:294:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/metaflac/operations.c:301:30: branch_false: ...to here
flac-1.5.0/src/metaflac/operations.c:301:30: throw: if ‘FLAC__metadata_object_set_raw’ throws an exception...
flac-1.5.0/src/metaflac/operations.c:290:17: danger: ‘malloc((long unsigned int)(buffer_size + 4))’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def60]
flac-1.5.0/src/metaflac/operations.c:290:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘malloc((long unsigned int)(buffer_size + 4))’
flac-1.5.0/src/metaflac/operations.c:235:12: enter_function: entry to ‘do_major_operation__append’
flac-1.5.0/src/metaflac/operations.c:284:15: branch_true: following ‘true’ branch...
flac-1.5.0/src/metaflac/operations.c:286:46: branch_true: ...to here
flac-1.5.0/src/metaflac/operations.c:287:26: call_function: inlined call to ‘safe_malloc_’ from ‘do_major_operation__append’
flac-1.5.0/src/metaflac/operations.c:288:19: release_memory: assuming ‘malloc((long unsigned int)(buffer_size + 4))’ is NULL
flac-1.5.0/src/metaflac/operations.c:288:19: branch_true: following ‘true’ branch...
flac-1.5.0/src/metaflac/operations.c:289:25: branch_true: ...to here
flac-1.5.0/src/metaflac/operations.c:290:17: danger: dereference of NULL ‘malloc((long unsigned int)(buffer_size + 4))’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def61]
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:266:20: warning[-Wanalyzer-null-argument]: use of NULL ‘data’ where non-null expected
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:242:11: branch_true: following ‘true’ branch...
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:246:69: branch_true: ...to here
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:247:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:251:19: branch_false: ...to here
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:251:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:255:40: branch_false: ...to here
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:255:33: acquire_memory: allocated here
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:255:19: release_memory: assuming ‘data’ is NULL
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:255:19: branch_true: following ‘true’ branch (when ‘data’ is NULL)...
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:256:25: branch_true: ...to here
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:258:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:266:20: danger: argument 1 (‘data’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def62]
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:276:25: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:242:11: branch_true: following ‘true’ branch...
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:246:69: branch_true: ...to here
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:247:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:251:19: branch_false: ...to here
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:251:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:255:40: branch_false: ...to here
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:255:33: acquire_memory: allocated here
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:255:19: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:257:21: branch_false: ...to here
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:258:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:266:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:273:19: branch_false: ...to here
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:273:19: branch_false: following ‘false’ branch (when ‘raw == 0’)...
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:276:25: branch_false: ...to here
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:276:25: throw: if ‘utf8_encode’ throws an exception...
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:276:25: danger: ‘data’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def63]
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:286:21: warning[-Wanalyzer-malloc-leak]: leak of ‘converted’
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:242:11: branch_true: following ‘true’ branch...
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:246:69: branch_true: ...to here
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:247:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:251:19: branch_false: ...to here
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:251:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:255:40: branch_false: ...to here
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:255:33: acquire_memory: allocated here
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:255:19: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:257:21: branch_false: ...to here
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:258:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:266:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:273:19: branch_false: ...to here
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:273:19: branch_true: following ‘true’ branch (when ‘raw != 0’)...
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:274:25: branch_true: ...to here
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:286:21: throw: if ‘FLAC__metadata_object_vorbiscomment_entry_from_name_value_pair’ throws an exception...
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:286:21: danger: ‘converted’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def64]
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:374:37: warning[-Wanalyzer-file-leak]: leak of FILE ‘f’
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:346:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:350:11: branch_false: following ‘false’ branch (when the strings are non-equal)...
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:353:21: branch_false: ...to here
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:353:21: acquire_resource: opened here
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:355:11: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:355:11: branch_false: ...to here
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:361:15: branch_true: following ‘true’ branch...
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:362:19: branch_true: following ‘true’ branch...
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:363:35: branch_true: ...to here
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:364:27: branch_false: following ‘false’ branch (when ‘p’ is non-NULL)...
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:371:33: branch_false: ...to here
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:374:37: throw: if ‘parse_vorbis_comment_field’ throws an exception...
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:374:37: danger: ‘f’ leaks here; was opened at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def65]
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:374:37: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:346:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:350:11: branch_false: following ‘false’ branch (when the strings are non-equal)...
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:353:21: branch_false: ...to here
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:353:21: acquire_memory: allocated here
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:355:11: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:355:11: branch_false: ...to here
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:361:15: branch_true: following ‘true’ branch...
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:362:19: branch_true: following ‘true’ branch...
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:363:35: branch_true: ...to here
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:364:27: branch_false: following ‘false’ branch (when ‘p’ is non-NULL)...
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:371:33: branch_false: ...to here
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:374:37: throw: if ‘parse_vorbis_comment_field’ throws an exception...
flac-1.5.0/src/metaflac/operations_shorthand_vorbiscomment.c:374:37: danger: ‘f’ leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
Error: COMPILER_WARNING (CWE-704): [#def66]
flac-1.5.0/src/share/getopt/getopt.c: scope_hint: In function 'share___getopt_internal'
flac-1.5.0/src/share/getopt/getopt.c:781:18: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def67]
flac-1.5.0/src/share/getopt/getopt.c:781:18: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-476): [#def68]
flac-1.5.0/src/share/getopt/getopt.c:849:46: warning[-Wanalyzer-null-dereference]: dereference of NULL 'p'
flac-1.5.0/src/share/getopt/getopt.c:977:1: enter_function: entry to 'share__getopt'
flac-1.5.0/src/share/getopt/getopt.c:979:10: call_function: calling 'share___getopt_internal' from 'share__getopt'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def69]
flac-1.5.0/src/share/grabbag/picture.c:313:14: warning[-Wanalyzer-malloc-leak]: leak of 'malloc((long unsigned int)grabbag__file_get_filesize(filepath))'
flac-1.5.0/src/share/grabbag/picture.c:328:23: enter_function: entry to 'grabbag__picture_parse_specification'
flac-1.5.0/src/share/grabbag/picture.c:337:11: branch_false: following 'false' branch (when 'spec' is non-NULL)...
flac-1.5.0/src/share/grabbag/picture.c:339:11: branch_false: ...to here
flac-1.5.0/src/share/grabbag/picture.c:339:11: branch_false: following 'false' branch (when 'error_message' is non-NULL)...
flac-1.5.0/src/share/grabbag/picture.c:342:9: branch_false: ...to here
flac-1.5.0/src/share/grabbag/picture.c:344:11: branch_false: following 'false' branch...
flac-1.5.0/src/share/grabbag/picture.c:349:12: branch_false: ...to here
flac-1.5.0/src/share/grabbag/picture.c:349:11: branch_false: following 'false' branch...
flac-1.5.0/src/share/grabbag/picture.c:390:21: call_function: inlined call to 'local__parse_type_' from 'grabbag__picture_parse_specification'
flac-1.5.0/src/share/grabbag/picture.c:402:11: branch_true: following 'true' branch...
flac-1.5.0/src/share/grabbag/picture.c:403:19: branch_true: ...to here
flac-1.5.0/src/share/grabbag/picture.c:403:19: branch_false: following 'false' branch (when 'state == 4')...
flac-1.5.0/src/share/grabbag/picture.c:406:40: branch_false: ...to here
flac-1.5.0/src/share/grabbag/picture.c:406:27: branch_false: following 'false' branch (when the strings are non-equal)...
flac-1.5.0/src/share/grabbag/picture.c:415:50: branch_false: ...to here
flac-1.5.0/src/share/grabbag/picture.c:415:50: call_function: calling 'read_file' from 'grabbag__picture_parse_specification'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def70]
flac-1.5.0/src/share/grabbag/replaygain.c:113:9: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
flac-1.5.0/src/share/grabbag/replaygain.c:109:24: acquire_memory: allocated here
flac-1.5.0/src/share/grabbag/replaygain.c:110:12: branch_false: following 'false' branch (when 'saved_locale' is non-NULL)...
flac-1.5.0/src/share/grabbag/replaygain.c:112:9: branch_false: ...to here
flac-1.5.0/src/share/grabbag/replaygain.c:113:9: throw: if 'flac_snprintf' throws an exception...
flac-1.5.0/src/share/grabbag/replaygain.c:113:9: danger: 'saved_locale' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def71]
flac-1.5.0/src/share/grabbag/replaygain.c:632:37: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
flac-1.5.0/src/share/grabbag/replaygain.c:627:24: acquire_memory: allocated here
flac-1.5.0/src/share/grabbag/replaygain.c:628:12: branch_false: following 'false' branch (when 'saved_locale' is non-NULL)...
flac-1.5.0/src/share/grabbag/replaygain.c:630:9: branch_false: ...to here
flac-1.5.0/src/share/grabbag/replaygain.c:632:37: throw: if 'FLAC__metadata_object_vorbiscomment_find_entry_from' throws an exception...
flac-1.5.0/src/share/grabbag/replaygain.c:632:37: danger: 'saved_locale' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
flac-1.5.0/src/share/grabbag/replaygain.c:635:31: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
flac-1.5.0/src/share/grabbag/replaygain.c:627:24: acquire_memory: allocated here
flac-1.5.0/src/share/grabbag/replaygain.c:628:12: branch_false: following 'false' branch (when 'saved_locale' is non-NULL)...
flac-1.5.0/src/share/grabbag/replaygain.c:630:9: branch_false: ...to here
flac-1.5.0/src/share/grabbag/replaygain.c:632:11: branch_false: following 'false' branch...
flac-1.5.0/src/share/grabbag/replaygain.c:635:31: branch_false: ...to here
flac-1.5.0/src/share/grabbag/replaygain.c:635:31: branch_true: following 'true' branch (when 'album_mode != 0')...
flac-1.5.0/src/share/grabbag/replaygain.c:635:31: branch_true: ...to here
flac-1.5.0/src/share/grabbag/replaygain.c:635:31: throw: if 'FLAC__metadata_object_vorbiscomment_find_entry_from' throws an exception...
flac-1.5.0/src/share/grabbag/replaygain.c:635:31: danger: 'saved_locale' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def73]
flac-1.5.0/src/share/grabbag/replaygain.c:637:31: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
flac-1.5.0/src/share/grabbag/replaygain.c:627:24: acquire_memory: allocated here
flac-1.5.0/src/share/grabbag/replaygain.c:628:12: branch_false: following 'false' branch (when 'saved_locale' is non-NULL)...
flac-1.5.0/src/share/grabbag/replaygain.c:630:9: branch_false: ...to here
flac-1.5.0/src/share/grabbag/replaygain.c:632:11: branch_false: following 'false' branch...
flac-1.5.0/src/share/grabbag/replaygain.c:635:31: branch_false: ...to here
flac-1.5.0/src/share/grabbag/replaygain.c:635:31: branch_true: following 'true' branch...
flac-1.5.0/src/share/grabbag/replaygain.c:637:31: branch_true: following 'true' branch (when 'album_mode != 0')...
flac-1.5.0/src/share/grabbag/replaygain.c:637:31: branch_true: ...to here
flac-1.5.0/src/share/grabbag/replaygain.c:637:31: throw: if 'FLAC__metadata_object_vorbiscomment_find_entry_from' throws an exception...
flac-1.5.0/src/share/grabbag/replaygain.c:637:31: danger: 'saved_locale' leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: COMPILER_WARNING: [#def74]
flac-1.5.0/src/share/grabbag/seektable.c: scope_hint: In function 'grabbag__seektable_convert_specification_to_template'
flac-1.5.0/src/share/grabbag/seektable.c:32:18: warning[-Wunused-but-set-variable=]: variable 'i' set but not used
Error: GCC_ANALYZER_WARNING (CWE-476): [#def75]
flac-1.5.0/src/share/grabbag/seektable.c:51:33: warning[-Wanalyzer-null-dereference]: dereference of NULL 'q'
flac-1.5.0/src/share/grabbag/seektable.c:42:31: branch_true: following 'true' branch...
flac-1.5.0/src/share/grabbag/seektable.c:46:19: branch_true: following 'true' branch (when 'pt < q')...
flac-1.5.0/src/share/grabbag/seektable.c:47:33: branch_true: ...to here
flac-1.5.0/src/share/grabbag/seektable.c:47:27: branch_false: following 'false' branch...
flac-1.5.0/src/share/grabbag/seektable.c:51:33: branch_false: ...to here
flac-1.5.0/src/share/grabbag/seektable.c:51:33: danger: dereference of NULL 'q'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def76]
flac-1.5.0/src/share/utf8/iconvert.c:69:6: warning[-Wanalyzer-malloc-leak]: leak of 'iconv_open("UTF-8", fromcode)'
flac-1.5.0/src/share/utf8/iconvert.c:68:9: acquire_memory: allocated here
flac-1.5.0/src/share/utf8/iconvert.c:69:6: danger: 'iconv_open("UTF-8", fromcode)' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def77]
flac-1.5.0/src/share/utf8/iconvert.c:74:8: warning[-Wanalyzer-malloc-leak]: leak of 'iconv_open("UTF-8", fromcode)'
flac-1.5.0/src/share/utf8/iconvert.c:68:9: acquire_memory: allocated here
flac-1.5.0/src/share/utf8/iconvert.c:69:6: branch_false: following 'false' branch...
flac-1.5.0/src/share/utf8/iconvert.c:74:8: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:74:6: branch_true: following 'true' branch...
flac-1.5.0/src/share/utf8/iconvert.c:88:10: branch_true: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:89:8: branch_false: following 'false' branch...
flac-1.5.0/src/share/utf8/iconvert.c:92:11: throw: if 'iconv_open' throws an exception...
flac-1.5.0/src/share/utf8/iconvert.c:74:8: danger: 'iconv_open("UTF-8", fromcode)' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def78]
flac-1.5.0/src/share/utf8/iconvert.c:93:5: warning[-Wanalyzer-malloc-leak]: leak of 'iconv_open(tocode1, "UTF-8")'
flac-1.5.0/src/share/utf8/iconvert.c:69:6: branch_false: following 'false' branch...
flac-1.5.0/src/share/utf8/iconvert.c:74:8: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:74:6: branch_true: following 'true' branch...
flac-1.5.0/src/share/utf8/iconvert.c:88:10: branch_true: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:89:8: branch_false: following 'false' branch...
flac-1.5.0/src/share/utf8/iconvert.c:92:11: acquire_memory: allocated here
flac-1.5.0/src/share/utf8/iconvert.c:93:5: danger: 'iconv_open(tocode1, "UTF-8")' leaks here; was allocated at [(8)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def79]
flac-1.5.0/src/share/utf8/iconvert.c:98:8: warning[-Wanalyzer-malloc-leak]: leak of 'iconv_open(tocode, fromcode)'
flac-1.5.0/src/share/utf8/iconvert.c:69:6: branch_false: following 'false' branch...
flac-1.5.0/src/share/utf8/iconvert.c:74:8: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:74:6: branch_true: following 'true' branch...
flac-1.5.0/src/share/utf8/iconvert.c:88:10: branch_true: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:89:8: branch_false: following 'false' branch...
flac-1.5.0/src/share/utf8/iconvert.c:95:8: branch_true: following 'true' branch...
flac-1.5.0/src/share/utf8/iconvert.c:96:13: branch_true: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:96:13: acquire_memory: allocated here
flac-1.5.0/src/share/utf8/iconvert.c:98:8: danger: 'iconv_open(tocode, fromcode)' leaks here; was allocated at [(10)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def80]
flac-1.5.0/src/share/utf8/iconvert.c:115:9: warning[-Wanalyzer-malloc-leak]: leak of 'cd2'
flac-1.5.0/src/share/utf8/iconvert.c:69:6: branch_false: following 'false' branch...
flac-1.5.0/src/share/utf8/iconvert.c:74:8: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:74:6: branch_true: following 'true' branch...
flac-1.5.0/src/share/utf8/iconvert.c:88:10: branch_true: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:89:8: branch_false: following 'false' branch...
flac-1.5.0/src/share/utf8/iconvert.c:92:11: acquire_memory: allocated here
flac-1.5.0/src/share/utf8/iconvert.c:95:8: branch_false: following 'false' branch...
flac-1.5.0/src/share/utf8/iconvert.c:255:1: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:106:6: branch_false: following 'false' branch (when 'utfbuf' is non-NULL)...
flac-1.5.0/src/share/utf8/iconvert.c:110:3: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:115:9: throw: if 'iconv' throws an exception...
flac-1.5.0/src/share/utf8/iconvert.c:115:9: danger: 'cd2' leaks here; was allocated at [(8)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def81]
flac-1.5.0/src/share/utf8/iconvert.c:115:9: warning[-Wanalyzer-malloc-leak]: leak of 'ob'
flac-1.5.0/src/share/utf8/iconvert.c:69:6: branch_false: following 'false' branch...
flac-1.5.0/src/share/utf8/iconvert.c:74:8: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:74:6: branch_true: following 'true' branch...
flac-1.5.0/src/share/utf8/iconvert.c:88:10: branch_true: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:89:8: branch_false: following 'false' branch...
flac-1.5.0/src/share/utf8/iconvert.c:95:8: branch_false: following 'false' branch...
flac-1.5.0/src/share/utf8/iconvert.c:255:1: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:105:12: acquire_memory: allocated here
flac-1.5.0/src/share/utf8/iconvert.c:106:6: branch_false: following 'false' branch (when 'utfbuf' is non-NULL)...
flac-1.5.0/src/share/utf8/iconvert.c:110:3: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:115:9: throw: if 'iconv' throws an exception...
flac-1.5.0/src/share/utf8/iconvert.c:115:9: danger: 'ob' leaks here; was allocated at [(10)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def82]
flac-1.5.0/src/share/utf8/iconvert.c:140:7: warning[-Wanalyzer-malloc-leak]: leak of 'cd2'
flac-1.5.0/src/share/utf8/iconvert.c:69:6: branch_false: following 'false' branch...
flac-1.5.0/src/share/utf8/iconvert.c:74:8: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:74:6: branch_true: following 'true' branch...
flac-1.5.0/src/share/utf8/iconvert.c:88:10: branch_true: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:89:8: branch_false: following 'false' branch...
flac-1.5.0/src/share/utf8/iconvert.c:92:11: acquire_memory: allocated here
flac-1.5.0/src/share/utf8/iconvert.c:95:8: branch_false: following 'false' branch...
flac-1.5.0/src/share/utf8/iconvert.c:255:1: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:106:6: branch_false: following 'false' branch (when 'utfbuf' is non-NULL)...
flac-1.5.0/src/share/utf8/iconvert.c:110:3: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:120:8: branch_false: following 'false' branch...
flac-1.5.0/src/share/utf8/iconvert.c:122:9: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:122:8: branch_false: following 'false' branch...
flac-1.5.0/src/share/utf8/iconvert.c:137:7: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:140:7: throw: if 'iconv' throws an exception...
flac-1.5.0/src/share/utf8/iconvert.c:140:7: danger: 'cd2' leaks here; was allocated at [(8)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def83]
flac-1.5.0/src/share/utf8/iconvert.c:179:9: warning[-Wanalyzer-malloc-leak]: leak of 'cd2'
flac-1.5.0/src/share/utf8/iconvert.c:69:6: branch_false: following 'false' branch...
flac-1.5.0/src/share/utf8/iconvert.c:74:8: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:74:6: branch_true: following 'true' branch...
flac-1.5.0/src/share/utf8/iconvert.c:88:10: branch_true: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:89:8: branch_false: following 'false' branch...
flac-1.5.0/src/share/utf8/iconvert.c:92:11: acquire_memory: allocated here
flac-1.5.0/src/share/utf8/iconvert.c:95:8: branch_false: following 'false' branch...
flac-1.5.0/src/share/utf8/iconvert.c:255:1: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:106:6: branch_false: following 'false' branch (when 'utfbuf' is non-NULL)...
flac-1.5.0/src/share/utf8/iconvert.c:110:3: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:120:8: branch_true: following 'true' branch...
flac-1.5.0/src/share/utf8/iconvert.c:144:6: branch_true: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:144:6: branch_false: following 'false' branch (when 'cd2 != 18446744073709551615')...
flac-1.5.0/src/share/utf8/iconvert.c:164:12: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:165:6: branch_false: following 'false' branch (when 'utflen != 0')...
flac-1.5.0/src/share/utf8/iconvert.c:167:12: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:168:6: branch_false: following 'false' branch (when 'newbuf' is non-NULL)...
flac-1.5.0/src/share/utf8/iconvert.c:174:3: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:176:10: branch_true: following 'true' branch...
flac-1.5.0/src/share/utf8/iconvert.c:177:5: branch_true: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:179:9: throw: if 'iconv' throws an exception...
flac-1.5.0/src/share/utf8/iconvert.c:179:9: danger: 'cd2' leaks here; was allocated at [(8)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def84]
flac-1.5.0/src/share/utf8/iconvert.c:179:9: warning[-Wanalyzer-malloc-leak]: leak of 'ib'
flac-1.5.0/src/share/utf8/iconvert.c:69:6: branch_false: following 'false' branch...
flac-1.5.0/src/share/utf8/iconvert.c:74:8: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:74:6: branch_true: following 'true' branch...
flac-1.5.0/src/share/utf8/iconvert.c:88:10: branch_true: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:89:8: branch_false: following 'false' branch...
flac-1.5.0/src/share/utf8/iconvert.c:95:8: branch_false: following 'false' branch...
flac-1.5.0/src/share/utf8/iconvert.c:255:1: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:106:6: branch_false: following 'false' branch (when 'utfbuf' is non-NULL)...
flac-1.5.0/src/share/utf8/iconvert.c:110:3: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:120:8: branch_true: following 'true' branch...
flac-1.5.0/src/share/utf8/iconvert.c:144:6: branch_true: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:144:6: branch_false: following 'false' branch (when 'cd2 != 18446744073709551615')...
flac-1.5.0/src/share/utf8/iconvert.c:164:12: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:165:6: branch_false: following 'false' branch (when 'utflen != 0')...
flac-1.5.0/src/share/utf8/iconvert.c:167:12: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:168:6: branch_false: following 'false' branch (when 'newbuf' is non-NULL)...
flac-1.5.0/src/share/utf8/iconvert.c:174:3: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:176:10: branch_true: following 'true' branch...
flac-1.5.0/src/share/utf8/iconvert.c:177:5: branch_true: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:179:9: throw: if 'iconv' throws an exception...
flac-1.5.0/src/share/utf8/iconvert.c:179:9: danger: 'ib' leaks here; was allocated at [(18)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def85]
flac-1.5.0/src/share/utf8/iconvert.c:201:7: warning[-Wanalyzer-malloc-leak]: leak of 'cd2'
flac-1.5.0/src/share/utf8/iconvert.c:69:6: branch_false: following 'false' branch...
flac-1.5.0/src/share/utf8/iconvert.c:74:8: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:74:6: branch_true: following 'true' branch...
flac-1.5.0/src/share/utf8/iconvert.c:88:10: branch_true: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:89:8: branch_false: following 'false' branch...
flac-1.5.0/src/share/utf8/iconvert.c:92:11: acquire_memory: allocated here
flac-1.5.0/src/share/utf8/iconvert.c:95:8: branch_false: following 'false' branch...
flac-1.5.0/src/share/utf8/iconvert.c:255:1: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:106:6: branch_false: following 'false' branch (when 'utfbuf' is non-NULL)...
flac-1.5.0/src/share/utf8/iconvert.c:110:3: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:120:8: branch_true: following 'true' branch...
flac-1.5.0/src/share/utf8/iconvert.c:144:6: branch_true: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:144:6: branch_false: following 'false' branch (when 'cd2 != 18446744073709551615')...
flac-1.5.0/src/share/utf8/iconvert.c:164:12: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:165:6: branch_false: following 'false' branch (when 'utflen != 0')...
flac-1.5.0/src/share/utf8/iconvert.c:167:12: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:168:6: branch_false: following 'false' branch (when 'newbuf' is non-NULL)...
flac-1.5.0/src/share/utf8/iconvert.c:174:3: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:176:10: branch_false: following 'false' branch...
flac-1.5.0/src/share/utf8/iconvert.c:199:3: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:201:7: throw: if 'iconv' throws an exception...
flac-1.5.0/src/share/utf8/iconvert.c:201:7: danger: 'cd2' leaks here; was allocated at [(8)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def86]
flac-1.5.0/src/share/utf8/iconvert.c:214:9: warning[-Wanalyzer-malloc-leak]: leak of 'ob'
flac-1.5.0/src/share/utf8/iconvert.c:56:5: enter_function: entry to 'iconvert'
flac-1.5.0/src/share/utf8/iconvert.c:69:6: branch_false: following 'false' branch...
flac-1.5.0/src/share/utf8/iconvert.c:74:8: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:74:6: branch_true: following 'true' branch...
flac-1.5.0/src/share/utf8/iconvert.c:88:10: branch_true: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:89:8: branch_false: following 'false' branch...
flac-1.5.0/src/share/utf8/iconvert.c:106:6: branch_false: following 'false' branch (when 'utfbuf' is non-NULL)...
flac-1.5.0/src/share/utf8/iconvert.c:110:3: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:120:8: branch_true: following 'true' branch...
flac-1.5.0/src/share/utf8/iconvert.c:144:6: branch_true: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:144:6: branch_false: following 'false' branch (when 'cd2 != 18446744073709551615')...
flac-1.5.0/src/share/utf8/iconvert.c:164:12: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:165:6: branch_false: following 'false' branch (when 'utflen != 0')...
flac-1.5.0/src/share/utf8/iconvert.c:167:12: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:168:6: branch_false: following 'false' branch (when 'newbuf' is non-NULL)...
flac-1.5.0/src/share/utf8/iconvert.c:174:3: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:176:10: branch_true: following 'true' branch...
flac-1.5.0/src/share/utf8/iconvert.c:177:5: branch_true: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:176:10: branch_false: following 'false' branch...
flac-1.5.0/src/share/utf8/iconvert.c:199:3: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:206:12: call_function: inlined call to 'safe_malloc_add_2op_' from 'iconvert'
flac-1.5.0/src/share/utf8/iconvert.c:207:6: branch_false: following 'false' branch...
flac-1.5.0/src/share/utf8/iconvert.c:209:3: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:213:10: branch_true: following 'true' branch...
flac-1.5.0/src/share/utf8/iconvert.c:214:9: branch_true: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:214:9: throw: if 'iconv' throws an exception...
flac-1.5.0/src/share/utf8/iconvert.c:214:9: danger: 'ob' leaks here; was allocated at [(28)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/27)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def87]
flac-1.5.0/src/share/utf8/iconvert.c:251:3: warning[-Wanalyzer-malloc-leak]: leak of 'cd2'
flac-1.5.0/src/share/utf8/iconvert.c:69:6: branch_false: following 'false' branch...
flac-1.5.0/src/share/utf8/iconvert.c:74:8: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:74:6: branch_true: following 'true' branch...
flac-1.5.0/src/share/utf8/iconvert.c:88:10: branch_true: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:89:8: branch_false: following 'false' branch...
flac-1.5.0/src/share/utf8/iconvert.c:92:11: acquire_memory: allocated here
flac-1.5.0/src/share/utf8/iconvert.c:95:8: branch_false: following 'false' branch...
flac-1.5.0/src/share/utf8/iconvert.c:255:1: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:106:6: branch_true: following 'true' branch (when 'utfbuf' is NULL)...
flac-1.5.0/src/share/utf8/iconvert.c:107:5: branch_true: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:251:3: throw: if 'iconv_close' throws an exception...
flac-1.5.0/src/share/utf8/iconvert.c:251:3: danger: 'cd2' leaks here; was allocated at [(8)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def88]
flac-1.5.0/src/share/utf8/iconvert.c:253:5: warning[-Wanalyzer-malloc-leak]: leak of 'cd2'
flac-1.5.0/src/share/utf8/iconvert.c:69:6: branch_false: following 'false' branch...
flac-1.5.0/src/share/utf8/iconvert.c:74:8: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:74:6: branch_true: following 'true' branch...
flac-1.5.0/src/share/utf8/iconvert.c:88:10: branch_true: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:89:8: branch_false: following 'false' branch...
flac-1.5.0/src/share/utf8/iconvert.c:92:11: acquire_memory: allocated here
flac-1.5.0/src/share/utf8/iconvert.c:95:8: branch_false: following 'false' branch...
flac-1.5.0/src/share/utf8/iconvert.c:255:1: branch_false: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:106:6: branch_true: following 'true' branch (when 'utfbuf' is NULL)...
flac-1.5.0/src/share/utf8/iconvert.c:107:5: branch_true: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:252:6: branch_true: following 'true' branch (when 'cd2 != 18446744073709551615')...
flac-1.5.0/src/share/utf8/iconvert.c:253:5: branch_true: ...to here
flac-1.5.0/src/share/utf8/iconvert.c:253:5: throw: if 'iconv_close' throws an exception...
flac-1.5.0/src/share/utf8/iconvert.c:253:5: danger: 'cd2' leaks here; was allocated at [(8)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def89]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: warning[-Wanalyzer-file-leak]: leak of FILE 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_resource: opened here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: throw: if 'FLAC__stream_encoder_new' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: danger: 'encoder_client_data.file' leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def90]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: warning[-Wanalyzer-malloc-leak]: leak of 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_memory: allocated here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: throw: if 'FLAC__stream_encoder_new' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: danger: 'encoder_client_data.file' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def91]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: warning[-Wanalyzer-file-leak]: leak of FILE 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_resource: opened here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:89:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: throw: if 'FLAC__stream_encoder_set_ogg_serial_number' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: danger: 'encoder_client_data.file' leaks here; was opened at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def92]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: warning[-Wanalyzer-malloc-leak]: leak of 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_memory: allocated here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:89:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: throw: if 'FLAC__stream_encoder_set_ogg_serial_number' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: danger: 'encoder_client_data.file' leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def93]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:95:9: warning[-Wanalyzer-file-leak]: leak of FILE 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_resource: opened here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:89:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:95:9: throw: if 'FLAC__stream_encoder_set_verify' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:95:9: danger: 'encoder_client_data.file' leaks here; was opened at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def94]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:95:9: warning[-Wanalyzer-malloc-leak]: leak of 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_memory: allocated here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:89:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:95:9: throw: if 'FLAC__stream_encoder_set_verify' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:95:9: danger: 'encoder_client_data.file' leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def95]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:96:9: warning[-Wanalyzer-file-leak]: leak of FILE 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_resource: opened here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:89:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:96:9: throw: if 'FLAC__stream_encoder_set_streamable_subset' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:96:9: danger: 'encoder_client_data.file' leaks here; was opened at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def96]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:96:9: warning[-Wanalyzer-malloc-leak]: leak of 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_memory: allocated here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:89:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:96:9: throw: if 'FLAC__stream_encoder_set_streamable_subset' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:96:9: danger: 'encoder_client_data.file' leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def97]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:97:9: warning[-Wanalyzer-file-leak]: leak of FILE 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_resource: opened here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:89:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:97:9: throw: if 'FLAC__stream_encoder_set_do_mid_side_stereo' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:97:9: danger: 'encoder_client_data.file' leaks here; was opened at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def98]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:97:9: warning[-Wanalyzer-malloc-leak]: leak of 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_memory: allocated here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:89:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:97:9: throw: if 'FLAC__stream_encoder_set_do_mid_side_stereo' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:97:9: danger: 'encoder_client_data.file' leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def99]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:98:9: warning[-Wanalyzer-file-leak]: leak of FILE 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_resource: opened here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:89:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:98:9: throw: if 'FLAC__stream_encoder_set_loose_mid_side_stereo' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:98:9: danger: 'encoder_client_data.file' leaks here; was opened at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def100]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:98:9: warning[-Wanalyzer-malloc-leak]: leak of 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_memory: allocated here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:89:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:98:9: throw: if 'FLAC__stream_encoder_set_loose_mid_side_stereo' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:98:9: danger: 'encoder_client_data.file' leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def101]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:99:9: warning[-Wanalyzer-file-leak]: leak of FILE 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_resource: opened here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:89:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:99:9: throw: if 'FLAC__stream_encoder_set_channels' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:99:9: danger: 'encoder_client_data.file' leaks here; was opened at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def102]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:99:9: warning[-Wanalyzer-malloc-leak]: leak of 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_memory: allocated here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:89:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:99:9: throw: if 'FLAC__stream_encoder_set_channels' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:99:9: danger: 'encoder_client_data.file' leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def103]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:100:9: warning[-Wanalyzer-file-leak]: leak of FILE 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_resource: opened here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:89:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:100:9: throw: if 'FLAC__stream_encoder_set_bits_per_sample' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:100:9: danger: 'encoder_client_data.file' leaks here; was opened at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def104]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:100:9: warning[-Wanalyzer-malloc-leak]: leak of 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_memory: allocated here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:89:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:100:9: throw: if 'FLAC__stream_encoder_set_bits_per_sample' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:100:9: danger: 'encoder_client_data.file' leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def105]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:101:9: warning[-Wanalyzer-file-leak]: leak of FILE 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_resource: opened here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:89:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:101:9: throw: if 'FLAC__stream_encoder_set_sample_rate' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:101:9: danger: 'encoder_client_data.file' leaks here; was opened at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def106]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:101:9: warning[-Wanalyzer-malloc-leak]: leak of 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_memory: allocated here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:89:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:101:9: throw: if 'FLAC__stream_encoder_set_sample_rate' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:101:9: danger: 'encoder_client_data.file' leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def107]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:102:9: warning[-Wanalyzer-file-leak]: leak of FILE 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_resource: opened here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:89:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:102:9: throw: if 'FLAC__stream_encoder_set_blocksize' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:102:9: danger: 'encoder_client_data.file' leaks here; was opened at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def108]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:102:9: warning[-Wanalyzer-malloc-leak]: leak of 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_memory: allocated here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:89:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:102:9: throw: if 'FLAC__stream_encoder_set_blocksize' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:102:9: danger: 'encoder_client_data.file' leaks here; was allocated at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def109]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:103:9: warning[-Wanalyzer-file-leak]: leak of FILE 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_resource: opened here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:89:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:103:9: throw: if 'FLAC__stream_encoder_set_max_lpc_order' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:103:9: danger: 'encoder_client_data.file' leaks here; was opened at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def110]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:103:9: warning[-Wanalyzer-malloc-leak]: leak of 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_memory: allocated here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:89:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:103:9: throw: if 'FLAC__stream_encoder_set_max_lpc_order' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:103:9: danger: 'encoder_client_data.file' leaks here; was allocated at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def111]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:104:9: warning[-Wanalyzer-file-leak]: leak of FILE 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_resource: opened here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:89:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:104:9: throw: if 'FLAC__stream_encoder_set_qlp_coeff_precision' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:104:9: danger: 'encoder_client_data.file' leaks here; was opened at [(1)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def112]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:104:9: warning[-Wanalyzer-malloc-leak]: leak of 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_memory: allocated here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:89:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:104:9: throw: if 'FLAC__stream_encoder_set_qlp_coeff_precision' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:104:9: danger: 'encoder_client_data.file' leaks here; was allocated at [(1)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def113]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:105:9: warning[-Wanalyzer-file-leak]: leak of FILE 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_resource: opened here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:89:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:105:9: throw: if 'FLAC__stream_encoder_set_do_qlp_coeff_prec_search' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:105:9: danger: 'encoder_client_data.file' leaks here; was opened at [(1)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def114]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:105:9: warning[-Wanalyzer-malloc-leak]: leak of 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_memory: allocated here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:89:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:105:9: throw: if 'FLAC__stream_encoder_set_do_qlp_coeff_prec_search' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:105:9: danger: 'encoder_client_data.file' leaks here; was allocated at [(1)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def115]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:106:9: warning[-Wanalyzer-file-leak]: leak of FILE 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_resource: opened here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:89:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:106:9: throw: if 'FLAC__stream_encoder_set_do_escape_coding' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:106:9: danger: 'encoder_client_data.file' leaks here; was opened at [(1)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def116]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:106:9: warning[-Wanalyzer-malloc-leak]: leak of 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_memory: allocated here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:89:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:106:9: throw: if 'FLAC__stream_encoder_set_do_escape_coding' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:106:9: danger: 'encoder_client_data.file' leaks here; was allocated at [(1)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def117]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:107:9: warning[-Wanalyzer-file-leak]: leak of FILE 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_resource: opened here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:89:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:107:9: throw: if 'FLAC__stream_encoder_set_do_exhaustive_model_search' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:107:9: danger: 'encoder_client_data.file' leaks here; was opened at [(1)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def118]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:107:9: warning[-Wanalyzer-malloc-leak]: leak of 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_memory: allocated here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:89:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:107:9: throw: if 'FLAC__stream_encoder_set_do_exhaustive_model_search' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:107:9: danger: 'encoder_client_data.file' leaks here; was allocated at [(1)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def119]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:108:9: warning[-Wanalyzer-file-leak]: leak of FILE 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_resource: opened here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:89:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:108:9: throw: if 'FLAC__stream_encoder_set_min_residual_partition_order' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:108:9: danger: 'encoder_client_data.file' leaks here; was opened at [(1)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def120]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:108:9: warning[-Wanalyzer-malloc-leak]: leak of 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_memory: allocated here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:89:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:108:9: throw: if 'FLAC__stream_encoder_set_min_residual_partition_order' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:108:9: danger: 'encoder_client_data.file' leaks here; was allocated at [(1)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def121]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:109:9: warning[-Wanalyzer-file-leak]: leak of FILE 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_resource: opened here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:89:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:109:9: throw: if 'FLAC__stream_encoder_set_max_residual_partition_order' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:109:9: danger: 'encoder_client_data.file' leaks here; was opened at [(1)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def122]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:109:9: warning[-Wanalyzer-malloc-leak]: leak of 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_memory: allocated here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:89:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:109:9: throw: if 'FLAC__stream_encoder_set_max_residual_partition_order' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:109:9: danger: 'encoder_client_data.file' leaks here; was allocated at [(1)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def123]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:110:9: warning[-Wanalyzer-file-leak]: leak of FILE 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_resource: opened here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:89:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:110:9: throw: if 'FLAC__stream_encoder_set_rice_parameter_search_dist' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:110:9: danger: 'encoder_client_data.file' leaks here; was opened at [(1)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def124]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:110:9: warning[-Wanalyzer-malloc-leak]: leak of 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_memory: allocated here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:89:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:110:9: throw: if 'FLAC__stream_encoder_set_rice_parameter_search_dist' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:110:9: danger: 'encoder_client_data.file' leaks here; was allocated at [(1)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def125]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:111:9: warning[-Wanalyzer-file-leak]: leak of FILE 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_resource: opened here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:89:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:111:9: throw: if 'FLAC__stream_encoder_set_total_samples_estimate' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:111:9: danger: 'encoder_client_data.file' leaks here; was opened at [(1)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def126]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:111:9: warning[-Wanalyzer-malloc-leak]: leak of 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_memory: allocated here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:89:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:111:9: throw: if 'FLAC__stream_encoder_set_total_samples_estimate' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:111:9: danger: 'encoder_client_data.file' leaks here; was allocated at [(1)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def127]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:112:9: warning[-Wanalyzer-file-leak]: leak of FILE 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_resource: opened here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:89:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:112:9: throw: if 'FLAC__stream_encoder_set_metadata' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:112:9: danger: 'encoder_client_data.file' leaks here; was opened at [(1)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def128]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:112:9: warning[-Wanalyzer-malloc-leak]: leak of 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_memory: allocated here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:89:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:112:9: throw: if 'FLAC__stream_encoder_set_metadata' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:112:9: danger: 'encoder_client_data.file' leaks here; was allocated at [(1)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def129]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:115:31: warning[-Wanalyzer-file-leak]: leak of FILE 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_resource: opened here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:89:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:114:11: branch_true: following 'true' branch (when 'is_ogg != 0')...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:115:31: branch_true: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:115:31: throw: if 'FLAC__stream_encoder_init_ogg_stream' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:115:31: danger: 'encoder_client_data.file' leaks here; was opened at [(1)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def130]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:115:31: warning[-Wanalyzer-malloc-leak]: leak of 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_memory: allocated here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:89:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:114:11: branch_true: following 'true' branch (when 'is_ogg != 0')...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:115:31: branch_true: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:115:31: throw: if 'FLAC__stream_encoder_init_ogg_stream' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:115:31: danger: 'encoder_client_data.file' leaks here; was allocated at [(1)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def131]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:117:31: warning[-Wanalyzer-file-leak]: leak of FILE 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_resource: opened here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:89:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:114:11: branch_false: following 'false' branch (when 'is_ogg == 0')...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:117:31: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:117:31: throw: if 'FLAC__stream_encoder_init_stream' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:117:31: danger: 'encoder_client_data.file' leaks here; was opened at [(1)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def132]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:117:31: warning[-Wanalyzer-malloc-leak]: leak of 'encoder_client_data.file'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:45: acquire_memory: allocated here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:85:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:88:19: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:89:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:94:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:114:11: branch_false: following 'false' branch (when 'is_ogg == 0')...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:117:31: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:117:31: throw: if 'FLAC__stream_encoder_init_stream' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:117:31: danger: 'encoder_client_data.file' leaks here; was allocated at [(1)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def133]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:163:11: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(output_filename, "ab")'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:161:27: acquire_resource: opened here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:161:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:163:26: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:163:11: danger: 'fopen(output_filename, "ab")' leaks here; was opened at [(1)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def134]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:163:11: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(output_filename, "ab")'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:161:27: acquire_memory: allocated here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:161:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:163:26: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:163:11: danger: 'fopen(output_filename, "ab")' leaks here; was allocated at [(1)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def135]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:166:9: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(input_filename, "rb")'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:161:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:163:26: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:163:26: acquire_resource: opened here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:163:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:166:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:166:9: throw: if 'fseek' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:166:9: danger: 'fopen(input_filename, "rb")' leaks here; was opened at [(3)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def136]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:166:9: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(output_filename, "ab")'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:161:27: acquire_resource: opened here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:161:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:163:26: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:163:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:166:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:166:9: throw: if 'fseek' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:166:9: danger: 'fopen(output_filename, "ab")' leaks here; was opened at [(1)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def137]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:166:9: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(input_filename, "rb")'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:161:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:163:26: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:163:26: acquire_memory: allocated here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:163:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:166:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:166:9: throw: if 'fseek' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:166:9: danger: 'fopen(input_filename, "rb")' leaks here; was allocated at [(3)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def138]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:166:9: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(output_filename, "ab")'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:161:27: acquire_memory: allocated here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:161:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:163:26: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:163:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:166:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:166:9: throw: if 'fseek' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:166:9: danger: 'fopen(output_filename, "ab")' leaks here; was allocated at [(1)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def139]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:168:21: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(input_filename, "rb")'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:161:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:163:26: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:163:26: acquire_resource: opened here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:163:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:166:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:168:21: throw: if 'fgetc' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:168:21: danger: 'fopen(input_filename, "rb")' leaks here; was opened at [(3)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def140]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:168:21: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(output_filename, "ab")'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:161:27: acquire_resource: opened here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:161:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:163:26: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:163:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:166:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:168:21: throw: if 'fgetc' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:168:21: danger: 'fopen(output_filename, "ab")' leaks here; was opened at [(1)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def141]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:168:21: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(input_filename, "rb")'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:161:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:163:26: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:163:26: acquire_memory: allocated here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:163:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:166:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:168:21: throw: if 'fgetc' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:168:21: danger: 'fopen(input_filename, "rb")' leaks here; was allocated at [(3)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def142]
flac-1.5.0/src/test_libs_common/file_utils_flac.c:168:21: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(output_filename, "ab")'
flac-1.5.0/src/test_libs_common/file_utils_flac.c:161:27: acquire_memory: allocated here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:161:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:163:26: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:163:11: branch_false: following 'false' branch...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:166:9: branch_false: ...to here
flac-1.5.0/src/test_libs_common/file_utils_flac.c:168:21: throw: if 'fgetc' throws an exception...
flac-1.5.0/src/test_libs_common/file_utils_flac.c:168:21: danger: 'fopen(output_filename, "ab")' leaks here; was allocated at [(1)](sarif:/runs/0/results/52/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 |
| diffbase-analyzer-version-clippy | 1.92.0 |
| diffbase-analyzer-version-cppcheck | 2.19.1 |
| diffbase-analyzer-version-gcc | 16.0.0 |
| diffbase-analyzer-version-gcc-analyzer | 16.0.0 |
| diffbase-analyzer-version-shellcheck | 0.11.0 |
| diffbase-analyzer-version-unicontrol | 0.0.2 |
| diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| diffbase-exit-code | 0 |
| diffbase-host | ip-172-16-1-106.us-west-2.compute.internal |
| diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js |
| diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | flac-1.5.0-6.fc44 |
| diffbase-store-results-to | /tmp/tmp5sohp_au/flac-1.5.0-6.fc44.tar.xz |
| diffbase-time-created | 2026-01-08 16:13:27 |
| diffbase-time-finished | 2026-01-08 16:15:24 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmp5sohp_au/flac-1.5.0-6.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp5sohp_au/flac-1.5.0-6.fc44.src.rpm' |
| diffbase-tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-106.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 | flac-1.5.0-3.fc43 |
| store-results-to | /tmp/tmp36tuq3dz/flac-1.5.0-3.fc43.tar.xz |
| time-created | 2026-01-08 16:10:23 |
| time-finished | 2026-01-08 16:13:08 |
| title | Fixed findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmp36tuq3dz/flac-1.5.0-3.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp36tuq3dz/flac-1.5.0-3.fc43.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |