Task #90859 - added.err
back to task #90859download
Error: GCC_ANALYZER_WARNING (CWE-401):
flac-1.5.0/include/share/alloc.h:122:12: warning[-Wanalyzer-malloc-leak]: leak of ‘safe_calloc_((long unsigned int)new_num_indices, 16)’
flac-1.5.0/src/libFLAC/metadata_object.c:1592:21: enter_function: entry to ‘FLAC__metadata_object_cuesheet_track_delete_index’
flac-1.5.0/src/libFLAC/metadata_object.c:1606:9: call_function: calling ‘FLAC__metadata_object_cuesheet_track_resize_indices’ from ‘FLAC__metadata_object_cuesheet_track_delete_index’
# 120| return NULL;
# 121| #endif
# 122|-> if(!nmemb || !size)
# 123| return malloc(1); /* malloc(0) is undefined; FLAC src convention is to always allocate */
# 124| return calloc(nmemb, size);
Error: GCC_ANALYZER_WARNING (CWE-401):
flac-1.5.0/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-uY06rO/src.c:9:9: warning[-Wanalyzer-malloc-leak]: leak of ‘iconv_open("to", "from")’
flac-1.5.0/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-uY06rO/src.c:8:14: acquire_memory: allocated here
flac-1.5.0/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-uY06rO/src.c:9:9: throw: if ‘iconv’ throws an exception...
flac-1.5.0/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-uY06rO/src.c:9:9: danger: ‘iconv_open("to", "from")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: COMPILER_WARNING (CWE-686):
flac-1.5.0/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-v6BYNi/CheckFunctionExists.c:7:3: warning[-Wbuiltin-declaration-mismatch]: conflicting types for built-in function ‘lround’; expected ‘long int(double)’
Error: COMPILER_WARNING (CWE-457):
flac-1.5.0/src/flac/encode.c:2227:11: warning[-Wmaybe-uninitialized]: ‘has_real_points’ may be used uninitialized
# 2227 | if(has_real_points) {
# | ^
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
# 2191 | FLAC__bool has_real_points;
# | ^
# 2225| }
# 2226|
# 2227|-> if(has_real_points) {
# 2228| if(e->is_stdout) {
# 2229| flac__utils_printf(stderr, 1, "%s: WARNING, cannot write back seekpoints when encoding to stdout\n", e->inbasefilename);
Error: GCC_ANALYZER_WARNING (CWE-775):
flac-1.5.0/src/flac/main.c:1257: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: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:1582:25: call_function: calling ‘conditional_fclose’ from ‘encode_file’
flac-1.5.0/src/flac/main.c:1582:25: return_function: returning to ‘encode_file’ from ‘conditional_fclose’
flac-1.5.0/src/flac/main.c:1257:16: danger: ‘encode_infile’ leaks here; was opened at [(6)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/5)
# 1255| }
# 1256|
# 1257|-> return 1;
# 1258| }
# 1259|
Error: GCC_ANALYZER_WARNING (CWE-401):
flac-1.5.0/src/flac/main.c:1257: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: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:1582:25: call_function: calling ‘conditional_fclose’ from ‘encode_file’
flac-1.5.0/src/flac/main.c:1582:25: return_function: returning to ‘encode_file’ from ‘conditional_fclose’
flac-1.5.0/src/flac/main.c:1257:16: danger: ‘encode_infile’ leaks here; was allocated at [(6)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/5)
# 1255| }
# 1256|
# 1257|-> return 1;
# 1258| }
# 1259|
Error: COMPILER_WARNING (CWE-9001):
flac-1.5.0/src/libFLAC/bitwriter.c:275:19: warning[-Winline]: inlining failed in call to ‘FLAC__bitwriter_write_zeroes’: call is unlikely and code size would grow
# 275 | inline FLAC__bool FLAC__bitwriter_write_zeroes(FLAC__BitWriter *bw, uint32_t bits)
# | ^
flac-1.5.0/src/test_libFLAC/bitwriter.c:209:17: note: called from here
# 209 | FLAC__bitwriter_write_zeroes(bw, 4) &&
# | ^
# 273| }
# 274|
# 275|-> inline FLAC__bool FLAC__bitwriter_write_zeroes(FLAC__BitWriter *bw, uint32_t bits)
# 276| {
# 277| uint32_t n;
Error: COMPILER_WARNING (CWE-9001):
flac-1.5.0/src/libFLAC/bitwriter.c: scope_hint: In function ‘FLAC__bitwriter_write_utf8_uint32.isra’
flac-1.5.0/src/libFLAC/bitwriter.c:313:26: warning[-Winline]: inlining failed in call to ‘FLAC__bitwriter_write_raw_uint32_nocheck’: call is unlikely and code size would grow
# 313 | static inline FLAC__bool FLAC__bitwriter_write_raw_uint32_nocheck(FLAC__BitWriter *bw, FLAC__uint32 val, uint32_t bits)
# | ^
flac-1.5.0/src/libFLAC/bitwriter.c:840:24: note: called from here
# 840 | return FLAC__bitwriter_write_raw_uint32_nocheck(bw, val, 8);
# | ^
# 311| }
# 312|
# 313|-> static inline FLAC__bool FLAC__bitwriter_write_raw_uint32_nocheck(FLAC__BitWriter *bw, FLAC__uint32 val, uint32_t bits)
# 314| {
# 315| register uint32_t left;
Error: COMPILER_WARNING (CWE-9001):
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
# 354 | inline FLAC__bool FLAC__bitwriter_write_raw_uint32(FLAC__BitWriter *bw, FLAC__uint32 val, uint32_t bits)
# | ^
flac-1.5.0/src/libFLAC/stream_encoder_framing.c:96:29: note: called from here
# 96 | if(!FLAC__bitwriter_write_raw_uint32(bw, metadata->data.stream_info.channels-1, FLAC__STREAM_METADATA_STREAMINFO_CHANNELS_LEN))
# | ^
# 352| }
# 353|
# 354|-> inline FLAC__bool FLAC__bitwriter_write_raw_uint32(FLAC__BitWriter *bw, FLAC__uint32 val, uint32_t bits)
# 355| {
# 356| /* check that unused bits are unset */
Error: COMPILER_WARNING (CWE-9001):
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
# 372 | inline FLAC__bool FLAC__bitwriter_write_raw_uint64(FLAC__BitWriter *bw, FLAC__uint64 val, uint32_t bits)
# | ^
flac-1.5.0/src/libFLAC/stream_encoder_framing.c:103:37: note: called from here
# 103 | if(!FLAC__bitwriter_write_raw_uint64(bw, 0, FLAC__STREAM_METADATA_STREAMINFO_TOTAL_SAMPLES_LEN))
# | ^
# 370| }
# 371|
# 372|-> inline FLAC__bool FLAC__bitwriter_write_raw_uint64(FLAC__BitWriter *bw, FLAC__uint64 val, uint32_t bits)
# 373| {
# 374| /* this could be a little faster but it's not used for much */
Error: COMPILER_WARNING (CWE-9001):
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
# 393 | inline FLAC__bool FLAC__bitwriter_write_raw_uint32_little_endian(FLAC__BitWriter *bw, FLAC__uint32 val)
# | ^
flac-1.5.0/src/libFLAC/stream_encoder_framing.c:134:37: note: called from here
# 134 | if(!FLAC__bitwriter_write_raw_uint32_little_endian(bw, vendor_string_length))
# | ^
# 391| }
# 392|
# 393|-> inline FLAC__bool FLAC__bitwriter_write_raw_uint32_little_endian(FLAC__BitWriter *bw, FLAC__uint32 val)
# 394| {
# 395| /* this doesn't need to be that fast as currently it is only used for vorbis comments */
Error: COMPILER_WARNING (CWE-9001):
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
# 409 | inline FLAC__bool FLAC__bitwriter_write_byte_block(FLAC__BitWriter *bw, const FLAC__byte vals[], uint32_t nvals)
# | ^
flac-1.5.0/src/libFLAC/stream_encoder_framing.c:109:29: note: called from here
# 109 | if(!FLAC__bitwriter_write_byte_block(bw, metadata->data.stream_info.md5sum, 16))
# | ^
# 407| }
# 408|
# 409|-> inline FLAC__bool FLAC__bitwriter_write_byte_block(FLAC__BitWriter *bw, const FLAC__byte vals[], uint32_t nvals)
# 410| {
# 411| uint32_t i;
Error: CPPCHECK_WARNING (CWE-786):
flac-1.5.0/src/libFLAC/fixed.c:389: error[negativeIndex]: Array 'data[0]' accessed at index -4, which is out of bounds.
# 387|
# 388| for(i = -4; i < (int)data_len; i++) {
# 389|-> error_0 = local_abs64((FLAC__int64)data[i]);
# 390| error_1 = (i > -4) ? local_abs64((FLAC__int64)data[i] - data[i-1]) : 0 ;
# 391| error_2 = (i > -3) ? local_abs64((FLAC__int64)data[i] - 2 * (FLAC__int64)data[i-1] + data[i-2]) : 0;
Error: CPPCHECK_WARNING (CWE-786):
flac-1.5.0/src/libFLAC/fixed.c:390: error[negativeIndex]: Array 'data[0]' accessed at index -3, which is out of bounds.
# 388| for(i = -4; i < (int)data_len; i++) {
# 389| error_0 = local_abs64((FLAC__int64)data[i]);
# 390|-> error_1 = (i > -4) ? local_abs64((FLAC__int64)data[i] - data[i-1]) : 0 ;
# 391| error_2 = (i > -3) ? local_abs64((FLAC__int64)data[i] - 2 * (FLAC__int64)data[i-1] + data[i-2]) : 0;
# 392| error_3 = (i > -2) ? local_abs64((FLAC__int64)data[i] - 3 * (FLAC__int64)data[i-1] + 3 * (FLAC__int64)data[i-2] - data[i-3]) : 0;
Error: CPPCHECK_WARNING (CWE-786):
flac-1.5.0/src/libFLAC/fixed.c:436: error[negativeIndex]: Array 'data[0]' accessed at index -4, which is out of bounds.
# 434|
# 435| for(i = -4; i < (int)data_len; i++) {
# 436|-> error_0 = local_abs64(data[i]);
# 437| error_1 = (i > -4) ? local_abs64(data[i] - data[i-1]) : 0 ;
# 438| error_2 = (i > -3) ? local_abs64(data[i] - 2 * data[i-1] + data[i-2]) : 0;
Error: CPPCHECK_WARNING (CWE-786):
flac-1.5.0/src/libFLAC/fixed.c:437: error[negativeIndex]: Array 'data[0]' accessed at index -3, which is out of bounds.
# 435| for(i = -4; i < (int)data_len; i++) {
# 436| error_0 = local_abs64(data[i]);
# 437|-> error_1 = (i > -4) ? local_abs64(data[i] - data[i-1]) : 0 ;
# 438| error_2 = (i > -3) ? local_abs64(data[i] - 2 * data[i-1] + data[i-2]) : 0;
# 439| error_3 = (i > -2) ? local_abs64(data[i] - 3 * data[i-1] + 3 * data[i-2] - data[i-3]) : 0;
Error: GCC_ANALYZER_WARNING (CWE-476):
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:1653:20: branch_false: following ‘false’ branch (when ‘old_size >= new_size’)...
flac-1.5.0/src/libFLAC/metadata_object.c:1657:9: branch_false: ...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’
# 336|
# 337| for (i = 0; i < object->data.cue_sheet.num_tracks; i++) {
# 338|-> object->length += object->data.cue_sheet.tracks[i].num_indices * (
# 339| FLAC__STREAM_METADATA_CUESHEET_INDEX_OFFSET_LEN +
# 340| FLAC__STREAM_METADATA_CUESHEET_INDEX_NUMBER_LEN +
Error: GCC_ANALYZER_WARNING (CWE-401):
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_’
# 1802| ok = false;
# 1803| }
# 1804|-> else if(!FLAC__bitreader_read_byte_block_aligned_no_crc(decoder->private_->input, block.data.application.data, real_length))
# 1805| ok = false; /* read_callback_ sets the state for us */
# 1806| }
Error: GCC_ANALYZER_WARNING (CWE-401):
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_’
# 1830| ok = false;
# 1831| }
# 1832|-> else if(!FLAC__bitreader_read_byte_block_aligned_no_crc(decoder->private_->input, block.data.unknown.data, real_length))
# 1833| ok = false; /* read_callback_ sets the state for us */
# 1834| }
Error: GCC_ANALYZER_WARNING (CWE-401):
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_’
# 2047| return false;
# 2048| }
# 2049|-> if (!FLAC__bitreader_read_byte_block_aligned_no_crc(decoder->private_->input, obj->vendor_string.entry, obj->vendor_string.length))
# 2050| return false; /* read_callback_ sets the state for us */
# 2051| obj->vendor_string.entry[obj->vendor_string.length] = '\0';
Error: GCC_ANALYZER_WARNING (CWE-401):
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_’
# 2160| for(i = 0; i < obj->num_tracks; i++) {
# 2161| FLAC__StreamMetadata_CueSheet_Track *track = &obj->tracks[i];
# 2162|-> if(!FLAC__bitreader_read_raw_uint64(decoder->private_->input, &track->offset, FLAC__STREAM_METADATA_CUESHEET_TRACK_OFFSET_LEN))
# 2163| return false; /* read_callback_ sets the state for us */
# 2164|
Error: GCC_ANALYZER_WARNING (CWE-401):
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_’
# 2240| }
# 2241| if(x > 0) {
# 2242|-> if(!FLAC__bitreader_read_byte_block_aligned_no_crc(decoder->private_->input, (FLAC__byte*)obj->mime_type, x))
# 2243| return false; /* read_callback_ sets the state for us */
# 2244| }
Error: GCC_ANALYZER_WARNING (CWE-401):
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_’
# 2246|
# 2247| /* read description */
# 2248|-> if(!FLAC__bitreader_read_raw_uint32(decoder->private_->input, &x, FLAC__STREAM_METADATA_PICTURE_DESCRIPTION_LENGTH_LEN))
# 2249| return false; /* read_callback_ sets the state for us */
# 2250| if(FLAC__bitreader_limit_remaining(decoder->private_->input) < x){
Error: COMPILER_WARNING (CWE-704):
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
# 781 | char *temp = my_index (optstring, c);
# | ^~~~~~~~
# 779| {
# 780| char c = *nextchar++;
# 781|-> char *temp = my_index (optstring, c);
# 782|
# 783| /* Increment `share__optind' when we start to process its last character. */
Error: COMPILER_WARNING (CWE-704):
flac-1.5.0/src/share/getopt/getopt.c:781:18: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
# 779| {
# 780| char c = *nextchar++;
# 781|-> char *temp = my_index (optstring, c);
# 782|
# 783| /* Increment `share__optind' when we start to process its last character. */
Error: GCC_ANALYZER_WARNING (CWE-476):
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’
# 847| /* Test all long options for either exact match
# 848| or abbreviated matches. */
# 849|-> for (p = longopts, option_index = 0; p->name; p++, option_index++)
# 850| if (!strncmp (p->name, nextchar, nameend - nextchar))
# 851| {
Error: GCC_ANALYZER_WARNING (CWE-401):
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)
# 111| return false;
# 112| setlocale(LC_ALL, "C");
# 113|-> flac_snprintf(buffer, sizeof(buffer), format, name, value);
# 114| setlocale(LC_ALL, saved_locale);
# 115| free(saved_locale);
Error: GCC_ANALYZER_WARNING (CWE-401):
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)
# 630| setlocale(LC_ALL, "C");
# 631|
# 632|-> if(0 <= (reference_offset = FLAC__metadata_object_vorbiscomment_find_entry_from(block, /*offset=*/0, (const char *)GRABBAG__REPLAYGAIN_TAG_REFERENCE_LOUDNESS)))
# 633| (void)parse_double_(block->data.vorbis_comment.comments + reference_offset, reference);
# 634|
Error: GCC_ANALYZER_WARNING (CWE-401):
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)
# 633| (void)parse_double_(block->data.vorbis_comment.comments + reference_offset, reference);
# 634|
# 635|-> if(0 > (gain_offset = FLAC__metadata_object_vorbiscomment_find_entry_from(block, /*offset=*/0, (const char *)(album_mode? GRABBAG__REPLAYGAIN_TAG_ALBUM_GAIN : GRABBAG__REPLAYGAIN_TAG_TITLE_GAIN))))
# 636| res = false;
# 637| if(0 > (peak_offset = FLAC__metadata_object_vorbiscomment_find_entry_from(block, /*offset=*/0, (const char *)(album_mode? GRABBAG__REPLAYGAIN_TAG_ALBUM_PEAK : GRABBAG__REPLAYGAIN_TAG_TITLE_PEAK))))
Error: GCC_ANALYZER_WARNING (CWE-401):
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)
# 635| if(0 > (gain_offset = FLAC__metadata_object_vorbiscomment_find_entry_from(block, /*offset=*/0, (const char *)(album_mode? GRABBAG__REPLAYGAIN_TAG_ALBUM_GAIN : GRABBAG__REPLAYGAIN_TAG_TITLE_GAIN))))
# 636| res = false;
# 637|-> if(0 > (peak_offset = FLAC__metadata_object_vorbiscomment_find_entry_from(block, /*offset=*/0, (const char *)(album_mode? GRABBAG__REPLAYGAIN_TAG_ALBUM_PEAK : GRABBAG__REPLAYGAIN_TAG_TITLE_PEAK))))
# 638| res = false;
# 639|
Error: COMPILER_WARNING:
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
# 32 | uint32_t i;
# | ^
# 30| FLAC__bool grabbag__seektable_convert_specification_to_template(const char *spec, FLAC__bool only_explicit_placeholders, FLAC__uint64 total_samples_to_encode, uint32_t sample_rate, FLAC__StreamMetadata *seektable_template, FLAC__bool *spec_has_real_points)
# 31| {
# 32|-> uint32_t i;
# 33| const char *pt;
# 34|
Error: GCC_ANALYZER_WARNING (CWE-476):
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’
# 49| return false;
# 50| }
# 51|-> else if(q[-1] == 'x') { /* -S #x */
# 52| if(total_samples_to_encode > 0) { /* we can only do these if we know the number of samples to encode up front */
# 53| if(0 != spec_has_real_points)
Error: GCC_ANALYZER_WARNING (CWE-401):
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)
# 67|
# 68| cd1 = iconv_open("UTF-8", fromcode);
# 69|-> if (cd1 == (iconv_t)(-1))
# 70| return -1;
# 71|
Error: GCC_ANALYZER_WARNING (CWE-401):
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:56:5: enter_function: entry to ‘iconvert’
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: call_function: inlined call to ‘asprintf’ from ‘iconvert’
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 [(2)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/1)
# 72| cd2 = (iconv_t)(-1);
# 73| /* Don't use strcasecmp() as it's locale-dependent. */
# 74|-> if (!strchr("Uu", tocode[0]) ||
# 75| !strchr("Tt", tocode[1]) ||
# 76| !strchr("Ff", tocode[2]) ||
Error: GCC_ANALYZER_WARNING (CWE-401):
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: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: call_function: inlined call to ‘asprintf’ from ‘iconvert’
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 [(10)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/9)
# 91|
# 92| cd2 = iconv_open(tocode1, "UTF-8");
# 93|-> free(tocode1);
# 94|
# 95| if (cd2 == (iconv_t)(-1))
Error: GCC_ANALYZER_WARNING (CWE-401):
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: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: call_function: inlined call to ‘asprintf’ from ‘iconvert’
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 [(12)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/11)
# 96| cd2 = iconv_open(tocode, fromcode);
# 97|
# 98|-> if (cd2 == (iconv_t)(-1)) {
# 99| iconv_close(cd1);
# 100| return -1;
Error: GCC_ANALYZER_WARNING (CWE-401):
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: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: call_function: inlined call to ‘asprintf’ from ‘iconvert’
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 [(10)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/9)
# 113| obl = utflen;
# 114| for (;;) {
# 115|-> k = iconv(cd1, &ib, &ibl, &ob, &obl);
# 116| assert((!k && !ibl) ||
# 117| (k == (size_t)(-1) && errno == E2BIG && ibl && obl < 6) ||
Error: GCC_ANALYZER_WARNING (CWE-401):
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: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: call_function: inlined call to ‘asprintf’ from ‘iconvert’
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 [(12)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/11)
# 113| obl = utflen;
# 114| for (;;) {
# 115|-> k = iconv(cd1, &ib, &ibl, &ob, &obl);
# 116| assert((!k && !ibl) ||
# 117| (k == (size_t)(-1) && errno == E2BIG && ibl && obl < 6) ||
Error: GCC_ANALYZER_WARNING (CWE-401):
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: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: call_function: inlined call to ‘asprintf’ from ‘iconvert’
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 [(10)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/9)
# 138| *ob++ = '#', obl--;
# 139| ret = 2;
# 140|-> iconv(cd1, 0, 0, 0, 0);
# 141| }
# 142| }
Error: GCC_ANALYZER_WARNING (CWE-401):
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: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: call_function: inlined call to ‘asprintf’ from ‘iconvert’
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 [(10)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/9)
# 177| ob = tbuf;
# 178| obl = sizeof(tbuf);
# 179|-> k = iconv(cd2, &ib, &ibl, &ob, &obl);
# 180| assert((k != (size_t)(-1) && !ibl) ||
# 181| (k == (size_t)(-1) && errno == E2BIG && ibl) ||
Error: GCC_ANALYZER_WARNING (CWE-401):
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: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: call_function: inlined call to ‘asprintf’ from ‘iconvert’
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 [(20)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/19)
# 177| ob = tbuf;
# 178| obl = sizeof(tbuf);
# 179|-> k = iconv(cd2, &ib, &ibl, &ob, &obl);
# 180| assert((k != (size_t)(-1) && !ibl) ||
# 181| (k == (size_t)(-1) && errno == E2BIG && ibl) ||
Error: GCC_ANALYZER_WARNING (CWE-401):
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: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: call_function: inlined call to ‘asprintf’ from ‘iconvert’
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 [(10)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/9)
# 199| ob = tbuf;
# 200| obl = sizeof(tbuf);
# 201|-> k = iconv(cd2, 0, 0, &ob, &obl);
# 202| assert(!k);
# 203| outlen += ob - tbuf;
Error: GCC_ANALYZER_WARNING (CWE-401):
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: call_function: inlined call to ‘asprintf’ from ‘iconvert’
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 [(29)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/28)
# 212| obl = outlen;
# 213| while (ibl) {
# 214|-> k = iconv(cd2, &ib, &ibl, &ob, &obl);
# 215| assert((k != (size_t)(-1) && !ibl) ||
# 216| (k == (size_t)(-1) && errno == EILSEQ && ibl));
Error: GCC_ANALYZER_WARNING (CWE-401):
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: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: call_function: inlined call to ‘asprintf’ from ‘iconvert’
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 [(10)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/9)
# 249| if(0 != utfbuf)
# 250| free(utfbuf);
# 251|-> iconv_close(cd1);
# 252| if (cd2 != (iconv_t)(-1))
# 253| iconv_close(cd2);
Error: GCC_ANALYZER_WARNING (CWE-401):
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: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: call_function: inlined call to ‘asprintf’ from ‘iconvert’
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 [(10)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/9)
# 251| iconv_close(cd1);
# 252| if (cd2 != (iconv_t)(-1))
# 253|-> iconv_close(cd2);
# 254| return -2;
# 255| }
Error: GCC_ANALYZER_WARNING (CWE-775):
flac-1.5.0/src/test_grabbag/cuesheet/main.c:52:29: warning[-Wanalyzer-file-leak]: leak of FILE ‘fin’
flac-1.5.0/src/test_grabbag/cuesheet/main.c:45:11: branch_false: following ‘false’ branch (when the strings are non-equal)...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:48:29: branch_false: ...to here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:48:29: acquire_resource: opened here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:48:16: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:52:29: branch_false: ...to here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:52:29: throw: if ‘grabbag__cuesheet_parse’ throws an exception...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:52:29: danger: ‘fin’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
# 50| return 255;
# 51| }
# 52|-> if(0 != (cuesheet = grabbag__cuesheet_parse(fin, &error_message, &last_line_read, sample_rate, is_cdda, lead_out_offset))) {
# 53| if(fin != stdin)
# 54| fclose(fin);
Error: GCC_ANALYZER_WARNING (CWE-401):
flac-1.5.0/src/test_grabbag/cuesheet/main.c:52:29: warning[-Wanalyzer-malloc-leak]: leak of ‘fin’
flac-1.5.0/src/test_grabbag/cuesheet/main.c:45:11: branch_false: following ‘false’ branch (when the strings are non-equal)...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:48:29: branch_false: ...to here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:48:29: acquire_memory: allocated here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:48:16: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:52:29: branch_false: ...to here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:52:29: throw: if ‘grabbag__cuesheet_parse’ throws an exception...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:52:29: danger: ‘fin’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
# 50| return 255;
# 51| }
# 52|-> if(0 != (cuesheet = grabbag__cuesheet_parse(fin, &error_message, &last_line_read, sample_rate, is_cdda, lead_out_offset))) {
# 53| if(fin != stdin)
# 54| fclose(fin);
Error: GCC_ANALYZER_WARNING (CWE-775):
flac-1.5.0/src/test_grabbag/cuesheet/main.c:77:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&tmpfilename, "w")’
flac-1.5.0/src/test_grabbag/cuesheet/main.c:52:11: branch_true: following ‘true’ branch...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:53:20: branch_true: ...to here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:62:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:68:27: branch_false: ...to here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:69:27: branch_true: following ‘true’ branch (when ‘tmpfilenamebase’ is NULL)...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:71:9: branch_true: ...to here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:72:25: acquire_resource: opened here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:72:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:77:9: branch_false: ...to here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:77:9: throw: if ‘grabbag__cuesheet_emit’ throws an exception...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:77:9: danger: ‘fopen(&tmpfilename, "w")’ leaks here; was opened at [(8)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/7)
# 75| return 255;
# 76| }
# 77|-> grabbag__cuesheet_emit(fout, cuesheet, "\"dummy.wav\" WAVE");
# 78| FLAC__metadata_object_delete(cuesheet);
# 79| fclose(fout);
Error: GCC_ANALYZER_WARNING (CWE-401):
flac-1.5.0/src/test_grabbag/cuesheet/main.c:77:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&tmpfilename, "w")’
flac-1.5.0/src/test_grabbag/cuesheet/main.c:52:11: branch_true: following ‘true’ branch...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:53:20: branch_true: ...to here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:62:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:68:27: branch_false: ...to here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:69:27: branch_true: following ‘true’ branch (when ‘tmpfilenamebase’ is NULL)...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:71:9: branch_true: ...to here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:72:25: acquire_memory: allocated here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:72:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:77:9: branch_false: ...to here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:77:9: throw: if ‘grabbag__cuesheet_emit’ throws an exception...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:77:9: danger: ‘fopen(&tmpfilename, "w")’ leaks here; was allocated at [(8)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/7)
# 75| return 255;
# 76| }
# 77|-> grabbag__cuesheet_emit(fout, cuesheet, "\"dummy.wav\" WAVE");
# 78| FLAC__metadata_object_delete(cuesheet);
# 79| fclose(fout);
Error: GCC_ANALYZER_WARNING (CWE-775):
flac-1.5.0/src/test_grabbag/cuesheet/main.c:88:29: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&tmpfilename, "r")’
flac-1.5.0/src/test_grabbag/cuesheet/main.c:52:11: branch_true: following ‘true’ branch...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:53:20: branch_true: ...to here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:62:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:68:27: branch_false: ...to here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:69:27: branch_true: following ‘true’ branch (when ‘tmpfilenamebase’ is NULL)...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:71:9: branch_true: ...to here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:72:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:77:9: branch_false: ...to here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:84:24: acquire_resource: opened here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:84:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:88:29: branch_false: ...to here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:88:29: throw: if ‘grabbag__cuesheet_parse’ throws an exception...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:88:29: danger: ‘fopen(&tmpfilename, "r")’ leaks here; was opened at [(10)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/9)
# 86| return 255;
# 87| }
# 88|-> if(0 != (cuesheet = grabbag__cuesheet_parse(fin, &error_message, &last_line_read, sample_rate, is_cdda, lead_out_offset))) {
# 89| if(fin != stdin)
# 90| fclose(fin);
Error: GCC_ANALYZER_WARNING (CWE-401):
flac-1.5.0/src/test_grabbag/cuesheet/main.c:88:29: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&tmpfilename, "r")’
flac-1.5.0/src/test_grabbag/cuesheet/main.c:52:11: branch_true: following ‘true’ branch...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:53:20: branch_true: ...to here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:62:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:68:27: branch_false: ...to here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:69:27: branch_true: following ‘true’ branch (when ‘tmpfilenamebase’ is NULL)...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:71:9: branch_true: ...to here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:72:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:77:9: branch_false: ...to here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:84:24: acquire_memory: allocated here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:84:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:88:29: branch_false: ...to here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:88:29: throw: if ‘grabbag__cuesheet_parse’ throws an exception...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:88:29: danger: ‘fopen(&tmpfilename, "r")’ leaks here; was allocated at [(10)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/9)
# 86| return 255;
# 87| }
# 88|-> if(0 != (cuesheet = grabbag__cuesheet_parse(fin, &error_message, &last_line_read, sample_rate, is_cdda, lead_out_offset))) {
# 89| if(fin != stdin)
# 90| fclose(fin);
Error: GCC_ANALYZER_WARNING (CWE-775):
flac-1.5.0/src/test_grabbag/cuesheet/main.c:109:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&tmpfilename, "w")’
flac-1.5.0/src/test_grabbag/cuesheet/main.c:52:11: branch_true: following ‘true’ branch...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:53:20: branch_true: ...to here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:62:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:68:27: branch_false: ...to here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:69:27: branch_true: following ‘true’ branch (when ‘tmpfilenamebase’ is NULL)...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:71:9: branch_true: ...to here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:72:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:77:9: branch_false: ...to here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:84:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:88:29: branch_false: ...to here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:88:11: branch_true: following ‘true’ branch...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:89:20: branch_true: ...to here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:98:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:103:9: branch_false: ...to here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:104:25: acquire_resource: opened here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:104:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:109:9: branch_false: ...to here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:109:9: throw: if ‘grabbag__cuesheet_emit’ throws an exception...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:109:9: danger: ‘fopen(&tmpfilename, "w")’ leaks here; was opened at [(16)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/15)
# 107| return 255;
# 108| }
# 109|-> grabbag__cuesheet_emit(fout, cuesheet, "\"dummy.wav\" WAVE");
# 110| FLAC__metadata_object_delete(cuesheet);
# 111| fclose(fout);
Error: GCC_ANALYZER_WARNING (CWE-401):
flac-1.5.0/src/test_grabbag/cuesheet/main.c:109:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&tmpfilename, "w")’
flac-1.5.0/src/test_grabbag/cuesheet/main.c:52:11: branch_true: following ‘true’ branch...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:53:20: branch_true: ...to here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:62:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:68:27: branch_false: ...to here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:69:27: branch_true: following ‘true’ branch (when ‘tmpfilenamebase’ is NULL)...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:71:9: branch_true: ...to here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:72:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:77:9: branch_false: ...to here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:84:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:88:29: branch_false: ...to here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:88:11: branch_true: following ‘true’ branch...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:89:20: branch_true: ...to here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:98:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:103:9: branch_false: ...to here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:104:25: acquire_memory: allocated here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:104:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:109:9: branch_false: ...to here
flac-1.5.0/src/test_grabbag/cuesheet/main.c:109:9: throw: if ‘grabbag__cuesheet_emit’ throws an exception...
flac-1.5.0/src/test_grabbag/cuesheet/main.c:109:9: danger: ‘fopen(&tmpfilename, "w")’ leaks here; was allocated at [(16)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/15)
# 107| return 255;
# 108| }
# 109|-> grabbag__cuesheet_emit(fout, cuesheet, "\"dummy.wav\" WAVE");
# 110| FLAC__metadata_object_delete(cuesheet);
# 111| fclose(fout);
Error: COMPILER_WARNING (CWE-457):
flac-1.5.0/src/test_libFLAC/decoders.c:144:30: warning[-Wmaybe-uninitialized]: ‘filesize’ may be used uninitialized
# 144 | flacfilesize_+=filesize;
# | ^
flac-1.5.0/src/test_libFLAC/decoders.c: scope_hint: In function ‘main’
flac-1.5.0/src/test_libFLAC/decoders.c:114:21: note: ‘filesize’ was declared here
# 114 | FLAC__off_t filesize;
# | ^
# 142| if(is_chained_ogg) {
# 143| file_utils__append_file(flacfilename(is_ogg, true), flacfilename(is_ogg, false));
# 144|-> flacfilesize_+=filesize;
# 145| }
# 146|
Error: GCC_ANALYZER_WARNING (CWE-775):
flac-1.5.0/src/test_libFLAC/encoders.c:297:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘file’
flac-1.5.0/src/test_libFLAC/encoders.c:153:19: enter_function: entry to ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:170:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:174:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:178:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:180:17: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:184:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:186:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:189:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:191:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:194:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:196:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:199:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:201:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:204:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:206:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:209:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:211:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:214:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:216:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:219:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:221:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:224:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:226:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:229:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:231:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:234:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:236:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:239:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:241:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:244:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:246:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:249:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:251:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:254:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:256:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:259:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:261:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:264:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:266:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:269:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:271:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:274:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:276:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:279:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:281:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:283:11: branch_true: following ‘true’ branch (when ‘layer <= 2’)...
flac-1.5.0/src/test_libFLAC/encoders.c:284:17: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:285:24: acquire_resource: opened here
flac-1.5.0/src/test_libFLAC/encoders.c:286:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:290:17: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:296:39: branch_true: following ‘true’ branch (when ‘is_ogg != 0’)...
flac-1.5.0/src/test_libFLAC/encoders.c:297:33: branch_true: ...to here
flac-1.5.0/src/test_libFLAC/encoders.c:297:33: throw: if ‘FLAC__stream_encoder_init_ogg_stream’ throws an exception...
flac-1.5.0/src/test_libFLAC/encoders.c:297:33: danger: ‘file’ leaks here; was opened at [(71)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/70)
# 295| printf("testing FLAC__stream_encoder_init_%sstream()... ", is_ogg? "ogg_":"");
# 296| init_status = is_ogg?
# 297|-> FLAC__stream_encoder_init_ogg_stream(encoder, /*read_callback=*/0, stream_encoder_write_callback_, /*seek_callback=*/0, /*tell_callback=*/0, stream_encoder_metadata_callback_, /*client_data=*/file) :
# 298| FLAC__stream_encoder_init_stream(encoder, stream_encoder_write_callback_, /*seek_callback=*/0, /*tell_callback=*/0, stream_encoder_metadata_callback_, /*client_data=*/file);
# 299| break;
Error: GCC_ANALYZER_WARNING (CWE-401):
flac-1.5.0/src/test_libFLAC/encoders.c:297:33: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
flac-1.5.0/src/test_libFLAC/encoders.c:153:19: enter_function: entry to ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:170:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:174:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:178:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:180:17: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:184:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:186:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:189:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:191:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:194:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:196:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:199:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:201:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:204:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:206:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:209:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:211:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:214:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:216:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:219:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:221:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:224:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:226:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:229:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:231:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:234:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:236:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:239:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:241:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:244:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:246:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:249:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:251:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:254:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:256:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:259:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:261:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:264:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:266:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:269:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:271:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:274:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:276:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:279:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:281:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:283:11: branch_true: following ‘true’ branch (when ‘layer <= 2’)...
flac-1.5.0/src/test_libFLAC/encoders.c:284:17: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:285:24: acquire_memory: allocated here
flac-1.5.0/src/test_libFLAC/encoders.c:286:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:290:17: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:296:39: branch_true: following ‘true’ branch (when ‘is_ogg != 0’)...
flac-1.5.0/src/test_libFLAC/encoders.c:297:33: branch_true: ...to here
flac-1.5.0/src/test_libFLAC/encoders.c:297:33: throw: if ‘FLAC__stream_encoder_init_ogg_stream’ throws an exception...
flac-1.5.0/src/test_libFLAC/encoders.c:297:33: danger: ‘file’ leaks here; was allocated at [(71)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/70)
# 295| printf("testing FLAC__stream_encoder_init_%sstream()... ", is_ogg? "ogg_":"");
# 296| init_status = is_ogg?
# 297|-> FLAC__stream_encoder_init_ogg_stream(encoder, /*read_callback=*/0, stream_encoder_write_callback_, /*seek_callback=*/0, /*tell_callback=*/0, stream_encoder_metadata_callback_, /*client_data=*/file) :
# 298| FLAC__stream_encoder_init_stream(encoder, stream_encoder_write_callback_, /*seek_callback=*/0, /*tell_callback=*/0, stream_encoder_metadata_callback_, /*client_data=*/file);
# 299| break;
Error: GCC_ANALYZER_WARNING (CWE-775):
flac-1.5.0/src/test_libFLAC/encoders.c:298:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘file’
flac-1.5.0/src/test_libFLAC/encoders.c:153:19: enter_function: entry to ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:170:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:174:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:184:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:186:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:189:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:191:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:194:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:196:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:199:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:201:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:204:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:206:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:209:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:211:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:214:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:216:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:219:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:221:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:224:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:226:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:229:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:231:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:234:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:236:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:239:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:241:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:244:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:246:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:249:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:251:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:254:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:256:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:259:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:261:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:264:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:266:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:269:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:271:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:274:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:276:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:279:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:281:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:283:11: branch_true: following ‘true’ branch (when ‘layer <= 2’)...
flac-1.5.0/src/test_libFLAC/encoders.c:284:17: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:285:24: acquire_resource: opened here
flac-1.5.0/src/test_libFLAC/encoders.c:286:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:290:17: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:296:39: branch_false: following ‘false’ branch (when ‘is_ogg == 0’)...
flac-1.5.0/src/test_libFLAC/encoders.c:298:33: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/encoders.c:298:33: throw: if ‘FLAC__stream_encoder_init_stream’ throws an exception...
flac-1.5.0/src/test_libFLAC/encoders.c:298:33: danger: ‘file’ leaks here; was opened at [(68)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/67)
# 296| init_status = is_ogg?
# 297| FLAC__stream_encoder_init_ogg_stream(encoder, /*read_callback=*/0, stream_encoder_write_callback_, /*seek_callback=*/0, /*tell_callback=*/0, stream_encoder_metadata_callback_, /*client_data=*/file) :
# 298|-> FLAC__stream_encoder_init_stream(encoder, stream_encoder_write_callback_, /*seek_callback=*/0, /*tell_callback=*/0, stream_encoder_metadata_callback_, /*client_data=*/file);
# 299| break;
# 300| case LAYER_SEEKABLE_STREAM:
Error: GCC_ANALYZER_WARNING (CWE-401):
flac-1.5.0/src/test_libFLAC/encoders.c:298:33: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
flac-1.5.0/src/test_libFLAC/encoders.c:153:19: enter_function: entry to ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:170:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:174:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:184:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:186:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:189:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:191:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:194:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:196:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:199:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:201:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:204:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:206:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:209:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:211:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:214:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:216:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:219:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:221:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:224:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:226:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:229:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:231:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:234:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:236:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:239:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:241:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:244:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:246:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:249:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:251:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:254:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:256:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:259:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:261:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:264:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:266:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:269:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:271:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:274:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:276:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:279:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:281:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:283:11: branch_true: following ‘true’ branch (when ‘layer <= 2’)...
flac-1.5.0/src/test_libFLAC/encoders.c:284:17: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:285:24: acquire_memory: allocated here
flac-1.5.0/src/test_libFLAC/encoders.c:286:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:290:17: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:296:39: branch_false: following ‘false’ branch (when ‘is_ogg == 0’)...
flac-1.5.0/src/test_libFLAC/encoders.c:298:33: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/encoders.c:298:33: throw: if ‘FLAC__stream_encoder_init_stream’ throws an exception...
flac-1.5.0/src/test_libFLAC/encoders.c:298:33: danger: ‘file’ leaks here; was allocated at [(68)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/67)
# 296| init_status = is_ogg?
# 297| FLAC__stream_encoder_init_ogg_stream(encoder, /*read_callback=*/0, stream_encoder_write_callback_, /*seek_callback=*/0, /*tell_callback=*/0, stream_encoder_metadata_callback_, /*client_data=*/file) :
# 298|-> FLAC__stream_encoder_init_stream(encoder, stream_encoder_write_callback_, /*seek_callback=*/0, /*tell_callback=*/0, stream_encoder_metadata_callback_, /*client_data=*/file);
# 299| break;
# 300| case LAYER_SEEKABLE_STREAM:
Error: GCC_ANALYZER_WARNING (CWE-775):
flac-1.5.0/src/test_libFLAC/encoders.c:303:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘file’
flac-1.5.0/src/test_libFLAC/encoders.c:153:19: enter_function: entry to ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:170:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:174:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:178:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:180:17: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:184:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:186:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:189:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:191:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:194:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:196:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:199:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:201:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:204:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:206:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:209:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:211:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:214:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:216:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:219:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:221:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:224:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:226:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:229:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:231:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:234:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:236:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:239:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:241:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:244:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:246:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:249:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:251:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:254:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:256:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:259:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:261:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:264:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:266:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:269:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:271:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:274:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:276:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:279:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:281:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:283:11: branch_true: following ‘true’ branch (when ‘layer <= 2’)...
flac-1.5.0/src/test_libFLAC/encoders.c:284:17: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:285:24: acquire_resource: opened here
flac-1.5.0/src/test_libFLAC/encoders.c:286:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:290:17: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:302:39: branch_true: following ‘true’ branch (when ‘is_ogg != 0’)...
flac-1.5.0/src/test_libFLAC/encoders.c:303:33: branch_true: ...to here
flac-1.5.0/src/test_libFLAC/encoders.c:303:33: throw: if ‘FLAC__stream_encoder_init_ogg_stream’ throws an exception...
flac-1.5.0/src/test_libFLAC/encoders.c:303:33: danger: ‘file’ leaks here; was opened at [(71)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/70)
# 301| printf("testing FLAC__stream_encoder_init_%sstream()... ", is_ogg? "ogg_":"");
# 302| init_status = is_ogg?
# 303|-> FLAC__stream_encoder_init_ogg_stream(encoder, stream_encoder_read_callback_, stream_encoder_write_callback_, stream_encoder_seek_callback_, stream_encoder_tell_callback_, /*metadata_callback=*/0, /*client_data=*/file) :
# 304| FLAC__stream_encoder_init_stream(encoder, stream_encoder_write_callback_, stream_encoder_seek_callback_, stream_encoder_tell_callback_, /*metadata_callback=*/0, /*client_data=*/file);
# 305| break;
Error: GCC_ANALYZER_WARNING (CWE-401):
flac-1.5.0/src/test_libFLAC/encoders.c:303:33: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
flac-1.5.0/src/test_libFLAC/encoders.c:153:19: enter_function: entry to ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:170:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:174:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:178:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:180:17: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:184:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:186:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:189:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:191:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:194:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:196:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:199:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:201:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:204:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:206:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:209:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:211:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:214:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:216:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:219:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:221:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:224:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:226:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:229:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:231:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:234:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:236:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:239:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:241:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:244:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:246:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:249:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:251:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:254:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:256:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:259:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:261:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:264:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:266:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:269:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:271:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:274:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:276:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:279:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:281:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:283:11: branch_true: following ‘true’ branch (when ‘layer <= 2’)...
flac-1.5.0/src/test_libFLAC/encoders.c:284:17: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:285:24: acquire_memory: allocated here
flac-1.5.0/src/test_libFLAC/encoders.c:286:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:290:17: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:302:39: branch_true: following ‘true’ branch (when ‘is_ogg != 0’)...
flac-1.5.0/src/test_libFLAC/encoders.c:303:33: branch_true: ...to here
flac-1.5.0/src/test_libFLAC/encoders.c:303:33: throw: if ‘FLAC__stream_encoder_init_ogg_stream’ throws an exception...
flac-1.5.0/src/test_libFLAC/encoders.c:303:33: danger: ‘file’ leaks here; was allocated at [(71)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/70)
# 301| printf("testing FLAC__stream_encoder_init_%sstream()... ", is_ogg? "ogg_":"");
# 302| init_status = is_ogg?
# 303|-> FLAC__stream_encoder_init_ogg_stream(encoder, stream_encoder_read_callback_, stream_encoder_write_callback_, stream_encoder_seek_callback_, stream_encoder_tell_callback_, /*metadata_callback=*/0, /*client_data=*/file) :
# 304| FLAC__stream_encoder_init_stream(encoder, stream_encoder_write_callback_, stream_encoder_seek_callback_, stream_encoder_tell_callback_, /*metadata_callback=*/0, /*client_data=*/file);
# 305| break;
Error: GCC_ANALYZER_WARNING (CWE-775):
flac-1.5.0/src/test_libFLAC/encoders.c:304:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘file’
flac-1.5.0/src/test_libFLAC/encoders.c:153:19: enter_function: entry to ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:170:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:174:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:184:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:186:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:189:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:191:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:194:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:196:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:199:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:201:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:204:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:206:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:209:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:211:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:214:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:216:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:219:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:221:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:224:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:226:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:229:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:231:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:234:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:236:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:239:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:241:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:244:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:246:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:249:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:251:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:254:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:256:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:259:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:261:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:264:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:266:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:269:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:271:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:274:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:276:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:279:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:281:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:283:11: branch_true: following ‘true’ branch (when ‘layer <= 2’)...
flac-1.5.0/src/test_libFLAC/encoders.c:284:17: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:285:24: acquire_resource: opened here
flac-1.5.0/src/test_libFLAC/encoders.c:286:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:290:17: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:302:39: branch_false: following ‘false’ branch (when ‘is_ogg == 0’)...
flac-1.5.0/src/test_libFLAC/encoders.c:304:33: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/encoders.c:304:33: throw: if ‘FLAC__stream_encoder_init_stream’ throws an exception...
flac-1.5.0/src/test_libFLAC/encoders.c:304:33: danger: ‘file’ leaks here; was opened at [(68)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/67)
# 302| init_status = is_ogg?
# 303| FLAC__stream_encoder_init_ogg_stream(encoder, stream_encoder_read_callback_, stream_encoder_write_callback_, stream_encoder_seek_callback_, stream_encoder_tell_callback_, /*metadata_callback=*/0, /*client_data=*/file) :
# 304|-> FLAC__stream_encoder_init_stream(encoder, stream_encoder_write_callback_, stream_encoder_seek_callback_, stream_encoder_tell_callback_, /*metadata_callback=*/0, /*client_data=*/file);
# 305| break;
# 306| case LAYER_FILE:
Error: GCC_ANALYZER_WARNING (CWE-401):
flac-1.5.0/src/test_libFLAC/encoders.c:304:33: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
flac-1.5.0/src/test_libFLAC/encoders.c:153:19: enter_function: entry to ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:170:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:174:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:184:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:186:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:189:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:191:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:194:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:196:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:199:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:201:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:204:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:206:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:209:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:211:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:214:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:216:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:219:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:221:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:224:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:226:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:229:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:231:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:234:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:236:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:239:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:241:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:244:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:246:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:249:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:251:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:254:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:256:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:259:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:261:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:264:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:266:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:269:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:271:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:274:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:276:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:279:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:281:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:283:11: branch_true: following ‘true’ branch (when ‘layer <= 2’)...
flac-1.5.0/src/test_libFLAC/encoders.c:284:17: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:285:24: acquire_memory: allocated here
flac-1.5.0/src/test_libFLAC/encoders.c:286:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:290:17: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:302:39: branch_false: following ‘false’ branch (when ‘is_ogg == 0’)...
flac-1.5.0/src/test_libFLAC/encoders.c:304:33: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/encoders.c:304:33: throw: if ‘FLAC__stream_encoder_init_stream’ throws an exception...
flac-1.5.0/src/test_libFLAC/encoders.c:304:33: danger: ‘file’ leaks here; was allocated at [(68)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/67)
# 302| init_status = is_ogg?
# 303| FLAC__stream_encoder_init_ogg_stream(encoder, stream_encoder_read_callback_, stream_encoder_write_callback_, stream_encoder_seek_callback_, stream_encoder_tell_callback_, /*metadata_callback=*/0, /*client_data=*/file) :
# 304|-> FLAC__stream_encoder_init_stream(encoder, stream_encoder_write_callback_, stream_encoder_seek_callback_, stream_encoder_tell_callback_, /*metadata_callback=*/0, /*client_data=*/file);
# 305| break;
# 306| case LAYER_FILE:
Error: GCC_ANALYZER_WARNING (CWE-775):
flac-1.5.0/src/test_libFLAC/encoders.c:309:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘file’
flac-1.5.0/src/test_libFLAC/encoders.c:153:19: enter_function: entry to ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:170:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:174:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:178:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:180:17: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:184:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:186:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:189:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:191:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:194:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:196:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:199:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:201:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:204:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:206:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:209:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:211:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:214:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:216:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:219:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:221:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:224:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:226:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:229:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:231:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:234:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:236:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:239:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:241:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:244:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:246:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:249:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:251:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:254:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:256:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:259:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:261:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:264:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:266:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:269:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:271:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:274:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:276:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:279:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:281:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:283:11: branch_true: following ‘true’ branch (when ‘layer <= 2’)...
flac-1.5.0/src/test_libFLAC/encoders.c:284:17: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:285:24: acquire_resource: opened here
flac-1.5.0/src/test_libFLAC/encoders.c:286:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:290:17: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:308:39: branch_true: following ‘true’ branch (when ‘is_ogg != 0’)...
flac-1.5.0/src/test_libFLAC/encoders.c:309:33: branch_true: ...to here
flac-1.5.0/src/test_libFLAC/encoders.c:309:33: throw: if ‘FLAC__stream_encoder_init_ogg_FILE’ throws an exception...
flac-1.5.0/src/test_libFLAC/encoders.c:309:33: danger: ‘file’ leaks here; was opened at [(71)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/70)
# 307| printf("testing FLAC__stream_encoder_init_%sFILE()... ", is_ogg? "ogg_":"");
# 308| init_status = is_ogg?
# 309|-> FLAC__stream_encoder_init_ogg_FILE(encoder, file, stream_encoder_progress_callback_, /*client_data=*/0) :
# 310| FLAC__stream_encoder_init_FILE(encoder, file, stream_encoder_progress_callback_, /*client_data=*/0);
# 311| break;
Error: GCC_ANALYZER_WARNING (CWE-401):
flac-1.5.0/src/test_libFLAC/encoders.c:309:33: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
flac-1.5.0/src/test_libFLAC/encoders.c:153:19: enter_function: entry to ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:170:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:174:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:178:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:180:17: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:184:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:186:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:189:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:191:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:194:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:196:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:199:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:201:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:204:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:206:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:209:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:211:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:214:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:216:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:219:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:221:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:224:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:226:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:229:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:231:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:234:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:236:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:239:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:241:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:244:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:246:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:249:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:251:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:254:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:256:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:259:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:261:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:264:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:266:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:269:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:271:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:274:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:276:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:279:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:281:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:283:11: branch_true: following ‘true’ branch (when ‘layer <= 2’)...
flac-1.5.0/src/test_libFLAC/encoders.c:284:17: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:285:24: acquire_memory: allocated here
flac-1.5.0/src/test_libFLAC/encoders.c:286:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:290:17: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:308:39: branch_true: following ‘true’ branch (when ‘is_ogg != 0’)...
flac-1.5.0/src/test_libFLAC/encoders.c:309:33: branch_true: ...to here
flac-1.5.0/src/test_libFLAC/encoders.c:309:33: throw: if ‘FLAC__stream_encoder_init_ogg_FILE’ throws an exception...
flac-1.5.0/src/test_libFLAC/encoders.c:309:33: danger: ‘file’ leaks here; was allocated at [(71)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/70)
# 307| printf("testing FLAC__stream_encoder_init_%sFILE()... ", is_ogg? "ogg_":"");
# 308| init_status = is_ogg?
# 309|-> FLAC__stream_encoder_init_ogg_FILE(encoder, file, stream_encoder_progress_callback_, /*client_data=*/0) :
# 310| FLAC__stream_encoder_init_FILE(encoder, file, stream_encoder_progress_callback_, /*client_data=*/0);
# 311| break;
Error: GCC_ANALYZER_WARNING (CWE-775):
flac-1.5.0/src/test_libFLAC/encoders.c:310:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘file’
flac-1.5.0/src/test_libFLAC/encoders.c:153:19: enter_function: entry to ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:170:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:174:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:184:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:186:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:189:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:191:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:194:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:196:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:199:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:201:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:204:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:206:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:209:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:211:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:214:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:216:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:219:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:221:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:224:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:226:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:229:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:231:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:234:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:236:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:239:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:241:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:244:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:246:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:249:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:251:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:254:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:256:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:259:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:261:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:264:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:266:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:269:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:271:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:274:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:276:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:279:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:281:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:283:11: branch_true: following ‘true’ branch (when ‘layer <= 2’)...
flac-1.5.0/src/test_libFLAC/encoders.c:284:17: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:285:24: acquire_resource: opened here
flac-1.5.0/src/test_libFLAC/encoders.c:286:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:290:17: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:308:39: branch_false: following ‘false’ branch (when ‘is_ogg == 0’)...
flac-1.5.0/src/test_libFLAC/encoders.c:310:33: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/encoders.c:310:33: throw: if ‘FLAC__stream_encoder_init_FILE’ throws an exception...
flac-1.5.0/src/test_libFLAC/encoders.c:310:33: danger: ‘file’ leaks here; was opened at [(68)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/67)
# 308| init_status = is_ogg?
# 309| FLAC__stream_encoder_init_ogg_FILE(encoder, file, stream_encoder_progress_callback_, /*client_data=*/0) :
# 310|-> FLAC__stream_encoder_init_FILE(encoder, file, stream_encoder_progress_callback_, /*client_data=*/0);
# 311| break;
# 312| case LAYER_FILENAME:
Error: GCC_ANALYZER_WARNING (CWE-401):
flac-1.5.0/src/test_libFLAC/encoders.c:310:33: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
flac-1.5.0/src/test_libFLAC/encoders.c:153:19: enter_function: entry to ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:170:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:174:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:184:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:186:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:189:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:191:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:194:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:196:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:199:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:201:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:204:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:206:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:209:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:211:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:214:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:216:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:219:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:221:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:224:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:226:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:229:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:231:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:234:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:236:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:239:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:241:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:244:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:246:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:249:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:251:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:254:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:256:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:259:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:261:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:264:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:266:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:269:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:271:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:274:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:276:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:279:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:281:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:283:11: branch_true: following ‘true’ branch (when ‘layer <= 2’)...
flac-1.5.0/src/test_libFLAC/encoders.c:284:17: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:285:24: acquire_memory: allocated here
flac-1.5.0/src/test_libFLAC/encoders.c:286:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:290:17: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:308:39: branch_false: following ‘false’ branch (when ‘is_ogg == 0’)...
flac-1.5.0/src/test_libFLAC/encoders.c:310:33: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/encoders.c:310:33: throw: if ‘FLAC__stream_encoder_init_FILE’ throws an exception...
flac-1.5.0/src/test_libFLAC/encoders.c:310:33: danger: ‘file’ leaks here; was allocated at [(68)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/67)
# 308| init_status = is_ogg?
# 309| FLAC__stream_encoder_init_ogg_FILE(encoder, file, stream_encoder_progress_callback_, /*client_data=*/0) :
# 310|-> FLAC__stream_encoder_init_FILE(encoder, file, stream_encoder_progress_callback_, /*client_data=*/0);
# 311| break;
# 312| case LAYER_FILENAME:
Error: GCC_ANALYZER_WARNING (CWE-775):
flac-1.5.0/src/test_libFLAC/encoders.c:499:1: warning[-Wanalyzer-file-leak]: leak of FILE ‘file’
flac-1.5.0/src/test_libFLAC/encoders.c:153:19: enter_function: entry to ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:170:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:174:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:184:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:186:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:189:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:191:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:194:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:196:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:199:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:201:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:204:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:206:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:209:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:211:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:214:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:216:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:219:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:221:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:224:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:226:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:229:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:231:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:234:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:236:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:239:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:241:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:244:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:246:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:249:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:251:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:254:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:256:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:259:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:261:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:264:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:266:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:269:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:271:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:274:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:276:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:279:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:281:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:283:11: branch_true: following ‘true’ branch (when ‘layer <= 2’)...
flac-1.5.0/src/test_libFLAC/encoders.c:284:17: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:285:24: acquire_resource: opened here
flac-1.5.0/src/test_libFLAC/encoders.c:286:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:290:17: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:319:25: call_function: inlined call to ‘die_’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:499:1: danger: ‘file’ leaks here; was opened at [(68)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/67)
# 497|
# 498| return true;
# 499|-> }
# 500|
# 501| FLAC__bool test_encoders(void)
Error: GCC_ANALYZER_WARNING (CWE-401):
flac-1.5.0/src/test_libFLAC/encoders.c:499:1: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
flac-1.5.0/src/test_libFLAC/encoders.c:153:19: enter_function: entry to ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:170:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:174:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:184:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:186:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:189:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:191:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:194:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:196:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:199:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:201:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:204:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:206:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:209:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:211:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:214:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:216:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:219:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:221:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:224:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:226:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:229:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:231:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:234:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:236:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:239:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:241:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:244:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:246:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:249:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:251:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:254:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:256:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:259:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:261:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:264:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:266:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:269:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:271:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:274:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:276:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:279:11: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:281:9: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:283:11: branch_true: following ‘true’ branch (when ‘layer <= 2’)...
flac-1.5.0/src/test_libFLAC/encoders.c:284:17: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:285:24: acquire_memory: allocated here
flac-1.5.0/src/test_libFLAC/encoders.c:286:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/encoders.c:290:17: call_function: inlined call to ‘printf’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:319:25: call_function: inlined call to ‘die_’ from ‘test_stream_encoder’
flac-1.5.0/src/test_libFLAC/encoders.c:499:1: danger: ‘file’ leaks here; was allocated at [(68)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/67)
# 497|
# 498| return true;
# 499|-> }
# 500|
# 501| FLAC__bool test_encoders(void)
Error: GCC_ANALYZER_WARNING (CWE-401):
flac-1.5.0/src/test_libFLAC/metadata_manip.c:148:32: warning[-Wanalyzer-malloc-leak]: leak of ‘picture.data.picture.data’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:537:19: enter_function: entry to ‘generate_file_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:567:73: call_function: calling ‘malloc_or_die_’ from ‘generate_file_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:567:73: return_function: returning to ‘generate_file_’ from ‘malloc_or_die_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:574:20: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:576:17: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:580:20: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:582:17: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:583:20: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:588:17: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:603:50: call_function: calling ‘strdup_or_die_’ from ‘generate_file_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:603:50: return_function: returning to ‘generate_file_’ from ‘strdup_or_die_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:605:65: call_function: calling ‘strdup_or_die_’ from ‘generate_file_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:605:65: return_function: returning to ‘generate_file_’ from ‘strdup_or_die_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:611:58: call_function: calling ‘strdup_or_die_’ from ‘generate_file_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:611:58: return_function: returning to ‘generate_file_’ from ‘strdup_or_die_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:628:18: call_function: calling ‘insert_to_our_metadata_’ from ‘generate_file_’
# 146| FLAC__StreamMetadata *obj = block;
# 147| if(copy) {
# 148|-> if(0 == (obj = FLAC__metadata_object_clone(block)))
# 149| return die_("during FLAC__metadata_object_clone()");
# 150| }
Error: GCC_ANALYZER_WARNING (CWE-401):
flac-1.5.0/src/test_libFLAC/metadata_manip.c:148:32: warning[-Wanalyzer-malloc-leak]: leak of ‘picture.data.picture.description’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:537:19: enter_function: entry to ‘generate_file_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:567:73: call_function: calling ‘malloc_or_die_’ from ‘generate_file_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:567:73: return_function: returning to ‘generate_file_’ from ‘malloc_or_die_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:574:20: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:576:17: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:580:20: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:582:17: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:583:20: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:588:17: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:603:50: call_function: calling ‘strdup_or_die_’ from ‘generate_file_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:603:50: return_function: returning to ‘generate_file_’ from ‘strdup_or_die_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:605:65: call_function: calling ‘strdup_or_die_’ from ‘generate_file_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:605:65: return_function: returning to ‘generate_file_’ from ‘strdup_or_die_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:611:58: call_function: calling ‘strdup_or_die_’ from ‘generate_file_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:611:58: return_function: returning to ‘generate_file_’ from ‘strdup_or_die_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:628:18: call_function: calling ‘insert_to_our_metadata_’ from ‘generate_file_’
# 146| FLAC__StreamMetadata *obj = block;
# 147| if(copy) {
# 148|-> if(0 == (obj = FLAC__metadata_object_clone(block)))
# 149| return die_("during FLAC__metadata_object_clone()");
# 150| }
Error: GCC_ANALYZER_WARNING (CWE-401):
flac-1.5.0/src/test_libFLAC/metadata_manip.c:148:32: warning[-Wanalyzer-malloc-leak]: leak of ‘picture.data.picture.mime_type’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:537:19: enter_function: entry to ‘generate_file_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:567:73: call_function: calling ‘malloc_or_die_’ from ‘generate_file_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:567:73: return_function: returning to ‘generate_file_’ from ‘malloc_or_die_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:574:20: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:576:17: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:580:20: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:582:17: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:583:20: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:588:17: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:603:50: call_function: calling ‘strdup_or_die_’ from ‘generate_file_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:603:50: return_function: returning to ‘generate_file_’ from ‘strdup_or_die_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:605:65: call_function: calling ‘strdup_or_die_’ from ‘generate_file_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:605:65: return_function: returning to ‘generate_file_’ from ‘strdup_or_die_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:611:58: call_function: calling ‘strdup_or_die_’ from ‘generate_file_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:611:58: return_function: returning to ‘generate_file_’ from ‘strdup_or_die_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:628:18: call_function: calling ‘insert_to_our_metadata_’ from ‘generate_file_’
# 146| FLAC__StreamMetadata *obj = block;
# 147| if(copy) {
# 148|-> if(0 == (obj = FLAC__metadata_object_clone(block)))
# 149| return die_("during FLAC__metadata_object_clone()");
# 150| }
Error: GCC_ANALYZER_WARNING (CWE-775):
flac-1.5.0/src/test_libFLAC/metadata_manip.c:193:46: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "rb")’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:309:19: enter_function: entry to ‘write_chain_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:329:20: branch_true: following ‘true’ branch...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:331:38: branch_true: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:337:41: acquire_resource: opened here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:337:27: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:339:27: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:339:27: branch_true: following ‘true’ branch (when ‘to_different_file == 0’)...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:340:37: branch_true: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:340:37: call_function: calling ‘open_tempfile_’ from ‘write_chain_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:340:37: return_function: returning to ‘write_chain_’ from ‘open_tempfile_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:340:35: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:352:29: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:352:29: throw: if ‘FLAC__metadata_chain_write_with_callbacks_and_tempfile’ throws an exception...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:193:46: danger: ‘fopen(filename, "rb")’ leaks here; was opened at [(4)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/3)
# 191| {
# 192| static const char *tempfile_suffix = ".metadata_edit";
# 193|-> size_t dest_len = strlen(filename) + strlen(tempfile_suffix) + 1;
# 194|
# 195| *tempfilename = malloc(dest_len);
Error: GCC_ANALYZER_WARNING (CWE-401):
flac-1.5.0/src/test_libFLAC/metadata_manip.c:193:46: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "rb")’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:309:19: enter_function: entry to ‘write_chain_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:329:20: branch_true: following ‘true’ branch...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:331:38: branch_true: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:337:41: acquire_memory: allocated here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:337:27: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:339:27: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:339:27: branch_true: following ‘true’ branch (when ‘to_different_file == 0’)...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:340:37: branch_true: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:340:37: call_function: calling ‘open_tempfile_’ from ‘write_chain_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:340:37: return_function: returning to ‘write_chain_’ from ‘open_tempfile_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:340:35: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:352:29: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:352:29: throw: if ‘FLAC__metadata_chain_write_with_callbacks_and_tempfile’ throws an exception...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:193:46: danger: ‘fopen(filename, "rb")’ leaks here; was allocated at [(4)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/3)
# 191| {
# 192| static const char *tempfile_suffix = ".metadata_edit";
# 193|-> size_t dest_len = strlen(filename) + strlen(tempfile_suffix) + 1;
# 194|
# 195| *tempfilename = malloc(dest_len);
Error: GCC_ANALYZER_WARNING (CWE-775):
flac-1.5.0/src/test_libFLAC/metadata_manip.c:352:29: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "rb")’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:337:41: acquire_resource: opened here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:337:27: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:339:27: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:339:27: branch_false: following ‘false’ branch (when ‘to_different_file != 0’)...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:347:53: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:347:35: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:352:29: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:352:29: throw: if ‘FLAC__metadata_chain_write_with_callbacks_and_tempfile’ throws an exception...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:352:29: danger: ‘fopen(filename, "rb")’ leaks here; was opened at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
# 350| }
# 351| }
# 352|-> if(!FLAC__metadata_chain_write_with_callbacks_and_tempfile(chain, use_padding, (FLAC__IOHandle)file, callbacks, (FLAC__IOHandle)tempfile, callbacks)) {
# 353| fclose(file);
# 354| fclose(tempfile);
Error: GCC_ANALYZER_WARNING (CWE-775):
flac-1.5.0/src/test_libFLAC/metadata_manip.c:352:29: warning[-Wanalyzer-file-leak]: leak of FILE ‘tempfile’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:337:27: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:339:27: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:339:27: branch_false: following ‘false’ branch (when ‘to_different_file != 0’)...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:347:53: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:347:53: acquire_resource: opened here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:347:35: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:352:29: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:352:29: throw: if ‘FLAC__metadata_chain_write_with_callbacks_and_tempfile’ throws an exception...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:352:29: danger: ‘tempfile’ leaks here; was opened at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
# 350| }
# 351| }
# 352|-> if(!FLAC__metadata_chain_write_with_callbacks_and_tempfile(chain, use_padding, (FLAC__IOHandle)file, callbacks, (FLAC__IOHandle)tempfile, callbacks)) {
# 353| fclose(file);
# 354| fclose(tempfile);
Error: GCC_ANALYZER_WARNING (CWE-401):
flac-1.5.0/src/test_libFLAC/metadata_manip.c:352:29: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "rb")’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:337:41: acquire_memory: allocated here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:337:27: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:339:27: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:339:27: branch_false: following ‘false’ branch (when ‘to_different_file != 0’)...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:347:53: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:347:35: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:352:29: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:352:29: throw: if ‘FLAC__metadata_chain_write_with_callbacks_and_tempfile’ throws an exception...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:352:29: danger: ‘fopen(filename, "rb")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
# 350| }
# 351| }
# 352|-> if(!FLAC__metadata_chain_write_with_callbacks_and_tempfile(chain, use_padding, (FLAC__IOHandle)file, callbacks, (FLAC__IOHandle)tempfile, callbacks)) {
# 353| fclose(file);
# 354| fclose(tempfile);
Error: GCC_ANALYZER_WARNING (CWE-401):
flac-1.5.0/src/test_libFLAC/metadata_manip.c:352:29: warning[-Wanalyzer-malloc-leak]: leak of ‘tempfile’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:337:27: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:339:27: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:339:27: branch_false: following ‘false’ branch (when ‘to_different_file != 0’)...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:347:53: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:347:53: acquire_memory: allocated here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:347:35: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:352:29: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:352:29: throw: if ‘FLAC__metadata_chain_write_with_callbacks_and_tempfile’ throws an exception...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:352:29: danger: ‘tempfile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
# 350| }
# 351| }
# 352|-> if(!FLAC__metadata_chain_write_with_callbacks_and_tempfile(chain, use_padding, (FLAC__IOHandle)file, callbacks, (FLAC__IOHandle)tempfile, callbacks)) {
# 353| fclose(file);
# 354| fclose(tempfile);
Error: GCC_ANALYZER_WARNING (CWE-775):
flac-1.5.0/src/test_libFLAC/metadata_manip.c:375:29: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "r+b")’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:329:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:372:38: acquire_resource: opened here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:373:27: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:375:29: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:375:29: throw: if ‘FLAC__metadata_chain_write_with_callbacks’ throws an exception...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:375:29: danger: ‘fopen(filename, "r+b")’ leaks here; was opened at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
# 373| if(0 == file)
# 374| return false; /*@@@@ chain status still says OK though */
# 375|-> if(!FLAC__metadata_chain_write_with_callbacks(chain, use_padding, (FLAC__IOHandle)file, callbacks))
# 376| return false;
# 377| fclose(file);
Error: GCC_ANALYZER_WARNING (CWE-401):
flac-1.5.0/src/test_libFLAC/metadata_manip.c:375:29: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "r+b")’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:329:19: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:372:38: acquire_memory: allocated here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:373:27: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:375:29: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:375:29: throw: if ‘FLAC__metadata_chain_write_with_callbacks’ throws an exception...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:375:29: danger: ‘fopen(filename, "r+b")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
# 373| if(0 == file)
# 374| return false; /*@@@@ chain status still says OK though */
# 375|-> if(!FLAC__metadata_chain_write_with_callbacks(chain, use_padding, (FLAC__IOHandle)file, callbacks))
# 376| return false;
# 377| fclose(file);
Error: GCC_ANALYZER_WARNING (CWE-775):
flac-1.5.0/src/test_libFLAC/metadata_manip.c:405:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "rb")’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:384:19: enter_function: entry to ‘read_chain_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:386:11: branch_false: following ‘false’ branch (when ‘filename_based == 0’)...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:394:17: call_function: inlined call to ‘memset’ from ‘read_chain_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:401:38: acquire_resource: opened here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:402:27: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:404:31: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:404:31: branch_true: following ‘true’ branch (when ‘is_ogg != 0’)...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:405:33: branch_true: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:405:33: throw: if ‘FLAC__metadata_chain_read_ogg_with_callbacks’ throws an exception...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:405:33: danger: ‘fopen(filename, "rb")’ leaks here; was opened at [(5)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/4)
# 403| return false; /*@@@@ chain status still says OK though */
# 404| ret = is_ogg?
# 405|-> FLAC__metadata_chain_read_ogg_with_callbacks(chain, (FLAC__IOHandle)file, callbacks) :
# 406| FLAC__metadata_chain_read_with_callbacks(chain, (FLAC__IOHandle)file, callbacks)
# 407| ;
Error: GCC_ANALYZER_WARNING (CWE-401):
flac-1.5.0/src/test_libFLAC/metadata_manip.c:405:33: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "rb")’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:384:19: enter_function: entry to ‘read_chain_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:386:11: branch_false: following ‘false’ branch (when ‘filename_based == 0’)...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:394:17: call_function: inlined call to ‘memset’ from ‘read_chain_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:401:38: acquire_memory: allocated here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:402:27: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:404:31: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:404:31: branch_true: following ‘true’ branch (when ‘is_ogg != 0’)...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:405:33: branch_true: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:405:33: throw: if ‘FLAC__metadata_chain_read_ogg_with_callbacks’ throws an exception...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:405:33: danger: ‘fopen(filename, "rb")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/4)
# 403| return false; /*@@@@ chain status still says OK though */
# 404| ret = is_ogg?
# 405|-> FLAC__metadata_chain_read_ogg_with_callbacks(chain, (FLAC__IOHandle)file, callbacks) :
# 406| FLAC__metadata_chain_read_with_callbacks(chain, (FLAC__IOHandle)file, callbacks)
# 407| ;
Error: GCC_ANALYZER_WARNING (CWE-775):
flac-1.5.0/src/test_libFLAC/metadata_manip.c:406:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "rb")’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:384:19: enter_function: entry to ‘read_chain_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:386:11: branch_false: following ‘false’ branch (when ‘filename_based == 0’)...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:394:17: call_function: inlined call to ‘memset’ from ‘read_chain_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:401:38: acquire_resource: opened here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:402:27: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:404:31: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:404:31: branch_false: following ‘false’ branch (when ‘is_ogg == 0’)...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:406:33: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:406:33: throw: if ‘FLAC__metadata_chain_read_with_callbacks’ throws an exception...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:406:33: danger: ‘fopen(filename, "rb")’ leaks here; was opened at [(5)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/4)
# 404| ret = is_ogg?
# 405| FLAC__metadata_chain_read_ogg_with_callbacks(chain, (FLAC__IOHandle)file, callbacks) :
# 406|-> FLAC__metadata_chain_read_with_callbacks(chain, (FLAC__IOHandle)file, callbacks)
# 407| ;
# 408| fclose(file);
Error: GCC_ANALYZER_WARNING (CWE-401):
flac-1.5.0/src/test_libFLAC/metadata_manip.c:406:33: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "rb")’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:384:19: enter_function: entry to ‘read_chain_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:386:11: branch_false: following ‘false’ branch (when ‘filename_based == 0’)...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:394:17: call_function: inlined call to ‘memset’ from ‘read_chain_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:401:38: acquire_memory: allocated here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:402:27: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:404:31: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:404:31: branch_false: following ‘false’ branch (when ‘is_ogg == 0’)...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:406:33: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:406:33: throw: if ‘FLAC__metadata_chain_read_with_callbacks’ throws an exception...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:406:33: danger: ‘fopen(filename, "rb")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/4)
# 404| ret = is_ogg?
# 405| FLAC__metadata_chain_read_ogg_with_callbacks(chain, (FLAC__IOHandle)file, callbacks) :
# 406|-> FLAC__metadata_chain_read_with_callbacks(chain, (FLAC__IOHandle)file, callbacks)
# 407| ;
# 408| fclose(file);
Error: GCC_ANALYZER_WARNING (CWE-401):
flac-1.5.0/src/test_libFLAC/metadata_manip.c:575:32: warning[-Wanalyzer-malloc-leak]: leak of ‘picture.data.picture.data’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:537:19: enter_function: entry to ‘generate_file_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:567:73: call_function: calling ‘malloc_or_die_’ from ‘generate_file_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:567:73: return_function: returning to ‘generate_file_’ from ‘malloc_or_die_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:574:20: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:576:17: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:580:20: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:582:17: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:583:20: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:588:17: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:603:50: call_function: calling ‘strdup_or_die_’ from ‘generate_file_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:603:50: return_function: returning to ‘generate_file_’ from ‘strdup_or_die_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:605:65: call_function: calling ‘strdup_or_die_’ from ‘generate_file_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:605:65: return_function: returning to ‘generate_file_’ from ‘strdup_or_die_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:611:58: call_function: calling ‘strdup_or_die_’ from ‘generate_file_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:611:58: return_function: returning to ‘generate_file_’ from ‘strdup_or_die_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:628:18: call_function: calling ‘insert_to_our_metadata_’ from ‘generate_file_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:628:18: return_function: returning to ‘generate_file_’ from ‘insert_to_our_metadata_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:627:11: branch_true: following ‘true’ branch...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:634:24: call_function: inlined call to ‘die_’ from ‘generate_file_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:575:32: danger: ‘picture.data.picture.data’ leaks here; was allocated at [(25)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/24)
# 573| {
# 574| if (0 == (cuesheet = FLAC__metadata_object_new(FLAC__METADATA_TYPE_CUESHEET)))
# 575|-> return die_("priming our metadata");
# 576| cuesheet->is_last = false;
# 577| safe_strncpy(cuesheet->data.cue_sheet.media_catalog_number, "bogo-MCN", sizeof(cuesheet->data.cue_sheet.media_catalog_number));
Error: GCC_ANALYZER_WARNING (CWE-401):
flac-1.5.0/src/test_libFLAC/metadata_manip.c:575:32: warning[-Wanalyzer-malloc-leak]: leak of ‘picture.data.picture.description’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:537:19: enter_function: entry to ‘generate_file_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:567:73: call_function: calling ‘malloc_or_die_’ from ‘generate_file_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:567:73: return_function: returning to ‘generate_file_’ from ‘malloc_or_die_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:574:20: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:576:17: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:580:20: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:582:17: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:583:20: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:588:17: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:603:50: call_function: calling ‘strdup_or_die_’ from ‘generate_file_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:603:50: return_function: returning to ‘generate_file_’ from ‘strdup_or_die_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:605:65: call_function: calling ‘strdup_or_die_’ from ‘generate_file_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:605:65: return_function: returning to ‘generate_file_’ from ‘strdup_or_die_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:611:58: call_function: calling ‘strdup_or_die_’ from ‘generate_file_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:611:58: return_function: returning to ‘generate_file_’ from ‘strdup_or_die_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:628:18: call_function: calling ‘insert_to_our_metadata_’ from ‘generate_file_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:628:18: return_function: returning to ‘generate_file_’ from ‘insert_to_our_metadata_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:627:11: branch_true: following ‘true’ branch...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:634:24: call_function: inlined call to ‘die_’ from ‘generate_file_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:575:32: danger: ‘picture.data.picture.description’ leaks here; was allocated at [(20)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/19)
# 573| {
# 574| if (0 == (cuesheet = FLAC__metadata_object_new(FLAC__METADATA_TYPE_CUESHEET)))
# 575|-> return die_("priming our metadata");
# 576| cuesheet->is_last = false;
# 577| safe_strncpy(cuesheet->data.cue_sheet.media_catalog_number, "bogo-MCN", sizeof(cuesheet->data.cue_sheet.media_catalog_number));
Error: GCC_ANALYZER_WARNING (CWE-401):
flac-1.5.0/src/test_libFLAC/metadata_manip.c:575:32: warning[-Wanalyzer-malloc-leak]: leak of ‘picture.data.picture.mime_type’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:537:19: enter_function: entry to ‘generate_file_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:567:73: call_function: calling ‘malloc_or_die_’ from ‘generate_file_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:567:73: return_function: returning to ‘generate_file_’ from ‘malloc_or_die_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:574:20: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:576:17: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:580:20: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:582:17: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:583:20: branch_false: following ‘false’ branch...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:588:17: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/metadata_manip.c:603:50: call_function: calling ‘strdup_or_die_’ from ‘generate_file_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:603:50: return_function: returning to ‘generate_file_’ from ‘strdup_or_die_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:605:65: call_function: calling ‘strdup_or_die_’ from ‘generate_file_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:605:65: return_function: returning to ‘generate_file_’ from ‘strdup_or_die_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:611:58: call_function: calling ‘strdup_or_die_’ from ‘generate_file_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:611:58: return_function: returning to ‘generate_file_’ from ‘strdup_or_die_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:628:18: call_function: calling ‘insert_to_our_metadata_’ from ‘generate_file_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:628:18: return_function: returning to ‘generate_file_’ from ‘insert_to_our_metadata_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:627:11: branch_true: following ‘true’ branch...
flac-1.5.0/src/test_libFLAC/metadata_manip.c:634:24: call_function: inlined call to ‘die_’ from ‘generate_file_’
flac-1.5.0/src/test_libFLAC/metadata_manip.c:575:32: danger: ‘picture.data.picture.mime_type’ leaks here; was allocated at [(15)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/14)
# 573| {
# 574| if (0 == (cuesheet = FLAC__metadata_object_new(FLAC__METADATA_TYPE_CUESHEET)))
# 575|-> return die_("priming our metadata");
# 576| cuesheet->is_last = false;
# 577| safe_strncpy(cuesheet->data.cue_sheet.media_catalog_number, "bogo-MCN", sizeof(cuesheet->data.cue_sheet.media_catalog_number));
Error: CPPCHECK_WARNING (CWE-476):
flac-1.5.0/src/test_libFLAC/metadata_object.c:162: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: x
# 160| FLAC__byte *x = malloc(entry->length+1);
# 161| FLAC__ASSERT(0 != x);
# 162|-> memcpy(x, entry->entry, entry->length);
# 163| x[entry->length] = '\0';
# 164| entry->entry = x;
Error: CPPCHECK_WARNING (CWE-476):
flac-1.5.0/src/test_libFLAC/metadata_object.c:163: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: x
# 161| FLAC__ASSERT(0 != x);
# 162| memcpy(x, entry->entry, entry->length);
# 163|-> x[entry->length] = '\0';
# 164| entry->entry = x;
# 165| }
Error: GCC_ANALYZER_WARNING (CWE-476):
flac-1.5.0/src/test_libFLAC/metadata_object.c:208:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(1)’
flac-1.5.0/src/test_libFLAC/metadata_object.c:195:11: branch_false: following ‘false’ branch (when ‘num != 0’)...
flac-1.5.0/src/test_libFLAC/metadata_object.c:203:32: branch_false: ...to here
flac-1.5.0/src/test_libFLAC/metadata_object.c:205:43: branch_true: following ‘true’ branch (when ‘i < num’)...
flac-1.5.0/src/test_libFLAC/metadata_object.c:206:25: branch_true: ...to here
flac-1.5.0/src/test_libFLAC/metadata_object.c:207:49: acquire_memory: this call could return NULL
flac-1.5.0/src/test_libFLAC/metadata_object.c:208:25: danger: ‘malloc(1)’ could be NULL: unchecked value from [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
# 206| vc->comments[i].length = 0;
# 207| vc->comments[i].entry = malloc(1);
# 208|-> vc->comments[i].entry[0] = '\0';
# 209| }
# 210| }
Error: CPPCHECK_WARNING (CWE-476):
flac-1.5.0/src/test_libFLAC/metadata_object.c:309: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: x
# 307| FLAC__StreamMetadata_CueSheet_Index *x = malloc(bytes);
# 308| FLAC__ASSERT(0 != x);
# 309|-> memcpy(x, track->indices, bytes);
# 310| track->indices = x;
# 311| }
Error: GCC_ANALYZER_WARNING (CWE-401):
flac-1.5.0/src/test_libFLAC/metadata_object.c:364:19: warning[-Wanalyzer-malloc-leak]: leak of ‘realloc(*tr.indices, (long unsigned int)num * 16)’
flac-1.5.0/src/test_libFLAC/metadata_object.c:403:13: enter_function: entry to ‘tr_delete_’
flac-1.5.0/src/test_libFLAC/metadata_object.c:414:9: call_function: calling ‘tr_resize_’ from ‘tr_delete_’
# 362| tr->indices = realloc(tr->indices, sizeof(FLAC__StreamMetadata_CueSheet_Index)*num);
# 363| FLAC__ASSERT(0 != tr->indices);
# 364|-> if(num > tr->num_indices)
# 365| memset(tr->indices+tr->num_indices, 0, sizeof(FLAC__StreamMetadata_CueSheet_Index)*(num-tr->num_indices));
# 366| }
Error: GCC_ANALYZER_WARNING (CWE-401):
flac-1.5.0/src/test_libFLAC/metadata_object.c:365:32: warning[-Wanalyzer-malloc-leak]: leak of ‘realloc(*tr.indices, (long unsigned int)num * 16)’
flac-1.5.0/src/test_libFLAC/metadata_object.c:403:13: enter_function: entry to ‘tr_delete_’
flac-1.5.0/src/test_libFLAC/metadata_object.c:414:9: call_function: calling ‘tr_resize_’ from ‘tr_delete_’
# 363| FLAC__ASSERT(0 != tr->indices);
# 364| if(num > tr->num_indices)
# 365|-> memset(tr->indices+tr->num_indices, 0, sizeof(FLAC__StreamMetadata_CueSheet_Index)*(num-tr->num_indices));
# 366| }
# 367|
Error: GCC_ANALYZER_WARNING (CWE-688):
flac-1.5.0/src/test_libFLAC/metadata_object.c:483:26: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*block.data.application.data’ where non-null expected
flac-1.5.0/src/test_libFLAC/metadata_object.c:481:41: acquire_memory: this call could return NULL
flac-1.5.0/src/test_libFLAC/metadata_object.c:483:26: danger: argument 1 (‘strdup(s)’) from [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
# 481| block->data.picture.mime_type = strdup(s);
# 482| FLAC__ASSERT(block->data.picture.mime_type);
# 483|-> block->length += strlen(block->data.picture.mime_type);
# 484| }
# 485|
Error: GCC_ANALYZER_WARNING (CWE-688):
flac-1.5.0/src/test_libFLAC/metadata_object.c:494:26: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*block.data.picture.description’ where non-null expected
flac-1.5.0/src/test_libFLAC/metadata_object.c:492:56: acquire_memory: this call could return NULL
flac-1.5.0/src/test_libFLAC/metadata_object.c:494:26: danger: argument 1 (‘strdup(s)’) from [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
# 492| block->data.picture.description = (FLAC__byte*)strdup((const char *)s);
# 493| FLAC__ASSERT(block->data.picture.description);
# 494|-> block->length += strlen((const char *)block->data.picture.description);
# 495| }
# 496|
Error: GCC_ANALYZER_WARNING (CWE-775):
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)
# 86| return false;
# 87|
# 88|-> encoder = FLAC__stream_encoder_new();
# 89| if(0 == encoder) {
# 90| fclose(encoder_client_data.file);
Error: GCC_ANALYZER_WARNING (CWE-401):
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)
# 86| return false;
# 87|
# 88|-> encoder = FLAC__stream_encoder_new();
# 89| if(0 == encoder) {
# 90| fclose(encoder_client_data.file);
Error: GCC_ANALYZER_WARNING (CWE-775):
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)
# 92| }
# 93|
# 94|-> FLAC__stream_encoder_set_ogg_serial_number(encoder, file_utils__ogg_serial_number);
# 95| FLAC__stream_encoder_set_verify(encoder, true);
# 96| FLAC__stream_encoder_set_streamable_subset(encoder, true);
Error: GCC_ANALYZER_WARNING (CWE-401):
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)
# 92| }
# 93|
# 94|-> FLAC__stream_encoder_set_ogg_serial_number(encoder, file_utils__ogg_serial_number);
# 95| FLAC__stream_encoder_set_verify(encoder, true);
# 96| FLAC__stream_encoder_set_streamable_subset(encoder, true);
Error: GCC_ANALYZER_WARNING (CWE-775):
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)
# 93|
# 94| FLAC__stream_encoder_set_ogg_serial_number(encoder, file_utils__ogg_serial_number);
# 95|-> FLAC__stream_encoder_set_verify(encoder, true);
# 96| FLAC__stream_encoder_set_streamable_subset(encoder, true);
# 97| FLAC__stream_encoder_set_do_mid_side_stereo(encoder, false);
Error: GCC_ANALYZER_WARNING (CWE-401):
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)
# 93|
# 94| FLAC__stream_encoder_set_ogg_serial_number(encoder, file_utils__ogg_serial_number);
# 95|-> FLAC__stream_encoder_set_verify(encoder, true);
# 96| FLAC__stream_encoder_set_streamable_subset(encoder, true);
# 97| FLAC__stream_encoder_set_do_mid_side_stereo(encoder, false);
Error: GCC_ANALYZER_WARNING (CWE-775):
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)
# 94| FLAC__stream_encoder_set_ogg_serial_number(encoder, file_utils__ogg_serial_number);
# 95| FLAC__stream_encoder_set_verify(encoder, true);
# 96|-> FLAC__stream_encoder_set_streamable_subset(encoder, true);
# 97| FLAC__stream_encoder_set_do_mid_side_stereo(encoder, false);
# 98| FLAC__stream_encoder_set_loose_mid_side_stereo(encoder, false);
Error: GCC_ANALYZER_WARNING (CWE-401):
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)
# 94| FLAC__stream_encoder_set_ogg_serial_number(encoder, file_utils__ogg_serial_number);
# 95| FLAC__stream_encoder_set_verify(encoder, true);
# 96|-> FLAC__stream_encoder_set_streamable_subset(encoder, true);
# 97| FLAC__stream_encoder_set_do_mid_side_stereo(encoder, false);
# 98| FLAC__stream_encoder_set_loose_mid_side_stereo(encoder, false);
Error: GCC_ANALYZER_WARNING (CWE-775):
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)
# 95| FLAC__stream_encoder_set_verify(encoder, true);
# 96| FLAC__stream_encoder_set_streamable_subset(encoder, true);
# 97|-> FLAC__stream_encoder_set_do_mid_side_stereo(encoder, false);
# 98| FLAC__stream_encoder_set_loose_mid_side_stereo(encoder, false);
# 99| FLAC__stream_encoder_set_channels(encoder, streaminfo->data.stream_info.channels);
Error: GCC_ANALYZER_WARNING (CWE-401):
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)
# 95| FLAC__stream_encoder_set_verify(encoder, true);
# 96| FLAC__stream_encoder_set_streamable_subset(encoder, true);
# 97|-> FLAC__stream_encoder_set_do_mid_side_stereo(encoder, false);
# 98| FLAC__stream_encoder_set_loose_mid_side_stereo(encoder, false);
# 99| FLAC__stream_encoder_set_channels(encoder, streaminfo->data.stream_info.channels);
Error: GCC_ANALYZER_WARNING (CWE-775):
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)
# 96| FLAC__stream_encoder_set_streamable_subset(encoder, true);
# 97| FLAC__stream_encoder_set_do_mid_side_stereo(encoder, false);
# 98|-> FLAC__stream_encoder_set_loose_mid_side_stereo(encoder, false);
# 99| FLAC__stream_encoder_set_channels(encoder, streaminfo->data.stream_info.channels);
# 100| FLAC__stream_encoder_set_bits_per_sample(encoder, streaminfo->data.stream_info.bits_per_sample);
Error: GCC_ANALYZER_WARNING (CWE-401):
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)
# 96| FLAC__stream_encoder_set_streamable_subset(encoder, true);
# 97| FLAC__stream_encoder_set_do_mid_side_stereo(encoder, false);
# 98|-> FLAC__stream_encoder_set_loose_mid_side_stereo(encoder, false);
# 99| FLAC__stream_encoder_set_channels(encoder, streaminfo->data.stream_info.channels);
# 100| FLAC__stream_encoder_set_bits_per_sample(encoder, streaminfo->data.stream_info.bits_per_sample);
Error: GCC_ANALYZER_WARNING (CWE-775):
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)
# 97| FLAC__stream_encoder_set_do_mid_side_stereo(encoder, false);
# 98| FLAC__stream_encoder_set_loose_mid_side_stereo(encoder, false);
# 99|-> FLAC__stream_encoder_set_channels(encoder, streaminfo->data.stream_info.channels);
# 100| FLAC__stream_encoder_set_bits_per_sample(encoder, streaminfo->data.stream_info.bits_per_sample);
# 101| FLAC__stream_encoder_set_sample_rate(encoder, streaminfo->data.stream_info.sample_rate);
Error: GCC_ANALYZER_WARNING (CWE-401):
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)
# 97| FLAC__stream_encoder_set_do_mid_side_stereo(encoder, false);
# 98| FLAC__stream_encoder_set_loose_mid_side_stereo(encoder, false);
# 99|-> FLAC__stream_encoder_set_channels(encoder, streaminfo->data.stream_info.channels);
# 100| FLAC__stream_encoder_set_bits_per_sample(encoder, streaminfo->data.stream_info.bits_per_sample);
# 101| FLAC__stream_encoder_set_sample_rate(encoder, streaminfo->data.stream_info.sample_rate);
Error: GCC_ANALYZER_WARNING (CWE-775):
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)
# 98| FLAC__stream_encoder_set_loose_mid_side_stereo(encoder, false);
# 99| FLAC__stream_encoder_set_channels(encoder, streaminfo->data.stream_info.channels);
# 100|-> FLAC__stream_encoder_set_bits_per_sample(encoder, streaminfo->data.stream_info.bits_per_sample);
# 101| FLAC__stream_encoder_set_sample_rate(encoder, streaminfo->data.stream_info.sample_rate);
# 102| FLAC__stream_encoder_set_blocksize(encoder, streaminfo->data.stream_info.min_blocksize);
Error: GCC_ANALYZER_WARNING (CWE-401):
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)
# 98| FLAC__stream_encoder_set_loose_mid_side_stereo(encoder, false);
# 99| FLAC__stream_encoder_set_channels(encoder, streaminfo->data.stream_info.channels);
# 100|-> FLAC__stream_encoder_set_bits_per_sample(encoder, streaminfo->data.stream_info.bits_per_sample);
# 101| FLAC__stream_encoder_set_sample_rate(encoder, streaminfo->data.stream_info.sample_rate);
# 102| FLAC__stream_encoder_set_blocksize(encoder, streaminfo->data.stream_info.min_blocksize);
Error: GCC_ANALYZER_WARNING (CWE-775):
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)
# 99| FLAC__stream_encoder_set_channels(encoder, streaminfo->data.stream_info.channels);
# 100| FLAC__stream_encoder_set_bits_per_sample(encoder, streaminfo->data.stream_info.bits_per_sample);
# 101|-> FLAC__stream_encoder_set_sample_rate(encoder, streaminfo->data.stream_info.sample_rate);
# 102| FLAC__stream_encoder_set_blocksize(encoder, streaminfo->data.stream_info.min_blocksize);
# 103| FLAC__stream_encoder_set_max_lpc_order(encoder, 0);
Error: GCC_ANALYZER_WARNING (CWE-401):
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)
# 99| FLAC__stream_encoder_set_channels(encoder, streaminfo->data.stream_info.channels);
# 100| FLAC__stream_encoder_set_bits_per_sample(encoder, streaminfo->data.stream_info.bits_per_sample);
# 101|-> FLAC__stream_encoder_set_sample_rate(encoder, streaminfo->data.stream_info.sample_rate);
# 102| FLAC__stream_encoder_set_blocksize(encoder, streaminfo->data.stream_info.min_blocksize);
# 103| FLAC__stream_encoder_set_max_lpc_order(encoder, 0);
Error: GCC_ANALYZER_WARNING (CWE-775):
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)
# 100| FLAC__stream_encoder_set_bits_per_sample(encoder, streaminfo->data.stream_info.bits_per_sample);
# 101| FLAC__stream_encoder_set_sample_rate(encoder, streaminfo->data.stream_info.sample_rate);
# 102|-> FLAC__stream_encoder_set_blocksize(encoder, streaminfo->data.stream_info.min_blocksize);
# 103| FLAC__stream_encoder_set_max_lpc_order(encoder, 0);
# 104| FLAC__stream_encoder_set_qlp_coeff_precision(encoder, 0);
Error: GCC_ANALYZER_WARNING (CWE-401):
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)
# 100| FLAC__stream_encoder_set_bits_per_sample(encoder, streaminfo->data.stream_info.bits_per_sample);
# 101| FLAC__stream_encoder_set_sample_rate(encoder, streaminfo->data.stream_info.sample_rate);
# 102|-> FLAC__stream_encoder_set_blocksize(encoder, streaminfo->data.stream_info.min_blocksize);
# 103| FLAC__stream_encoder_set_max_lpc_order(encoder, 0);
# 104| FLAC__stream_encoder_set_qlp_coeff_precision(encoder, 0);
Error: GCC_ANALYZER_WARNING (CWE-775):
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)
# 101| FLAC__stream_encoder_set_sample_rate(encoder, streaminfo->data.stream_info.sample_rate);
# 102| FLAC__stream_encoder_set_blocksize(encoder, streaminfo->data.stream_info.min_blocksize);
# 103|-> FLAC__stream_encoder_set_max_lpc_order(encoder, 0);
# 104| FLAC__stream_encoder_set_qlp_coeff_precision(encoder, 0);
# 105| FLAC__stream_encoder_set_do_qlp_coeff_prec_search(encoder, false);
Error: GCC_ANALYZER_WARNING (CWE-401):
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)
# 101| FLAC__stream_encoder_set_sample_rate(encoder, streaminfo->data.stream_info.sample_rate);
# 102| FLAC__stream_encoder_set_blocksize(encoder, streaminfo->data.stream_info.min_blocksize);
# 103|-> FLAC__stream_encoder_set_max_lpc_order(encoder, 0);
# 104| FLAC__stream_encoder_set_qlp_coeff_precision(encoder, 0);
# 105| FLAC__stream_encoder_set_do_qlp_coeff_prec_search(encoder, false);
Error: GCC_ANALYZER_WARNING (CWE-775):
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)
# 102| FLAC__stream_encoder_set_blocksize(encoder, streaminfo->data.stream_info.min_blocksize);
# 103| FLAC__stream_encoder_set_max_lpc_order(encoder, 0);
# 104|-> FLAC__stream_encoder_set_qlp_coeff_precision(encoder, 0);
# 105| FLAC__stream_encoder_set_do_qlp_coeff_prec_search(encoder, false);
# 106| FLAC__stream_encoder_set_do_escape_coding(encoder, false);
Error: GCC_ANALYZER_WARNING (CWE-401):
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)
# 102| FLAC__stream_encoder_set_blocksize(encoder, streaminfo->data.stream_info.min_blocksize);
# 103| FLAC__stream_encoder_set_max_lpc_order(encoder, 0);
# 104|-> FLAC__stream_encoder_set_qlp_coeff_precision(encoder, 0);
# 105| FLAC__stream_encoder_set_do_qlp_coeff_prec_search(encoder, false);
# 106| FLAC__stream_encoder_set_do_escape_coding(encoder, false);
Error: GCC_ANALYZER_WARNING (CWE-775):
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)
# 103| FLAC__stream_encoder_set_max_lpc_order(encoder, 0);
# 104| FLAC__stream_encoder_set_qlp_coeff_precision(encoder, 0);
# 105|-> FLAC__stream_encoder_set_do_qlp_coeff_prec_search(encoder, false);
# 106| FLAC__stream_encoder_set_do_escape_coding(encoder, false);
# 107| FLAC__stream_encoder_set_do_exhaustive_model_search(encoder, false);
Error: GCC_ANALYZER_WARNING (CWE-401):
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)
# 103| FLAC__stream_encoder_set_max_lpc_order(encoder, 0);
# 104| FLAC__stream_encoder_set_qlp_coeff_precision(encoder, 0);
# 105|-> FLAC__stream_encoder_set_do_qlp_coeff_prec_search(encoder, false);
# 106| FLAC__stream_encoder_set_do_escape_coding(encoder, false);
# 107| FLAC__stream_encoder_set_do_exhaustive_model_search(encoder, false);
Error: GCC_ANALYZER_WARNING (CWE-775):
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)
# 104| FLAC__stream_encoder_set_qlp_coeff_precision(encoder, 0);
# 105| FLAC__stream_encoder_set_do_qlp_coeff_prec_search(encoder, false);
# 106|-> FLAC__stream_encoder_set_do_escape_coding(encoder, false);
# 107| FLAC__stream_encoder_set_do_exhaustive_model_search(encoder, false);
# 108| FLAC__stream_encoder_set_min_residual_partition_order(encoder, 0);
Error: GCC_ANALYZER_WARNING (CWE-401):
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)
# 104| FLAC__stream_encoder_set_qlp_coeff_precision(encoder, 0);
# 105| FLAC__stream_encoder_set_do_qlp_coeff_prec_search(encoder, false);
# 106|-> FLAC__stream_encoder_set_do_escape_coding(encoder, false);
# 107| FLAC__stream_encoder_set_do_exhaustive_model_search(encoder, false);
# 108| FLAC__stream_encoder_set_min_residual_partition_order(encoder, 0);
Error: GCC_ANALYZER_WARNING (CWE-775):
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)
# 105| FLAC__stream_encoder_set_do_qlp_coeff_prec_search(encoder, false);
# 106| FLAC__stream_encoder_set_do_escape_coding(encoder, false);
# 107|-> FLAC__stream_encoder_set_do_exhaustive_model_search(encoder, false);
# 108| FLAC__stream_encoder_set_min_residual_partition_order(encoder, 0);
# 109| FLAC__stream_encoder_set_max_residual_partition_order(encoder, 0);
Error: GCC_ANALYZER_WARNING (CWE-401):
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)
# 105| FLAC__stream_encoder_set_do_qlp_coeff_prec_search(encoder, false);
# 106| FLAC__stream_encoder_set_do_escape_coding(encoder, false);
# 107|-> FLAC__stream_encoder_set_do_exhaustive_model_search(encoder, false);
# 108| FLAC__stream_encoder_set_min_residual_partition_order(encoder, 0);
# 109| FLAC__stream_encoder_set_max_residual_partition_order(encoder, 0);
Error: GCC_ANALYZER_WARNING (CWE-775):
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)
# 106| FLAC__stream_encoder_set_do_escape_coding(encoder, false);
# 107| FLAC__stream_encoder_set_do_exhaustive_model_search(encoder, false);
# 108|-> FLAC__stream_encoder_set_min_residual_partition_order(encoder, 0);
# 109| FLAC__stream_encoder_set_max_residual_partition_order(encoder, 0);
# 110| FLAC__stream_encoder_set_rice_parameter_search_dist(encoder, 0);
Error: GCC_ANALYZER_WARNING (CWE-401):
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)
# 106| FLAC__stream_encoder_set_do_escape_coding(encoder, false);
# 107| FLAC__stream_encoder_set_do_exhaustive_model_search(encoder, false);
# 108|-> FLAC__stream_encoder_set_min_residual_partition_order(encoder, 0);
# 109| FLAC__stream_encoder_set_max_residual_partition_order(encoder, 0);
# 110| FLAC__stream_encoder_set_rice_parameter_search_dist(encoder, 0);
Error: GCC_ANALYZER_WARNING (CWE-775):
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)
# 107| FLAC__stream_encoder_set_do_exhaustive_model_search(encoder, false);
# 108| FLAC__stream_encoder_set_min_residual_partition_order(encoder, 0);
# 109|-> FLAC__stream_encoder_set_max_residual_partition_order(encoder, 0);
# 110| FLAC__stream_encoder_set_rice_parameter_search_dist(encoder, 0);
# 111| FLAC__stream_encoder_set_total_samples_estimate(encoder, streaminfo->data.stream_info.total_samples);
Error: GCC_ANALYZER_WARNING (CWE-401):
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)
# 107| FLAC__stream_encoder_set_do_exhaustive_model_search(encoder, false);
# 108| FLAC__stream_encoder_set_min_residual_partition_order(encoder, 0);
# 109|-> FLAC__stream_encoder_set_max_residual_partition_order(encoder, 0);
# 110| FLAC__stream_encoder_set_rice_parameter_search_dist(encoder, 0);
# 111| FLAC__stream_encoder_set_total_samples_estimate(encoder, streaminfo->data.stream_info.total_samples);
Error: GCC_ANALYZER_WARNING (CWE-775):
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)
# 108| FLAC__stream_encoder_set_min_residual_partition_order(encoder, 0);
# 109| FLAC__stream_encoder_set_max_residual_partition_order(encoder, 0);
# 110|-> FLAC__stream_encoder_set_rice_parameter_search_dist(encoder, 0);
# 111| FLAC__stream_encoder_set_total_samples_estimate(encoder, streaminfo->data.stream_info.total_samples);
# 112| FLAC__stream_encoder_set_metadata(encoder, metadata, num_metadata);
Error: GCC_ANALYZER_WARNING (CWE-401):
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)
# 108| FLAC__stream_encoder_set_min_residual_partition_order(encoder, 0);
# 109| FLAC__stream_encoder_set_max_residual_partition_order(encoder, 0);
# 110|-> FLAC__stream_encoder_set_rice_parameter_search_dist(encoder, 0);
# 111| FLAC__stream_encoder_set_total_samples_estimate(encoder, streaminfo->data.stream_info.total_samples);
# 112| FLAC__stream_encoder_set_metadata(encoder, metadata, num_metadata);
Error: GCC_ANALYZER_WARNING (CWE-775):
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)
# 109| FLAC__stream_encoder_set_max_residual_partition_order(encoder, 0);
# 110| FLAC__stream_encoder_set_rice_parameter_search_dist(encoder, 0);
# 111|-> FLAC__stream_encoder_set_total_samples_estimate(encoder, streaminfo->data.stream_info.total_samples);
# 112| FLAC__stream_encoder_set_metadata(encoder, metadata, num_metadata);
# 113|
Error: GCC_ANALYZER_WARNING (CWE-401):
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)
# 109| FLAC__stream_encoder_set_max_residual_partition_order(encoder, 0);
# 110| FLAC__stream_encoder_set_rice_parameter_search_dist(encoder, 0);
# 111|-> FLAC__stream_encoder_set_total_samples_estimate(encoder, streaminfo->data.stream_info.total_samples);
# 112| FLAC__stream_encoder_set_metadata(encoder, metadata, num_metadata);
# 113|
Error: GCC_ANALYZER_WARNING (CWE-775):
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)
# 110| FLAC__stream_encoder_set_rice_parameter_search_dist(encoder, 0);
# 111| FLAC__stream_encoder_set_total_samples_estimate(encoder, streaminfo->data.stream_info.total_samples);
# 112|-> FLAC__stream_encoder_set_metadata(encoder, metadata, num_metadata);
# 113|
# 114| if(is_ogg)
Error: GCC_ANALYZER_WARNING (CWE-401):
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)
# 110| FLAC__stream_encoder_set_rice_parameter_search_dist(encoder, 0);
# 111| FLAC__stream_encoder_set_total_samples_estimate(encoder, streaminfo->data.stream_info.total_samples);
# 112|-> FLAC__stream_encoder_set_metadata(encoder, metadata, num_metadata);
# 113|
# 114| if(is_ogg)
Error: GCC_ANALYZER_WARNING (CWE-775):
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)
# 113|
# 114| if(is_ogg)
# 115|-> init_status = FLAC__stream_encoder_init_ogg_stream(encoder, /*read_callback=*/0, encoder_write_callback_, /*seek_callback=*/0, /*tell_callback=*/0, encoder_metadata_callback_, &encoder_client_data);
# 116| else
# 117| init_status = FLAC__stream_encoder_init_stream(encoder, encoder_write_callback_, /*seek_callback=*/0, /*tell_callback=*/0, encoder_metadata_callback_, &encoder_client_data);
Error: GCC_ANALYZER_WARNING (CWE-401):
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)
# 113|
# 114| if(is_ogg)
# 115|-> init_status = FLAC__stream_encoder_init_ogg_stream(encoder, /*read_callback=*/0, encoder_write_callback_, /*seek_callback=*/0, /*tell_callback=*/0, encoder_metadata_callback_, &encoder_client_data);
# 116| else
# 117| init_status = FLAC__stream_encoder_init_stream(encoder, encoder_write_callback_, /*seek_callback=*/0, /*tell_callback=*/0, encoder_metadata_callback_, &encoder_client_data);
Error: GCC_ANALYZER_WARNING (CWE-775):
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)
# 115| init_status = FLAC__stream_encoder_init_ogg_stream(encoder, /*read_callback=*/0, encoder_write_callback_, /*seek_callback=*/0, /*tell_callback=*/0, encoder_metadata_callback_, &encoder_client_data);
# 116| else
# 117|-> init_status = FLAC__stream_encoder_init_stream(encoder, encoder_write_callback_, /*seek_callback=*/0, /*tell_callback=*/0, encoder_metadata_callback_, &encoder_client_data);
# 118|
# 119| if(init_status != FLAC__STREAM_ENCODER_INIT_STATUS_OK) {
Error: GCC_ANALYZER_WARNING (CWE-401):
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)
# 115| init_status = FLAC__stream_encoder_init_ogg_stream(encoder, /*read_callback=*/0, encoder_write_callback_, /*seek_callback=*/0, /*tell_callback=*/0, encoder_metadata_callback_, &encoder_client_data);
# 116| else
# 117|-> init_status = FLAC__stream_encoder_init_stream(encoder, encoder_write_callback_, /*seek_callback=*/0, /*tell_callback=*/0, encoder_metadata_callback_, &encoder_client_data);
# 118|
# 119| if(init_status != FLAC__STREAM_ENCODER_INIT_STATUS_OK) {
Error: GCC_ANALYZER_WARNING (CWE-775):
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)
# 161| if(0 == (output = flac_fopen(output_filename, "ab")))
# 162| return false;
# 163|-> if(0 == (input = flac_fopen(input_filename, "rb")))
# 164| return false;
# 165|
Error: GCC_ANALYZER_WARNING (CWE-401):
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)
# 161| if(0 == (output = flac_fopen(output_filename, "ab")))
# 162| return false;
# 163|-> if(0 == (input = flac_fopen(input_filename, "rb")))
# 164| return false;
# 165|
Error: GCC_ANALYZER_WARNING (CWE-775):
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)
# 164| return false;
# 165|
# 166|-> fseek(output, 0, SEEK_END);
# 167|
# 168| while ((c = fgetc(input)) != EOF) {
Error: GCC_ANALYZER_WARNING (CWE-775):
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)
# 164| return false;
# 165|
# 166|-> fseek(output, 0, SEEK_END);
# 167|
# 168| while ((c = fgetc(input)) != EOF) {
Error: GCC_ANALYZER_WARNING (CWE-401):
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)
# 164| return false;
# 165|
# 166|-> fseek(output, 0, SEEK_END);
# 167|
# 168| while ((c = fgetc(input)) != EOF) {
Error: GCC_ANALYZER_WARNING (CWE-401):
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)
# 164| return false;
# 165|
# 166|-> fseek(output, 0, SEEK_END);
# 167|
# 168| while ((c = fgetc(input)) != EOF) {
Error: GCC_ANALYZER_WARNING (CWE-775):
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)
# 166| fseek(output, 0, SEEK_END);
# 167|
# 168|-> while ((c = fgetc(input)) != EOF) {
# 169| fputc(c, output);
# 170| }
Error: GCC_ANALYZER_WARNING (CWE-775):
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)
# 166| fseek(output, 0, SEEK_END);
# 167|
# 168|-> while ((c = fgetc(input)) != EOF) {
# 169| fputc(c, output);
# 170| }
Error: GCC_ANALYZER_WARNING (CWE-401):
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)
# 166| fseek(output, 0, SEEK_END);
# 167|
# 168|-> while ((c = fgetc(input)) != EOF) {
# 169| fputc(c, output);
# 170| }
Error: GCC_ANALYZER_WARNING (CWE-401):
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)
# 166| fseek(output, 0, SEEK_END);
# 167|
# 168|-> while ((c = fgetc(input)) != EOF) {
# 169| fputc(c, output);
# 170| }