opus-1.6-1.fc44

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
opus-1.6/celt/celt_decoder.c:244:8: warning[-Wanalyzer-malloc-leak]: leak of 'malloc((long unsigned int)opus_custom_decoder_get_size(mode,  channels))'
opus-1.6/celt/celt_decoder.c:208:14: enter_function: entry to 'opus_custom_decoder_create'
opus-1.6/celt/celt_decoder.c:211:37: call_function: inlined call to 'opus_alloc' from 'opus_custom_decoder_create'
opus-1.6/celt/celt_decoder.c:212:10: call_function: calling 'opus_custom_decoder_init' from 'opus_custom_decoder_create'
#  242|   OPUS_CUSTOM_NOSTATIC int opus_custom_decoder_init(CELTDecoder *st, const CELTMode *mode, int channels)
#  243|   {
#  244|->    if (channels < 0 || channels > 2)
#  245|         return OPUS_BAD_ARG;
#  246|   

Error: CPPCHECK_WARNING (CWE-758): [#def2]
opus-1.6/celt/celt_decoder.c:903: error[subtractPointers]: Subtracting pointers that point to different objects
#  901|               celt_fir(exc+max_period-exc_length, lpc+c*CELT_LPC_ORDER,
#  902|                     fir_tmp, exc_length, CELT_LPC_ORDER, st->arch);
#  903|->             OPUS_COPY(exc+max_period-exc_length, fir_tmp, exc_length);
#  904|            }
#  905|   

Error: CPPCHECK_WARNING (CWE-457): [#def3]
opus-1.6/celt/celt_decoder.c:1451: warning[uninitvar]: Uninitialized variable: offsets
# 1449|      ALLOC(fine_priority, nbEBands, int);
# 1450|   
# 1451|->    codedBands = clt_compute_allocation(mode, start, end, offsets, cap,
# 1452|            alloc_trim, &intensity, &dual_stereo, bits, &balance, pulses,
# 1453|            fine_quant, fine_priority, C, LM, dec, 0, 0, 0);

Error: CPPCHECK_WARNING (CWE-758): [#def4]
opus-1.6/celt/celt_encoder.c:702: error[subtractPointers]: Subtracting pointers that point to different objects
#  700|         if (isTransient && !narrow)
#  701|         {
#  702|->          OPUS_COPY(tmp_1, tmp, N);
#  703|            haar1(tmp_1, N>>LM, 1<<LM);
#  704|            L1 = l1_metric(tmp_1, N, LM+1, bias);

Error: CPPCHECK_WARNING (CWE-758): [#def5]
opus-1.6/celt/celt_encoder.c:1089: error[subtractPointers]: Subtracting pointers that point to different objects
# 1087|               mask[i] = MAXG(mask[i], bandLogE[nbEBands+i]-noise_floor[i]);
# 1088|         }
# 1089|->       OPUS_COPY(sig, mask, end);
# 1090|         for (i=1;i<end;i++)
# 1091|            mask[i] = MAXG(mask[i], mask[i-1] - GCONST(2.f));

Error: GCC_ANALYZER_WARNING (CWE-457): [#def6]
opus-1.6/celt/celt_encoder.c:1307:14: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*<unknown>'
opus-1.6/celt/celt_encoder.c:2865:5: enter_function: entry to 'opus_custom_encode24'
opus-1.6/celt/celt_encoder.c:2871:7: branch_false: following 'false' branch (when 'pcm' is non-NULL)...
opus-1.6/celt/celt_encoder.c:2874:4: branch_false: ...to here
opus-1.6/celt/celt_encoder.c:2881:8: call_function: calling 'celt_encode_with_ec' from 'opus_custom_encode24'
# 1305|      for (i=0;i<len-2*delay;i++) {
# 1306|         r00 += MULT16_16(x[i],x[i]);
# 1307|->       r01 += MULT16_16(x[i],x[i+delay]);
# 1308|         r02 += MULT16_16(x[i],x[i+2*delay]);
# 1309|      }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def7]
opus-1.6/celt/celt_encoder.c:1314:78: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*<unknown>'
opus-1.6/celt/celt_encoder.c:2865:5: enter_function: entry to 'opus_custom_encode24'
opus-1.6/celt/celt_encoder.c:2871:7: branch_false: following 'false' branch (when 'pcm' is non-NULL)...
opus-1.6/celt/celt_encoder.c:2874:4: branch_false: ...to here
opus-1.6/celt/celt_encoder.c:2881:8: call_function: calling 'celt_encode_with_ec' from 'opus_custom_encode24'
# 1312|      r11 = r00+edges;
# 1313|      edges = 0;
# 1314|->    for (i=0;i<delay;i++) edges += MULT16_16(x[len+i-delay],x[len+i-delay]) - MULT16_16(x[i+delay],x[i+delay]);
# 1315|      r22 = r11+edges;
# 1316|      edges = 0;

Error: CPPCHECK_WARNING (CWE-758): [#def8]
opus-1.6/celt/celt_encoder.c:2199: error[subtractPointers]: Subtracting pointers that point to different objects
# 2197|      if (!secondMdct)
# 2198|      {
# 2199|->       OPUS_COPY(bandLogE2, bandLogE, C*nbEBands);
# 2200|      }
# 2201|   

Error: CPPCHECK_WARNING (CWE-457): [#def9]
opus-1.6/celt/celt_lpc.c:174: warning[uninitvar]: Uninitialized variable: rnum
#  172|            xcorr_kernel_c(rnum, x+i-ord, sum_c, ord);
#  173|   #endif
#  174|->          xcorr_kernel(rnum, x+i-ord, sum, ord, arch);
#  175|   #if defined(OPUS_CHECK_ASM) && defined(FIXED_POINT)
#  176|            celt_assert(memcmp(sum, sum_c, sizeof(sum)) == 0);

Error: CPPCHECK_WARNING (CWE-457): [#def10]
opus-1.6/celt/celt_lpc.c:248: warning[uninitvar]: Uninitialized variable: rden
#  246|            xcorr_kernel_c(rden, y+i, sum_c, ord);
#  247|   #endif
#  248|->          xcorr_kernel(rden, y+i, sum, ord, arch);
#  249|   #if defined(OPUS_CHECK_ASM) && defined(FIXED_POINT)
#  250|            celt_assert(memcmp(sum, sum_c, sizeof(sum)) == 0);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def11]
opus-1.6/celt/entenc.c:62:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ptr’
opus-1.6/celt/tests/test_unit_entropy.c:53:5: enter_function: entry to ‘main’
opus-1.6/celt/tests/test_unit_entropy.c:70:6: branch_false: following ‘false’ branch (when ‘_argc <= 2’)...
opus-1.6/celt/tests/test_unit_entropy.c:74:14: branch_false: ...to here
opus-1.6/celt/tests/test_unit_entropy.c:82:26: acquire_memory: this call could return NULL
opus-1.6/celt/tests/test_unit_entropy.c:84:12: branch_true: following ‘true’ branch (when ‘ft != 1024’)...
opus-1.6/celt/tests/test_unit_entropy.c:84:12: branch_true: ...to here
opus-1.6/celt/tests/test_unit_entropy.c:85:13: branch_true: following ‘true’ branch (when ‘ft > i’)...
opus-1.6/celt/tests/test_unit_entropy.c:86:16: branch_true: ...to here
opus-1.6/celt/tests/test_unit_entropy.c:87:7: call_function: calling ‘ec_enc_uint’ from ‘main’
#   60|   static int ec_write_byte(ec_enc *_this,unsigned _value){
#   61|     if(_this->offs+_this->end_offs>=_this->storage)return -1;
#   62|->   _this->buf[_this->offs++]=(unsigned char)_value;
#   63|     return 0;
#   64|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def12]
opus-1.6/celt/mini_kfft.c:295:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘Fout’
opus-1.6/celt/tests/test_unit_mini_kfft.c:83:6: enter_function: entry to ‘test1d’
opus-1.6/celt/tests/test_unit_mini_kfft.c:91:11: call_function: calling ‘mini_kiss_fft_alloc’ from ‘test1d’
opus-1.6/celt/tests/test_unit_mini_kfft.c:91:11: return_function: returning to ‘test1d’ from ‘mini_kiss_fft_alloc’
opus-1.6/celt/tests/test_unit_mini_kfft.c:92:12: call_function: calling ‘mini_kiss_fft_alloc’ from ‘test1d’
opus-1.6/celt/tests/test_unit_mini_kfft.c:92:12: return_function: returning to ‘test1d’ from ‘mini_kiss_fft_alloc’
opus-1.6/celt/tests/test_unit_mini_kfft.c:95:31: acquire_memory: this call could return NULL
opus-1.6/celt/tests/test_unit_mini_kfft.c:97:14: branch_false: following ‘false’ branch (when ‘k >= nfft’)...
opus-1.6/celt/tests/test_unit_mini_kfft.c:97:14: branch_false: ...to here
opus-1.6/celt/tests/test_unit_mini_kfft.c:102:14: branch_false: following ‘false’ branch (when ‘k >= nfft’)...
opus-1.6/celt/tests/test_unit_mini_kfft.c:107:8: branch_false: ...to here
opus-1.6/celt/tests/test_unit_mini_kfft.c:107:8: branch_false: following ‘false’ branch (when ‘isinverse == 0’)...
opus-1.6/celt/tests/test_unit_mini_kfft.c:120:8: call_function: inlined call to ‘mini_kiss_fft’ from ‘test1d’
#  293|       if (m==1) {
#  294|           do{
#  295|->             *Fout = *f;
#  296|               f += fstride*in_stride;
#  297|           }while(++Fout != Fout_end );

Error: GCC_ANALYZER_WARNING (CWE-476): [#def13]
opus-1.6/celt/mini_kfft.c:295:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘f’
opus-1.6/celt/tests/test_unit_mini_kfft.c:83:6: enter_function: entry to ‘test1d’
opus-1.6/celt/tests/test_unit_mini_kfft.c:91:11: call_function: calling ‘mini_kiss_fft_alloc’ from ‘test1d’
opus-1.6/celt/tests/test_unit_mini_kfft.c:91:11: return_function: returning to ‘test1d’ from ‘mini_kiss_fft_alloc’
opus-1.6/celt/tests/test_unit_mini_kfft.c:92:12: call_function: calling ‘mini_kiss_fft_alloc’ from ‘test1d’
opus-1.6/celt/tests/test_unit_mini_kfft.c:92:12: return_function: returning to ‘test1d’ from ‘mini_kiss_fft_alloc’
opus-1.6/celt/tests/test_unit_mini_kfft.c:94:30: acquire_memory: this call could return NULL
opus-1.6/celt/tests/test_unit_mini_kfft.c:97:14: branch_false: following ‘false’ branch (when ‘k >= nfft’)...
opus-1.6/celt/tests/test_unit_mini_kfft.c:97:14: branch_false: ...to here
opus-1.6/celt/tests/test_unit_mini_kfft.c:102:14: branch_false: following ‘false’ branch (when ‘k >= nfft’)...
opus-1.6/celt/tests/test_unit_mini_kfft.c:107:8: branch_false: ...to here
opus-1.6/celt/tests/test_unit_mini_kfft.c:107:8: branch_false: following ‘false’ branch (when ‘isinverse == 0’)...
opus-1.6/celt/tests/test_unit_mini_kfft.c:120:8: call_function: inlined call to ‘mini_kiss_fft’ from ‘test1d’
#  293|       if (m==1) {
#  294|           do{
#  295|->             *Fout = *f;
#  296|               f += fstride*in_stride;
#  297|           }while(++Fout != Fout_end );

Error: GCC_ANALYZER_WARNING (CWE-457): [#def14]
opus-1.6/celt/mini_kfft.c:295:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*f’
opus-1.6/celt/tests/test_unit_mini_kfft.c:83:6: enter_function: entry to ‘test1d’
opus-1.6/celt/tests/test_unit_mini_kfft.c:91:11: call_function: calling ‘mini_kiss_fft_alloc’ from ‘test1d’
opus-1.6/celt/tests/test_unit_mini_kfft.c:91:11: return_function: returning to ‘test1d’ from ‘mini_kiss_fft_alloc’
opus-1.6/celt/tests/test_unit_mini_kfft.c:92:12: call_function: calling ‘mini_kiss_fft_alloc’ from ‘test1d’
opus-1.6/celt/tests/test_unit_mini_kfft.c:92:12: return_function: returning to ‘test1d’ from ‘mini_kiss_fft_alloc’
opus-1.6/celt/tests/test_unit_mini_kfft.c:97:14: branch_false: following ‘false’ branch (when ‘k >= nfft’)...
opus-1.6/celt/tests/test_unit_mini_kfft.c:97:14: branch_false: ...to here
opus-1.6/celt/tests/test_unit_mini_kfft.c:102:14: branch_false: following ‘false’ branch (when ‘k >= nfft’)...
opus-1.6/celt/tests/test_unit_mini_kfft.c:107:8: branch_false: ...to here
opus-1.6/celt/tests/test_unit_mini_kfft.c:107:8: branch_false: following ‘false’ branch (when ‘isinverse == 0’)...
opus-1.6/celt/tests/test_unit_mini_kfft.c:120:8: call_function: inlined call to ‘mini_kiss_fft’ from ‘test1d’
#  293|       if (m==1) {
#  294|           do{
#  295|->             *Fout = *f;
#  296|               f += fstride*in_stride;
#  297|           }while(++Fout != Fout_end );

Error: GCC_ANALYZER_WARNING (CWE-476): [#def15]
opus-1.6/celt/modes.c:101:10: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'malloc(44)'
opus-1.6/celt/modes.c:90:20: enter_function: entry to 'compute_ebands'
opus-1.6/celt/modes.c:96:7: branch_true: following 'true' branch...
opus-1.6/celt/modes.c:98:7: branch_true: ...to here
opus-1.6/celt/modes.c:99:16: call_function: inlined call to 'opus_alloc' from 'compute_ebands'
opus-1.6/celt/modes.c:100:16: branch_true: following 'true' branch...
opus-1.6/celt/modes.c:101:16: branch_true: ...to here
opus-1.6/celt/modes.c:101:10: danger: 'malloc(44) + (long unsigned int)i * 2' could be NULL: unchecked value from [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   99|         eBands = opus_alloc(sizeof(opus_int16)*(*nbEBands+1));
#  100|         for (i=0;i<*nbEBands+1;i++)
#  101|->          eBands[i] = eband5ms[i];
#  102|         return eBands;
#  103|      }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
opus-1.6/celt/modes.c:359:25: warning[-Wanalyzer-malloc-leak]: leak of 'malloc(160)'
opus-1.6/celt/modes.c:227:11: enter_function: entry to 'opus_custom_mode_create'
opus-1.6/celt/modes.c:245:13: branch_true: following 'true' branch (when 'i == 0')...
opus-1.6/celt/modes.c:245:13: branch_true: ...to here
opus-1.6/celt/modes.c:248:16: branch_true: following 'true' branch (when 'j != 4')...
opus-1.6/celt/modes.c:250:13: branch_true: ...to here
opus-1.6/celt/modes.c:269:7: branch_false: following 'false' branch...
opus-1.6/celt/modes.c:278:8: branch_false: ...to here
opus-1.6/celt/modes.c:278:7: branch_false: following 'false' branch...
opus-1.6/celt/modes.c:286:7: branch_false: following 'false' branch...
opus-1.6/celt/modes.c:293:8: branch_false: ...to here
opus-1.6/celt/modes.c:308:7: branch_false: following 'false' branch...
opus-1.6/celt/modes.c:315:11: call_function: inlined call to 'opus_alloc' from 'opus_custom_mode_create'
opus-1.6/celt/modes.c:316:7: branch_false: following 'false' branch...
opus-1.6/celt/modes.c:318:4: branch_false: ...to here
opus-1.6/celt/modes.c:363:19: call_function: calling 'compute_ebands' from 'opus_custom_mode_create'
opus-1.6/celt/modes.c:363:19: return_function: returning to 'opus_custom_mode_create' from 'compute_ebands'
opus-1.6/celt/modes.c:364:7: branch_false: following 'false' branch...
opus-1.6/celt/modes.c:369:22: branch_false: ...to here
opus-1.6/celt/modes.c:369:7: branch_true: following 'true' branch...
opus-1.6/celt/modes.c:371:8: branch_true: ...to here
opus-1.6/celt/modes.c:434:7: branch_true: following 'true' branch...
opus-1.6/celt/modes.c:435:7: branch_true: ...to here
opus-1.6/celt/modes.c:435:7: call_function: calling 'opus_custom_mode_destroy' from 'opus_custom_mode_create'
#  357|   
#  358|      mode->maxLM = LM;
#  359|->    mode->nbShortMdcts = 1<<LM;
#  360|      mode->shortMdctSize = frame_size/mode->nbShortMdcts;
#  361|      res = (mode->Fs+mode->shortMdctSize)/(2*mode->shortMdctSize);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
opus-1.6/celt/modes.c:445:7: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
opus-1.6/celt/modes.c:227:11: enter_function: entry to 'opus_custom_mode_create'
opus-1.6/celt/modes.c:245:13: branch_true: following 'true' branch (when 'i == 0')...
opus-1.6/celt/modes.c:245:13: branch_true: ...to here
opus-1.6/celt/modes.c:248:16: branch_true: following 'true' branch (when 'j != 4')...
opus-1.6/celt/modes.c:250:13: branch_true: ...to here
opus-1.6/celt/modes.c:269:7: branch_false: following 'false' branch...
opus-1.6/celt/modes.c:278:8: branch_false: ...to here
opus-1.6/celt/modes.c:278:7: branch_false: following 'false' branch...
opus-1.6/celt/modes.c:286:7: branch_false: following 'false' branch...
opus-1.6/celt/modes.c:293:8: branch_false: ...to here
opus-1.6/celt/modes.c:308:7: branch_false: following 'false' branch...
opus-1.6/celt/modes.c:315:11: call_function: inlined call to 'opus_alloc' from 'opus_custom_mode_create'
opus-1.6/celt/modes.c:316:7: branch_false: following 'false' branch...
opus-1.6/celt/modes.c:318:4: branch_false: ...to here
opus-1.6/celt/modes.c:363:19: call_function: calling 'compute_ebands' from 'opus_custom_mode_create'
opus-1.6/celt/modes.c:363:19: return_function: returning to 'opus_custom_mode_create' from 'compute_ebands'
opus-1.6/celt/modes.c:364:7: branch_false: following 'false' branch...
opus-1.6/celt/modes.c:369:22: branch_false: ...to here
opus-1.6/celt/modes.c:369:7: branch_true: following 'true' branch...
opus-1.6/celt/modes.c:371:8: branch_true: ...to here
opus-1.6/celt/modes.c:434:7: branch_true: following 'true' branch...
opus-1.6/celt/modes.c:435:7: branch_true: ...to here
opus-1.6/celt/modes.c:435:7: call_function: calling 'opus_custom_mode_destroy' from 'opus_custom_mode_create'
#  443|      int arch = opus_select_arch();
#  444|   
#  445|->    if (mode == NULL)
#  446|         return;
#  447|   #ifndef CUSTOM_MODES_ONLY

Error: GCC_ANALYZER_WARNING (CWE-457): [#def18]
opus-1.6/celt/modes.c:466:30: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*mode.allocVectors'
opus-1.6/celt/modes.c:227:11: enter_function: entry to 'opus_custom_mode_create'
opus-1.6/celt/modes.c:245:13: branch_true: following 'true' branch (when 'i == 0')...
opus-1.6/celt/modes.c:245:13: branch_true: ...to here
opus-1.6/celt/modes.c:248:16: branch_true: following 'true' branch (when 'j != 4')...
opus-1.6/celt/modes.c:250:13: branch_true: ...to here
opus-1.6/celt/modes.c:269:7: branch_false: following 'false' branch...
opus-1.6/celt/modes.c:278:8: branch_false: ...to here
opus-1.6/celt/modes.c:278:7: branch_false: following 'false' branch...
opus-1.6/celt/modes.c:286:7: branch_false: following 'false' branch...
opus-1.6/celt/modes.c:293:8: branch_false: ...to here
opus-1.6/celt/modes.c:308:7: branch_false: following 'false' branch...
opus-1.6/celt/modes.c:315:11: call_function: inlined call to 'opus_alloc' from 'opus_custom_mode_create'
opus-1.6/celt/modes.c:316:7: branch_false: following 'false' branch...
opus-1.6/celt/modes.c:318:4: branch_false: ...to here
opus-1.6/celt/modes.c:363:19: call_function: calling 'compute_ebands' from 'opus_custom_mode_create'
opus-1.6/celt/modes.c:363:19: return_function: returning to 'opus_custom_mode_create' from 'compute_ebands'
opus-1.6/celt/modes.c:364:7: branch_false: following 'false' branch...
opus-1.6/celt/modes.c:369:22: branch_false: ...to here
opus-1.6/celt/modes.c:369:7: branch_true: following 'true' branch...
opus-1.6/celt/modes.c:371:8: branch_true: ...to here
opus-1.6/celt/modes.c:434:7: branch_true: following 'true' branch...
opus-1.6/celt/modes.c:435:7: branch_true: ...to here
opus-1.6/celt/modes.c:435:7: call_function: calling 'opus_custom_mode_destroy' from 'opus_custom_mode_create'
#  464|   #endif
#  465|      opus_free((opus_int16*)mode->eBands);
#  466|->    opus_free((unsigned char*)mode->allocVectors);
#  467|   
#  468|      opus_free((opus_val16*)mode->window);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
opus-1.6/celt/opus_custom_demo.c:52:4: warning[-Wanalyzer-malloc-leak]: leak of ‘fbytes’
opus-1.6/celt/opus_custom_demo.c:105:5: enter_function: entry to ‘main’
opus-1.6/celt/opus_custom_demo.c:137:7: branch_false: following ‘false’ branch (when ‘argc > 6’)...
opus-1.6/celt/opus_custom_demo.c:142:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:175:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:181:26: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:184:7: branch_true: following ‘true’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:186:47: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:188:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:196:11: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:233:7: branch_true: following ‘true’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:234:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:235:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:240:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:240:10: branch_false: following ‘false’ branch (when ‘complexity < 0’)...
opus-1.6/celt/opus_custom_demo.c:248:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:263:7: branch_false: following ‘false’ branch (when ‘encode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:275:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:275:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:280:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:289:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:294:29: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:296:29: acquire_memory: allocated here
opus-1.6/celt/opus_custom_demo.c:298:11: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:301:10: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:301:10: branch_false: following ‘false’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:326:30: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:327:13: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:329:13: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:329:13: branch_true: following ‘true’ branch (when ‘format == 0’)...
opus-1.6/celt/opus_custom_demo.c:329:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:330:21: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:353:16: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:354:13: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:356:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:356:13: call_function: calling ‘_opus_ctl_failed’ from ‘main’
#   50|      fprintf(stderr, " ***         A fatal error was detected.         ***\n");
#   51|      fprintf(stderr, " ***************************************************\n");
#   52|->    fprintf(stderr, "En/decoder ctl function %s failed at %d for %s.\n",
#   53|              file, line, opus_get_version_string());
#   54|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
opus-1.6/celt/opus_custom_demo.c:52:4: warning[-Wanalyzer-malloc-leak]: leak of ‘in’
opus-1.6/celt/opus_custom_demo.c:105:5: enter_function: entry to ‘main’
opus-1.6/celt/opus_custom_demo.c:137:7: branch_false: following ‘false’ branch (when ‘argc > 6’)...
opus-1.6/celt/opus_custom_demo.c:142:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:175:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:181:26: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:184:7: branch_true: following ‘true’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:186:47: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:188:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:196:11: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:233:7: branch_true: following ‘true’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:234:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:235:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:240:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:240:10: branch_false: following ‘false’ branch (when ‘complexity < 0’)...
opus-1.6/celt/opus_custom_demo.c:248:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:263:7: branch_false: following ‘false’ branch (when ‘encode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:275:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:275:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:280:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:289:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:294:29: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:294:22: acquire_memory: allocated here
opus-1.6/celt/opus_custom_demo.c:298:11: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:301:10: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:301:10: branch_false: following ‘false’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:326:30: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:327:13: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:329:13: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:329:13: branch_true: following ‘true’ branch (when ‘format == 0’)...
opus-1.6/celt/opus_custom_demo.c:329:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:330:21: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:353:16: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:354:13: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:356:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:356:13: call_function: calling ‘_opus_ctl_failed’ from ‘main’
#   50|      fprintf(stderr, " ***         A fatal error was detected.         ***\n");
#   51|      fprintf(stderr, " ***************************************************\n");
#   52|->    fprintf(stderr, "En/decoder ctl function %s failed at %d for %s.\n",
#   53|              file, line, opus_get_version_string());
#   54|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
opus-1.6/celt/opus_custom_demo.c:52:4: warning[-Wanalyzer-malloc-leak]: leak of ‘out’
opus-1.6/celt/opus_custom_demo.c:105:5: enter_function: entry to ‘main’
opus-1.6/celt/opus_custom_demo.c:137:7: branch_false: following ‘false’ branch (when ‘argc > 6’)...
opus-1.6/celt/opus_custom_demo.c:142:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:175:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:181:26: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:184:7: branch_true: following ‘true’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:186:47: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:188:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:196:11: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:233:7: branch_true: following ‘true’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:234:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:235:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:240:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:240:10: branch_false: following ‘false’ branch (when ‘complexity < 0’)...
opus-1.6/celt/opus_custom_demo.c:248:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:263:7: branch_false: following ‘false’ branch (when ‘encode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:275:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:275:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:280:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:289:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:294:29: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:295:23: acquire_memory: allocated here
opus-1.6/celt/opus_custom_demo.c:298:11: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:301:10: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:301:10: branch_false: following ‘false’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:326:30: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:327:13: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:329:13: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:329:13: branch_true: following ‘true’ branch (when ‘format == 0’)...
opus-1.6/celt/opus_custom_demo.c:329:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:330:21: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:353:16: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:354:13: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:356:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:356:13: call_function: calling ‘_opus_ctl_failed’ from ‘main’
#   50|      fprintf(stderr, " ***         A fatal error was detected.         ***\n");
#   51|      fprintf(stderr, " ***************************************************\n");
#   52|->    fprintf(stderr, "En/decoder ctl function %s failed at %d for %s.\n",
#   53|              file, line, opus_get_version_string());
#   54|   }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def22]
opus-1.6/celt/opus_custom_demo.c:294:29: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(outFile, "wb+")’
opus-1.6/celt/opus_custom_demo.c:137:7: branch_false: following ‘false’ branch (when ‘argc > 6’)...
opus-1.6/celt/opus_custom_demo.c:142:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:175:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:181:26: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:184:7: branch_true: following ‘true’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:186:47: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:188:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:196:11: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:233:7: branch_true: following ‘true’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:234:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:235:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:240:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:240:10: branch_false: following ‘false’ branch (when ‘complexity < 0’)...
opus-1.6/celt/opus_custom_demo.c:248:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:263:7: branch_false: following ‘false’ branch (when ‘encode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:275:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:275:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:280:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:288:11: acquire_resource: opened here
opus-1.6/celt/opus_custom_demo.c:289:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:294:29: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:298:11: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:301:10: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:301:10: branch_false: following ‘false’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:326:30: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:327:13: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:329:13: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:329:13: branch_true: following ‘true’ branch (when ‘format == 0’)...
opus-1.6/celt/opus_custom_demo.c:329:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:330:21: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:353:16: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:353:16: throw: if ‘opus_custom_encode24’ throws an exception...
opus-1.6/celt/opus_custom_demo.c:294:29: danger: ‘fopen(outFile, "wb+")’ leaks here; was opened at [(23)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/22)
#  292|         goto failure;
#  293|      }
#  294|->    in = (opus_int32*)malloc(frame_size*channels*sizeof(opus_int32));
#  295|      out = (opus_int32*)malloc(frame_size*channels*sizeof(opus_int32));
#  296|      fbytes = (unsigned char*)malloc(frame_size*channels*4);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
opus-1.6/celt/opus_custom_demo.c:294:29: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(outFile, "wb+")’
opus-1.6/celt/opus_custom_demo.c:137:7: branch_false: following ‘false’ branch (when ‘argc > 6’)...
opus-1.6/celt/opus_custom_demo.c:142:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:175:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:181:26: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:184:7: branch_true: following ‘true’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:186:47: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:188:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:196:11: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:233:7: branch_true: following ‘true’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:234:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:235:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:240:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:240:10: branch_false: following ‘false’ branch (when ‘complexity < 0’)...
opus-1.6/celt/opus_custom_demo.c:248:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:263:7: branch_false: following ‘false’ branch (when ‘encode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:275:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:275:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:280:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:288:11: acquire_memory: allocated here
opus-1.6/celt/opus_custom_demo.c:289:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:294:29: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:298:11: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:301:10: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:301:10: branch_false: following ‘false’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:326:30: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:327:13: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:329:13: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:329:13: branch_true: following ‘true’ branch (when ‘format == 0’)...
opus-1.6/celt/opus_custom_demo.c:329:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:330:21: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:353:16: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:353:16: throw: if ‘opus_custom_encode24’ throws an exception...
opus-1.6/celt/opus_custom_demo.c:294:29: danger: ‘fopen(outFile, "wb+")’ leaks here; was allocated at [(23)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/22)
#  292|         goto failure;
#  293|      }
#  294|->    in = (opus_int32*)malloc(frame_size*channels*sizeof(opus_int32));
#  295|      out = (opus_int32*)malloc(frame_size*channels*sizeof(opus_int32));
#  296|      fbytes = (unsigned char*)malloc(frame_size*channels*4);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def24]
opus-1.6/celt/opus_custom_demo.c:333:35: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘fbytes’
opus-1.6/celt/opus_custom_demo.c:137:7: branch_false: following ‘false’ branch (when ‘argc > 6’)...
opus-1.6/celt/opus_custom_demo.c:142:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:175:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:181:26: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:184:7: branch_true: following ‘true’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:186:47: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:188:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:196:11: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:233:7: branch_true: following ‘true’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:234:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:235:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:240:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:240:10: branch_false: following ‘false’ branch (when ‘complexity < 0’)...
opus-1.6/celt/opus_custom_demo.c:248:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:263:7: branch_false: following ‘false’ branch (when ‘encode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:275:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:275:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:280:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:289:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:294:29: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:296:29: acquire_memory: this call could return NULL
opus-1.6/celt/opus_custom_demo.c:298:11: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:301:10: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:301:10: branch_false: following ‘false’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:326:30: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:327:13: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:329:13: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:329:13: branch_true: following ‘true’ branch (when ‘format == 0’)...
opus-1.6/celt/opus_custom_demo.c:329:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:330:21: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:333:25: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:333:35: danger: ‘fbytes + (sizetype)(i * 2)’ could be NULL: unchecked value from [(25)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/24)
#  331|               {
#  332|                  opus_int32 s;
#  333|->                s=fbytes[2*i+1]<<8|fbytes[2*i];
#  334|                  s=((s&0xFFFF)^0x8000)-0x8000;
#  335|                  in[i]=s*256;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def25]
opus-1.6/celt/opus_custom_demo.c:335:16: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘in’
opus-1.6/celt/opus_custom_demo.c:137:7: branch_false: following ‘false’ branch (when ‘argc > 6’)...
opus-1.6/celt/opus_custom_demo.c:142:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:175:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:181:26: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:184:7: branch_true: following ‘true’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:186:47: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:188:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:196:11: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:233:7: branch_true: following ‘true’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:234:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:235:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:240:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:240:10: branch_false: following ‘false’ branch (when ‘complexity < 0’)...
opus-1.6/celt/opus_custom_demo.c:248:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:263:7: branch_false: following ‘false’ branch (when ‘encode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:275:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:275:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:280:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:289:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:294:29: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:294:22: acquire_memory: this call could return NULL
opus-1.6/celt/opus_custom_demo.c:298:11: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:301:10: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:301:10: branch_false: following ‘false’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:326:30: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:327:13: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:329:13: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:329:13: branch_true: following ‘true’ branch (when ‘format == 0’)...
opus-1.6/celt/opus_custom_demo.c:329:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:330:21: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:333:25: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:335:16: danger: ‘in + (long unsigned int)i * 4’ could be NULL: unchecked value from [(25)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/24)
#  333|                  s=fbytes[2*i+1]<<8|fbytes[2*i];
#  334|                  s=((s&0xFFFF)^0x8000)-0x8000;
#  335|->                in[i]=s*256;
#  336|               }
#  337|            } else if (format == FORMAT_S24_LE) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
opus-1.6/celt/opus_custom_demo.c:353:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fbytes’
opus-1.6/celt/opus_custom_demo.c:137:7: branch_false: following ‘false’ branch (when ‘argc > 6’)...
opus-1.6/celt/opus_custom_demo.c:142:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:175:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:181:26: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:184:7: branch_true: following ‘true’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:186:47: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:188:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:196:11: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:233:7: branch_true: following ‘true’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:234:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:235:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:240:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:240:10: branch_false: following ‘false’ branch (when ‘complexity < 0’)...
opus-1.6/celt/opus_custom_demo.c:248:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:263:7: branch_false: following ‘false’ branch (when ‘encode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:275:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:275:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:280:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:289:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:294:29: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:296:29: acquire_memory: allocated here
opus-1.6/celt/opus_custom_demo.c:298:11: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:301:10: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:301:10: branch_false: following ‘false’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:326:30: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:327:13: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:329:13: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:329:13: branch_true: following ‘true’ branch (when ‘format == 0’)...
opus-1.6/celt/opus_custom_demo.c:329:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:330:21: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:353:16: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:353:16: throw: if ‘opus_custom_encode24’ throws an exception...
opus-1.6/celt/opus_custom_demo.c:353:16: danger: ‘fbytes’ leaks here; was allocated at [(25)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/24)
#  351|               }
#  352|            }
#  353|->          len = opus_custom_encode24(enc, in, frame_size, data, bytes_per_packet);
#  354|            if (opus_custom_encoder_ctl(
#  355|                      enc, OPUS_GET_FINAL_RANGE(&enc_final_range)) != OPUS_OK) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
opus-1.6/celt/opus_custom_demo.c:353:16: warning[-Wanalyzer-malloc-leak]: leak of ‘in’
opus-1.6/celt/opus_custom_demo.c:137:7: branch_false: following ‘false’ branch (when ‘argc > 6’)...
opus-1.6/celt/opus_custom_demo.c:142:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:175:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:181:26: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:184:7: branch_true: following ‘true’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:186:47: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:188:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:196:11: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:233:7: branch_true: following ‘true’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:234:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:235:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:240:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:240:10: branch_false: following ‘false’ branch (when ‘complexity < 0’)...
opus-1.6/celt/opus_custom_demo.c:248:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:263:7: branch_false: following ‘false’ branch (when ‘encode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:275:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:275:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:280:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:289:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:294:29: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:294:22: acquire_memory: allocated here
opus-1.6/celt/opus_custom_demo.c:298:11: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:301:10: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:301:10: branch_false: following ‘false’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:326:30: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:327:13: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:329:13: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:329:13: branch_true: following ‘true’ branch (when ‘format == 0’)...
opus-1.6/celt/opus_custom_demo.c:329:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:330:21: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:353:16: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:353:16: throw: if ‘opus_custom_encode24’ throws an exception...
opus-1.6/celt/opus_custom_demo.c:353:16: danger: ‘in’ leaks here; was allocated at [(25)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/24)
#  351|               }
#  352|            }
#  353|->          len = opus_custom_encode24(enc, in, frame_size, data, bytes_per_packet);
#  354|            if (opus_custom_encoder_ctl(
#  355|                      enc, OPUS_GET_FINAL_RANGE(&enc_final_range)) != OPUS_OK) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
opus-1.6/celt/opus_custom_demo.c:353:16: warning[-Wanalyzer-malloc-leak]: leak of ‘out’
opus-1.6/celt/opus_custom_demo.c:137:7: branch_false: following ‘false’ branch (when ‘argc > 6’)...
opus-1.6/celt/opus_custom_demo.c:142:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:175:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:181:26: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:184:7: branch_true: following ‘true’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:186:47: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:188:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:196:11: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:233:7: branch_true: following ‘true’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:234:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:235:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:240:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:240:10: branch_false: following ‘false’ branch (when ‘complexity < 0’)...
opus-1.6/celt/opus_custom_demo.c:248:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:263:7: branch_false: following ‘false’ branch (when ‘encode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:275:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:275:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:280:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:289:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:294:29: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:295:23: acquire_memory: allocated here
opus-1.6/celt/opus_custom_demo.c:298:11: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:301:10: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:301:10: branch_false: following ‘false’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:326:30: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:327:13: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:329:13: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:329:13: branch_true: following ‘true’ branch (when ‘format == 0’)...
opus-1.6/celt/opus_custom_demo.c:329:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:330:21: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:353:16: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:353:16: throw: if ‘opus_custom_encode24’ throws an exception...
opus-1.6/celt/opus_custom_demo.c:353:16: danger: ‘out’ leaks here; was allocated at [(25)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/24)
#  351|               }
#  352|            }
#  353|->          len = opus_custom_encode24(enc, in, frame_size, data, bytes_per_packet);
#  354|            if (opus_custom_encoder_ctl(
#  355|                      enc, OPUS_GET_FINAL_RANGE(&enc_final_range)) != OPUS_OK) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
opus-1.6/celt/opus_custom_demo.c:354:14: warning[-Wanalyzer-malloc-leak]: leak of ‘fbytes’
opus-1.6/celt/opus_custom_demo.c:137:7: branch_false: following ‘false’ branch (when ‘argc > 6’)...
opus-1.6/celt/opus_custom_demo.c:142:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:175:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:181:26: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:184:7: branch_true: following ‘true’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:186:47: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:188:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:196:11: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:233:7: branch_true: following ‘true’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:234:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:235:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:240:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:240:10: branch_false: following ‘false’ branch (when ‘complexity < 0’)...
opus-1.6/celt/opus_custom_demo.c:248:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:263:7: branch_false: following ‘false’ branch (when ‘encode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:275:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:275:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:280:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:289:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:294:29: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:296:29: acquire_memory: allocated here
opus-1.6/celt/opus_custom_demo.c:298:11: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:301:10: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:301:10: branch_false: following ‘false’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:326:30: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:327:13: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:329:13: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:329:13: branch_true: following ‘true’ branch (when ‘format == 0’)...
opus-1.6/celt/opus_custom_demo.c:329:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:330:21: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:353:16: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:354:14: throw: if ‘opus_custom_encoder_ctl’ throws an exception...
opus-1.6/celt/opus_custom_demo.c:354:14: danger: ‘fbytes’ leaks here; was allocated at [(25)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/24)
#  352|            }
#  353|            len = opus_custom_encode24(enc, in, frame_size, data, bytes_per_packet);
#  354|->          if (opus_custom_encoder_ctl(
#  355|                      enc, OPUS_GET_FINAL_RANGE(&enc_final_range)) != OPUS_OK) {
#  356|               opus_ctl_failed();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
opus-1.6/celt/opus_custom_demo.c:354:14: warning[-Wanalyzer-malloc-leak]: leak of ‘in’
opus-1.6/celt/opus_custom_demo.c:137:7: branch_false: following ‘false’ branch (when ‘argc > 6’)...
opus-1.6/celt/opus_custom_demo.c:142:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:175:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:181:26: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:184:7: branch_true: following ‘true’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:186:47: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:188:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:196:11: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:233:7: branch_true: following ‘true’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:234:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:235:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:240:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:240:10: branch_false: following ‘false’ branch (when ‘complexity < 0’)...
opus-1.6/celt/opus_custom_demo.c:248:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:263:7: branch_false: following ‘false’ branch (when ‘encode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:275:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:275:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:280:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:289:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:294:29: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:294:22: acquire_memory: allocated here
opus-1.6/celt/opus_custom_demo.c:298:11: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:301:10: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:301:10: branch_false: following ‘false’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:326:30: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:327:13: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:329:13: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:329:13: branch_true: following ‘true’ branch (when ‘format == 0’)...
opus-1.6/celt/opus_custom_demo.c:329:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:330:21: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:353:16: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:354:14: throw: if ‘opus_custom_encoder_ctl’ throws an exception...
opus-1.6/celt/opus_custom_demo.c:354:14: danger: ‘in’ leaks here; was allocated at [(25)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/24)
#  352|            }
#  353|            len = opus_custom_encode24(enc, in, frame_size, data, bytes_per_packet);
#  354|->          if (opus_custom_encoder_ctl(
#  355|                      enc, OPUS_GET_FINAL_RANGE(&enc_final_range)) != OPUS_OK) {
#  356|               opus_ctl_failed();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
opus-1.6/celt/opus_custom_demo.c:354:14: warning[-Wanalyzer-malloc-leak]: leak of ‘out’
opus-1.6/celt/opus_custom_demo.c:137:7: branch_false: following ‘false’ branch (when ‘argc > 6’)...
opus-1.6/celt/opus_custom_demo.c:142:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:175:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:181:26: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:184:7: branch_true: following ‘true’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:186:47: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:188:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:196:11: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:233:7: branch_true: following ‘true’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:234:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:235:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:240:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:240:10: branch_false: following ‘false’ branch (when ‘complexity < 0’)...
opus-1.6/celt/opus_custom_demo.c:248:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:263:7: branch_false: following ‘false’ branch (when ‘encode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:275:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:275:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:280:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:289:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:294:29: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:295:23: acquire_memory: allocated here
opus-1.6/celt/opus_custom_demo.c:298:11: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:301:10: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:301:10: branch_false: following ‘false’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:326:30: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:327:13: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:329:13: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:329:13: branch_true: following ‘true’ branch (when ‘format == 0’)...
opus-1.6/celt/opus_custom_demo.c:329:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:330:21: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:353:16: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:354:14: throw: if ‘opus_custom_encoder_ctl’ throws an exception...
opus-1.6/celt/opus_custom_demo.c:354:14: danger: ‘out’ leaks here; was allocated at [(25)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/24)
#  352|            }
#  353|            len = opus_custom_encode24(enc, in, frame_size, data, bytes_per_packet);
#  354|->          if (opus_custom_encoder_ctl(
#  355|                      enc, OPUS_GET_FINAL_RANGE(&enc_final_range)) != OPUS_OK) {
#  356|               opus_ctl_failed();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
opus-1.6/celt/opus_custom_demo.c:360:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fbytes’
opus-1.6/celt/opus_custom_demo.c:137:7: branch_false: following ‘false’ branch (when ‘argc > 6’)...
opus-1.6/celt/opus_custom_demo.c:142:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:175:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:181:26: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:184:7: branch_true: following ‘true’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:186:47: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:188:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:196:11: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:233:7: branch_true: following ‘true’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:234:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:235:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:240:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:240:10: branch_false: following ‘false’ branch (when ‘complexity < 0’)...
opus-1.6/celt/opus_custom_demo.c:248:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:263:7: branch_false: following ‘false’ branch (when ‘encode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:275:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:275:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:280:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:289:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:294:29: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:296:29: acquire_memory: allocated here
opus-1.6/celt/opus_custom_demo.c:298:11: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:301:10: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:301:10: branch_false: following ‘false’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:326:30: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:327:13: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:329:13: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:329:13: branch_true: following ‘true’ branch (when ‘format == 0’)...
opus-1.6/celt/opus_custom_demo.c:329:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:330:21: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:353:16: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:354:13: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:359:13: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:359:13: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:360:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:360:13: throw: if ‘opus_strerror’ throws an exception...
opus-1.6/celt/opus_custom_demo.c:360:13: danger: ‘fbytes’ leaks here; was allocated at [(25)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/24)
#  358|            }
#  359|            if (len <= 0)
#  360|->             fprintf (stderr, "opus_custom_encode() failed: %s\n", opus_strerror(len));
#  361|         }
#  362|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
opus-1.6/celt/opus_custom_demo.c:360:13: warning[-Wanalyzer-malloc-leak]: leak of ‘in’
opus-1.6/celt/opus_custom_demo.c:137:7: branch_false: following ‘false’ branch (when ‘argc > 6’)...
opus-1.6/celt/opus_custom_demo.c:142:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:175:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:181:26: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:184:7: branch_true: following ‘true’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:186:47: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:188:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:196:11: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:233:7: branch_true: following ‘true’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:234:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:235:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:240:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:240:10: branch_false: following ‘false’ branch (when ‘complexity < 0’)...
opus-1.6/celt/opus_custom_demo.c:248:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:263:7: branch_false: following ‘false’ branch (when ‘encode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:275:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:275:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:280:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:289:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:294:29: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:294:22: acquire_memory: allocated here
opus-1.6/celt/opus_custom_demo.c:298:11: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:301:10: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:301:10: branch_false: following ‘false’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:326:30: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:327:13: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:329:13: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:329:13: branch_true: following ‘true’ branch (when ‘format == 0’)...
opus-1.6/celt/opus_custom_demo.c:329:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:330:21: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:353:16: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:354:13: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:359:13: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:359:13: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:360:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:360:13: throw: if ‘opus_strerror’ throws an exception...
opus-1.6/celt/opus_custom_demo.c:360:13: danger: ‘in’ leaks here; was allocated at [(25)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/24)
#  358|            }
#  359|            if (len <= 0)
#  360|->             fprintf (stderr, "opus_custom_encode() failed: %s\n", opus_strerror(len));
#  361|         }
#  362|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
opus-1.6/celt/opus_custom_demo.c:360:13: warning[-Wanalyzer-malloc-leak]: leak of ‘out’
opus-1.6/celt/opus_custom_demo.c:137:7: branch_false: following ‘false’ branch (when ‘argc > 6’)...
opus-1.6/celt/opus_custom_demo.c:142:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:175:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:181:26: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:184:7: branch_true: following ‘true’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:186:47: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:188:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:196:11: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:233:7: branch_true: following ‘true’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:234:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:235:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:240:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:240:10: branch_false: following ‘false’ branch (when ‘complexity < 0’)...
opus-1.6/celt/opus_custom_demo.c:248:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:263:7: branch_false: following ‘false’ branch (when ‘encode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:275:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:275:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:280:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:289:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:294:29: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:295:23: acquire_memory: allocated here
opus-1.6/celt/opus_custom_demo.c:298:11: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:301:10: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:301:10: branch_false: following ‘false’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:326:30: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:327:13: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:329:13: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:329:13: branch_true: following ‘true’ branch (when ‘format == 0’)...
opus-1.6/celt/opus_custom_demo.c:329:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:330:21: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:353:16: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:354:13: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:359:13: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:359:13: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:360:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:360:13: throw: if ‘opus_strerror’ throws an exception...
opus-1.6/celt/opus_custom_demo.c:360:13: danger: ‘out’ leaks here; was allocated at [(25)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/24)
#  358|            }
#  359|            if (len <= 0)
#  360|->             fprintf (stderr, "opus_custom_encode() failed: %s\n", opus_strerror(len));
#  361|         }
#  362|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def35]
opus-1.6/celt/opus_custom_demo.c:409:19: warning[-Wanalyzer-malloc-leak]: leak of ‘fbytes’
opus-1.6/celt/opus_custom_demo.c:105:5: enter_function: entry to ‘main’
opus-1.6/celt/opus_custom_demo.c:137:7: branch_false: following ‘false’ branch (when ‘argc > 6’)...
opus-1.6/celt/opus_custom_demo.c:142:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:175:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:181:26: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:184:7: branch_false: following ‘false’ branch (when ‘decode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:196:11: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:233:7: branch_false: following ‘false’ branch (when ‘decode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:263:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:263:7: branch_true: following ‘true’ branch (when ‘encode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:264:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:265:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:270:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:270:9: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:275:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:275:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:280:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:289:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:294:29: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:296:29: acquire_memory: allocated here
opus-1.6/celt/opus_custom_demo.c:298:11: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:301:10: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:301:10: branch_true: following ‘true’ branch (when ‘decode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:304:29: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:305:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:307:17: call_function: inlined call to ‘char_to_int’ from ‘main’
opus-1.6/celt/opus_custom_demo.c:308:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:313:22: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:314:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:316:29: call_function: inlined call to ‘char_to_int’ from ‘main’
opus-1.6/celt/opus_custom_demo.c:318:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:512:1: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:363:10: branch_false: following ‘false’ branch (when ‘encode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:406:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:406:17: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:409:19: throw: if ‘opus_custom_decode24’ throws an exception...
opus-1.6/celt/opus_custom_demo.c:409:19: danger: ‘fbytes’ leaks here; was allocated at [(24)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/23)
#  407|            if (lost)
#  408|               /*if (errors && (errors%2==0))*/
#  409|->             ret = opus_custom_decode24(dec, NULL, len, out, frame_size);
#  410|            else
#  411|               ret = opus_custom_decode24(dec, data, len, out, frame_size);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def36]
opus-1.6/celt/opus_custom_demo.c:409:19: warning[-Wanalyzer-malloc-leak]: leak of ‘in’
opus-1.6/celt/opus_custom_demo.c:105:5: enter_function: entry to ‘main’
opus-1.6/celt/opus_custom_demo.c:137:7: branch_false: following ‘false’ branch (when ‘argc > 6’)...
opus-1.6/celt/opus_custom_demo.c:142:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:175:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:181:26: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:184:7: branch_false: following ‘false’ branch (when ‘decode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:196:11: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:233:7: branch_false: following ‘false’ branch (when ‘decode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:263:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:263:7: branch_true: following ‘true’ branch (when ‘encode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:264:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:265:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:270:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:270:9: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:275:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:275:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:280:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:289:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:294:29: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:294:22: acquire_memory: allocated here
opus-1.6/celt/opus_custom_demo.c:298:11: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:301:10: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:301:10: branch_true: following ‘true’ branch (when ‘decode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:304:29: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:305:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:307:17: call_function: inlined call to ‘char_to_int’ from ‘main’
opus-1.6/celt/opus_custom_demo.c:308:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:313:22: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:314:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:316:29: call_function: inlined call to ‘char_to_int’ from ‘main’
opus-1.6/celt/opus_custom_demo.c:318:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:512:1: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:363:10: branch_false: following ‘false’ branch (when ‘encode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:406:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:406:17: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:409:19: throw: if ‘opus_custom_decode24’ throws an exception...
opus-1.6/celt/opus_custom_demo.c:409:19: danger: ‘in’ leaks here; was allocated at [(24)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/23)
#  407|            if (lost)
#  408|               /*if (errors && (errors%2==0))*/
#  409|->             ret = opus_custom_decode24(dec, NULL, len, out, frame_size);
#  410|            else
#  411|               ret = opus_custom_decode24(dec, data, len, out, frame_size);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def37]
opus-1.6/celt/opus_custom_demo.c:409:19: warning[-Wanalyzer-malloc-leak]: leak of ‘out’
opus-1.6/celt/opus_custom_demo.c:105:5: enter_function: entry to ‘main’
opus-1.6/celt/opus_custom_demo.c:137:7: branch_false: following ‘false’ branch (when ‘argc > 6’)...
opus-1.6/celt/opus_custom_demo.c:142:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:175:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:181:26: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:184:7: branch_false: following ‘false’ branch (when ‘decode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:196:11: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:233:7: branch_false: following ‘false’ branch (when ‘decode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:263:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:263:7: branch_true: following ‘true’ branch (when ‘encode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:264:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:265:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:270:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:270:9: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:275:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:275:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:280:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:289:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:294:29: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:295:23: acquire_memory: allocated here
opus-1.6/celt/opus_custom_demo.c:298:11: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:301:10: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:301:10: branch_true: following ‘true’ branch (when ‘decode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:304:29: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:305:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:307:17: call_function: inlined call to ‘char_to_int’ from ‘main’
opus-1.6/celt/opus_custom_demo.c:308:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:313:22: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:314:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:316:29: call_function: inlined call to ‘char_to_int’ from ‘main’
opus-1.6/celt/opus_custom_demo.c:318:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:512:1: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:363:10: branch_false: following ‘false’ branch (when ‘encode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:406:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:406:17: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:409:19: throw: if ‘opus_custom_decode24’ throws an exception...
opus-1.6/celt/opus_custom_demo.c:409:19: danger: ‘out’ leaks here; was allocated at [(24)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/23)
#  407|            if (lost)
#  408|               /*if (errors && (errors%2==0))*/
#  409|->             ret = opus_custom_decode24(dec, NULL, len, out, frame_size);
#  410|            else
#  411|               ret = opus_custom_decode24(dec, data, len, out, frame_size);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def38]
opus-1.6/celt/opus_custom_demo.c:411:19: warning[-Wanalyzer-malloc-leak]: leak of ‘fbytes’
opus-1.6/celt/opus_custom_demo.c:105:5: enter_function: entry to ‘main’
opus-1.6/celt/opus_custom_demo.c:137:7: branch_false: following ‘false’ branch (when ‘argc > 6’)...
opus-1.6/celt/opus_custom_demo.c:142:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:175:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:181:26: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:184:7: branch_false: following ‘false’ branch (when ‘decode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:196:11: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:233:7: branch_false: following ‘false’ branch (when ‘decode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:263:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:263:7: branch_true: following ‘true’ branch (when ‘encode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:264:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:265:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:270:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:270:9: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:275:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:275:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:280:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:289:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:294:29: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:296:29: acquire_memory: allocated here
opus-1.6/celt/opus_custom_demo.c:298:11: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:301:10: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:301:10: branch_true: following ‘true’ branch (when ‘decode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:304:29: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:305:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:307:17: call_function: inlined call to ‘char_to_int’ from ‘main’
opus-1.6/celt/opus_custom_demo.c:308:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:313:22: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:314:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:316:29: call_function: inlined call to ‘char_to_int’ from ‘main’
opus-1.6/celt/opus_custom_demo.c:318:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:512:1: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:363:10: branch_false: following ‘false’ branch (when ‘encode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:406:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:411:19: throw: if ‘opus_custom_decode24’ throws an exception...
opus-1.6/celt/opus_custom_demo.c:411:19: danger: ‘fbytes’ leaks here; was allocated at [(24)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/23)
#  409|               ret = opus_custom_decode24(dec, NULL, len, out, frame_size);
#  410|            else
#  411|->             ret = opus_custom_decode24(dec, data, len, out, frame_size);
#  412|            if(opus_custom_decoder_ctl(
#  413|                     dec, OPUS_GET_FINAL_RANGE(&dec_final_range)) != OPUS_OK) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
opus-1.6/celt/opus_custom_demo.c:411:19: warning[-Wanalyzer-malloc-leak]: leak of ‘in’
opus-1.6/celt/opus_custom_demo.c:105:5: enter_function: entry to ‘main’
opus-1.6/celt/opus_custom_demo.c:137:7: branch_false: following ‘false’ branch (when ‘argc > 6’)...
opus-1.6/celt/opus_custom_demo.c:142:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:175:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:181:26: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:184:7: branch_false: following ‘false’ branch (when ‘decode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:196:11: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:233:7: branch_false: following ‘false’ branch (when ‘decode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:263:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:263:7: branch_true: following ‘true’ branch (when ‘encode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:264:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:265:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:270:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:270:9: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:275:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:275:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:280:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:289:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:294:29: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:294:22: acquire_memory: allocated here
opus-1.6/celt/opus_custom_demo.c:298:11: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:301:10: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:301:10: branch_true: following ‘true’ branch (when ‘decode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:304:29: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:305:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:307:17: call_function: inlined call to ‘char_to_int’ from ‘main’
opus-1.6/celt/opus_custom_demo.c:308:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:313:22: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:314:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:316:29: call_function: inlined call to ‘char_to_int’ from ‘main’
opus-1.6/celt/opus_custom_demo.c:318:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:512:1: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:363:10: branch_false: following ‘false’ branch (when ‘encode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:406:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:411:19: throw: if ‘opus_custom_decode24’ throws an exception...
opus-1.6/celt/opus_custom_demo.c:411:19: danger: ‘in’ leaks here; was allocated at [(24)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/23)
#  409|               ret = opus_custom_decode24(dec, NULL, len, out, frame_size);
#  410|            else
#  411|->             ret = opus_custom_decode24(dec, data, len, out, frame_size);
#  412|            if(opus_custom_decoder_ctl(
#  413|                     dec, OPUS_GET_FINAL_RANGE(&dec_final_range)) != OPUS_OK) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def40]
opus-1.6/celt/opus_custom_demo.c:411:19: warning[-Wanalyzer-malloc-leak]: leak of ‘out’
opus-1.6/celt/opus_custom_demo.c:105:5: enter_function: entry to ‘main’
opus-1.6/celt/opus_custom_demo.c:137:7: branch_false: following ‘false’ branch (when ‘argc > 6’)...
opus-1.6/celt/opus_custom_demo.c:142:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:175:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:181:26: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:184:7: branch_false: following ‘false’ branch (when ‘decode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:196:11: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:233:7: branch_false: following ‘false’ branch (when ‘decode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:263:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:263:7: branch_true: following ‘true’ branch (when ‘encode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:264:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:265:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:270:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:270:9: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:275:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:275:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:280:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:289:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:294:29: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:295:23: acquire_memory: allocated here
opus-1.6/celt/opus_custom_demo.c:298:11: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:301:10: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:301:10: branch_true: following ‘true’ branch (when ‘decode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:304:29: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:305:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:307:17: call_function: inlined call to ‘char_to_int’ from ‘main’
opus-1.6/celt/opus_custom_demo.c:308:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:313:22: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:314:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:316:29: call_function: inlined call to ‘char_to_int’ from ‘main’
opus-1.6/celt/opus_custom_demo.c:318:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:512:1: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:363:10: branch_false: following ‘false’ branch (when ‘encode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:406:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:411:19: throw: if ‘opus_custom_decode24’ throws an exception...
opus-1.6/celt/opus_custom_demo.c:411:19: danger: ‘out’ leaks here; was allocated at [(24)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/23)
#  409|               ret = opus_custom_decode24(dec, NULL, len, out, frame_size);
#  410|            else
#  411|->             ret = opus_custom_decode24(dec, data, len, out, frame_size);
#  412|            if(opus_custom_decoder_ctl(
#  413|                     dec, OPUS_GET_FINAL_RANGE(&dec_final_range)) != OPUS_OK) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def41]
opus-1.6/celt/opus_custom_demo.c:412:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fbytes’
opus-1.6/celt/opus_custom_demo.c:105:5: enter_function: entry to ‘main’
opus-1.6/celt/opus_custom_demo.c:137:7: branch_false: following ‘false’ branch (when ‘argc > 6’)...
opus-1.6/celt/opus_custom_demo.c:142:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:175:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:181:26: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:184:7: branch_false: following ‘false’ branch (when ‘decode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:196:11: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:233:7: branch_false: following ‘false’ branch (when ‘decode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:263:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:263:7: branch_true: following ‘true’ branch (when ‘encode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:264:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:265:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:270:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:270:9: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:275:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:275:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:280:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:289:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:294:29: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:296:29: acquire_memory: allocated here
opus-1.6/celt/opus_custom_demo.c:298:11: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:301:10: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:301:10: branch_true: following ‘true’ branch (when ‘decode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:304:29: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:305:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:307:17: call_function: inlined call to ‘char_to_int’ from ‘main’
opus-1.6/celt/opus_custom_demo.c:308:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:313:22: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:314:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:316:29: call_function: inlined call to ‘char_to_int’ from ‘main’
opus-1.6/celt/opus_custom_demo.c:318:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:512:1: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:363:10: branch_false: following ‘false’ branch (when ‘encode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:406:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:406:17: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:412:13: throw: if ‘opus_custom_decoder_ctl’ throws an exception...
opus-1.6/celt/opus_custom_demo.c:412:13: danger: ‘fbytes’ leaks here; was allocated at [(24)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/23)
#  410|            else
#  411|               ret = opus_custom_decode24(dec, data, len, out, frame_size);
#  412|->          if(opus_custom_decoder_ctl(
#  413|                     dec, OPUS_GET_FINAL_RANGE(&dec_final_range)) != OPUS_OK) {
#  414|               opus_ctl_failed();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def42]
opus-1.6/celt/opus_custom_demo.c:412:13: warning[-Wanalyzer-malloc-leak]: leak of ‘in’
opus-1.6/celt/opus_custom_demo.c:105:5: enter_function: entry to ‘main’
opus-1.6/celt/opus_custom_demo.c:137:7: branch_false: following ‘false’ branch (when ‘argc > 6’)...
opus-1.6/celt/opus_custom_demo.c:142:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:175:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:181:26: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:184:7: branch_false: following ‘false’ branch (when ‘decode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:196:11: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:233:7: branch_false: following ‘false’ branch (when ‘decode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:263:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:263:7: branch_true: following ‘true’ branch (when ‘encode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:264:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:265:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:270:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:270:9: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:275:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:275:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:280:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:289:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:294:29: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:294:22: acquire_memory: allocated here
opus-1.6/celt/opus_custom_demo.c:298:11: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:301:10: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:301:10: branch_true: following ‘true’ branch (when ‘decode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:304:29: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:305:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:307:17: call_function: inlined call to ‘char_to_int’ from ‘main’
opus-1.6/celt/opus_custom_demo.c:308:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:313:22: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:314:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:316:29: call_function: inlined call to ‘char_to_int’ from ‘main’
opus-1.6/celt/opus_custom_demo.c:318:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:512:1: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:363:10: branch_false: following ‘false’ branch (when ‘encode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:406:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:406:17: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:412:13: throw: if ‘opus_custom_decoder_ctl’ throws an exception...
opus-1.6/celt/opus_custom_demo.c:412:13: danger: ‘in’ leaks here; was allocated at [(24)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/23)
#  410|            else
#  411|               ret = opus_custom_decode24(dec, data, len, out, frame_size);
#  412|->          if(opus_custom_decoder_ctl(
#  413|                     dec, OPUS_GET_FINAL_RANGE(&dec_final_range)) != OPUS_OK) {
#  414|               opus_ctl_failed();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
opus-1.6/celt/opus_custom_demo.c:418:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fbytes’
opus-1.6/celt/opus_custom_demo.c:105:5: enter_function: entry to ‘main’
opus-1.6/celt/opus_custom_demo.c:137:7: branch_false: following ‘false’ branch (when ‘argc > 6’)...
opus-1.6/celt/opus_custom_demo.c:142:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:175:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:181:26: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:184:7: branch_false: following ‘false’ branch (when ‘decode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:196:11: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:233:7: branch_false: following ‘false’ branch (when ‘decode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:263:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:263:7: branch_true: following ‘true’ branch (when ‘encode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:264:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:265:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:270:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:270:9: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:275:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:275:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:280:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:289:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:294:29: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:296:29: acquire_memory: allocated here
opus-1.6/celt/opus_custom_demo.c:298:11: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:301:10: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:301:10: branch_true: following ‘true’ branch (when ‘decode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:304:29: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:305:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:307:17: call_function: inlined call to ‘char_to_int’ from ‘main’
opus-1.6/celt/opus_custom_demo.c:308:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:313:22: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:314:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:316:29: call_function: inlined call to ‘char_to_int’ from ‘main’
opus-1.6/celt/opus_custom_demo.c:318:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:512:1: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:363:10: branch_false: following ‘false’ branch (when ‘encode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:406:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:406:17: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:412:12: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:417:13: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:417:13: branch_true: following ‘true’ branch (when ‘ret < 0’)...
opus-1.6/celt/opus_custom_demo.c:418:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:418:13: throw: if ‘opus_strerror’ throws an exception...
opus-1.6/celt/opus_custom_demo.c:418:13: danger: ‘fbytes’ leaks here; was allocated at [(24)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/23)
#  416|            }
#  417|            if (ret < 0)
#  418|->             fprintf(stderr, "opus_custom_decode() failed: %s\n", opus_strerror(ret));
#  419|   #else
#  420|            for (i=0;i<ret*channels;i++)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def44]
opus-1.6/celt/opus_custom_demo.c:418:13: warning[-Wanalyzer-malloc-leak]: leak of ‘in’
opus-1.6/celt/opus_custom_demo.c:105:5: enter_function: entry to ‘main’
opus-1.6/celt/opus_custom_demo.c:137:7: branch_false: following ‘false’ branch (when ‘argc > 6’)...
opus-1.6/celt/opus_custom_demo.c:142:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:175:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:181:26: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:184:7: branch_false: following ‘false’ branch (when ‘decode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:196:11: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:233:7: branch_false: following ‘false’ branch (when ‘decode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:263:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:263:7: branch_true: following ‘true’ branch (when ‘encode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:264:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:265:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:270:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:270:9: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:275:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:275:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:280:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:289:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:294:29: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:294:22: acquire_memory: allocated here
opus-1.6/celt/opus_custom_demo.c:298:11: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:301:10: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:301:10: branch_true: following ‘true’ branch (when ‘decode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:304:29: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:305:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:307:17: call_function: inlined call to ‘char_to_int’ from ‘main’
opus-1.6/celt/opus_custom_demo.c:308:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:313:22: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:314:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:316:29: call_function: inlined call to ‘char_to_int’ from ‘main’
opus-1.6/celt/opus_custom_demo.c:318:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:512:1: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:363:10: branch_false: following ‘false’ branch (when ‘encode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:406:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:406:17: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:412:12: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:417:13: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:417:13: branch_true: following ‘true’ branch (when ‘ret < 0’)...
opus-1.6/celt/opus_custom_demo.c:418:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:418:13: throw: if ‘opus_strerror’ throws an exception...
opus-1.6/celt/opus_custom_demo.c:418:13: danger: ‘in’ leaks here; was allocated at [(24)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/23)
#  416|            }
#  417|            if (ret < 0)
#  418|->             fprintf(stderr, "opus_custom_decode() failed: %s\n", opus_strerror(ret));
#  419|   #else
#  420|            for (i=0;i<ret*channels;i++)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def45]
opus-1.6/celt/opus_custom_demo.c:441:16: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘fbytes’
opus-1.6/celt/opus_custom_demo.c:105:5: enter_function: entry to ‘main’
opus-1.6/celt/opus_custom_demo.c:137:7: branch_false: following ‘false’ branch (when ‘argc > 6’)...
opus-1.6/celt/opus_custom_demo.c:142:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:175:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:181:26: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:184:7: branch_false: following ‘false’ branch (when ‘decode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:196:11: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:233:7: branch_false: following ‘false’ branch (when ‘decode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:263:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:263:7: branch_true: following ‘true’ branch (when ‘encode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:264:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:265:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:270:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:270:9: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:275:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:275:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:280:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:289:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:294:29: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:296:29: acquire_memory: this call could return NULL
opus-1.6/celt/opus_custom_demo.c:298:11: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:301:10: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:301:10: branch_true: following ‘true’ branch (when ‘decode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:304:29: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:305:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:307:17: call_function: inlined call to ‘char_to_int’ from ‘main’
opus-1.6/celt/opus_custom_demo.c:308:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:313:22: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:314:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:316:29: call_function: inlined call to ‘char_to_int’ from ‘main’
opus-1.6/celt/opus_custom_demo.c:318:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:512:1: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:363:10: branch_false: following ‘false’ branch (when ‘encode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:406:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:406:17: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:412:12: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:417:13: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:417:13: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
opus-1.6/celt/opus_custom_demo.c:433:13: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:433:13: branch_true: following ‘true’ branch (when ‘format == 0’)...
opus-1.6/celt/opus_custom_demo.c:433:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:434:21: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:437:24: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:441:16: danger: ‘fbytes + (sizetype)(i * 2)’ could be NULL: unchecked value from [(24)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/23)
#  439|                  if (s < -0x007fff00) s = -0x007fff00;
#  440|                  s=(s+128)>>8;
#  441|->                fbytes[2*i]=s&0xFF;
#  442|                  fbytes[2*i+1]=(s>>8)&0xFF;
#  443|               }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def46]
opus-1.6/celt/opus_custom_demo.c:451:16: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘fbytes’
opus-1.6/celt/opus_custom_demo.c:105:5: enter_function: entry to ‘main’
opus-1.6/celt/opus_custom_demo.c:137:7: branch_false: following ‘false’ branch (when ‘argc > 6’)...
opus-1.6/celt/opus_custom_demo.c:142:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:175:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:181:26: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:184:7: branch_false: following ‘false’ branch (when ‘decode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:196:11: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:204:10: branch_false: following ‘false’ branch (when the strings are non-equal)...
opus-1.6/celt/opus_custom_demo.c:209:19: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:209:17: branch_false: following ‘false’ branch (when the strings are non-equal)...
opus-1.6/celt/opus_custom_demo.c:213:19: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:233:7: branch_false: following ‘false’ branch (when ‘decode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:263:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:263:7: branch_true: following ‘true’ branch (when ‘encode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:264:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:265:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:270:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:270:9: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:275:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:275:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:280:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:289:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:294:29: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:296:29: acquire_memory: this call could return NULL
opus-1.6/celt/opus_custom_demo.c:298:11: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:301:10: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:301:10: branch_true: following ‘true’ branch (when ‘decode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:304:29: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:305:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:307:17: call_function: inlined call to ‘char_to_int’ from ‘main’
opus-1.6/celt/opus_custom_demo.c:308:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:313:22: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:314:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:316:29: call_function: inlined call to ‘char_to_int’ from ‘main’
opus-1.6/celt/opus_custom_demo.c:318:14: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:512:1: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:363:10: branch_false: following ‘false’ branch (when ‘encode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:406:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:406:17: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:412:12: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:417:13: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:417:13: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
opus-1.6/celt/opus_custom_demo.c:433:13: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:433:13: branch_false: following ‘false’ branch (when ‘format != 0’)...
opus-1.6/celt/opus_custom_demo.c:444:20: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:444:20: branch_true: following ‘true’ branch (when ‘format == 1’)...
opus-1.6/celt/opus_custom_demo.c:444:20: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:445:21: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:448:24: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:451:16: danger: ‘fbytes + (sizetype)(i * 3)’ could be NULL: unchecked value from [(28)](sarif:/runs/0/results/57/codeFlows/0/threadFlows/0/locations/27)
#  449|                  if (s > 0x007fffff) s = 0x007fffff;
#  450|                  if (s < -0x007fffff) s = -0x007fffff;
#  451|->                fbytes[3*i]=s&0xFF;
#  452|                  fbytes[3*i+1]=(s>>8)&0xFF;
#  453|                  fbytes[3*i+2]=(s>>16)&0xFF;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def47]
opus-1.6/celt/opus_custom_demo.c:503:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fin’
opus-1.6/celt/opus_custom_demo.c:137:7: branch_false: following ‘false’ branch (when ‘argc > 6’)...
opus-1.6/celt/opus_custom_demo.c:142:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:175:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:181:26: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:184:7: branch_true: following ‘true’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:186:47: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:188:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:196:11: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:233:7: branch_true: following ‘true’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:234:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:235:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:240:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:240:10: branch_false: following ‘false’ branch (when ‘complexity < 0’)...
opus-1.6/celt/opus_custom_demo.c:248:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:263:7: branch_false: following ‘false’ branch (when ‘encode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:275:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:275:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:280:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:281:10: acquire_resource: opened here
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:289:7: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:291:7: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:503:7: branch_true: following ‘true’ branch (when ‘enc’ is non-NULL)...
opus-1.6/celt/opus_custom_demo.c:503:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:503:13: throw: if ‘opus_custom_encoder_destroy’ throws an exception...
opus-1.6/celt/opus_custom_demo.c:503:13: danger: ‘fin’ leaks here; was opened at [(21)](sarif:/runs/0/results/58/codeFlows/0/threadFlows/0/locations/20)
#  501|   failure:
#  502|      /* Cleanup after ourselves. */
#  503|->    if (enc) opus_custom_encoder_destroy(enc);
#  504|      if (dec) opus_custom_decoder_destroy(dec);
#  505|      if (fin) fclose(fin);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def48]
opus-1.6/celt/opus_custom_demo.c:503:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fin’
opus-1.6/celt/opus_custom_demo.c:137:7: branch_false: following ‘false’ branch (when ‘argc > 6’)...
opus-1.6/celt/opus_custom_demo.c:142:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:175:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:181:26: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:184:7: branch_true: following ‘true’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:186:47: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:188:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:196:11: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:233:7: branch_true: following ‘true’ branch (when ‘decode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:234:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:235:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:240:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:240:10: branch_false: following ‘false’ branch (when ‘complexity < 0’)...
opus-1.6/celt/opus_custom_demo.c:248:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:263:7: branch_false: following ‘false’ branch (when ‘encode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:275:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:275:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:280:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:281:10: acquire_memory: allocated here
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:289:7: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:291:7: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:503:7: branch_true: following ‘true’ branch (when ‘enc’ is non-NULL)...
opus-1.6/celt/opus_custom_demo.c:503:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:503:13: throw: if ‘opus_custom_encoder_destroy’ throws an exception...
opus-1.6/celt/opus_custom_demo.c:503:13: danger: ‘fin’ leaks here; was allocated at [(21)](sarif:/runs/0/results/59/codeFlows/0/threadFlows/0/locations/20)
#  501|   failure:
#  502|      /* Cleanup after ourselves. */
#  503|->    if (enc) opus_custom_encoder_destroy(enc);
#  504|      if (dec) opus_custom_decoder_destroy(dec);
#  505|      if (fin) fclose(fin);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def49]
opus-1.6/celt/opus_custom_demo.c:504:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fin’
opus-1.6/celt/opus_custom_demo.c:137:7: branch_false: following ‘false’ branch (when ‘argc > 6’)...
opus-1.6/celt/opus_custom_demo.c:142:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:175:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:181:26: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:233:7: branch_false: following ‘false’ branch (when ‘decode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:263:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:263:7: branch_true: following ‘true’ branch (when ‘encode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:264:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:265:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:270:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:270:9: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:275:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:275:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:280:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:281:10: acquire_resource: opened here
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:289:7: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:291:7: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:503:7: branch_false: following ‘false’ branch (when ‘enc’ is NULL)...
opus-1.6/celt/opus_custom_demo.c:504:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:504:7: branch_true: following ‘true’ branch (when ‘dec’ is non-NULL)...
opus-1.6/celt/opus_custom_demo.c:504:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:504:13: throw: if ‘opus_custom_decoder_destroy’ throws an exception...
opus-1.6/celt/opus_custom_demo.c:504:13: danger: ‘fin’ leaks here; was opened at [(17)](sarif:/runs/0/results/60/codeFlows/0/threadFlows/0/locations/16)
#  502|      /* Cleanup after ourselves. */
#  503|      if (enc) opus_custom_encoder_destroy(enc);
#  504|->    if (dec) opus_custom_decoder_destroy(dec);
#  505|      if (fin) fclose(fin);
#  506|      if (fout) fclose(fout);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def50]
opus-1.6/celt/opus_custom_demo.c:504:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fin’
opus-1.6/celt/opus_custom_demo.c:137:7: branch_false: following ‘false’ branch (when ‘argc > 6’)...
opus-1.6/celt/opus_custom_demo.c:142:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:175:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:181:26: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:197:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:233:7: branch_false: following ‘false’ branch (when ‘decode_only != 0’)...
opus-1.6/celt/opus_custom_demo.c:263:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:263:7: branch_true: following ‘true’ branch (when ‘encode_only == 0’)...
opus-1.6/celt/opus_custom_demo.c:264:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:265:10: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:270:10: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:270:9: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:275:8: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:275:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:280:17: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:281:10: acquire_memory: allocated here
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: following ‘false’ branch...
opus-1.6/celt/opus_custom_demo.c:282:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:289:7: branch_true: following ‘true’ branch...
opus-1.6/celt/opus_custom_demo.c:291:7: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:503:7: branch_false: following ‘false’ branch (when ‘enc’ is NULL)...
opus-1.6/celt/opus_custom_demo.c:504:7: branch_false: ...to here
opus-1.6/celt/opus_custom_demo.c:504:7: branch_true: following ‘true’ branch (when ‘dec’ is non-NULL)...
opus-1.6/celt/opus_custom_demo.c:504:13: branch_true: ...to here
opus-1.6/celt/opus_custom_demo.c:504:13: throw: if ‘opus_custom_decoder_destroy’ throws an exception...
opus-1.6/celt/opus_custom_demo.c:504:13: danger: ‘fin’ leaks here; was allocated at [(17)](sarif:/runs/0/results/61/codeFlows/0/threadFlows/0/locations/16)
#  502|      /* Cleanup after ourselves. */
#  503|      if (enc) opus_custom_encoder_destroy(enc);
#  504|->    if (dec) opus_custom_decoder_destroy(dec);
#  505|      if (fin) fclose(fin);
#  506|      if (fout) fclose(fout);

Error: CPPCHECK_WARNING (CWE-457): [#def51]
opus-1.6/celt/rate.c:641: warning[uninitvar]: Uninitialized variable: bits1
#  639|         bits2[j] = bits2j;
#  640|      }
#  641|->    codedBands = interp_bits2pulses(m, start, end, skip_start, bits1, bits2, thresh, cap,
#  642|            total, balance, skip_rsv, intensity, intensity_rsv, dual_stereo, dual_stereo_rsv,
#  643|            pulses, ebits, fine_priority, C, LM, ec, encode, prev, signalBandwidth);

Error: CPPCHECK_WARNING (CWE-457): [#def52]
opus-1.6/celt/rate.c:641: warning[uninitvar]: Uninitialized variable: bits2
#  639|         bits2[j] = bits2j;
#  640|      }
#  641|->    codedBands = interp_bits2pulses(m, start, end, skip_start, bits1, bits2, thresh, cap,
#  642|            total, balance, skip_rsv, intensity, intensity_rsv, dual_stereo, dual_stereo_rsv,
#  643|            pulses, ebits, fine_priority, C, LM, ec, encode, prev, signalBandwidth);

Error: CPPCHECK_WARNING (CWE-476): [#def53]
opus-1.6/celt/tests/test_unit_dft.c:110: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: in
#  108|   
#  109|       for (k=0;k<nfft;++k) {
#  110|->         in[k].r = (rand() % 32767) - 16384;
#  111|           in[k].i = (rand() % 32767) - 16384;
#  112|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def54]
opus-1.6/celt/tests/test_unit_dft.c:110:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘in’
opus-1.6/celt/tests/test_unit_dft.c:145:5: enter_function: entry to ‘main’
opus-1.6/celt/tests/test_unit_dft.c:151:8: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
opus-1.6/celt/tests/test_unit_dft.c:158:9: branch_false: ...to here
opus-1.6/celt/tests/test_unit_dft.c:158:9: call_function: calling ‘test1d’ from ‘main’
#  108|   
#  109|       for (k=0;k<nfft;++k) {
#  110|->         in[k].r = (rand() % 32767) - 16384;
#  111|           in[k].i = (rand() % 32767) - 16384;
#  112|       }

Error: CPPCHECK_WARNING (CWE-476): [#def55]
opus-1.6/celt/tests/test_unit_dft.c:111: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: in
#  109|       for (k=0;k<nfft;++k) {
#  110|           in[k].r = (rand() % 32767) - 16384;
#  111|->         in[k].i = (rand() % 32767) - 16384;
#  112|       }
#  113|   

Error: CPPCHECK_WARNING (CWE-476): [#def56]
opus-1.6/celt/tests/test_unit_dft.c:115: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: in
#  113|   
#  114|       for (k=0;k<nfft;++k) {
#  115|->        in[k].r *= 32768;
#  116|          in[k].i *= 32768;
#  117|       }

Error: CPPCHECK_WARNING (CWE-476): [#def57]
opus-1.6/celt/tests/test_unit_dft.c:116: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: in
#  114|       for (k=0;k<nfft;++k) {
#  115|          in[k].r *= 32768;
#  116|->        in[k].i *= 32768;
#  117|       }
#  118|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def58]
opus-1.6/celt/tests/test_unit_dft.c:132:8: warning[-Wanalyzer-malloc-leak]: leak of ‘in’
opus-1.6/celt/tests/test_unit_dft.c:145:5: enter_function: entry to ‘main’
opus-1.6/celt/tests/test_unit_dft.c:151:8: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
opus-1.6/celt/tests/test_unit_dft.c:158:9: branch_false: ...to here
opus-1.6/celt/tests/test_unit_dft.c:158:9: call_function: calling ‘test1d’ from ‘main’
#  130|          opus_ifft(cfg,in,out, arch);
#  131|       else
#  132|->        opus_fft(cfg,in,out, arch);
#  133|   
#  134|       /*for (k=0;k<nfft;++k) printf("%d %d ", out[k].r, out[k].i);printf("\n");*/

Error: GCC_ANALYZER_WARNING (CWE-401): [#def59]
opus-1.6/celt/tests/test_unit_dft.c:132:8: warning[-Wanalyzer-malloc-leak]: leak of ‘out’
opus-1.6/celt/tests/test_unit_dft.c:145:5: enter_function: entry to ‘main’
opus-1.6/celt/tests/test_unit_dft.c:151:8: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
opus-1.6/celt/tests/test_unit_dft.c:158:9: branch_false: ...to here
opus-1.6/celt/tests/test_unit_dft.c:158:9: call_function: calling ‘test1d’ from ‘main’
#  130|          opus_ifft(cfg,in,out, arch);
#  131|       else
#  132|->        opus_fft(cfg,in,out, arch);
#  133|   
#  134|       /*for (k=0;k<nfft;++k) printf("%d %d ", out[k].r, out[k].i);printf("\n");*/

Error: CPPCHECK_WARNING (CWE-476): [#def60]
opus-1.6/celt/tests/test_unit_entropy.c:181: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tell
#  179|       ec_enc_init(&enc,ptr,DATA_SIZE2);
#  180|       zeros = rand()%13==0;
#  181|->     tell[0]=ec_tell_frac(&enc);
#  182|       for(j=0;j<sz;j++){
#  183|         if (zeros)

Error: CPPCHECK_WARNING (CWE-476): [#def61]
opus-1.6/celt/tests/test_unit_entropy.c:187: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
#  185|         else
#  186|           data[j]=rand()%ft;
#  187|->       ec_enc_uint(&enc,data[j],ft);
#  188|         tell[j+1]=ec_tell_frac(&enc);
#  189|       }

Error: CPPCHECK_WARNING (CWE-476): [#def62]
opus-1.6/celt/tests/test_unit_entropy.c:188: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tell
#  186|           data[j]=rand()%ft;
#  187|         ec_enc_uint(&enc,data[j],ft);
#  188|->       tell[j+1]=ec_tell_frac(&enc);
#  189|       }
#  190|       if (rand()%2==0)

Error: CPPCHECK_WARNING (CWE-476): [#def63]
opus-1.6/celt/tests/test_unit_entropy.c:242: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tell
#  240|       enc_method=(unsigned *)malloc(sz*sizeof(*enc_method));
#  241|       ec_enc_init(&enc,ptr,DATA_SIZE2);
#  242|->     tell[0]=ec_tell_frac(&enc);
#  243|       for(j=0;j<sz;j++){
#  244|         data[j]=rand()/((RAND_MAX>>1)+1);

Error: CPPCHECK_WARNING (CWE-476): [#def64]
opus-1.6/celt/tests/test_unit_entropy.c:244: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
#  242|       tell[0]=ec_tell_frac(&enc);
#  243|       for(j=0;j<sz;j++){
#  244|->       data[j]=rand()/((RAND_MAX>>1)+1);
#  245|         logp1[j]=(rand()%15)+1;
#  246|         enc_method[j]=rand()/((RAND_MAX>>2)+1);

Error: CPPCHECK_WARNING (CWE-476): [#def65]
opus-1.6/celt/tests/test_unit_entropy.c:245: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: logp1
#  243|       for(j=0;j<sz;j++){
#  244|         data[j]=rand()/((RAND_MAX>>1)+1);
#  245|->       logp1[j]=(rand()%15)+1;
#  246|         enc_method[j]=rand()/((RAND_MAX>>2)+1);
#  247|         switch(enc_method[j]){

Error: CPPCHECK_WARNING (CWE-476): [#def66]
opus-1.6/celt/tests/test_unit_entropy.c:246: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: enc_method
#  244|         data[j]=rand()/((RAND_MAX>>1)+1);
#  245|         logp1[j]=(rand()%15)+1;
#  246|->       enc_method[j]=rand()/((RAND_MAX>>2)+1);
#  247|         switch(enc_method[j]){
#  248|           case 0:{

Error: CPPCHECK_WARNING (CWE-476): [#def67]
opus-1.6/celt/tests/test_unit_entropy.c:247: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: enc_method
#  245|         logp1[j]=(rand()%15)+1;
#  246|         enc_method[j]=rand()/((RAND_MAX>>2)+1);
#  247|->       switch(enc_method[j]){
#  248|           case 0:{
#  249|             ec_encode(&enc,data[j]?(1<<logp1[j])-1:0,

Error: COMPILER_WARNING (CWE-457): [#def68]
opus-1.6/celt/tests/test_unit_mdct.c: scope_hint: In function 'test1d.isra'
opus-1.6/celt/tests/test_unit_mdct.c:118:17: warning[-Wmaybe-uninitialized]: '_cfg.trig' may be used uninitialized
#  118 |     mdct_lookup _cfg;
#      |                 ^
#  116|       int shift = 0;
#  117|       const mdct_lookup *cfg;
#  118|->     mdct_lookup _cfg;
#  119|       clt_mdct_init(&_cfg, nfft, 0, arch);
#  120|       cfg = &_cfg;

Error: CPPCHECK_WARNING (CWE-476): [#def69]
opus-1.6/celt/tests/test_unit_mdct.c:139: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: in
#  137|   
#  138|       for (k=0;k<nfft;++k) {
#  139|->         in[k] = (rand() % 32768) - 16384;
#  140|       }
#  141|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def70]
opus-1.6/celt/tests/test_unit_mdct.c:139:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘in’
opus-1.6/celt/tests/test_unit_mdct.c:189:5: enter_function: entry to ‘main’
opus-1.6/celt/tests/test_unit_mdct.c:195:8: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
opus-1.6/celt/tests/test_unit_mdct.c:202:9: branch_false: ...to here
opus-1.6/celt/tests/test_unit_mdct.c:202:9: call_function: calling ‘test1d’ from ‘main’
#  137|   
#  138|       for (k=0;k<nfft;++k) {
#  139|->         in[k] = (rand() % 32768) - 16384;
#  140|       }
#  141|   

Error: CPPCHECK_WARNING (CWE-476): [#def71]
opus-1.6/celt/tests/test_unit_mdct.c:146: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: window
#  144|          window[k] = Q31ONE;
#  145|   #else
#  146|->        window[k] = Q15ONE;
#  147|   #endif
#  148|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def72]
opus-1.6/celt/tests/test_unit_mdct.c:146:8: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘window’
opus-1.6/celt/tests/test_unit_mdct.c:189:5: enter_function: entry to ‘main’
opus-1.6/celt/tests/test_unit_mdct.c:195:8: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
opus-1.6/celt/tests/test_unit_mdct.c:202:9: branch_false: ...to here
opus-1.6/celt/tests/test_unit_mdct.c:202:9: call_function: calling ‘test1d’ from ‘main’
#  144|          window[k] = Q31ONE;
#  145|   #else
#  146|->        window[k] = Q15ONE;
#  147|   #endif
#  148|       }

Error: CPPCHECK_WARNING (CWE-476): [#def73]
opus-1.6/celt/tests/test_unit_mdct.c:150: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: in
#  148|       }
#  149|       for (k=0;k<nfft;++k) {
#  150|->        in[k] *= 32768;
#  151|       }
#  152|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def74]
opus-1.6/celt/tests/test_unit_mdct.c:161:8: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘in_copy’
opus-1.6/celt/tests/test_unit_mdct.c:189:5: enter_function: entry to ‘main’
opus-1.6/celt/tests/test_unit_mdct.c:195:8: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
opus-1.6/celt/tests/test_unit_mdct.c:202:9: branch_false: ...to here
opus-1.6/celt/tests/test_unit_mdct.c:202:9: call_function: calling ‘test1d’ from ‘main’
#  159|   
#  160|       for (k=0;k<nfft;++k)
#  161|->        in_copy[k] = in[k];
#  162|       /*for (k=0;k<nfft;++k) printf("%d %d ", in[k].r, in[k].i);printf("\n");*/
#  163|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def75]
opus-1.6/celt/tests/test_unit_mdct.c:174:8: warning[-Wanalyzer-malloc-leak]: leak of ‘in_copy’
opus-1.6/celt/tests/test_unit_mdct.c:189:5: enter_function: entry to ‘main’
opus-1.6/celt/tests/test_unit_mdct.c:195:8: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
opus-1.6/celt/tests/test_unit_mdct.c:202:9: branch_false: ...to here
opus-1.6/celt/tests/test_unit_mdct.c:202:9: call_function: calling ‘test1d’ from ‘main’
#  172|          check_inv(in,out,nfft,isinverse);
#  173|       } else {
#  174|->        clt_mdct_forward(cfg,in,out,window, nfft/2, shift, 1, arch);
#  175|          check(in_copy,out,nfft,isinverse);
#  176|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def76]
opus-1.6/celt/tests/test_unit_mdct.c:174:8: warning[-Wanalyzer-malloc-leak]: leak of ‘in’
opus-1.6/celt/tests/test_unit_mdct.c:189:5: enter_function: entry to ‘main’
opus-1.6/celt/tests/test_unit_mdct.c:195:8: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
opus-1.6/celt/tests/test_unit_mdct.c:202:9: branch_false: ...to here
opus-1.6/celt/tests/test_unit_mdct.c:202:9: call_function: calling ‘test1d’ from ‘main’
#  172|          check_inv(in,out,nfft,isinverse);
#  173|       } else {
#  174|->        clt_mdct_forward(cfg,in,out,window, nfft/2, shift, 1, arch);
#  175|          check(in_copy,out,nfft,isinverse);
#  176|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def77]
opus-1.6/celt/tests/test_unit_mdct.c:174:8: warning[-Wanalyzer-malloc-leak]: leak of ‘out’
opus-1.6/celt/tests/test_unit_mdct.c:189:5: enter_function: entry to ‘main’
opus-1.6/celt/tests/test_unit_mdct.c:195:8: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
opus-1.6/celt/tests/test_unit_mdct.c:202:9: branch_false: ...to here
opus-1.6/celt/tests/test_unit_mdct.c:202:9: call_function: calling ‘test1d’ from ‘main’
#  172|          check_inv(in,out,nfft,isinverse);
#  173|       } else {
#  174|->        clt_mdct_forward(cfg,in,out,window, nfft/2, shift, 1, arch);
#  175|          check(in_copy,out,nfft,isinverse);
#  176|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def78]
opus-1.6/celt/tests/test_unit_mdct.c:174:8: warning[-Wanalyzer-malloc-leak]: leak of ‘window’
opus-1.6/celt/tests/test_unit_mdct.c:189:5: enter_function: entry to ‘main’
opus-1.6/celt/tests/test_unit_mdct.c:195:8: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
opus-1.6/celt/tests/test_unit_mdct.c:202:9: branch_false: ...to here
opus-1.6/celt/tests/test_unit_mdct.c:202:9: call_function: calling ‘test1d’ from ‘main’
#  172|          check_inv(in,out,nfft,isinverse);
#  173|       } else {
#  174|->        clt_mdct_forward(cfg,in,out,window, nfft/2, shift, 1, arch);
#  175|          check(in_copy,out,nfft,isinverse);
#  176|       }

Error: CPPCHECK_WARNING (CWE-476): [#def79]
opus-1.6/celt/tests/test_unit_mini_kfft.c:98: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: in
#   96|   
#   97|       for (k=0;k<nfft;++k) {
#   98|->         in[k].r = (rand() % 32767) - 16384;
#   99|           in[k].i = (rand() % 32767) - 16384;
#  100|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def80]
opus-1.6/celt/tests/test_unit_mini_kfft.c:98:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘in’
opus-1.6/celt/tests/test_unit_mini_kfft.c:83:6: enter_function: entry to ‘test1d’
opus-1.6/celt/tests/test_unit_mini_kfft.c:91:11: call_function: calling ‘mini_kiss_fft_alloc’ from ‘test1d’
opus-1.6/celt/tests/test_unit_mini_kfft.c:91:11: return_function: returning to ‘test1d’ from ‘mini_kiss_fft_alloc’
opus-1.6/celt/tests/test_unit_mini_kfft.c:92:12: call_function: calling ‘mini_kiss_fft_alloc’ from ‘test1d’
opus-1.6/celt/tests/test_unit_mini_kfft.c:92:12: return_function: returning to ‘test1d’ from ‘mini_kiss_fft_alloc’
opus-1.6/celt/tests/test_unit_mini_kfft.c:94:30: acquire_memory: this call could return NULL
opus-1.6/celt/tests/test_unit_mini_kfft.c:97:14: branch_true: following ‘true’ branch (when ‘k < nfft’)...
opus-1.6/celt/tests/test_unit_mini_kfft.c:98:20: branch_true: ...to here
opus-1.6/celt/tests/test_unit_mini_kfft.c:98:9: danger: ‘in + (long unsigned int)k * 8’ could be NULL: unchecked value from [(16)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/15)
#   96|   
#   97|       for (k=0;k<nfft;++k) {
#   98|->         in[k].r = (rand() % 32767) - 16384;
#   99|           in[k].i = (rand() % 32767) - 16384;
#  100|       }

Error: CPPCHECK_WARNING (CWE-476): [#def81]
opus-1.6/celt/tests/test_unit_mini_kfft.c:99: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: in
#   97|       for (k=0;k<nfft;++k) {
#   98|           in[k].r = (rand() % 32767) - 16384;
#   99|->         in[k].i = (rand() % 32767) - 16384;
#  100|       }
#  101|   

Error: CPPCHECK_WARNING (CWE-476): [#def82]
opus-1.6/celt/tests/test_unit_mini_kfft.c:103: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: in
#  101|   
#  102|       for (k=0;k<nfft;++k) {
#  103|->        in[k].r *= 32768;
#  104|          in[k].i *= 32768;
#  105|       }

Error: CPPCHECK_WARNING (CWE-476): [#def83]
opus-1.6/celt/tests/test_unit_mini_kfft.c:104: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: in
#  102|       for (k=0;k<nfft;++k) {
#  103|          in[k].r *= 32768;
#  104|->        in[k].i *= 32768;
#  105|       }
#  106|   

Error: CPPCHECK_WARNING (CWE-476): [#def84]
opus-1.6/celt/tests/test_unit_mini_kfft.c:110: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: in
#  108|       {
#  109|          for (k=0;k<nfft;++k) {
#  110|->           in[k].r /= nfft;
#  111|             in[k].i /= nfft;
#  112|          }

Error: CPPCHECK_WARNING (CWE-476): [#def85]
opus-1.6/celt/tests/test_unit_mini_kfft.c:111: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: in
#  109|          for (k=0;k<nfft;++k) {
#  110|             in[k].r /= nfft;
#  111|->           in[k].i /= nfft;
#  112|          }
#  113|       }

Error: COMPILER_WARNING: [#def86]
opus-1.6/celt/x86/pitch_avx.c:42:61: warning[-Wpsabi]: AVX vector return without AVX enabled changes the ABI
#   40|   {
#   41|       __m256 xsum0, xsum1, xsum2, xsum3, xsum4, xsum5, xsum6, xsum7;
#   42|->     xsum7 = xsum6 = xsum5 = xsum4 = xsum3 = xsum2 = xsum1 = xsum0 = _mm256_setzero_ps();
#   43|       int i;
#   44|       __m256 x0;

Error: COMPILER_WARNING: [#def87]
opus-1.6/celt/x86/pitch_avx.c:42:69: note[note]: called from here
#   40|   {
#   41|       __m256 xsum0, xsum1, xsum2, xsum3, xsum4, xsum5, xsum6, xsum7;
#   42|->     xsum7 = xsum6 = xsum5 = xsum4 = xsum3 = xsum2 = xsum1 = xsum0 = _mm256_setzero_ps();
#   43|       int i;
#   44|       __m256 x0;

Error: COMPILER_WARNING: [#def88]
opus-1.6/celt/x86/pitch_avx.c:48:14: note[note]: called from here
#   46|       for (i=0;i<len-7;i+=8)
#   47|       {
#   48|->         x0 = _mm256_loadu_ps(x+i);
#   49|           xsum0 = _mm256_fmadd_ps(x0, _mm256_loadu_ps(y+i  ), xsum0);
#   50|           xsum1 = _mm256_fmadd_ps(x0, _mm256_loadu_ps(y+i+1), xsum1);

Error: COMPILER_WARNING: [#def89]
opus-1.6/celt/x86/pitch_avx.c:49:17: note[note]: called from here
#   47|       {
#   48|           x0 = _mm256_loadu_ps(x+i);
#   49|->         xsum0 = _mm256_fmadd_ps(x0, _mm256_loadu_ps(y+i  ), xsum0);
#   50|           xsum1 = _mm256_fmadd_ps(x0, _mm256_loadu_ps(y+i+1), xsum1);
#   51|           xsum2 = _mm256_fmadd_ps(x0, _mm256_loadu_ps(y+i+2), xsum2);

Error: COMPILER_WARNING: [#def90]
opus-1.6/celt/x86/pitch_avx.c:50:17: note[note]: called from here
#   48|           x0 = _mm256_loadu_ps(x+i);
#   49|           xsum0 = _mm256_fmadd_ps(x0, _mm256_loadu_ps(y+i  ), xsum0);
#   50|->         xsum1 = _mm256_fmadd_ps(x0, _mm256_loadu_ps(y+i+1), xsum1);
#   51|           xsum2 = _mm256_fmadd_ps(x0, _mm256_loadu_ps(y+i+2), xsum2);
#   52|           xsum3 = _mm256_fmadd_ps(x0, _mm256_loadu_ps(y+i+3), xsum3);

Error: COMPILER_WARNING: [#def91]
opus-1.6/celt/x86/pitch_avx.c:51:17: note[note]: called from here
#   49|           xsum0 = _mm256_fmadd_ps(x0, _mm256_loadu_ps(y+i  ), xsum0);
#   50|           xsum1 = _mm256_fmadd_ps(x0, _mm256_loadu_ps(y+i+1), xsum1);
#   51|->         xsum2 = _mm256_fmadd_ps(x0, _mm256_loadu_ps(y+i+2), xsum2);
#   52|           xsum3 = _mm256_fmadd_ps(x0, _mm256_loadu_ps(y+i+3), xsum3);
#   53|           xsum4 = _mm256_fmadd_ps(x0, _mm256_loadu_ps(y+i+4), xsum4);

Error: COMPILER_WARNING: [#def92]
opus-1.6/celt/x86/pitch_avx.c:52:17: note[note]: called from here
#   50|           xsum1 = _mm256_fmadd_ps(x0, _mm256_loadu_ps(y+i+1), xsum1);
#   51|           xsum2 = _mm256_fmadd_ps(x0, _mm256_loadu_ps(y+i+2), xsum2);
#   52|->         xsum3 = _mm256_fmadd_ps(x0, _mm256_loadu_ps(y+i+3), xsum3);
#   53|           xsum4 = _mm256_fmadd_ps(x0, _mm256_loadu_ps(y+i+4), xsum4);
#   54|           xsum5 = _mm256_fmadd_ps(x0, _mm256_loadu_ps(y+i+5), xsum5);

Error: COMPILER_WARNING: [#def93]
opus-1.6/celt/x86/pitch_avx.c:53:17: note[note]: called from here
#   51|           xsum2 = _mm256_fmadd_ps(x0, _mm256_loadu_ps(y+i+2), xsum2);
#   52|           xsum3 = _mm256_fmadd_ps(x0, _mm256_loadu_ps(y+i+3), xsum3);
#   53|->         xsum4 = _mm256_fmadd_ps(x0, _mm256_loadu_ps(y+i+4), xsum4);
#   54|           xsum5 = _mm256_fmadd_ps(x0, _mm256_loadu_ps(y+i+5), xsum5);
#   55|           xsum6 = _mm256_fmadd_ps(x0, _mm256_loadu_ps(y+i+6), xsum6);

Error: COMPILER_WARNING: [#def94]
opus-1.6/celt/x86/pitch_avx.c:54:17: note[note]: called from here
#   52|           xsum3 = _mm256_fmadd_ps(x0, _mm256_loadu_ps(y+i+3), xsum3);
#   53|           xsum4 = _mm256_fmadd_ps(x0, _mm256_loadu_ps(y+i+4), xsum4);
#   54|->         xsum5 = _mm256_fmadd_ps(x0, _mm256_loadu_ps(y+i+5), xsum5);
#   55|           xsum6 = _mm256_fmadd_ps(x0, _mm256_loadu_ps(y+i+6), xsum6);
#   56|           xsum7 = _mm256_fmadd_ps(x0, _mm256_loadu_ps(y+i+7), xsum7);

Error: COMPILER_WARNING: [#def95]
opus-1.6/celt/x86/pitch_avx.c:55:17: note[note]: called from here
#   53|           xsum4 = _mm256_fmadd_ps(x0, _mm256_loadu_ps(y+i+4), xsum4);
#   54|           xsum5 = _mm256_fmadd_ps(x0, _mm256_loadu_ps(y+i+5), xsum5);
#   55|->         xsum6 = _mm256_fmadd_ps(x0, _mm256_loadu_ps(y+i+6), xsum6);
#   56|           xsum7 = _mm256_fmadd_ps(x0, _mm256_loadu_ps(y+i+7), xsum7);
#   57|       }

Error: COMPILER_WARNING: [#def96]
opus-1.6/celt/x86/pitch_avx.c:56:17: note[note]: called from here
#   54|           xsum5 = _mm256_fmadd_ps(x0, _mm256_loadu_ps(y+i+5), xsum5);
#   55|           xsum6 = _mm256_fmadd_ps(x0, _mm256_loadu_ps(y+i+6), xsum6);
#   56|->         xsum7 = _mm256_fmadd_ps(x0, _mm256_loadu_ps(y+i+7), xsum7);
#   57|       }
#   58|       if (i != len) {

Error: COMPILER_WARNING: [#def97]
opus-1.6/celt/x86/pitch_avx.c:61:13: note[note]: called from here
#   59|           static const int mask[15] = {-1, -1, -1, -1, -1, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0};
#   60|           __m256i m;
#   61|->         m = _mm256_loadu_si256((__m256i*)(void*)(mask + 7+i-len));
#   62|           x0 = _mm256_maskload_ps(x+i, m);
#   63|           xsum0 = _mm256_fmadd_ps(x0, _mm256_maskload_ps(y+i  , m), xsum0);

Error: COMPILER_WARNING: [#def98]
opus-1.6/celt/x86/pitch_avx.c:62:14: note[note]: called from here
#   60|           __m256i m;
#   61|           m = _mm256_loadu_si256((__m256i*)(void*)(mask + 7+i-len));
#   62|->         x0 = _mm256_maskload_ps(x+i, m);
#   63|           xsum0 = _mm256_fmadd_ps(x0, _mm256_maskload_ps(y+i  , m), xsum0);
#   64|           xsum1 = _mm256_fmadd_ps(x0, _mm256_maskload_ps(y+i+1, m), xsum1);

Error: COMPILER_WARNING: [#def99]
opus-1.6/celt/x86/pitch_avx.c:63:17: note[note]: called from here
#   61|           m = _mm256_loadu_si256((__m256i*)(void*)(mask + 7+i-len));
#   62|           x0 = _mm256_maskload_ps(x+i, m);
#   63|->         xsum0 = _mm256_fmadd_ps(x0, _mm256_maskload_ps(y+i  , m), xsum0);
#   64|           xsum1 = _mm256_fmadd_ps(x0, _mm256_maskload_ps(y+i+1, m), xsum1);
#   65|           xsum2 = _mm256_fmadd_ps(x0, _mm256_maskload_ps(y+i+2, m), xsum2);

Error: COMPILER_WARNING: [#def100]
opus-1.6/celt/x86/pitch_avx.c:64:17: note[note]: called from here
#   62|           x0 = _mm256_maskload_ps(x+i, m);
#   63|           xsum0 = _mm256_fmadd_ps(x0, _mm256_maskload_ps(y+i  , m), xsum0);
#   64|->         xsum1 = _mm256_fmadd_ps(x0, _mm256_maskload_ps(y+i+1, m), xsum1);
#   65|           xsum2 = _mm256_fmadd_ps(x0, _mm256_maskload_ps(y+i+2, m), xsum2);
#   66|           xsum3 = _mm256_fmadd_ps(x0, _mm256_maskload_ps(y+i+3, m), xsum3);

Error: COMPILER_WARNING: [#def101]
opus-1.6/celt/x86/pitch_avx.c:65:17: note[note]: called from here
#   63|           xsum0 = _mm256_fmadd_ps(x0, _mm256_maskload_ps(y+i  , m), xsum0);
#   64|           xsum1 = _mm256_fmadd_ps(x0, _mm256_maskload_ps(y+i+1, m), xsum1);
#   65|->         xsum2 = _mm256_fmadd_ps(x0, _mm256_maskload_ps(y+i+2, m), xsum2);
#   66|           xsum3 = _mm256_fmadd_ps(x0, _mm256_maskload_ps(y+i+3, m), xsum3);
#   67|           xsum4 = _mm256_fmadd_ps(x0, _mm256_maskload_ps(y+i+4, m), xsum4);

Error: COMPILER_WARNING: [#def102]
opus-1.6/celt/x86/pitch_avx.c:66:17: note[note]: called from here
#   64|           xsum1 = _mm256_fmadd_ps(x0, _mm256_maskload_ps(y+i+1, m), xsum1);
#   65|           xsum2 = _mm256_fmadd_ps(x0, _mm256_maskload_ps(y+i+2, m), xsum2);
#   66|->         xsum3 = _mm256_fmadd_ps(x0, _mm256_maskload_ps(y+i+3, m), xsum3);
#   67|           xsum4 = _mm256_fmadd_ps(x0, _mm256_maskload_ps(y+i+4, m), xsum4);
#   68|           xsum5 = _mm256_fmadd_ps(x0, _mm256_maskload_ps(y+i+5, m), xsum5);

Error: COMPILER_WARNING: [#def103]
opus-1.6/celt/x86/pitch_avx.c:67:17: note[note]: called from here
#   65|           xsum2 = _mm256_fmadd_ps(x0, _mm256_maskload_ps(y+i+2, m), xsum2);
#   66|           xsum3 = _mm256_fmadd_ps(x0, _mm256_maskload_ps(y+i+3, m), xsum3);
#   67|->         xsum4 = _mm256_fmadd_ps(x0, _mm256_maskload_ps(y+i+4, m), xsum4);
#   68|           xsum5 = _mm256_fmadd_ps(x0, _mm256_maskload_ps(y+i+5, m), xsum5);
#   69|           xsum6 = _mm256_fmadd_ps(x0, _mm256_maskload_ps(y+i+6, m), xsum6);

Error: COMPILER_WARNING: [#def104]
opus-1.6/celt/x86/pitch_avx.c:68:17: note[note]: called from here
#   66|           xsum3 = _mm256_fmadd_ps(x0, _mm256_maskload_ps(y+i+3, m), xsum3);
#   67|           xsum4 = _mm256_fmadd_ps(x0, _mm256_maskload_ps(y+i+4, m), xsum4);
#   68|->         xsum5 = _mm256_fmadd_ps(x0, _mm256_maskload_ps(y+i+5, m), xsum5);
#   69|           xsum6 = _mm256_fmadd_ps(x0, _mm256_maskload_ps(y+i+6, m), xsum6);
#   70|           xsum7 = _mm256_fmadd_ps(x0, _mm256_maskload_ps(y+i+7, m), xsum7);

Error: COMPILER_WARNING: [#def105]
opus-1.6/celt/x86/pitch_avx.c:69:17: note[note]: called from here
#   67|           xsum4 = _mm256_fmadd_ps(x0, _mm256_maskload_ps(y+i+4, m), xsum4);
#   68|           xsum5 = _mm256_fmadd_ps(x0, _mm256_maskload_ps(y+i+5, m), xsum5);
#   69|->         xsum6 = _mm256_fmadd_ps(x0, _mm256_maskload_ps(y+i+6, m), xsum6);
#   70|           xsum7 = _mm256_fmadd_ps(x0, _mm256_maskload_ps(y+i+7, m), xsum7);
#   71|       }

Error: COMPILER_WARNING: [#def106]
opus-1.6/celt/x86/pitch_avx.c:70:17: note[note]: called from here
#   68|           xsum5 = _mm256_fmadd_ps(x0, _mm256_maskload_ps(y+i+5, m), xsum5);
#   69|           xsum6 = _mm256_fmadd_ps(x0, _mm256_maskload_ps(y+i+6, m), xsum6);
#   70|->         xsum7 = _mm256_fmadd_ps(x0, _mm256_maskload_ps(y+i+7, m), xsum7);
#   71|       }
#   72|       /* 8 horizontal adds. */

Error: COMPILER_WARNING: [#def107]
opus-1.6/celt/x86/pitch_avx.c:74:13: note[note]: called from here
#   72|       /* 8 horizontal adds. */
#   73|       /* Compute [0 4] [1 5] [2 6] [3 7] */
#   74|->     xsum0 = _mm256_add_ps(_mm256_permute2f128_ps(xsum0, xsum4, 2<<4), _mm256_permute2f128_ps(xsum0, xsum4, 1 | (3<<4)));
#   75|       xsum1 = _mm256_add_ps(_mm256_permute2f128_ps(xsum1, xsum5, 2<<4), _mm256_permute2f128_ps(xsum1, xsum5, 1 | (3<<4)));
#   76|       xsum2 = _mm256_add_ps(_mm256_permute2f128_ps(xsum2, xsum6, 2<<4), _mm256_permute2f128_ps(xsum2, xsum6, 1 | (3<<4)));

Error: COMPILER_WARNING: [#def108]
opus-1.6/celt/x86/pitch_avx.c:75:13: note[note]: called from here
#   73|       /* Compute [0 4] [1 5] [2 6] [3 7] */
#   74|       xsum0 = _mm256_add_ps(_mm256_permute2f128_ps(xsum0, xsum4, 2<<4), _mm256_permute2f128_ps(xsum0, xsum4, 1 | (3<<4)));
#   75|->     xsum1 = _mm256_add_ps(_mm256_permute2f128_ps(xsum1, xsum5, 2<<4), _mm256_permute2f128_ps(xsum1, xsum5, 1 | (3<<4)));
#   76|       xsum2 = _mm256_add_ps(_mm256_permute2f128_ps(xsum2, xsum6, 2<<4), _mm256_permute2f128_ps(xsum2, xsum6, 1 | (3<<4)));
#   77|       xsum3 = _mm256_add_ps(_mm256_permute2f128_ps(xsum3, xsum7, 2<<4), _mm256_permute2f128_ps(xsum3, xsum7, 1 | (3<<4)));

Error: COMPILER_WARNING: [#def109]
opus-1.6/celt/x86/pitch_avx.c:76:13: note[note]: called from here
#   74|       xsum0 = _mm256_add_ps(_mm256_permute2f128_ps(xsum0, xsum4, 2<<4), _mm256_permute2f128_ps(xsum0, xsum4, 1 | (3<<4)));
#   75|       xsum1 = _mm256_add_ps(_mm256_permute2f128_ps(xsum1, xsum5, 2<<4), _mm256_permute2f128_ps(xsum1, xsum5, 1 | (3<<4)));
#   76|->     xsum2 = _mm256_add_ps(_mm256_permute2f128_ps(xsum2, xsum6, 2<<4), _mm256_permute2f128_ps(xsum2, xsum6, 1 | (3<<4)));
#   77|       xsum3 = _mm256_add_ps(_mm256_permute2f128_ps(xsum3, xsum7, 2<<4), _mm256_permute2f128_ps(xsum3, xsum7, 1 | (3<<4)));
#   78|       /* Compute [0 1 4 5] [2 3 6 7] */

Error: COMPILER_WARNING: [#def110]
opus-1.6/celt/x86/pitch_avx.c:77:13: note[note]: called from here
#   75|       xsum1 = _mm256_add_ps(_mm256_permute2f128_ps(xsum1, xsum5, 2<<4), _mm256_permute2f128_ps(xsum1, xsum5, 1 | (3<<4)));
#   76|       xsum2 = _mm256_add_ps(_mm256_permute2f128_ps(xsum2, xsum6, 2<<4), _mm256_permute2f128_ps(xsum2, xsum6, 1 | (3<<4)));
#   77|->     xsum3 = _mm256_add_ps(_mm256_permute2f128_ps(xsum3, xsum7, 2<<4), _mm256_permute2f128_ps(xsum3, xsum7, 1 | (3<<4)));
#   78|       /* Compute [0 1 4 5] [2 3 6 7] */
#   79|       xsum0 = _mm256_hadd_ps(xsum0, xsum1);

Error: COMPILER_WARNING: [#def111]
opus-1.6/celt/x86/pitch_avx.c:79:13: note[note]: called from here
#   77|       xsum3 = _mm256_add_ps(_mm256_permute2f128_ps(xsum3, xsum7, 2<<4), _mm256_permute2f128_ps(xsum3, xsum7, 1 | (3<<4)));
#   78|       /* Compute [0 1 4 5] [2 3 6 7] */
#   79|->     xsum0 = _mm256_hadd_ps(xsum0, xsum1);
#   80|       xsum1 = _mm256_hadd_ps(xsum2, xsum3);
#   81|       /* Compute [0 1 2 3 4 5 6 7] */

Error: COMPILER_WARNING: [#def112]
opus-1.6/celt/x86/pitch_avx.c:80:13: note[note]: called from here
#   78|       /* Compute [0 1 4 5] [2 3 6 7] */
#   79|       xsum0 = _mm256_hadd_ps(xsum0, xsum1);
#   80|->     xsum1 = _mm256_hadd_ps(xsum2, xsum3);
#   81|       /* Compute [0 1 2 3 4 5 6 7] */
#   82|       xsum0 = _mm256_hadd_ps(xsum0, xsum1);

Error: COMPILER_WARNING: [#def113]
opus-1.6/celt/x86/pitch_avx.c:82:13: note[note]: called from here
#   80|       xsum1 = _mm256_hadd_ps(xsum2, xsum3);
#   81|       /* Compute [0 1 2 3 4 5 6 7] */
#   82|->     xsum0 = _mm256_hadd_ps(xsum0, xsum1);
#   83|       _mm256_storeu_ps(sum, xsum0);
#   84|   }

Error: COMPILER_WARNING: [#def114]
opus-1.6/celt/x86/pitch_avx.c:83:5: note[note]: called from here
#   81|       /* Compute [0 1 2 3 4 5 6 7] */
#   82|       xsum0 = _mm256_hadd_ps(xsum0, xsum1);
#   83|->     _mm256_storeu_ps(sum, xsum0);
#   84|   }
#   85|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def115]
opus-1.6/doc/trivial_example.c:97:14: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(inFile, "rb")’
opus-1.6/doc/trivial_example.c:63:7: branch_false: following ‘false’ branch (when ‘argc == 3’)...
opus-1.6/doc/trivial_example.c:71:14: branch_false: ...to here
opus-1.6/doc/trivial_example.c:72:7: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:81:10: branch_false: ...to here
opus-1.6/doc/trivial_example.c:82:7: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:87:4: branch_false: ...to here
opus-1.6/doc/trivial_example.c:88:10: acquire_resource: opened here
opus-1.6/doc/trivial_example.c:89:7: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:97:14: branch_false: ...to here
opus-1.6/doc/trivial_example.c:97:14: throw: if ‘opus_decoder_create’ throws an exception...
opus-1.6/doc/trivial_example.c:97:14: danger: ‘fopen(inFile, "rb")’ leaks here; was opened at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#   95|   
#   96|      /* Create a new decoder state. */
#   97|->    decoder = opus_decoder_create(SAMPLE_RATE, CHANNELS, &err);
#   98|      if (err<0)
#   99|      {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def116]
opus-1.6/doc/trivial_example.c:97:14: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(inFile, "rb")’
opus-1.6/doc/trivial_example.c:63:7: branch_false: following ‘false’ branch (when ‘argc == 3’)...
opus-1.6/doc/trivial_example.c:71:14: branch_false: ...to here
opus-1.6/doc/trivial_example.c:72:7: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:81:10: branch_false: ...to here
opus-1.6/doc/trivial_example.c:82:7: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:87:4: branch_false: ...to here
opus-1.6/doc/trivial_example.c:88:10: acquire_memory: allocated here
opus-1.6/doc/trivial_example.c:89:7: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:97:14: branch_false: ...to here
opus-1.6/doc/trivial_example.c:97:14: throw: if ‘opus_decoder_create’ throws an exception...
opus-1.6/doc/trivial_example.c:97:14: danger: ‘fopen(inFile, "rb")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
#   95|   
#   96|      /* Create a new decoder state. */
#   97|->    decoder = opus_decoder_create(SAMPLE_RATE, CHANNELS, &err);
#   98|      if (err<0)
#   99|      {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def117]
opus-1.6/doc/trivial_example.c:98:8: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(inFile, "rb")’
opus-1.6/doc/trivial_example.c:63:7: branch_false: following ‘false’ branch (when ‘argc == 3’)...
opus-1.6/doc/trivial_example.c:71:14: branch_false: ...to here
opus-1.6/doc/trivial_example.c:72:7: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:81:10: branch_false: ...to here
opus-1.6/doc/trivial_example.c:82:7: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:87:4: branch_false: ...to here
opus-1.6/doc/trivial_example.c:88:10: acquire_resource: opened here
opus-1.6/doc/trivial_example.c:89:7: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:97:14: branch_false: ...to here
opus-1.6/doc/trivial_example.c:98:8: danger: ‘fopen(inFile, "rb")’ leaks here; was opened at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
#   96|      /* Create a new decoder state. */
#   97|      decoder = opus_decoder_create(SAMPLE_RATE, CHANNELS, &err);
#   98|->    if (err<0)
#   99|      {
#  100|         fprintf(stderr, "failed to create decoder: %s\n", opus_strerror(err));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def118]
opus-1.6/doc/trivial_example.c:98:8: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(inFile, "rb")’
opus-1.6/doc/trivial_example.c:63:7: branch_false: following ‘false’ branch (when ‘argc == 3’)...
opus-1.6/doc/trivial_example.c:71:14: branch_false: ...to here
opus-1.6/doc/trivial_example.c:72:7: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:81:10: branch_false: ...to here
opus-1.6/doc/trivial_example.c:82:7: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:87:4: branch_false: ...to here
opus-1.6/doc/trivial_example.c:88:10: acquire_memory: allocated here
opus-1.6/doc/trivial_example.c:89:7: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:97:14: branch_false: ...to here
opus-1.6/doc/trivial_example.c:98:8: danger: ‘fopen(inFile, "rb")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
#   96|      /* Create a new decoder state. */
#   97|      decoder = opus_decoder_create(SAMPLE_RATE, CHANNELS, &err);
#   98|->    if (err<0)
#   99|      {
#  100|         fprintf(stderr, "failed to create decoder: %s\n", opus_strerror(err));

Error: CPPCHECK_WARNING (CWE-404): [#def119]
opus-1.6/doc/trivial_example.c:101: error[resourceLeak]: Resource leak: fin
#   99|      {
#  100|         fprintf(stderr, "failed to create decoder: %s\n", opus_strerror(err));
#  101|->       return EXIT_FAILURE;
#  102|      }
#  103|      outFile = argv[2];

Error: CPPCHECK_WARNING (CWE-404): [#def120]
opus-1.6/doc/trivial_example.c:108: error[resourceLeak]: Resource leak: fin
#  106|      {
#  107|         fprintf(stderr, "failed to open output file: %s\n", strerror(errno));
#  108|->       return EXIT_FAILURE;
#  109|      }
#  110|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def121]
opus-1.6/doc/trivial_example.c:133:26: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(outFile, "wb")’
opus-1.6/doc/trivial_example.c:63:7: branch_false: following ‘false’ branch (when ‘argc == 3’)...
opus-1.6/doc/trivial_example.c:71:14: branch_false: ...to here
opus-1.6/doc/trivial_example.c:72:7: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:81:10: branch_false: ...to here
opus-1.6/doc/trivial_example.c:82:7: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:87:4: branch_false: ...to here
opus-1.6/doc/trivial_example.c:89:7: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:97:14: branch_false: ...to here
opus-1.6/doc/trivial_example.c:98:7: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:103:4: branch_false: ...to here
opus-1.6/doc/trivial_example.c:104:11: acquire_resource: opened here
opus-1.6/doc/trivial_example.c:105:7: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:105:7: branch_false: ...to here
opus-1.6/doc/trivial_example.c:125:10: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:125:10: branch_false: ...to here
opus-1.6/doc/trivial_example.c:131:16: branch_true: following ‘true’ branch (when ‘i != 1920’)...
opus-1.6/doc/trivial_example.c:133:26: branch_true: ...to here
opus-1.6/doc/trivial_example.c:137:17: throw: if ‘opus_encode’ throws an exception...
opus-1.6/doc/trivial_example.c:133:26: danger: ‘fopen(outFile, "wb")’ leaks here; was opened at [(11)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/10)
#  131|         for (i=0;i<CHANNELS*FRAME_SIZE;i++)
#  132|         {
#  133|->          in[i]=pcm_bytes[2*i+1]<<8|pcm_bytes[2*i];
#  134|         }
#  135|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def122]
opus-1.6/doc/trivial_example.c:133:26: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(outFile, "wb")’
opus-1.6/doc/trivial_example.c:63:7: branch_false: following ‘false’ branch (when ‘argc == 3’)...
opus-1.6/doc/trivial_example.c:71:14: branch_false: ...to here
opus-1.6/doc/trivial_example.c:72:7: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:81:10: branch_false: ...to here
opus-1.6/doc/trivial_example.c:82:7: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:87:4: branch_false: ...to here
opus-1.6/doc/trivial_example.c:89:7: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:97:14: branch_false: ...to here
opus-1.6/doc/trivial_example.c:98:7: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:103:4: branch_false: ...to here
opus-1.6/doc/trivial_example.c:104:11: acquire_memory: allocated here
opus-1.6/doc/trivial_example.c:105:7: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:105:7: branch_false: ...to here
opus-1.6/doc/trivial_example.c:125:10: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:125:10: branch_false: ...to here
opus-1.6/doc/trivial_example.c:131:16: branch_true: following ‘true’ branch (when ‘i != 1920’)...
opus-1.6/doc/trivial_example.c:133:26: branch_true: ...to here
opus-1.6/doc/trivial_example.c:137:17: throw: if ‘opus_encode’ throws an exception...
opus-1.6/doc/trivial_example.c:133:26: danger: ‘fopen(outFile, "wb")’ leaks here; was allocated at [(11)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/10)
#  131|         for (i=0;i<CHANNELS*FRAME_SIZE;i++)
#  132|         {
#  133|->          in[i]=pcm_bytes[2*i+1]<<8|pcm_bytes[2*i];
#  134|         }
#  135|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def123]
opus-1.6/doc/trivial_example.c:166:4: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(outFile, "wb")’
opus-1.6/doc/trivial_example.c:63:7: branch_false: following ‘false’ branch (when ‘argc == 3’)...
opus-1.6/doc/trivial_example.c:71:14: branch_false: ...to here
opus-1.6/doc/trivial_example.c:72:7: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:81:10: branch_false: ...to here
opus-1.6/doc/trivial_example.c:82:7: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:87:4: branch_false: ...to here
opus-1.6/doc/trivial_example.c:89:7: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:97:14: branch_false: ...to here
opus-1.6/doc/trivial_example.c:98:7: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:103:4: branch_false: ...to here
opus-1.6/doc/trivial_example.c:104:11: acquire_resource: opened here
opus-1.6/doc/trivial_example.c:105:7: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:105:7: branch_false: ...to here
opus-1.6/doc/trivial_example.c:125:10: branch_true: following ‘true’ branch...
opus-1.6/doc/trivial_example.c:171:1: branch_true: ...to here
opus-1.6/doc/trivial_example.c:166:4: throw: if ‘opus_encoder_destroy’ throws an exception...
opus-1.6/doc/trivial_example.c:166:4: danger: ‘fopen(outFile, "wb")’ leaks here; was opened at [(11)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/10)
#  164|      }
#  165|      /*Destroy the encoder state*/
#  166|->    opus_encoder_destroy(encoder);
#  167|      opus_decoder_destroy(decoder);
#  168|      fclose(fin);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def124]
opus-1.6/doc/trivial_example.c:166:4: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(outFile, "wb")’
opus-1.6/doc/trivial_example.c:63:7: branch_false: following ‘false’ branch (when ‘argc == 3’)...
opus-1.6/doc/trivial_example.c:71:14: branch_false: ...to here
opus-1.6/doc/trivial_example.c:72:7: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:81:10: branch_false: ...to here
opus-1.6/doc/trivial_example.c:82:7: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:87:4: branch_false: ...to here
opus-1.6/doc/trivial_example.c:89:7: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:97:14: branch_false: ...to here
opus-1.6/doc/trivial_example.c:98:7: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:103:4: branch_false: ...to here
opus-1.6/doc/trivial_example.c:104:11: acquire_memory: allocated here
opus-1.6/doc/trivial_example.c:105:7: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:105:7: branch_false: ...to here
opus-1.6/doc/trivial_example.c:125:10: branch_true: following ‘true’ branch...
opus-1.6/doc/trivial_example.c:171:1: branch_true: ...to here
opus-1.6/doc/trivial_example.c:166:4: throw: if ‘opus_encoder_destroy’ throws an exception...
opus-1.6/doc/trivial_example.c:166:4: danger: ‘fopen(outFile, "wb")’ leaks here; was allocated at [(11)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/10)
#  164|      }
#  165|      /*Destroy the encoder state*/
#  166|->    opus_encoder_destroy(encoder);
#  167|      opus_decoder_destroy(decoder);
#  168|      fclose(fin);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def125]
opus-1.6/doc/trivial_example.c:167:4: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(outFile, "wb")’
opus-1.6/doc/trivial_example.c:63:7: branch_false: following ‘false’ branch (when ‘argc == 3’)...
opus-1.6/doc/trivial_example.c:71:14: branch_false: ...to here
opus-1.6/doc/trivial_example.c:72:7: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:81:10: branch_false: ...to here
opus-1.6/doc/trivial_example.c:82:7: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:87:4: branch_false: ...to here
opus-1.6/doc/trivial_example.c:89:7: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:97:14: branch_false: ...to here
opus-1.6/doc/trivial_example.c:98:7: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:103:4: branch_false: ...to here
opus-1.6/doc/trivial_example.c:104:11: acquire_resource: opened here
opus-1.6/doc/trivial_example.c:105:7: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:105:7: branch_false: ...to here
opus-1.6/doc/trivial_example.c:125:10: branch_true: following ‘true’ branch...
opus-1.6/doc/trivial_example.c:171:1: branch_true: ...to here
opus-1.6/doc/trivial_example.c:167:4: throw: if ‘opus_decoder_destroy’ throws an exception...
opus-1.6/doc/trivial_example.c:167:4: danger: ‘fopen(outFile, "wb")’ leaks here; was opened at [(11)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/10)
#  165|      /*Destroy the encoder state*/
#  166|      opus_encoder_destroy(encoder);
#  167|->    opus_decoder_destroy(decoder);
#  168|      fclose(fin);
#  169|      fclose(fout);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def126]
opus-1.6/doc/trivial_example.c:167:4: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(outFile, "wb")’
opus-1.6/doc/trivial_example.c:63:7: branch_false: following ‘false’ branch (when ‘argc == 3’)...
opus-1.6/doc/trivial_example.c:71:14: branch_false: ...to here
opus-1.6/doc/trivial_example.c:72:7: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:81:10: branch_false: ...to here
opus-1.6/doc/trivial_example.c:82:7: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:87:4: branch_false: ...to here
opus-1.6/doc/trivial_example.c:89:7: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:97:14: branch_false: ...to here
opus-1.6/doc/trivial_example.c:98:7: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:103:4: branch_false: ...to here
opus-1.6/doc/trivial_example.c:104:11: acquire_memory: allocated here
opus-1.6/doc/trivial_example.c:105:7: branch_false: following ‘false’ branch...
opus-1.6/doc/trivial_example.c:105:7: branch_false: ...to here
opus-1.6/doc/trivial_example.c:125:10: branch_true: following ‘true’ branch...
opus-1.6/doc/trivial_example.c:171:1: branch_true: ...to here
opus-1.6/doc/trivial_example.c:167:4: throw: if ‘opus_decoder_destroy’ throws an exception...
opus-1.6/doc/trivial_example.c:167:4: danger: ‘fopen(outFile, "wb")’ leaks here; was allocated at [(11)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/10)
#  165|      /*Destroy the encoder state*/
#  166|      opus_encoder_destroy(encoder);
#  167|->    opus_decoder_destroy(decoder);
#  168|      fclose(fin);
#  169|      fclose(fout);

Error: CPPCHECK_WARNING (CWE-457): [#def127]
opus-1.6/silk/NLSF2A.c:116: warning[uninitvar]: Uninitialized variable: cos_LSF_QA
#  114|   
#  115|       /* generate even and odd polynomials using convolution */
#  116|->     silk_NLSF2A_find_poly( P, &cos_LSF_QA[ 0 ], dd );
#  117|       silk_NLSF2A_find_poly( Q, &cos_LSF_QA[ 1 ], dd );
#  118|   

Error: GCC_ANALYZER_WARNING: [#def128]
opus-1.6/silk/NSQ_del_dec.c:605:13: warning[-Wanalyzer-overlapping-buffers]: overlapping buffers passed as arguments to 'memcpy'
opus-1.6/silk/NSQ_del_dec.c:361:5: branch_false: following 'false' branch (when 'nStatesDelayedDecision > 0')...
opus-1.6/silk/NSQ_del_dec.c:362:5: branch_false: ...to here
opus-1.6/silk/NSQ_del_dec.c:372:17: branch_true: following 'true' branch (when 'i < length')...
opus-1.6/silk/NSQ_del_dec.c:376:11: branch_true: ...to here
opus-1.6/silk/NSQ_del_dec.c:402:21: branch_true: following 'true' branch (when 'k < nStatesDelayedDecision')...
opus-1.6/silk/NSQ_del_dec.c:404:29: branch_true: ...to here
opus-1.6/silk/NSQ_del_dec.c:419:13: branch_false: following 'false' branch...
opus-1.6/silk/NSQ_del_dec.c:421:20: branch_false: ...to here
opus-1.6/silk/NSQ_del_dec.c:467:16: branch_true: following 'true' branch (when 'Lambda_Q10 > 2048')...
opus-1.6/silk/NSQ_del_dec.c:469:34: branch_true: ...to here
opus-1.6/silk/NSQ_del_dec.c:472:27: branch_false: following 'false' branch...
opus-1.6/silk/NSQ_del_dec.c:474:27: branch_false: ...to here
opus-1.6/silk/NSQ_del_dec.c:555:38: branch_true: following 'true' branch...
opus-1.6/silk/NSQ_del_dec.c:577:21: branch_true: following 'true' branch (when 'k < nStatesDelayedDecision')...
opus-1.6/silk/NSQ_del_dec.c:578:25: branch_true: ...to here
opus-1.6/silk/NSQ_del_dec.c:578:15: branch_false: following 'false' branch...
opus-1.6/silk/NSQ_del_dec.c:577:49: branch_false: ...to here
opus-1.6/silk/NSQ_del_dec.c:590:21: branch_false: following 'false' branch (when 'k >= nStatesDelayedDecision')...
opus-1.6/silk/NSQ_del_dec.c:604:11: branch_false: ...to here
opus-1.6/silk/NSQ_del_dec.c:604:11: branch_true: following 'true' branch (when 'RDmin_Q10 < RDmax_Q10')...
opus-1.6/silk/NSQ_del_dec.c:605:13: branch_true: ...to here
opus-1.6/silk/NSQ_del_dec.c:605:13: danger: overlapping buffers passed as arguments to 'memcpy'
#  603|           /* Replace a state if best from second set outperforms worst in first set */
#  604|           if( RDmin_Q10 < RDmax_Q10 ) {
#  605|->             silk_memcpy( ( (opus_int32 *)&psDelDec[ RDmax_ind ] ) + i,
#  606|                            ( (opus_int32 *)&psDelDec[ RDmin_ind ] ) + i, sizeof( NSQ_del_dec_struct ) - i * sizeof( opus_int32) );
#  607|               silk_memcpy( &psSampleState[ RDmax_ind ][ 0 ], &psSampleState[ RDmin_ind ][ 1 ], sizeof( NSQ_sample_struct ) );

Error: GCC_ANALYZER_WARNING: [#def129]
opus-1.6/silk/NSQ_del_dec.c:607:13: warning[-Wanalyzer-overlapping-buffers]: overlapping buffers passed as arguments to 'memcpy'
opus-1.6/silk/NSQ_del_dec.c:361:5: branch_false: following 'false' branch (when 'nStatesDelayedDecision > 0')...
opus-1.6/silk/NSQ_del_dec.c:362:5: branch_false: ...to here
opus-1.6/silk/NSQ_del_dec.c:372:17: branch_true: following 'true' branch (when 'i < length')...
opus-1.6/silk/NSQ_del_dec.c:376:11: branch_true: ...to here
opus-1.6/silk/NSQ_del_dec.c:402:21: branch_true: following 'true' branch (when 'k < nStatesDelayedDecision')...
opus-1.6/silk/NSQ_del_dec.c:404:29: branch_true: ...to here
opus-1.6/silk/NSQ_del_dec.c:419:13: branch_false: following 'false' branch...
opus-1.6/silk/NSQ_del_dec.c:421:20: branch_false: ...to here
opus-1.6/silk/NSQ_del_dec.c:467:16: branch_true: following 'true' branch (when 'Lambda_Q10 > 2048')...
opus-1.6/silk/NSQ_del_dec.c:469:34: branch_true: ...to here
opus-1.6/silk/NSQ_del_dec.c:472:27: branch_false: following 'false' branch...
opus-1.6/silk/NSQ_del_dec.c:474:27: branch_false: ...to here
opus-1.6/silk/NSQ_del_dec.c:555:38: branch_true: following 'true' branch...
opus-1.6/silk/NSQ_del_dec.c:577:21: branch_true: following 'true' branch (when 'k < nStatesDelayedDecision')...
opus-1.6/silk/NSQ_del_dec.c:578:25: branch_true: ...to here
opus-1.6/silk/NSQ_del_dec.c:590:21: branch_true: following 'true' branch (when 'k < nStatesDelayedDecision')...
opus-1.6/silk/NSQ_del_dec.c:592:17: branch_true: ...to here
opus-1.6/silk/NSQ_del_dec.c:597:15: branch_true: following 'true' branch...
opus-1.6/silk/NSQ_del_dec.c:597:15: branch_true: ...to here
opus-1.6/silk/NSQ_del_dec.c:604:11: branch_true: following 'true' branch (when 'RDmin_Q10 < RDmax_Q10')...
opus-1.6/silk/NSQ_del_dec.c:605:13: branch_true: ...to here
opus-1.6/silk/NSQ_del_dec.c:607:13: danger: overlapping buffers passed as arguments to 'memcpy'
#  605|               silk_memcpy( ( (opus_int32 *)&psDelDec[ RDmax_ind ] ) + i,
#  606|                            ( (opus_int32 *)&psDelDec[ RDmin_ind ] ) + i, sizeof( NSQ_del_dec_struct ) - i * sizeof( opus_int32) );
#  607|->             silk_memcpy( &psSampleState[ RDmax_ind ][ 0 ], &psSampleState[ RDmin_ind ][ 1 ], sizeof( NSQ_sample_struct ) );
#  608|           }
#  609|   

Error: CPPCHECK_WARNING (CWE-457): [#def130]
opus-1.6/silk/PLC.c:211: warning[uninitvar]: Uninitialized variable: exc_buf
#  209|       }
#  210|       /* Find the subframe with lowest energy of the last two and use that as random noise generator */
#  211|->     silk_sum_sqr_shift( energy1, shift1, exc_buf,                  subfr_length );
#  212|       silk_sum_sqr_shift( energy2, shift2, &exc_buf[ subfr_length ], subfr_length );
#  213|       RESTORE_STACK;

Error: COMPILER_WARNING (CWE-457): [#def131]
opus-1.6/silk/dec_API.c: scope_hint: In function 'silk_Decode.isra'
opus-1.6/silk/dec_API.c:364:13: warning[-Wmaybe-uninitialized]: 'nSamplesOutDec' may be used uninitialized
#  364 |             silk_memset( &samplesOut1_tmp[ n ][ 2 ], 0, nSamplesOutDec * sizeof( opus_int16 ) );
#      |             ^
opus-1.6/silk/dec_API.c:150:16: note: 'nSamplesOutDec' was declared here
#  150 |     opus_int32 nSamplesOutDec, LBRR_symbol;
#      |                ^
#  362|                   arch);
#  363|           } else {
#  364|->             silk_memset( &samplesOut1_tmp[ n ][ 2 ], 0, nSamplesOutDec * sizeof( opus_int16 ) );
#  365|           }
#  366|           channel_state[ n ].nFramesDecoded++;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def132]
opus-1.6/silk/decode_core.c:185:32: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*pred_lag_ptr'
opus-1.6/silk/decode_core.c:103:17: branch_true: following 'true' branch...
opus-1.6/silk/decode_core.c:105:42: branch_true: ...to here
opus-1.6/silk/decode_core.c:116:11: branch_false: following 'false' branch...
opus-1.6/silk/decode_core.c:129:9: branch_false: ...to here
opus-1.6/silk/decode_core.c:142:11: branch_true: following 'true' branch (when 'signalType == 2')...
opus-1.6/silk/decode_core.c:144:13: branch_true: ...to here
opus-1.6/silk/decode_core.c:147:15: branch_true: following 'true' branch (when 'k == 0')...
opus-1.6/silk/decode_core.c:149:29: branch_true: ...to here
opus-1.6/silk/decode_core.c:150:17: branch_false: following 'false' branch (when 'start_idx > 0')...
opus-1.6/silk/decode_core.c:152:19: branch_false: ...to here
opus-1.6/silk/decode_core.c:152:19: branch_false: following 'false' branch (when 'k != 2')...
opus-1.6/silk/decode_core.c:157:63: branch_false: ...to here
opus-1.6/silk/decode_core.c:160:19: branch_true: following 'true' branch (when 'k == 0')...
opus-1.6/silk/decode_core.c:162:36: branch_true: ...to here
opus-1.6/silk/decode_core.c:164:29: branch_false: following 'false' branch...
opus-1.6/silk/decode_core.c:180:39: branch_false: ...to here
opus-1.6/silk/decode_core.c:181:25: branch_true: following 'true' branch...
opus-1.6/silk/decode_core.c:185:32: branch_true: ...to here
opus-1.6/silk/decode_core.c:185:32: danger: use of uninitialized value '*pred_lag_ptr' here
#  183|                   /* Avoids introducing a bias because silk_SMLAWB() always rounds to -inf */
#  184|                   LTP_pred_Q13 = 2;
#  185|->                 LTP_pred_Q13 = silk_SMLAWB( LTP_pred_Q13, pred_lag_ptr[  0 ], B_Q14[ 0 ] );
#  186|                   LTP_pred_Q13 = silk_SMLAWB( LTP_pred_Q13, pred_lag_ptr[ -1 ], B_Q14[ 1 ] );
#  187|                   LTP_pred_Q13 = silk_SMLAWB( LTP_pred_Q13, pred_lag_ptr[ -2 ], B_Q14[ 2 ] );

Error: GCC_ANALYZER_WARNING (CWE-457): [#def133]
opus-1.6/silk/decode_core.c:228:45: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*<unknown>'
opus-1.6/silk/decode_core.c:103:17: branch_true: following 'true' branch...
opus-1.6/silk/decode_core.c:105:42: branch_true: ...to here
opus-1.6/silk/decode_core.c:116:11: branch_false: following 'false' branch...
opus-1.6/silk/decode_core.c:129:9: branch_false: ...to here
opus-1.6/silk/decode_core.c:142:11: branch_true: following 'true' branch (when 'signalType == 2')...
opus-1.6/silk/decode_core.c:144:13: branch_true: ...to here
opus-1.6/silk/decode_core.c:147:15: branch_true: following 'true' branch (when 'k == 0')...
opus-1.6/silk/decode_core.c:149:29: branch_true: ...to here
opus-1.6/silk/decode_core.c:150:17: branch_false: following 'false' branch (when 'start_idx > 0')...
opus-1.6/silk/decode_core.c:152:19: branch_false: ...to here
opus-1.6/silk/decode_core.c:152:19: branch_false: following 'false' branch (when 'k != 2')...
opus-1.6/silk/decode_core.c:157:63: branch_false: ...to here
opus-1.6/silk/decode_core.c:160:19: branch_true: following 'true' branch (when 'k == 0')...
opus-1.6/silk/decode_core.c:162:36: branch_true: ...to here
opus-1.6/silk/decode_core.c:164:29: branch_true: following 'true' branch...
opus-1.6/silk/decode_core.c:165:56: branch_true: ...to here
opus-1.6/silk/decode_core.c:181:25: branch_false: following 'false' branch...
opus-1.6/silk/decode_core.c:203:9: branch_false: ...to here
opus-1.6/silk/decode_core.c:203:21: branch_true: following 'true' branch...
opus-1.6/silk/decode_core.c:205:13: branch_true: ...to here
opus-1.6/silk/decode_core.c:205:13: branch_false: following 'false' branch...
opus-1.6/silk/decode_core.c:207:13: branch_false: ...to here
opus-1.6/silk/decode_core.c:228:45: danger: use of uninitialized value '*<unknown>' here
#  226|   
#  227|               /* Add prediction to LPC excitation */
#  228|->             sLPC_Q14[ MAX_LPC_ORDER + i ] = silk_ADD_SAT32( pres_Q14[ i ], silk_LSHIFT_SAT32( LPC_pred_Q10, 4 ) );
#  229|   
#  230|               /* Scale with gain */

Error: CPPCHECK_WARNING (CWE-457): [#def134]
opus-1.6/silk/decode_parameters.c:72: warning[uninitvar]: Uninitialized variable: pNLSF0_Q15
#   70|   
#   71|           /* Convert NLSF parameters to AR prediction filter coefficients */
#   72|->         silk_NLSF2A( psDecCtrl->PredCoef_Q12[ 0 ], pNLSF0_Q15, psDec->LPC_order, psDec->arch );
#   73|       } else {
#   74|           /* Copy LPC coefficients for first half from second half */

Error: GCC_ANALYZER_WARNING (CWE-457): [#def135]
opus-1.6/silk/float/encode_frame_FLP.c:373:34: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'sEncCtrl.pitchL[<unknown>]'
opus-1.6/silk/float/encode_frame_FLP.c:142:17: branch_true: following 'true' branch (when 'i != 8')...
opus-1.6/silk/float/encode_frame_FLP.c:143:9: branch_true: ...to here
opus-1.6/silk/float/encode_frame_FLP.c:146:7: branch_false: following 'false' branch...
opus-1.6/silk/float/encode_frame_FLP.c:361:5: branch_false: ...to here
opus-1.6/silk/float/encode_frame_FLP.c:365:7: branch_false: following 'false' branch...
opus-1.6/silk/float/encode_frame_FLP.c:373:51: branch_false: ...to here
opus-1.6/silk/float/encode_frame_FLP.c:373:34: danger: use of uninitialized value 'sEncCtrl.pitchL[<unknown>]' here
#  371|   
#  372|       /* Parameters needed for next frame */
#  373|->     psEnc->sCmn.prevLag        = sEncCtrl.pitchL[ psEnc->sCmn.nb_subfr - 1 ];
#  374|       psEnc->sCmn.prevSignalType = psEnc->sCmn.indices.signalType;
#  375|   

Error: GCC_ANALYZER_WARNING (CWE-126): [#def136]
opus-1.6/silk/float/encode_frame_FLP.c:433:37: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
opus-1.6/silk/float/encode_frame_FLP.c:408:7: branch_true: following 'true' branch...
opus-1.6/silk/float/encode_frame_FLP.c:432:21: branch_true: following 'true' branch...
opus-1.6/silk/float/encode_frame_FLP.c:433:37: branch_true: ...to here
opus-1.6/silk/float/encode_frame_FLP.c:432:21: branch_true: following 'true' branch...
opus-1.6/silk/float/encode_frame_FLP.c:433:37: branch_true: ...to here
opus-1.6/silk/float/encode_frame_FLP.c:432:21: branch_true: following 'true' branch...
opus-1.6/silk/float/encode_frame_FLP.c:433:37: branch_true: ...to here
opus-1.6/silk/float/encode_frame_FLP.c:432:21: branch_true: following 'true' branch...
opus-1.6/silk/float/encode_frame_FLP.c:433:37: branch_true: ...to here
opus-1.6/silk/float/encode_frame_FLP.c:432:21: branch_true: following 'true' branch...
opus-1.6/silk/float/encode_frame_FLP.c:433:37: branch_true: ...to here
opus-1.6/silk/float/encode_frame_FLP.c:433:37: danger: out-of-bounds read from byte 16 till byte 19 but 'Gains_Q16' ends at byte 16
#  431|           /* Overwrite unquantized gains with quantized gains and convert back to Q0 from Q16 */
#  432|           for( k = 0; k <  psEnc->sCmn.nb_subfr; k++ ) {
#  433|->             psEncCtrl->Gains[ k ] = Gains_Q16[ k ] * ( 1.0f / 65536.0f );
#  434|           }
#  435|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def137]
opus-1.6/silk/float/pitch_analysis_core_FLP.c:548:49: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'scratch_mem[<unknown>]'
opus-1.6/silk/float/pitch_analysis_core_FLP.c:509:5: branch_false: following 'false' branch (when 'complexity >= 0')...
opus-1.6/silk/float/pitch_analysis_core_FLP.c:510:5: branch_false: ...to here
opus-1.6/silk/float/pitch_analysis_core_FLP.c:510:5: branch_false: following 'false' branch (when 'complexity <= 2')...
opus-1.6/silk/float/pitch_analysis_core_FLP.c:512:7: branch_false: ...to here
opus-1.6/silk/float/pitch_analysis_core_FLP.c:512:7: branch_true: following 'true' branch (when 'nb_subfr == 4')...
opus-1.6/silk/float/pitch_analysis_core_FLP.c:513:9: branch_true: ...to here
opus-1.6/silk/float/pitch_analysis_core_FLP.c:526:17: branch_true: following 'true' branch (when 'k < nb_subfr')...
opus-1.6/silk/float/pitch_analysis_core_FLP.c:530:20: branch_true: ...to here
opus-1.6/silk/float/pitch_analysis_core_FLP.c:534:27: branch_false: following 'false' branch (when 'j > lag_high')...
opus-1.6/silk/float/pitch_analysis_core_FLP.c:540:17: branch_false: ...to here
opus-1.6/silk/float/pitch_analysis_core_FLP.c:541:21: branch_true: following 'true' branch (when 'i < nb_cbk_search')...
opus-1.6/silk/float/pitch_analysis_core_FLP.c:544:19: branch_true: ...to here
opus-1.6/silk/float/pitch_analysis_core_FLP.c:545:25: branch_true: following 'true' branch (when 'j != 5')...
opus-1.6/silk/float/pitch_analysis_core_FLP.c:548:62: branch_true: ...to here
opus-1.6/silk/float/pitch_analysis_core_FLP.c:548:49: danger: use of uninitialized value 'scratch_mem[<unknown>]' here
#  546|                   silk_assert( idx + j < SCRATCH_SIZE );
#  547|                   silk_assert( idx + j < lag_counter );
#  548|->                 cross_corr_st3[ k ][ i ][ j ] = scratch_mem[ idx + j ];
#  549|               }
#  550|           }

Error: CPPCHECK_WARNING (CWE-457): [#def138]
opus-1.6/silk/float/process_gains_FLP.c:71: warning[uninitvar]: Uninitialized variable: pGains_Q16
#   69|   
#   70|       /* Save unquantized gains and gain Index */
#   71|->     silk_memcpy( psEncCtrl->GainsUnq_Q16, pGains_Q16, psEnc->sCmn.nb_subfr * sizeof( opus_int32 ) );
#   72|       psEncCtrl->lastGainIndexPrev = psShapeSt->LastGainIndex;
#   73|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def139]
opus-1.6/silk/float/process_gains_FLP.c:71:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '&pGains_Q16'
opus-1.6/silk/float/process_gains_FLP.c:58:17: branch_false: following 'false' branch...
opus-1.6/silk/float/process_gains_FLP.c:58:17: branch_false: ...to here
opus-1.6/silk/float/process_gains_FLP.c:66:17: branch_false: following 'false' branch...
opus-1.6/silk/float/process_gains_FLP.c:71:5: branch_false: ...to here
opus-1.6/silk/float/process_gains_FLP.c:71:5: danger: use of uninitialized value '&pGains_Q16' here
#   69|   
#   70|       /* Save unquantized gains and gain Index */
#   71|->     silk_memcpy( psEncCtrl->GainsUnq_Q16, pGains_Q16, psEnc->sCmn.nb_subfr * sizeof( opus_int32 ) );
#   72|       psEncCtrl->lastGainIndexPrev = psShapeSt->LastGainIndex;
#   73|   

Error: GCC_ANALYZER_WARNING (CWE-126): [#def140]
opus-1.6/silk/float/process_gains_FLP.c:80:33: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
opus-1.6/silk/float/process_gains_FLP.c:58:17: branch_true: following 'true' branch...
opus-1.6/silk/float/process_gains_FLP.c:60:9: branch_true: ...to here
opus-1.6/silk/float/process_gains_FLP.c:66:17: branch_false: following 'false' branch...
opus-1.6/silk/float/process_gains_FLP.c:71:5: branch_false: ...to here
opus-1.6/silk/float/process_gains_FLP.c:79:17: branch_true: following 'true' branch...
opus-1.6/silk/float/process_gains_FLP.c:80:33: branch_true: ...to here
opus-1.6/silk/float/process_gains_FLP.c:79:17: branch_true: following 'true' branch...
opus-1.6/silk/float/process_gains_FLP.c:80:33: branch_true: ...to here
opus-1.6/silk/float/process_gains_FLP.c:79:17: branch_true: following 'true' branch...
opus-1.6/silk/float/process_gains_FLP.c:80:33: branch_true: ...to here
opus-1.6/silk/float/process_gains_FLP.c:79:17: branch_true: following 'true' branch...
opus-1.6/silk/float/process_gains_FLP.c:80:33: branch_true: ...to here
opus-1.6/silk/float/process_gains_FLP.c:79:17: branch_true: following 'true' branch...
opus-1.6/silk/float/process_gains_FLP.c:80:33: branch_true: ...to here
opus-1.6/silk/float/process_gains_FLP.c:80:33: danger: out-of-bounds read from byte 16 till byte 19 but 'pGains_Q16' ends at byte 16
#   78|       /* Overwrite unquantized gains with quantized gains and convert back to Q0 from Q16 */
#   79|       for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) {
#   80|->         psEncCtrl->Gains[ k ] = pGains_Q16[ k ] / 65536.0f;
#   81|       }
#   82|   

Error: COMPILER_WARNING: [#def141]
opus-1.6/silk/float/x86/inner_product_FLP_avx2.c:50:14: warning[-Wpsabi]: AVX vector return without AVX enabled changes the ABI
#   48|       /* 4x unrolled loop */
#   49|       result = 0.0;
#   50|->     accum1 = accum2 = _mm256_setzero_pd();
#   51|       for( i = 0; i < dataSize - 7; i += 8 ) {
#   52|           __m128  x1f, x2f;

Error: COMPILER_WARNING: [#def142]
opus-1.6/silk/float/x86/inner_product_FLP_avx2.c:50:23: note[note]: called from here
#   48|       /* 4x unrolled loop */
#   49|       result = 0.0;
#   50|->     accum1 = accum2 = _mm256_setzero_pd();
#   51|       for( i = 0; i < dataSize - 7; i += 8 ) {
#   52|           __m128  x1f, x2f;

Error: COMPILER_WARNING: [#def143]
opus-1.6/silk/float/x86/inner_product_FLP_avx2.c:56:15: note[note]: called from here
#   54|           x1f = _mm_loadu_ps( &data1[ i ] );
#   55|           x2f = _mm_loadu_ps( &data2[ i ] );
#   56|->         x1d = _mm256_cvtps_pd( x1f );
#   57|           x2d = _mm256_cvtps_pd( x2f );
#   58|           accum1 = _mm256_fmadd_pd( x1d, x2d, accum1 );

Error: COMPILER_WARNING: [#def144]
opus-1.6/silk/float/x86/inner_product_FLP_avx2.c:57:15: note[note]: called from here
#   55|           x2f = _mm_loadu_ps( &data2[ i ] );
#   56|           x1d = _mm256_cvtps_pd( x1f );
#   57|->         x2d = _mm256_cvtps_pd( x2f );
#   58|           accum1 = _mm256_fmadd_pd( x1d, x2d, accum1 );
#   59|           x1f = _mm_loadu_ps( &data1[ i + 4 ] );

Error: COMPILER_WARNING: [#def145]
opus-1.6/silk/float/x86/inner_product_FLP_avx2.c:58:18: note[note]: called from here
#   56|           x1d = _mm256_cvtps_pd( x1f );
#   57|           x2d = _mm256_cvtps_pd( x2f );
#   58|->         accum1 = _mm256_fmadd_pd( x1d, x2d, accum1 );
#   59|           x1f = _mm_loadu_ps( &data1[ i + 4 ] );
#   60|           x2f = _mm_loadu_ps( &data2[ i + 4 ] );

Error: COMPILER_WARNING: [#def146]
opus-1.6/silk/float/x86/inner_product_FLP_avx2.c:61:15: note[note]: called from here
#   59|           x1f = _mm_loadu_ps( &data1[ i + 4 ] );
#   60|           x2f = _mm_loadu_ps( &data2[ i + 4 ] );
#   61|->         x1d = _mm256_cvtps_pd( x1f );
#   62|           x2d = _mm256_cvtps_pd( x2f );
#   63|           accum2 = _mm256_fmadd_pd( x1d, x2d, accum2 );

Error: COMPILER_WARNING: [#def147]
opus-1.6/silk/float/x86/inner_product_FLP_avx2.c:62:15: note[note]: called from here
#   60|           x2f = _mm_loadu_ps( &data2[ i + 4 ] );
#   61|           x1d = _mm256_cvtps_pd( x1f );
#   62|->         x2d = _mm256_cvtps_pd( x2f );
#   63|           accum2 = _mm256_fmadd_pd( x1d, x2d, accum2 );
#   64|       }

Error: COMPILER_WARNING: [#def148]
opus-1.6/silk/float/x86/inner_product_FLP_avx2.c:63:18: note[note]: called from here
#   61|           x1d = _mm256_cvtps_pd( x1f );
#   62|           x2d = _mm256_cvtps_pd( x2f );
#   63|->         accum2 = _mm256_fmadd_pd( x1d, x2d, accum2 );
#   64|       }
#   65|       for( ; i < dataSize - 3; i += 4 ) {

Error: COMPILER_WARNING: [#def149]
opus-1.6/silk/float/x86/inner_product_FLP_avx2.c:70:15: note[note]: called from here
#   68|           x1f = _mm_loadu_ps( &data1[ i ] );
#   69|           x2f = _mm_loadu_ps( &data2[ i ] );
#   70|->         x1d = _mm256_cvtps_pd( x1f );
#   71|           x2d = _mm256_cvtps_pd( x2f );
#   72|           accum1 = _mm256_fmadd_pd( x1d, x2d, accum1 );

Error: COMPILER_WARNING: [#def150]
opus-1.6/silk/float/x86/inner_product_FLP_avx2.c:71:15: note[note]: called from here
#   69|           x2f = _mm_loadu_ps( &data2[ i ] );
#   70|           x1d = _mm256_cvtps_pd( x1f );
#   71|->         x2d = _mm256_cvtps_pd( x2f );
#   72|           accum1 = _mm256_fmadd_pd( x1d, x2d, accum1 );
#   73|       }

Error: COMPILER_WARNING: [#def151]
opus-1.6/silk/float/x86/inner_product_FLP_avx2.c:72:18: note[note]: called from here
#   70|           x1d = _mm256_cvtps_pd( x1f );
#   71|           x2d = _mm256_cvtps_pd( x2f );
#   72|->         accum1 = _mm256_fmadd_pd( x1d, x2d, accum1 );
#   73|       }
#   74|       accum1 = _mm256_add_pd(accum1, accum2);

Error: COMPILER_WARNING: [#def152]
opus-1.6/silk/float/x86/inner_product_FLP_avx2.c:74:14: note[note]: called from here
#   72|           accum1 = _mm256_fmadd_pd( x1d, x2d, accum1 );
#   73|       }
#   74|->     accum1 = _mm256_add_pd(accum1, accum2);
#   75|       accum1 = _mm256_add_pd(accum1, _mm256_permute2f128_pd(accum1, accum1, 1));
#   76|       accum1 = _mm256_hadd_pd(accum1,accum1);

Error: COMPILER_WARNING: [#def153]
opus-1.6/silk/float/x86/inner_product_FLP_avx2.c:75:14: note[note]: called from here
#   73|       }
#   74|       accum1 = _mm256_add_pd(accum1, accum2);
#   75|->     accum1 = _mm256_add_pd(accum1, _mm256_permute2f128_pd(accum1, accum1, 1));
#   76|       accum1 = _mm256_hadd_pd(accum1,accum1);
#   77|       result = _mm256_cvtsd_f64(accum1);

Error: COMPILER_WARNING: [#def154]
opus-1.6/silk/float/x86/inner_product_FLP_avx2.c:76:14: note[note]: called from here
#   74|       accum1 = _mm256_add_pd(accum1, accum2);
#   75|       accum1 = _mm256_add_pd(accum1, _mm256_permute2f128_pd(accum1, accum1, 1));
#   76|->     accum1 = _mm256_hadd_pd(accum1,accum1);
#   77|       result = _mm256_cvtsd_f64(accum1);
#   78|   

Error: COMPILER_WARNING: [#def155]
opus-1.6/silk/float/x86/inner_product_FLP_avx2.c:77:14: note[note]: called from here
#   75|       accum1 = _mm256_add_pd(accum1, _mm256_permute2f128_pd(accum1, accum1, 1));
#   76|       accum1 = _mm256_hadd_pd(accum1,accum1);
#   77|->     result = _mm256_cvtsd_f64(accum1);
#   78|   
#   79|       /* add any remaining products */

Error: GCC_ANALYZER_WARNING (CWE-457): [#def156]
opus-1.6/silk/quant_LTP_gains.c:112:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '&temp_idx'
opus-1.6/silk/quant_LTP_gains.c:64:17: branch_true: following 'true' branch (when 'k != 3')...
opus-1.6/silk/quant_LTP_gains.c:69:9: branch_true: ...to here
opus-1.6/silk/quant_LTP_gains.c:81:21: branch_false: following 'false' branch (when 'j >= nb_subfr')...
opus-1.6/silk/quant_LTP_gains.c:109:11: branch_false: ...to here
opus-1.6/silk/quant_LTP_gains.c:109:11: branch_true: following 'true' branch (when 'rate_dist_Q7 <= min_rate_dist_Q7')...
opus-1.6/silk/quant_LTP_gains.c:111:34: branch_true: ...to here
opus-1.6/silk/quant_LTP_gains.c:112:13: danger: use of uninitialized value '&temp_idx' here
#  110|               min_rate_dist_Q7 = rate_dist_Q7;
#  111|               *periodicity_index = (opus_int8)k;
#  112|->             silk_memcpy( cbk_index, temp_idx, nb_subfr * sizeof( opus_int8 ) );
#  113|               best_sum_log_gain_Q7 = sum_log_gain_tmp_Q7;
#  114|           }

Error: CPPCHECK_WARNING (CWE-786): [#def157]
opus-1.6/silk/stereo_LR_to_MS.c:58: error[negativeIndex]: Array 'x1[0]' accessed at index -2, which is out of bounds.
#   56|       VARDECL( opus_int16, LP_side );
#   57|       VARDECL( opus_int16, HP_side );
#   58|->     opus_int16 *mid = &x1[ -2 ];
#   59|       SAVE_STACK;
#   60|   

Error: CPPCHECK_WARNING (CWE-786): [#def158]
opus-1.6/silk/stereo_LR_to_MS.c:64: error[negativeIndex]: Array 'x1[0]' accessed at index -2, which is out of bounds.
#   62|       /* Convert to basic mid/side signals */
#   63|       for( n = 0; n < frame_length + 2; n++ ) {
#   64|->         sum  = x1[ n - 2 ] + (opus_int32)x2[ n - 2 ];
#   65|           diff = x1[ n - 2 ] - (opus_int32)x2[ n - 2 ];
#   66|           mid[  n ] = (opus_int16)silk_RSHIFT_ROUND( sum, 1 );

Error: CPPCHECK_WARNING (CWE-786): [#def159]
opus-1.6/silk/stereo_LR_to_MS.c:64: error[negativeIndex]: Array 'x2[0]' accessed at index -2, which is out of bounds.
#   62|       /* Convert to basic mid/side signals */
#   63|       for( n = 0; n < frame_length + 2; n++ ) {
#   64|->         sum  = x1[ n - 2 ] + (opus_int32)x2[ n - 2 ];
#   65|           diff = x1[ n - 2 ] - (opus_int32)x2[ n - 2 ];
#   66|           mid[  n ] = (opus_int16)silk_RSHIFT_ROUND( sum, 1 );

Error: CPPCHECK_WARNING (CWE-786): [#def160]
opus-1.6/silk/stereo_LR_to_MS.c:65: error[negativeIndex]: Array 'x1[0]' accessed at index -2, which is out of bounds.
#   63|       for( n = 0; n < frame_length + 2; n++ ) {
#   64|           sum  = x1[ n - 2 ] + (opus_int32)x2[ n - 2 ];
#   65|->         diff = x1[ n - 2 ] - (opus_int32)x2[ n - 2 ];
#   66|           mid[  n ] = (opus_int16)silk_RSHIFT_ROUND( sum, 1 );
#   67|           side[ n ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( diff, 1 ) );

Error: CPPCHECK_WARNING (CWE-786): [#def161]
opus-1.6/silk/stereo_LR_to_MS.c:65: error[negativeIndex]: Array 'x2[0]' accessed at index -2, which is out of bounds.
#   63|       for( n = 0; n < frame_length + 2; n++ ) {
#   64|           sum  = x1[ n - 2 ] + (opus_int32)x2[ n - 2 ];
#   65|->         diff = x1[ n - 2 ] - (opus_int32)x2[ n - 2 ];
#   66|           mid[  n ] = (opus_int16)silk_RSHIFT_ROUND( sum, 1 );
#   67|           side[ n ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( diff, 1 ) );

Error: COMPILER_WARNING: [#def162]
opus-1.6/silk/x86/NSQ_del_dec_avx2.c:157:1: warning[-Wpsabi]: AVX vector return without AVX enabled changes the ABI
#  155|   }
#  156|   static OPUS_INLINE __m256i silk_mm256_sub_sat_epi32(__m256i a, __m256i b)
#  157|-> {
#  158|       __m256i r = _mm256_sub_epi32(a, b);
#  159|       __m256i OF = _mm256_andnot_si256(_mm256_xor_si256(b, r), _mm256_xor_si256(a, r));        /* OF = (sum ^ a) & (sum ^ ~b) = (sum ^ a) & ~(sum ^ b) */

Error: COMPILER_WARNING: [#def163]
opus-1.6/silk/x86/NSQ_del_dec_avx2.c:210:28: note[note]: the ABI for passing parameters with 32-byte alignment has changed in GCC 4.6
#  208|   }
#  209|   
#  210|-> static OPUS_INLINE __m256i silk_mm256_reverse_epi32(__m256i v)
#  211|   {
#  212|       v = _mm256_shuffle_epi32(v, 0x1B);

Error: COMPILER_WARNING: [#def164]
opus-1.6/silk/x86/NSQ_del_dec_avx2.c:253:12: note[note]: called from here
#  251|   static OPUS_INLINE __m128i silk_mm256_rand_epi32(__m128i seed)
#  252|   {
#  253|->     seed = _mm_mullo_epi32(seed, _mm_set1_epi32(RAND_MULTIPLIER));
#  254|       seed = _mm_add_epi32(seed, _mm_set1_epi32(RAND_INCREMENT));
#  255|       return seed;

Error: COMPILER_WARNING: [#def165]
opus-1.6/silk/x86/NSQ_del_dec_sse4_1.c:820:24: note[note]: called from here
#  818|   
#  819|       for( i = 0; i < psEncC->subfr_length - 3; i += 4 ) {
#  820|->         xmm_x16_x2x0 = OP_CVTEPI16_EPI32_M64( &(x16[ i ] ) );
#  821|   
#  822|           /* equal shift right 4 bytes*/

Error: COMPILER_WARNING: [#def166]
opus-1.6/silk/x86/NSQ_del_dec_sse4_1.c:825:24: note[note]: called from here
#  823|           xmm_x16_x3x1 = _mm_shuffle_epi32( xmm_x16_x2x0, _MM_SHUFFLE( 0, 3, 2, 1 ) );
#  824|   
#  825|->         xmm_x16_x2x0 = _mm_mul_epi32( xmm_x16_x2x0, xmm_inv_gain_Q26 );
#  826|           xmm_x16_x3x1 = _mm_mul_epi32( xmm_x16_x3x1, xmm_inv_gain_Q26 );
#  827|   

Error: COMPILER_WARNING: [#def167]
opus-1.6/silk/x86/NSQ_del_dec_sse4_1.c:826:24: note[note]: called from here
#  824|   
#  825|           xmm_x16_x2x0 = _mm_mul_epi32( xmm_x16_x2x0, xmm_inv_gain_Q26 );
#  826|->         xmm_x16_x3x1 = _mm_mul_epi32( xmm_x16_x3x1, xmm_inv_gain_Q26 );
#  827|   
#  828|           xmm_x16_x2x0 = _mm_srli_epi64( xmm_x16_x2x0, 16 );

Error: COMPILER_WARNING: [#def168]
opus-1.6/silk/x86/NSQ_del_dec_sse4_1.c:831:24: note[note]: called from here
#  829|           xmm_x16_x3x1 = _mm_slli_epi64( xmm_x16_x3x1, 16 );
#  830|   
#  831|->         xmm_x16_x2x0 = _mm_blend_epi16( xmm_x16_x2x0, xmm_x16_x3x1, 0xCC );
#  832|   
#  833|           _mm_storeu_si128( (__m128i *)(void*)(&(x_sc_Q10[ i ] ) ), xmm_x16_x2x0 );

Error: COMPILER_WARNING: [#def169]
opus-1.6/silk/x86/NSQ_del_dec_sse4_1.c:869:41: note[note]: called from here
#  867|                   xmm_sLTP_shp_Q14_x3x1 = _mm_shuffle_epi32( xmm_sLTP_shp_Q14_x2x0, _MM_SHUFFLE( 0, 3, 2, 1 ) );
#  868|   
#  869|->                 xmm_sLTP_shp_Q14_x2x0 = _mm_mul_epi32( xmm_sLTP_shp_Q14_x2x0, xmm_gain_adj_Q16 );
#  870|                   xmm_sLTP_shp_Q14_x3x1 = _mm_mul_epi32( xmm_sLTP_shp_Q14_x3x1, xmm_gain_adj_Q16 );
#  871|   

Error: COMPILER_WARNING: [#def170]
opus-1.6/silk/x86/NSQ_del_dec_sse4_1.c:870:41: note[note]: called from here
#  868|   
#  869|                   xmm_sLTP_shp_Q14_x2x0 = _mm_mul_epi32( xmm_sLTP_shp_Q14_x2x0, xmm_gain_adj_Q16 );
#  870|->                 xmm_sLTP_shp_Q14_x3x1 = _mm_mul_epi32( xmm_sLTP_shp_Q14_x3x1, xmm_gain_adj_Q16 );
#  871|   
#  872|                   xmm_sLTP_shp_Q14_x2x0 = _mm_srli_epi64( xmm_sLTP_shp_Q14_x2x0, 16 );

Error: COMPILER_WARNING: [#def171]
opus-1.6/silk/x86/NSQ_del_dec_sse4_1.c:875:41: note[note]: called from here
#  873|                   xmm_sLTP_shp_Q14_x3x1 = _mm_slli_epi64( xmm_sLTP_shp_Q14_x3x1, 16 );
#  874|   
#  875|->                 xmm_sLTP_shp_Q14_x2x0 = _mm_blend_epi16( xmm_sLTP_shp_Q14_x2x0, xmm_sLTP_shp_Q14_x3x1, 0xCC );
#  876|   
#  877|                   _mm_storeu_si128( (__m128i *)(void*)(&(NSQ->sLTP_shp_Q14[ i ] ) ), xmm_sLTP_shp_Q14_x2x0 );

Error: CPPCHECK_WARNING (CWE-786): [#def172]
opus-1.6/silk/x86/NSQ_sse4_1.c:555: error[negativeIndex]: Array 'table[0][4]' accessed at index table[-1][*], which is out of bounds.
#  553|           }
#  554|   
#  555|->         q1_Q10 = table[q1_Q0][0];
#  556|           q2_Q10 = table[q1_Q0][1];
#  557|   

Error: CPPCHECK_WARNING (CWE-786): [#def173]
opus-1.6/silk/x86/NSQ_sse4_1.c:556: error[negativeIndex]: Array 'table[0][4]' accessed at index table[-1][*], which is out of bounds.
#  554|   
#  555|           q1_Q10 = table[q1_Q0][0];
#  556|->         q2_Q10 = table[q1_Q0][1];
#  557|   
#  558|           if (r_Q10 * table[q1_Q0][2] - table[q1_Q0][3] < 0)

Error: CPPCHECK_WARNING (CWE-786): [#def174]
opus-1.6/silk/x86/NSQ_sse4_1.c:558: error[negativeIndex]: Array 'table[0][4]' accessed at index table[-1][*], which is out of bounds.
#  556|           q2_Q10 = table[q1_Q0][1];
#  557|   
#  558|->         if (r_Q10 * table[q1_Q0][2] - table[q1_Q0][3] < 0)
#  559|           {
#  560|               q1_Q10 = q2_Q10;

Error: COMPILER_WARNING: [#def175]
opus-1.6/silk/x86/NSQ_sse4_1.c:688:24: note[note]: called from here
#  686|   
#  687|       for( i = 0; i < psEncC->subfr_length - 3; i += 4 ) {
#  688|->         xmm_x16_x2x0 = OP_CVTEPI16_EPI32_M64( &(x16[ i ] ) );
#  689|   
#  690|           /* equal shift right 4 bytes*/

Error: COMPILER_WARNING: [#def176]
opus-1.6/silk/x86/NSQ_sse4_1.c:693:24: note[note]: called from here
#  691|           xmm_x16_x3x1 = _mm_shuffle_epi32( xmm_x16_x2x0, _MM_SHUFFLE( 0, 3, 2, 1 ) );
#  692|   
#  693|->         xmm_x16_x2x0 = _mm_mul_epi32( xmm_x16_x2x0, xmm_inv_gain_Q26 );
#  694|           xmm_x16_x3x1 = _mm_mul_epi32( xmm_x16_x3x1, xmm_inv_gain_Q26 );
#  695|   

Error: COMPILER_WARNING: [#def177]
opus-1.6/silk/x86/NSQ_sse4_1.c:694:24: note[note]: called from here
#  692|   
#  693|           xmm_x16_x2x0 = _mm_mul_epi32( xmm_x16_x2x0, xmm_inv_gain_Q26 );
#  694|->         xmm_x16_x3x1 = _mm_mul_epi32( xmm_x16_x3x1, xmm_inv_gain_Q26 );
#  695|   
#  696|           xmm_x16_x2x0 = _mm_srli_epi64( xmm_x16_x2x0, 16 );

Error: COMPILER_WARNING: [#def178]
opus-1.6/silk/x86/NSQ_sse4_1.c:699:24: note[note]: called from here
#  697|           xmm_x16_x3x1 = _mm_slli_epi64( xmm_x16_x3x1, 16 );
#  698|   
#  699|->         xmm_x16_x2x0 = _mm_blend_epi16( xmm_x16_x2x0, xmm_x16_x3x1, 0xCC );
#  700|   
#  701|           _mm_storeu_si128( (__m128i *)(void*)(&(x_sc_Q10[ i ] ) ), xmm_x16_x2x0 );

Error: COMPILER_WARNING: [#def179]
opus-1.6/silk/x86/NSQ_sse4_1.c:736:37: note[note]: called from here
#  734|               xmm_sLTP_shp_Q14_x3x1 = _mm_shuffle_epi32( xmm_sLTP_shp_Q14_x2x0, _MM_SHUFFLE( 0, 3, 2, 1 ) );
#  735|   
#  736|->             xmm_sLTP_shp_Q14_x2x0 = _mm_mul_epi32( xmm_sLTP_shp_Q14_x2x0, xmm_gain_adj_Q16 );
#  737|               xmm_sLTP_shp_Q14_x3x1 = _mm_mul_epi32( xmm_sLTP_shp_Q14_x3x1, xmm_gain_adj_Q16 );
#  738|   

Error: COMPILER_WARNING: [#def180]
opus-1.6/silk/x86/NSQ_sse4_1.c:737:37: note[note]: called from here
#  735|   
#  736|               xmm_sLTP_shp_Q14_x2x0 = _mm_mul_epi32( xmm_sLTP_shp_Q14_x2x0, xmm_gain_adj_Q16 );
#  737|->             xmm_sLTP_shp_Q14_x3x1 = _mm_mul_epi32( xmm_sLTP_shp_Q14_x3x1, xmm_gain_adj_Q16 );
#  738|   
#  739|               xmm_sLTP_shp_Q14_x2x0 = _mm_srli_epi64( xmm_sLTP_shp_Q14_x2x0, 16 );

Error: COMPILER_WARNING: [#def181]
opus-1.6/silk/x86/NSQ_sse4_1.c:742:37: note[note]: called from here
#  740|               xmm_sLTP_shp_Q14_x3x1 = _mm_slli_epi64( xmm_sLTP_shp_Q14_x3x1, 16 );
#  741|   
#  742|->             xmm_sLTP_shp_Q14_x2x0 = _mm_blend_epi16( xmm_sLTP_shp_Q14_x2x0, xmm_sLTP_shp_Q14_x3x1, 0xCC );
#  743|   
#  744|               _mm_storeu_si128( (__m128i *)(void*)(&(NSQ->sLTP_shp_Q14[ i ] ) ), xmm_sLTP_shp_Q14_x2x0 );

Error: COMPILER_WARNING: [#def182]
opus-1.6/silk/x86/VQ_WMat_EC_sse4_1.c:88:26: note[note]: called from here
#   86|   
#   87|           /* first row of XX_Q17 */
#   88|->         v_cb_row_31_Q7 = OP_CVTEPI8_EPI32_M32( &cb_row_Q7[ 1 ] );
#   89|           v_cb_row_42_Q7 = _mm_shuffle_epi32( v_cb_row_31_Q7, _MM_SHUFFLE( 0, 3, 2, 1 ) );
#   90|           v_cb_row_31_Q7 = _mm_mul_epi32( v_XX_31_Q17, v_cb_row_31_Q7 );

Error: COMPILER_WARNING: [#def183]
opus-1.6/silk/x86/VQ_WMat_EC_sse4_1.c:90:26: note[note]: called from here
#   88|           v_cb_row_31_Q7 = OP_CVTEPI8_EPI32_M32( &cb_row_Q7[ 1 ] );
#   89|           v_cb_row_42_Q7 = _mm_shuffle_epi32( v_cb_row_31_Q7, _MM_SHUFFLE( 0, 3, 2, 1 ) );
#   90|->         v_cb_row_31_Q7 = _mm_mul_epi32( v_XX_31_Q17, v_cb_row_31_Q7 );
#   91|           v_cb_row_42_Q7 = _mm_mul_epi32( v_XX_42_Q17, v_cb_row_42_Q7 );
#   92|           v_acc1_Q24 = _mm_add_epi64( v_cb_row_31_Q7, v_cb_row_42_Q7);

Error: COMPILER_WARNING: [#def184]
opus-1.6/silk/x86/VQ_WMat_EC_sse4_1.c:91:26: note[note]: called from here
#   89|           v_cb_row_42_Q7 = _mm_shuffle_epi32( v_cb_row_31_Q7, _MM_SHUFFLE( 0, 3, 2, 1 ) );
#   90|           v_cb_row_31_Q7 = _mm_mul_epi32( v_XX_31_Q17, v_cb_row_31_Q7 );
#   91|->         v_cb_row_42_Q7 = _mm_mul_epi32( v_XX_42_Q17, v_cb_row_42_Q7 );
#   92|           v_acc1_Q24 = _mm_add_epi64( v_cb_row_31_Q7, v_cb_row_42_Q7);
#   93|           v_acc2_Q24 = _mm_shuffle_epi32( v_acc1_Q24, _MM_SHUFFLE( 1, 0, 3, 2 ) );

Error: CPPCHECK_WARNING (CWE-457): [#def185]
opus-1.6/src/analysis.c:207: warning[uninitvar]: Uninitialized variable: tmp3x
#  205|            tmp3x[3*j+2] = tmp[j];
#  206|         }
#  207|->       silk_resampler_down2_hp(S, y, tmp3x, 3*subframe);
#  208|      }
#  209|      RESTORE_STACK;

Error: CPPCHECK_WARNING (CWE-457): [#def186]
opus-1.6/src/mlp.c:126: warning[uninitvar]: Uninitialized variable: tmp
#  124|         tmp[i] = state[i] * r[i];
#  125|      gemm_accum(h, &gru->input_weights[2*N], N, M, stride, input);
#  126|->    gemm_accum(h, &gru->recurrent_weights[2*N], N, N, stride, tmp);
#  127|      for (i=0;i<N;i++)
#  128|         h[i] = z[i]*state[i] + (1-z[i])*tansig_approx(WEIGHTS_SCALE*h[i]);

Error: GCC_ANALYZER_WARNING (CWE-415): [#def187]
opus-1.6/src/opus_compare.c:51:10: warning[-Wanalyzer-double-free]: double-‘free’ of ‘_ptr’
opus-1.6/src/opus_compare.c:165:5: enter_function: entry to ‘main’
opus-1.6/src/opus_compare.c:188:5: branch_false: following ‘false’ branch...
opus-1.6/src/opus_compare.c:194:6: branch_false: ...to here
opus-1.6/src/opus_compare.c:202:5: branch_false: following ‘false’ branch (when the strings are non-equal)...
opus-1.6/src/opus_compare.c:219:8: branch_false: ...to here
opus-1.6/src/opus_compare.c:220:5: branch_false: following ‘false’ branch...
opus-1.6/src/opus_compare.c:224:8: branch_false: ...to here
opus-1.6/src/opus_compare.c:225:5: branch_false: following ‘false’ branch...
opus-1.6/src/opus_compare.c:231:11: branch_false: ...to here
opus-1.6/src/opus_compare.c:231:11: call_function: calling ‘read_pcm16’ from ‘main’
opus-1.6/src/opus_compare.c:231:11: return_function: returning to ‘main’ from ‘read_pcm16’
opus-1.6/src/opus_compare.c:232:5: branch_true: following ‘true’ branch (when ‘nchannels == 1’)...
opus-1.6/src/opus_compare.c:232:5: branch_true: ...to here
opus-1.6/src/opus_compare.c:233:14: branch_false: following ‘false’ branch...
opus-1.6/src/opus_compare.c:235:3: branch_false: ...to here
opus-1.6/src/opus_compare.c:236:11: call_function: calling ‘read_pcm16’ from ‘main’
#   49|   
#   50|   static void *opus_realloc(void *_ptr,size_t _size){
#   51|->   return check_alloc(realloc(_ptr,_size));
#   52|   }
#   53|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def188]
opus-1.6/src/opus_compare.c:233:40: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
opus-1.6/src/opus_compare.c:165:5: enter_function: entry to ‘main’
opus-1.6/src/opus_compare.c:188:5: branch_false: following ‘false’ branch...
opus-1.6/src/opus_compare.c:194:6: branch_false: ...to here
opus-1.6/src/opus_compare.c:202:5: branch_false: following ‘false’ branch (when the strings are non-equal)...
opus-1.6/src/opus_compare.c:219:8: branch_false: ...to here
opus-1.6/src/opus_compare.c:220:5: branch_false: following ‘false’ branch...
opus-1.6/src/opus_compare.c:224:8: branch_false: ...to here
opus-1.6/src/opus_compare.c:225:5: branch_false: following ‘false’ branch...
opus-1.6/src/opus_compare.c:231:11: branch_false: ...to here
opus-1.6/src/opus_compare.c:231:11: call_function: calling ‘read_pcm16’ from ‘main’
opus-1.6/src/opus_compare.c:231:11: return_function: returning to ‘main’ from ‘read_pcm16’
opus-1.6/src/opus_compare.c:232:5: branch_true: following ‘true’ branch (when ‘nchannels == 1’)...
opus-1.6/src/opus_compare.c:232:5: branch_true: ...to here
opus-1.6/src/opus_compare.c:233:14: branch_true: following ‘true’ branch...
opus-1.6/src/opus_compare.c:233:40: danger: use of uninitialized value ‘*<unknown>’ here
#  231|     xlength=read_pcm16(&x,fin1,2);
#  232|     if(nchannels==1){
#  233|->     for(xi=0;xi<xlength;xi++)x[xi]=.5*(x[2*xi]+x[2*xi+1]);
#  234|     }
#  235|     fclose(fin1);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def189]
opus-1.6/src/opus_decoder.c:1063:8: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
opus-1.6/src/opus_decoder.c:1041:4: acquire_resource: 'va_start' called here
opus-1.6/src/opus_decoder.c:1058:10: branch_false: following 'false' branch...
opus-1.6/src/opus_decoder.c:1062:8: branch_false: ...to here
opus-1.6/src/opus_decoder.c:1063:8: throw: if 'opus_custom_decoder_ctl' throws an exception...
opus-1.6/src/opus_decoder.c:1063:8: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
# 1061|          }
# 1062|          st->complexity = value;
# 1063|->        celt_decoder_ctl(celt_dec, OPUS_SET_COMPLEXITY(value));
# 1064|      }
# 1065|      break;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def190]
opus-1.6/src/opus_decoder.c:1114:7: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
opus-1.6/src/opus_decoder.c:1041:4: acquire_resource: 'va_start' called here
opus-1.6/src/opus_decoder.c:1114:7: throw: if 'opus_custom_decoder_ctl' throws an exception...
opus-1.6/src/opus_decoder.c:1114:7: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
# 1112|               ((char*)&st->OPUS_DECODER_RESET_START - (char*)st));
# 1113|   
# 1114|->       celt_decoder_ctl(celt_dec, OPUS_RESET_STATE);
# 1115|         silk_ResetDecoder( silk_dec );
# 1116|         st->stream_channels = st->channels;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def191]
opus-1.6/src/opus_decoder.c:1115:7: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
opus-1.6/src/opus_decoder.c:1041:4: acquire_resource: 'va_start' called here
opus-1.6/src/opus_decoder.c:1115:7: throw: if 'silk_ResetDecoder' throws an exception...
opus-1.6/src/opus_decoder.c:1115:7: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
# 1113|   
# 1114|         celt_decoder_ctl(celt_dec, OPUS_RESET_STATE);
# 1115|->       silk_ResetDecoder( silk_dec );
# 1116|         st->stream_channels = st->channels;
# 1117|         st->frame_size = st->Fs/400;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def192]
opus-1.6/src/opus_decoder.c:1141:16: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
opus-1.6/src/opus_decoder.c:1041:4: acquire_resource: 'va_start' called here
opus-1.6/src/opus_decoder.c:1136:10: branch_false: following 'false' branch (when 'value' is non-NULL)...
opus-1.6/src/opus_decoder.c:1140:11: branch_false: ...to here
opus-1.6/src/opus_decoder.c:1140:10: branch_true: following 'true' branch...
opus-1.6/src/opus_decoder.c:1141:16: branch_true: ...to here
opus-1.6/src/opus_decoder.c:1141:16: throw: if 'opus_custom_decoder_ctl' throws an exception...
opus-1.6/src/opus_decoder.c:1141:16: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
# 1139|         }
# 1140|         if (st->prev_mode == MODE_CELT_ONLY)
# 1141|->          ret = celt_decoder_ctl(celt_dec, OPUS_GET_PITCH(value));
# 1142|         else
# 1143|            *value = st->DecControl.prevPitchLag;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def193]
opus-1.6/src/opus_decoder.c:1183:14: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
opus-1.6/src/opus_decoder.c:1041:4: acquire_resource: 'va_start' called here
opus-1.6/src/opus_decoder.c:1179:10: branch_false: following 'false' branch...
opus-1.6/src/opus_decoder.c:1183:14: branch_false: ...to here
opus-1.6/src/opus_decoder.c:1183:14: throw: if 'opus_custom_decoder_ctl' throws an exception...
opus-1.6/src/opus_decoder.c:1183:14: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
# 1181|             goto bad_arg;
# 1182|          }
# 1183|->        ret = celt_decoder_ctl(celt_dec, OPUS_SET_PHASE_INVERSION_DISABLED(value));
# 1184|      }
# 1185|      break;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def194]
opus-1.6/src/opus_decoder.c:1193:14: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
opus-1.6/src/opus_decoder.c:1041:4: acquire_resource: 'va_start' called here
opus-1.6/src/opus_decoder.c:1189:11: branch_false: following 'false' branch (when 'value' is non-NULL)...
opus-1.6/src/opus_decoder.c:1193:14: branch_false: ...to here
opus-1.6/src/opus_decoder.c:1193:14: throw: if 'opus_custom_decoder_ctl' throws an exception...
opus-1.6/src/opus_decoder.c:1193:14: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
# 1191|             goto bad_arg;
# 1192|          }
# 1193|->        ret = celt_decoder_ctl(celt_dec, OPUS_GET_PHASE_INVERSION_DISABLED(value));
# 1194|      }
# 1195|      break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def195]
opus-1.6/src/opus_decoder.c:1388:16: warning[-Wanalyzer-malloc-leak]: leak of 'malloc((long unsigned int)opus_dred_decoder_get_size())'
opus-1.6/src/opus_decoder.c:1394:18: enter_function: entry to 'opus_dred_decoder_create'
opus-1.6/src/opus_decoder.c:1398:29: call_function: inlined call to 'opus_alloc' from 'opus_dred_decoder_create'
opus-1.6/src/opus_decoder.c:1399:7: branch_false: following 'false' branch...
opus-1.6/src/opus_decoder.c:1405:10: branch_false: ...to here
opus-1.6/src/opus_decoder.c:1405:10: call_function: calling 'opus_dred_decoder_init' from 'opus_dred_decoder_create'
# 1386|      if (ret == 0) dec->loaded = 1;
# 1387|   #endif
# 1388|->    dec->arch = opus_select_arch();
# 1389|      /* To make sure nobody forgets to init, use a magic number. */
# 1390|      dec->magic = 0xD8EDDEC0;

Error: CPPCHECK_WARNING (CWE-457): [#def196]
opus-1.6/src/opus_encoder.c:1306: warning[uninitvar]: Uninitialized variable: analysis_info.activity_probability
# 1304|       /* Track the peak signal energy */
# 1305|   #ifndef DISABLE_FLOAT_API
# 1306|->     if (!analysis_info.valid || analysis_info.activity_probability > DTX_ACTIVITY_THRESHOLD)
# 1307|   #endif
# 1308|       {

Error: CPPCHECK_WARNING (CWE-457): [#def197]
opus-1.6/src/opus_encoder.c:2678: warning[uninitvar]: Uninitialized variable: in
# 2676|      for (i=0;i<frame_size*st->channels;i++)
# 2677|         in[i] = INT16TORES(pcm[i]);
# 2678|->    ret = opus_encode_native(st, in, frame_size, data, max_data_bytes, 16,
# 2679|                               pcm, analysis_frame_size, 0, -2, st->channels, downmix_int, 1);
# 2680|      RESTORE_STACK;

Error: CPPCHECK_WARNING (CWE-457): [#def198]
opus-1.6/src/opus_encoder.c:2713: warning[uninitvar]: Uninitialized variable: in
# 2711|      for (i=0;i<frame_size*st->channels;i++)
# 2712|         in[i] = INT24TORES(pcm[i]);
# 2713|->    ret = opus_encode_native(st, in, frame_size, data, max_data_bytes, MAX_ENCODING_DEPTH,
# 2714|                               pcm, analysis_frame_size, 0, -2, st->channels, downmix_int24, 1);
# 2715|      RESTORE_STACK;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def199]
opus-1.6/src/opus_encoder.c:2934:16: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
opus-1.6/src/opus_encoder.c:2768:5: acquire_resource: 'va_start' called here
opus-1.6/src/opus_encoder.c:2928:15: branch_false: following 'false' branch...
opus-1.6/src/opus_encoder.c:2932:13: branch_false: ...to here
opus-1.6/src/opus_encoder.c:2933:16: branch_true: following 'true' branch...
opus-1.6/src/opus_encoder.c:2934:16: branch_true: ...to here
opus-1.6/src/opus_encoder.c:2934:16: throw: if 'opus_custom_encoder_ctl' throws an exception...
opus-1.6/src/opus_encoder.c:2934:16: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
# 2932|               st->silk_mode.complexity = value;
# 2933|               if (st->application != OPUS_APPLICATION_RESTRICTED_SILK)
# 2934|->                celt_encoder_ctl(celt_enc, OPUS_SET_COMPLEXITY(value));
# 2935|           }
# 2936|           break;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def200]
opus-1.6/src/opus_encoder.c:2977:16: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
opus-1.6/src/opus_encoder.c:2768:5: acquire_resource: 'va_start' called here
opus-1.6/src/opus_encoder.c:2971:16: branch_false: following 'false' branch...
opus-1.6/src/opus_encoder.c:2975:13: branch_false: ...to here
opus-1.6/src/opus_encoder.c:2976:16: branch_true: following 'true' branch...
opus-1.6/src/opus_encoder.c:2977:16: branch_true: ...to here
opus-1.6/src/opus_encoder.c:2977:16: throw: if 'opus_custom_encoder_ctl' throws an exception...
opus-1.6/src/opus_encoder.c:2977:16: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
# 2975|               st->silk_mode.packetLossPercentage = value;
# 2976|               if (st->application != OPUS_APPLICATION_RESTRICTED_SILK)
# 2977|->                celt_encoder_ctl(celt_enc, OPUS_SET_PACKET_LOSS_PERC(value));
# 2978|           }
# 2979|           break;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def201]
opus-1.6/src/opus_encoder.c:3171:16: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
opus-1.6/src/opus_encoder.c:2768:5: acquire_resource: 'va_start' called here
opus-1.6/src/opus_encoder.c:3166:15: branch_false: following 'false' branch...
opus-1.6/src/opus_encoder.c:3170:17: branch_false: ...to here
opus-1.6/src/opus_encoder.c:3170:16: branch_true: following 'true' branch...
opus-1.6/src/opus_encoder.c:3171:16: branch_true: ...to here
opus-1.6/src/opus_encoder.c:3171:16: throw: if 'opus_custom_encoder_ctl' throws an exception...
opus-1.6/src/opus_encoder.c:3171:16: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
# 3169|               }
# 3170|               if (st->application != OPUS_APPLICATION_RESTRICTED_SILK)
# 3171|->                celt_encoder_ctl(celt_enc, OPUS_SET_PHASE_INVERSION_DISABLED(value));
# 3172|           }
# 3173|           break;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def202]
opus-1.6/src/opus_encoder.c:3182:16: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
opus-1.6/src/opus_encoder.c:2768:5: acquire_resource: 'va_start' called here
opus-1.6/src/opus_encoder.c:3177:16: branch_false: following 'false' branch (when 'value' is non-NULL)...
opus-1.6/src/opus_encoder.c:3181:17: branch_false: ...to here
opus-1.6/src/opus_encoder.c:3181:16: branch_true: following 'true' branch...
opus-1.6/src/opus_encoder.c:3182:16: branch_true: ...to here
opus-1.6/src/opus_encoder.c:3182:16: throw: if 'opus_custom_encoder_ctl' throws an exception...
opus-1.6/src/opus_encoder.c:3182:16: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
# 3180|               }
# 3181|               if (st->application != OPUS_APPLICATION_RESTRICTED_SILK)
# 3182|->                celt_encoder_ctl(celt_enc, OPUS_GET_PHASE_INVERSION_DISABLED(value));
# 3183|               else
# 3184|                  *value = 0;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def203]
opus-1.6/src/opus_encoder.c:3239:12: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
opus-1.6/src/opus_encoder.c:2768:5: acquire_resource: 'va_start' called here
opus-1.6/src/opus_encoder.c:2770:8: branch_false: following 'false' branch...
opus-1.6/src/opus_encoder.c:2773:5: branch_false: ...to here
opus-1.6/src/opus_encoder.c:3239:12: throw: if 'tonality_analysis_reset' throws an exception...
opus-1.6/src/opus_encoder.c:3239:12: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
# 3237|              silk_enc = (char*)st+st->silk_enc_offset;
# 3238|   #ifndef DISABLE_FLOAT_API
# 3239|->            tonality_analysis_reset(&st->analysis);
# 3240|   #endif
# 3241|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def204]
opus-1.6/src/opus_encoder.c:3246:15: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
opus-1.6/src/opus_encoder.c:2768:5: acquire_resource: 'va_start' called here
opus-1.6/src/opus_encoder.c:3245:15: branch_true: following 'true' branch...
opus-1.6/src/opus_encoder.c:3246:15: branch_true: ...to here
opus-1.6/src/opus_encoder.c:3246:15: throw: if 'opus_custom_encoder_ctl' throws an exception...
opus-1.6/src/opus_encoder.c:3246:15: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
# 3244|   
# 3245|              if (st->application != OPUS_APPLICATION_RESTRICTED_SILK)
# 3246|->               celt_encoder_ctl(celt_enc, OPUS_RESET_STATE);
# 3247|              if (st->application != OPUS_APPLICATION_RESTRICTED_CELT)
# 3248|                 silk_InitEncoder( silk_enc, st->channels, st->arch, &dummy );

Error: GCC_ANALYZER_WARNING (CWE-404): [#def205]
opus-1.6/src/opus_encoder.c:3248:15: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
opus-1.6/src/opus_encoder.c:2768:5: acquire_resource: 'va_start' called here
opus-1.6/src/opus_encoder.c:3245:15: branch_false: following 'false' branch...
opus-1.6/src/opus_encoder.c:3247:16: branch_false: ...to here
opus-1.6/src/opus_encoder.c:3247:15: branch_true: following 'true' branch...
opus-1.6/src/opus_encoder.c:3248:15: branch_true: ...to here
opus-1.6/src/opus_encoder.c:3248:15: throw: if 'silk_InitEncoder' throws an exception...
opus-1.6/src/opus_encoder.c:3248:15: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
# 3246|                 celt_encoder_ctl(celt_enc, OPUS_RESET_STATE);
# 3247|              if (st->application != OPUS_APPLICATION_RESTRICTED_CELT)
# 3248|->               silk_InitEncoder( silk_enc, st->channels, st->arch, &dummy );
# 3249|   #ifdef ENABLE_DRED
# 3250|              /* Initialize DRED Encoder */

Error: GCC_ANALYZER_WARNING (CWE-404): [#def206]
opus-1.6/src/opus_encoder.c:3259:40: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
opus-1.6/src/opus_encoder.c:2768:5: acquire_resource: 'va_start' called here
opus-1.6/src/opus_encoder.c:3245:15: branch_false: following 'false' branch...
opus-1.6/src/opus_encoder.c:3247:16: branch_false: ...to here
opus-1.6/src/opus_encoder.c:3247:15: branch_false: following 'false' branch...
opus-1.6/src/opus_encoder.c:3253:34: branch_false: ...to here
opus-1.6/src/opus_encoder.c:3259:40: throw: if 'silk_lin2log' throws an exception...
opus-1.6/src/opus_encoder.c:3259:40: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
# 3257|              st->mode = MODE_HYBRID;
# 3258|              st->bandwidth = OPUS_BANDWIDTH_FULLBAND;
# 3259|->            st->variable_HP_smth2_Q15 = silk_LSHIFT( silk_lin2log( VARIABLE_HP_MIN_CUTOFF_HZ ), 8 );
# 3260|           }
# 3261|           break;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def207]
opus-1.6/src/opus_encoder.c:3277:22: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
opus-1.6/src/opus_encoder.c:2768:5: acquire_resource: 'va_start' called here
opus-1.6/src/opus_encoder.c:3276:16: branch_true: following 'true' branch...
opus-1.6/src/opus_encoder.c:3277:22: branch_true: ...to here
opus-1.6/src/opus_encoder.c:3277:22: throw: if 'opus_custom_encoder_ctl' throws an exception...
opus-1.6/src/opus_encoder.c:3277:22: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
# 3275|               st->lfe = value;
# 3276|               if (st->application != OPUS_APPLICATION_RESTRICTED_SILK)
# 3277|->                ret = celt_encoder_ctl(celt_enc, OPUS_SET_LFE(value));
# 3278|           }
# 3279|           break;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def208]
opus-1.6/src/opus_encoder.c:3285:22: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
opus-1.6/src/opus_encoder.c:2768:5: acquire_resource: 'va_start' called here
opus-1.6/src/opus_encoder.c:3284:16: branch_true: following 'true' branch...
opus-1.6/src/opus_encoder.c:3285:22: branch_true: ...to here
opus-1.6/src/opus_encoder.c:3285:22: throw: if 'opus_custom_encoder_ctl' throws an exception...
opus-1.6/src/opus_encoder.c:3285:22: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
# 3283|               st->energy_masking = value;
# 3284|               if (st->application != OPUS_APPLICATION_RESTRICTED_SILK)
# 3285|->                ret = celt_encoder_ctl(celt_enc, OPUS_SET_ENERGY_MASK(value));
# 3286|           }
# 3287|           break;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def209]
opus-1.6/src/opus_encoder.c:3335:12: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
opus-1.6/src/opus_encoder.c:2768:5: acquire_resource: 'va_start' called here
opus-1.6/src/opus_encoder.c:3331:15: branch_false: following 'false' branch (when 'value' is non-NULL)...
opus-1.6/src/opus_encoder.c:3335:12: branch_false: ...to here
opus-1.6/src/opus_encoder.c:3335:12: branch_true: following 'true' branch (when 'celt_enc' is NULL)...
opus-1.6/src/opus_encoder.c:3335:12: branch_true: ...to here
opus-1.6/src/opus_encoder.c:3335:12: throw: if 'celt_fatal' throws an exception...
opus-1.6/src/opus_encoder.c:3335:12: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
# 3333|                 goto bad_arg;
# 3334|              }
# 3335|->            celt_assert(celt_enc != NULL);
# 3336|              ret = celt_encoder_ctl(celt_enc, CELT_GET_MODE(value));
# 3337|           }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def210]
opus-1.6/src/opus_encoder.c:3336:18: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
opus-1.6/src/opus_encoder.c:2768:5: acquire_resource: 'va_start' called here
opus-1.6/src/opus_encoder.c:2770:8: branch_true: following 'true' branch...
opus-1.6/src/opus_encoder.c:2771:44: branch_true: ...to here
opus-1.6/src/opus_encoder.c:3331:15: branch_false: following 'false' branch (when 'value' is non-NULL)...
opus-1.6/src/opus_encoder.c:3335:12: branch_false: ...to here
opus-1.6/src/opus_encoder.c:3335:12: branch_false: following 'false' branch (when 'celt_enc' is non-NULL)...
opus-1.6/src/opus_encoder.c:3336:18: branch_false: ...to here
opus-1.6/src/opus_encoder.c:3336:18: throw: if 'opus_custom_encoder_ctl' throws an exception...
opus-1.6/src/opus_encoder.c:3336:18: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
# 3334|              }
# 3335|              celt_assert(celt_enc != NULL);
# 3336|->            ret = celt_encoder_ctl(celt_enc, CELT_GET_MODE(value));
# 3337|           }
# 3338|           break;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def211]
opus-1.6/src/opus_multistream_decoder.c:437:19: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
opus-1.6/src/opus_multistream_decoder.c:552:5: enter_function: entry to 'opus_multistream_decoder_ctl'
opus-1.6/src/opus_multistream_decoder.c:556:4: acquire_resource: 'va_start' called here
opus-1.6/src/opus_multistream_decoder.c:557:10: call_function: calling 'opus_multistream_decoder_ctl_va_list' from 'opus_multistream_decoder_ctl'
#  435|      int ret = OPUS_OK;
#  436|   
#  437|->    coupled_size = opus_decoder_get_size(2);
#  438|      mono_size = opus_decoder_get_size(1);
#  439|      ptr = (char*)st + align(sizeof(OpusMSDecoder));

Error: GCC_ANALYZER_WARNING (CWE-404): [#def212]
opus-1.6/src/opus_multistream_decoder.c:438:16: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
opus-1.6/src/opus_multistream_decoder.c:552:5: enter_function: entry to 'opus_multistream_decoder_ctl'
opus-1.6/src/opus_multistream_decoder.c:556:4: acquire_resource: 'va_start' called here
opus-1.6/src/opus_multistream_decoder.c:557:10: call_function: calling 'opus_multistream_decoder_ctl_va_list' from 'opus_multistream_decoder_ctl'
#  436|   
#  437|      coupled_size = opus_decoder_get_size(2);
#  438|->    mono_size = opus_decoder_get_size(1);
#  439|      ptr = (char*)st + align(sizeof(OpusMSDecoder));
#  440|      switch (request)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def213]
opus-1.6/src/opus_multistream_decoder.c:453:17: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
opus-1.6/src/opus_multistream_decoder.c:552:5: enter_function: entry to 'opus_multistream_decoder_ctl'
opus-1.6/src/opus_multistream_decoder.c:556:4: acquire_resource: 'va_start' called here
opus-1.6/src/opus_multistream_decoder.c:557:10: call_function: calling 'opus_multistream_decoder_ctl_va_list' from 'opus_multistream_decoder_ctl'
#  451|             opus_int32 *value = va_arg(ap, opus_int32*);
#  452|             dec = (OpusDecoder*)ptr;
#  453|->           ret = opus_decoder_ctl(dec, request, value);
#  454|          }
#  455|          break;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def214]
opus-1.6/src/opus_multistream_decoder.c:492:20: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
opus-1.6/src/opus_multistream_decoder.c:552:5: enter_function: entry to 'opus_multistream_decoder_ctl'
opus-1.6/src/opus_multistream_decoder.c:556:4: acquire_resource: 'va_start' called here
opus-1.6/src/opus_multistream_decoder.c:557:10: call_function: calling 'opus_multistream_decoder_ctl_va_list' from 'opus_multistream_decoder_ctl'
#  490|                else
#  491|                   ptr += align(mono_size);
#  492|->              ret = opus_decoder_ctl(dec, OPUS_RESET_STATE);
#  493|                if (ret != OPUS_OK)
#  494|                   break;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def215]
opus-1.6/src/opus_multistream_decoder.c:537:20: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
opus-1.6/src/opus_multistream_decoder.c:552:5: enter_function: entry to 'opus_multistream_decoder_ctl'
opus-1.6/src/opus_multistream_decoder.c:556:4: acquire_resource: 'va_start' called here
opus-1.6/src/opus_multistream_decoder.c:557:10: call_function: calling 'opus_multistream_decoder_ctl_va_list' from 'opus_multistream_decoder_ctl'
#  535|                else
#  536|                   ptr += align(mono_size);
#  537|->              ret = opus_decoder_ctl(dec, request, value);
#  538|                if (ret != OPUS_OK)
#  539|                   break;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def216]
opus-1.6/src/opus_multistream_encoder.c:76:19: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
opus-1.6/src/opus_multistream_encoder.c:1345:5: enter_function: entry to 'opus_multistream_encoder_ctl'
opus-1.6/src/opus_multistream_encoder.c:1349:4: acquire_resource: 'va_start' called here
opus-1.6/src/opus_multistream_encoder.c:1350:10: call_function: calling 'opus_multistream_encoder_ctl_va_list' from 'opus_multistream_encoder_ctl'
#   74|      int coupled_size, mono_size;
#   75|   
#   76|->    coupled_size = opus_encoder_init(NULL, st->Fs, 2, st->application);
#   77|      mono_size = opus_encoder_init(NULL, st->Fs, 1, st->application);
#   78|      ptr = (char*)st + align(sizeof(OpusMSEncoder));

Error: GCC_ANALYZER_WARNING (CWE-404): [#def217]
opus-1.6/src/opus_multistream_encoder.c:77:16: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
opus-1.6/src/opus_multistream_encoder.c:1345:5: enter_function: entry to 'opus_multistream_encoder_ctl'
opus-1.6/src/opus_multistream_encoder.c:1349:4: acquire_resource: 'va_start' called here
opus-1.6/src/opus_multistream_encoder.c:1350:10: call_function: calling 'opus_multistream_encoder_ctl_va_list' from 'opus_multistream_encoder_ctl'
#   75|   
#   76|      coupled_size = opus_encoder_init(NULL, st->Fs, 2, st->application);
#   77|->    mono_size = opus_encoder_init(NULL, st->Fs, 1, st->application);
#   78|      ptr = (char*)st + align(sizeof(OpusMSEncoder));
#   79|      for (s=0;s<st->layout.nb_streams;s++)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def218]
opus-1.6/src/opus_multistream_encoder.c:96:19: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
opus-1.6/src/opus_multistream_encoder.c:1345:5: enter_function: entry to 'opus_multistream_encoder_ctl'
opus-1.6/src/opus_multistream_encoder.c:1349:4: acquire_resource: 'va_start' called here
opus-1.6/src/opus_multistream_encoder.c:1350:10: call_function: calling 'opus_multistream_encoder_ctl_va_list' from 'opus_multistream_encoder_ctl'
#   94|      int coupled_size, mono_size;
#   95|   
#   96|->    coupled_size = opus_encoder_init(NULL, st->Fs, 2, st->application);
#   97|      mono_size = opus_encoder_init(NULL, st->Fs, 1, st->application);
#   98|      ptr = (char*)st + align(sizeof(OpusMSEncoder));

Error: GCC_ANALYZER_WARNING (CWE-404): [#def219]
opus-1.6/src/opus_multistream_encoder.c:97:16: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
opus-1.6/src/opus_multistream_encoder.c:1345:5: enter_function: entry to 'opus_multistream_encoder_ctl'
opus-1.6/src/opus_multistream_encoder.c:1349:4: acquire_resource: 'va_start' called here
opus-1.6/src/opus_multistream_encoder.c:1350:10: call_function: calling 'opus_multistream_encoder_ctl_va_list' from 'opus_multistream_encoder_ctl'
#   95|   
#   96|      coupled_size = opus_encoder_init(NULL, st->Fs, 2, st->application);
#   97|->    mono_size = opus_encoder_init(NULL, st->Fs, 1, st->application);
#   98|      ptr = (char*)st + align(sizeof(OpusMSEncoder));
#   99|      for (s=0;s<st->layout.nb_streams;s++)

Error: GCC_ANALYZER_WARNING (CWE-688): [#def220]
opus-1.6/src/opus_multistream_encoder.c:274:7: warning[-Wanalyzer-null-argument]: use of NULL 'mem' where non-null expected
opus-1.6/src/opus_multistream_encoder.c:1131:5: enter_function: entry to 'opus_multistream_encode_float'
opus-1.6/src/opus_multistream_encoder.c:1139:11: call_function: calling 'opus_multistream_encode_native' from 'opus_multistream_encode_float'
#  272|         int nb_frames = frame_size/freq_size;
#  273|         celt_assert(nb_frames*freq_size == frame_size);
#  274|->       OPUS_COPY(in, mem+c*overlap, overlap);
#  275|         (*copy_channel_in)(x, 1, pcm, channels, c, len, NULL);
#  276|         celt_preemphasis(x, in+overlap, frame_size, 1, upsample, celt_mode->preemph, preemph_mem+c, 0);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def221]
opus-1.6/src/opus_multistream_encoder.c:286:13: warning[-Wanalyzer-null-dereference]: dereference of NULL 'mem'
opus-1.6/src/opus_multistream_encoder.c:1131:5: enter_function: entry to 'opus_multistream_encode_float'
opus-1.6/src/opus_multistream_encoder.c:1139:11: call_function: calling 'opus_multistream_encode_native' from 'opus_multistream_encode_float'
#  284|            {
#  285|               OPUS_CLEAR(in, frame_size+overlap);
#  286|->             preemph_mem[c] = 0;
#  287|            }
#  288|         }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def222]
opus-1.6/src/opus_multistream_encoder.c:907:80: warning[-Wanalyzer-null-dereference]: dereference of NULL 'celt_mode'
opus-1.6/src/opus_multistream_encoder.c:1131:5: enter_function: entry to 'opus_multistream_encode_float'
opus-1.6/src/opus_multistream_encoder.c:1139:11: call_function: calling 'opus_multistream_encode_native' from 'opus_multistream_encode_float'
#  905|      if (st->mapping_type == MAPPING_TYPE_SURROUND && st->application != OPUS_APPLICATION_RESTRICTED_SILK)
#  906|      {
#  907|->       surround_analysis(celt_mode, pcm, bandSMR, mem, preemph_mem, frame_size, celt_mode->overlap, st->layout.nb_channels, Fs, copy_channel_in, st->arch);
#  908|      }
#  909|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def223]
opus-1.6/src/opus_multistream_encoder.c:1151:19: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
opus-1.6/src/opus_multistream_encoder.c:1345:5: enter_function: entry to 'opus_multistream_encoder_ctl'
opus-1.6/src/opus_multistream_encoder.c:1349:4: acquire_resource: 'va_start' called here
opus-1.6/src/opus_multistream_encoder.c:1350:10: call_function: calling 'opus_multistream_encoder_ctl_va_list' from 'opus_multistream_encoder_ctl'
# 1149|      int ret = OPUS_OK;
# 1150|   
# 1151|->    coupled_size = opus_encoder_init(NULL, st->Fs, 2, st->application);
# 1152|      mono_size = opus_encoder_init(NULL, st->Fs, 1, st->application);
# 1153|      ptr = (char*)st + align(sizeof(OpusMSEncoder));

Error: GCC_ANALYZER_WARNING (CWE-404): [#def224]
opus-1.6/src/opus_multistream_encoder.c:1152:16: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
opus-1.6/src/opus_multistream_encoder.c:1345:5: enter_function: entry to 'opus_multistream_encoder_ctl'
opus-1.6/src/opus_multistream_encoder.c:1349:4: acquire_resource: 'va_start' called here
opus-1.6/src/opus_multistream_encoder.c:1350:10: call_function: calling 'opus_multistream_encoder_ctl_va_list' from 'opus_multistream_encoder_ctl'
# 1150|   
# 1151|      coupled_size = opus_encoder_init(NULL, st->Fs, 2, st->application);
# 1152|->    mono_size = opus_encoder_init(NULL, st->Fs, 1, st->application);
# 1153|      ptr = (char*)st + align(sizeof(OpusMSEncoder));
# 1154|      switch (request)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def225]
opus-1.6/src/opus_multistream_encoder.c:1213:13: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
opus-1.6/src/opus_multistream_encoder.c:1345:5: enter_function: entry to 'opus_multistream_encoder_ctl'
opus-1.6/src/opus_multistream_encoder.c:1349:4: acquire_resource: 'va_start' called here
opus-1.6/src/opus_multistream_encoder.c:1350:10: call_function: calling 'opus_multistream_encoder_ctl_va_list' from 'opus_multistream_encoder_ctl'
# 1211|         opus_int32 *value = va_arg(ap, opus_int32*);
# 1212|         enc = (OpusEncoder*)ptr;
# 1213|->       ret = opus_encoder_ctl(enc, request, value);
# 1214|      }
# 1215|      break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def226]
opus-1.6/src/opus_projection_decoder.c:159:26: warning[-Wanalyzer-malloc-leak]: leak of 'malloc((long unsigned int)opus_projection_decoder_get_size(channels,  streams,  coupled_streams))'
opus-1.6/src/opus_projection_decoder.c:197:24: enter_function: entry to 'opus_projection_decoder_create'
opus-1.6/src/opus_projection_decoder.c:207:6: branch_false: following 'false' branch...
opus-1.6/src/opus_projection_decoder.c:212:33: branch_false: ...to here
opus-1.6/src/opus_projection_decoder.c:212:33: call_function: inlined call to 'opus_alloc' from 'opus_projection_decoder_create'
opus-1.6/src/opus_projection_decoder.c:213:6: branch_false: following 'false' branch...
opus-1.6/src/opus_projection_decoder.c:221:9: branch_false: ...to here
opus-1.6/src/opus_projection_decoder.c:221:9: call_function: calling 'opus_projection_decoder_init' from 'opus_projection_decoder_create'
#  157|     /* Verify supplied matrix size. */
#  158|     nb_input_streams = streams + coupled_streams;
#  159|->   expected_matrix_size = nb_input_streams * channels * sizeof(opus_int16);
#  160|     if (expected_matrix_size != demixing_matrix_size)
#  161|     {

Error: COMPILER_WARNING (CWE-457): [#def227]
opus-1.6/src/opus_projection_decoder.c:184:3: warning[-Wmaybe-uninitialized]: 'buf.1_83' may be used uninitialized
#  184 |   mapping_matrix_init(get_dec_demixing_matrix(st), channels, nb_input_streams, 0,
#      |   ^
opus-1.6/src/mapping_matrix.c: scope_hint: In function 'opus_projection_decoder_create.constprop'
opus-1.6/src/mapping_matrix.c:63:6: note: by argument 5 of type 'const opus_int16 *' to 'mapping_matrix_init' declared here
#   63 | void mapping_matrix_init(MappingMatrix * const matrix,
#      |      ^
#  182|     }
#  183|   
#  184|->   mapping_matrix_init(get_dec_demixing_matrix(st), channels, nb_input_streams, 0,
#  185|       buf, demixing_matrix_size);
#  186|   

Error: CPPCHECK_WARNING (CWE-457): [#def228]
opus-1.6/src/opus_projection_decoder.c:192: warning[uninitvar]: Uninitialized variable: mapping
#  190|   
#  191|     ret = opus_multistream_decoder_init(
#  192|->     get_multistream_decoder(st), Fs, channels, streams, coupled_streams, mapping);
#  193|     RESTORE_STACK;
#  194|     return ret;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def229]
opus-1.6/src/opus_projection_decoder.c:273:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
opus-1.6/src/opus_projection_decoder.c:272:3: acquire_resource: 'va_start' called here
opus-1.6/src/opus_projection_decoder.c:273:9: throw: if 'opus_multistream_decoder_ctl_va_list' throws an exception...
opus-1.6/src/opus_projection_decoder.c:273:9: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  271|   
#  272|     va_start(ap, request);
#  273|->   ret = opus_multistream_decoder_ctl_va_list(get_multistream_decoder(st),
#  274|       request, ap);
#  275|     va_end(ap);

Error: CPPCHECK_WARNING (CWE-457): [#def230]
opus-1.6/src/opus_projection_encoder.c:360: warning[uninitvar]: Uninitialized variable: mapping
#  358|     ms_encoder = get_multistream_encoder(st);
#  359|     ret = opus_multistream_encoder_init(ms_encoder, Fs, channels, *streams,
#  360|->                                       *coupled_streams, mapping, application);
#  361|     return ret;
#  362|   }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def231]
opus-1.6/src/opus_projection_encoder.c:490:22: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
opus-1.6/src/opus_projection_encoder.c:444:3: acquire_resource: 'va_start' called here
opus-1.6/src/opus_projection_encoder.c:486:8: branch_false: following 'false' branch (when 'external_char' is non-NULL)...
opus-1.6/src/opus_projection_encoder.c:490:22: branch_false: ...to here
opus-1.6/src/opus_projection_encoder.c:490:22: throw: if 'mapping_matrix_get_data' throws an exception...
opus-1.6/src/opus_projection_encoder.c:490:22: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  488|         goto bad_arg;
#  489|       }
#  490|->     internal_short = mapping_matrix_get_data(demixing_matrix);
#  491|       internal_size = nb_input_streams * nb_output_streams * sizeof(opus_int16);
#  492|       if (external_size != internal_size)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def232]
opus-1.6/src/opus_projection_encoder.c:511:11: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
opus-1.6/src/opus_projection_encoder.c:444:3: acquire_resource: 'va_start' called here
opus-1.6/src/opus_projection_encoder.c:511:11: throw: if 'opus_multistream_encoder_ctl_va_list' throws an exception...
opus-1.6/src/opus_projection_encoder.c:511:11: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  509|     default:
#  510|     {
#  511|->     ret = opus_multistream_encoder_ctl_va_list(ms_encoder, request, ap);
#  512|     }
#  513|     break;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def233]
opus-1.6/src/repacketizer_demo.c:54:26: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*<unknown>, "w")’
opus-1.6/src/repacketizer_demo.c:58:5: enter_function: entry to ‘main’
opus-1.6/src/repacketizer_demo.c:69:7: branch_false: following ‘false’ branch (when ‘argc > 2’)...
opus-1.6/src/repacketizer_demo.c:69:7: branch_false: ...to here
opus-1.6/src/repacketizer_demo.c:100:6: branch_false: following ‘false’ branch...
opus-1.6/src/repacketizer_demo.c:100:6: branch_false: ...to here
opus-1.6/src/repacketizer_demo.c:105:11: acquire_resource: opened here
opus-1.6/src/repacketizer_demo.c:106:6: branch_false: following ‘false’ branch...
opus-1.6/src/repacketizer_demo.c:113:9: branch_false: ...to here
opus-1.6/src/repacketizer_demo.c:119:16: branch_true: following ‘true’ branch (when ‘i < merge’)...
opus-1.6/src/repacketizer_demo.c:122:14: branch_true: ...to here
opus-1.6/src/repacketizer_demo.c:122:13: branch_false: following ‘false’ branch...
opus-1.6/src/repacketizer_demo.c:135:19: call_function: inlined call to ‘char_to_int’ from ‘main’
opus-1.6/src/repacketizer_demo.c:137:13: branch_false: following ‘false’ branch...
opus-1.6/src/repacketizer_demo.c:150:14: branch_false: ...to here
opus-1.6/src/repacketizer_demo.c:150:13: branch_false: following ‘false’ branch...
opus-1.6/src/repacketizer_demo.c:163:19: call_function: inlined call to ‘char_to_int’ from ‘main’
opus-1.6/src/repacketizer_demo.c:164:13: branch_false: following ‘false’ branch...
opus-1.6/src/repacketizer_demo.c:176:16: branch_false: ...to here
opus-1.6/src/repacketizer_demo.c:176:16: throw: if ‘opus_repacketizer_cat’ throws an exception...
opus-1.6/src/repacketizer_demo.c:135:19: call_function: inlined call to ‘char_to_int’ from ‘main’
#   52|   static opus_uint32 char_to_int(unsigned char ch[4])
#   53|   {
#   54|->     return ((opus_uint32)ch[0]<<24) | ((opus_uint32)ch[1]<<16)
#   55|            | ((opus_uint32)ch[2]<< 8) |  (opus_uint32)ch[3];
#   56|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def234]
opus-1.6/src/repacketizer_demo.c:54:26: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*<unknown>, "w")’
opus-1.6/src/repacketizer_demo.c:58:5: enter_function: entry to ‘main’
opus-1.6/src/repacketizer_demo.c:69:7: branch_false: following ‘false’ branch (when ‘argc > 2’)...
opus-1.6/src/repacketizer_demo.c:69:7: branch_false: ...to here
opus-1.6/src/repacketizer_demo.c:100:6: branch_false: following ‘false’ branch...
opus-1.6/src/repacketizer_demo.c:100:6: branch_false: ...to here
opus-1.6/src/repacketizer_demo.c:105:11: acquire_memory: allocated here
opus-1.6/src/repacketizer_demo.c:106:6: branch_false: following ‘false’ branch...
opus-1.6/src/repacketizer_demo.c:113:9: branch_false: ...to here
opus-1.6/src/repacketizer_demo.c:119:16: branch_true: following ‘true’ branch (when ‘i < merge’)...
opus-1.6/src/repacketizer_demo.c:122:14: branch_true: ...to here
opus-1.6/src/repacketizer_demo.c:122:13: branch_false: following ‘false’ branch...
opus-1.6/src/repacketizer_demo.c:135:19: call_function: inlined call to ‘char_to_int’ from ‘main’
opus-1.6/src/repacketizer_demo.c:137:13: branch_false: following ‘false’ branch...
opus-1.6/src/repacketizer_demo.c:150:14: branch_false: ...to here
opus-1.6/src/repacketizer_demo.c:150:13: branch_false: following ‘false’ branch...
opus-1.6/src/repacketizer_demo.c:163:19: call_function: inlined call to ‘char_to_int’ from ‘main’
opus-1.6/src/repacketizer_demo.c:164:13: branch_false: following ‘false’ branch...
opus-1.6/src/repacketizer_demo.c:176:16: branch_false: ...to here
opus-1.6/src/repacketizer_demo.c:176:16: throw: if ‘opus_repacketizer_cat’ throws an exception...
opus-1.6/src/repacketizer_demo.c:135:19: call_function: inlined call to ‘char_to_int’ from ‘main’
#   52|   static opus_uint32 char_to_int(unsigned char ch[4])
#   53|   {
#   54|->     return ((opus_uint32)ch[0]<<24) | ((opus_uint32)ch[1]<<16)
#   55|            | ((opus_uint32)ch[2]<< 8) |  (opus_uint32)ch[3];
#   56|   }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def235]
opus-1.6/src/repacketizer_demo.c:113:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*<unknown>, "w")’
opus-1.6/src/repacketizer_demo.c:69:7: branch_false: following ‘false’ branch (when ‘argc > 2’)...
opus-1.6/src/repacketizer_demo.c:69:7: branch_false: ...to here
opus-1.6/src/repacketizer_demo.c:100:6: branch_false: following ‘false’ branch...
opus-1.6/src/repacketizer_demo.c:100:6: branch_false: ...to here
opus-1.6/src/repacketizer_demo.c:105:11: acquire_resource: opened here
opus-1.6/src/repacketizer_demo.c:106:6: branch_false: following ‘false’ branch...
opus-1.6/src/repacketizer_demo.c:113:9: branch_false: ...to here
opus-1.6/src/repacketizer_demo.c:113:9: throw: if ‘opus_repacketizer_create’ throws an exception...
opus-1.6/src/repacketizer_demo.c:113:9: danger: ‘fopen(*<unknown>, "w")’ leaks here; was opened at [(5)](sarif:/runs/0/results/58/codeFlows/0/threadFlows/0/locations/4)
#  111|      }
#  112|   
#  113|->    rp = opus_repacketizer_create();
#  114|      while (!eof)
#  115|      {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def236]
opus-1.6/src/repacketizer_demo.c:113:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*<unknown>, "w")’
opus-1.6/src/repacketizer_demo.c:69:7: branch_false: following ‘false’ branch (when ‘argc > 2’)...
opus-1.6/src/repacketizer_demo.c:69:7: branch_false: ...to here
opus-1.6/src/repacketizer_demo.c:100:6: branch_false: following ‘false’ branch...
opus-1.6/src/repacketizer_demo.c:100:6: branch_false: ...to here
opus-1.6/src/repacketizer_demo.c:105:11: acquire_memory: allocated here
opus-1.6/src/repacketizer_demo.c:106:6: branch_false: following ‘false’ branch...
opus-1.6/src/repacketizer_demo.c:113:9: branch_false: ...to here
opus-1.6/src/repacketizer_demo.c:113:9: throw: if ‘opus_repacketizer_create’ throws an exception...
opus-1.6/src/repacketizer_demo.c:113:9: danger: ‘fopen(*<unknown>, "w")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/59/codeFlows/0/threadFlows/0/locations/4)
#  111|      }
#  112|   
#  113|->    rp = opus_repacketizer_create();
#  114|      while (!eof)
#  115|      {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def237]
opus-1.6/src/repacketizer_demo.c:118:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*<unknown>, "w")’
opus-1.6/src/repacketizer_demo.c:69:7: branch_false: following ‘false’ branch (when ‘argc > 2’)...
opus-1.6/src/repacketizer_demo.c:69:7: branch_false: ...to here
opus-1.6/src/repacketizer_demo.c:100:6: branch_false: following ‘false’ branch...
opus-1.6/src/repacketizer_demo.c:100:6: branch_false: ...to here
opus-1.6/src/repacketizer_demo.c:105:11: acquire_resource: opened here
opus-1.6/src/repacketizer_demo.c:106:6: branch_false: following ‘false’ branch...
opus-1.6/src/repacketizer_demo.c:113:9: branch_false: ...to here
opus-1.6/src/repacketizer_demo.c:118:7: throw: if ‘opus_repacketizer_init’ throws an exception...
opus-1.6/src/repacketizer_demo.c:118:7: danger: ‘fopen(*<unknown>, "w")’ leaks here; was opened at [(5)](sarif:/runs/0/results/60/codeFlows/0/threadFlows/0/locations/4)
#  116|         int err;
#  117|         int nb_packets=merge;
#  118|->       opus_repacketizer_init(rp);
#  119|         for (i=0;i<nb_packets;i++)
#  120|         {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def238]
opus-1.6/src/repacketizer_demo.c:118:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*<unknown>, "w")’
opus-1.6/src/repacketizer_demo.c:69:7: branch_false: following ‘false’ branch (when ‘argc > 2’)...
opus-1.6/src/repacketizer_demo.c:69:7: branch_false: ...to here
opus-1.6/src/repacketizer_demo.c:100:6: branch_false: following ‘false’ branch...
opus-1.6/src/repacketizer_demo.c:100:6: branch_false: ...to here
opus-1.6/src/repacketizer_demo.c:105:11: acquire_memory: allocated here
opus-1.6/src/repacketizer_demo.c:106:6: branch_false: following ‘false’ branch...
opus-1.6/src/repacketizer_demo.c:113:9: branch_false: ...to here
opus-1.6/src/repacketizer_demo.c:118:7: throw: if ‘opus_repacketizer_init’ throws an exception...
opus-1.6/src/repacketizer_demo.c:118:7: danger: ‘fopen(*<unknown>, "w")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/61/codeFlows/0/threadFlows/0/locations/4)
#  116|         int err;
#  117|         int nb_packets=merge;
#  118|->       opus_repacketizer_init(rp);
#  119|         for (i=0;i<nb_packets;i++)
#  120|         {

Error: GCC_ANALYZER_WARNING (CWE-127): [#def239]
opus-1.6/src/repacketizer_demo.c:198:25: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
opus-1.6/src/repacketizer_demo.c:58:5: enter_function: entry to ‘main’
opus-1.6/src/repacketizer_demo.c:69:7: branch_false: following ‘false’ branch (when ‘argc > 2’)...
opus-1.6/src/repacketizer_demo.c:69:7: branch_false: ...to here
opus-1.6/src/repacketizer_demo.c:100:6: branch_false: following ‘false’ branch...
opus-1.6/src/repacketizer_demo.c:100:6: branch_false: ...to here
opus-1.6/src/repacketizer_demo.c:106:6: branch_false: following ‘false’ branch...
opus-1.6/src/repacketizer_demo.c:113:9: branch_false: ...to here
opus-1.6/src/repacketizer_demo.c:119:16: branch_true: following ‘true’ branch (when ‘i < merge’)...
opus-1.6/src/repacketizer_demo.c:122:14: branch_true: ...to here
opus-1.6/src/repacketizer_demo.c:122:13: branch_false: following ‘false’ branch...
opus-1.6/src/repacketizer_demo.c:135:19: call_function: inlined call to ‘char_to_int’ from ‘main’
opus-1.6/src/repacketizer_demo.c:137:13: branch_false: following ‘false’ branch...
opus-1.6/src/repacketizer_demo.c:150:14: branch_false: ...to here
opus-1.6/src/repacketizer_demo.c:150:13: branch_false: following ‘false’ branch...
opus-1.6/src/repacketizer_demo.c:163:19: call_function: inlined call to ‘char_to_int’ from ‘main’
opus-1.6/src/repacketizer_demo.c:164:13: branch_false: following ‘false’ branch...
opus-1.6/src/repacketizer_demo.c:176:16: branch_false: ...to here
opus-1.6/src/repacketizer_demo.c:194:15: branch_false: following ‘false’ branch...
opus-1.6/src/repacketizer_demo.c:198:29: branch_false: ...to here
opus-1.6/src/repacketizer_demo.c:198:25: danger: out-of-bounds read from byte -4 till byte -1 but ‘rng’ starts at byte 0
#  196|                  return EXIT_FAILURE;
#  197|               }
#  198|->             int_to_char(rng[nb_packets-1], int_field);
#  199|               if (fwrite(int_field, 1, 4, fout)!=4) {
#  200|                  fprintf(stderr, "Error writing.\n");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def240]
opus-1.6/tests/test_opus_api.c:139:16: warning[-Wanalyzer-malloc-leak]: leak of ‘dec’
opus-1.6/tests/test_opus_api.c:103:12: branch_true: following ‘true’ branch (when ‘cfgs != 4’)...
opus-1.6/tests/test_opus_api.c:105:9: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:106:9: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:107:7: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:107:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:106:10: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:107:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:112:12: branch_true: following ‘true’ branch (when ‘c != 4’)...
opus-1.6/tests/test_opus_api.c:114:11: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:114:16: branch_true: following ‘true’ branch...
opus-1.6/tests/test_opus_api.c:117:14: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:117:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:122:10: branch_true: following ‘true’ branch...
opus-1.6/tests/test_opus_api.c:122:10: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:132:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:135:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:137:21: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:137:14: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:138:12: branch_false: following ‘false’ branch (when ‘dec’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:139:16: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:139:16: throw: if ‘opus_decoder_init’ throws an exception...
opus-1.6/tests/test_opus_api.c:139:16: danger: ‘dec’ leaks here; was allocated at [(21)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/20)
#  137|            dec=malloc(opus_decoder_get_size(2));
#  138|            if(dec==NULL)test_failed();
#  139|->          err = opus_decoder_init(dec,fs,c);
#  140|            if(err!=OPUS_BAD_ARG)test_failed();
#  141|            cfgs++;

Error: CPPCHECK_WARNING (CWE-476): [#def241]
opus-1.6/tests/test_opus_api.c:245: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dec2
#  243|      /*Reset the decoder*/
#  244|      dec2=malloc(opus_decoder_get_size(2));
#  245|->    memcpy(dec2,dec,opus_decoder_get_size(2));
#  246|      if(opus_decoder_ctl(dec, OPUS_RESET_STATE)!=OPUS_OK)test_failed();
#  247|      if(memcmp(dec2,dec,opus_decoder_get_size(2))==0)test_failed();

Error: CPPCHECK_WARNING (CWE-476): [#def242]
opus-1.6/tests/test_opus_api.c:247: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dec2
#  245|      memcpy(dec2,dec,opus_decoder_get_size(2));
#  246|      if(opus_decoder_ctl(dec, OPUS_RESET_STATE)!=OPUS_OK)test_failed();
#  247|->    if(memcmp(dec2,dec,opus_decoder_get_size(2))==0)test_failed();
#  248|      free(dec2);
#  249|      fprintf(stdout,"    OPUS_RESET_STATE ............................. OK.\n");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def243]
opus-1.6/tests/test_opus_api.c:1126:16: warning[-Wanalyzer-malloc-leak]: leak of ‘enc’
opus-1.6/tests/test_opus_api.c:1089:12: branch_true: following ‘true’ branch (when ‘c != 4’)...
opus-1.6/tests/test_opus_api.c:1091:9: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1092:9: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1093:7: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1093:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1092:10: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1093:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1098:12: branch_true: following ‘true’ branch (when ‘c != 4’)...
opus-1.6/tests/test_opus_api.c:1100:11: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1100:16: branch_true: following ‘true’ branch...
opus-1.6/tests/test_opus_api.c:1103:14: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1103:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1108:10: branch_true: following ‘true’ branch...
opus-1.6/tests/test_opus_api.c:1108:10: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1118:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1121:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1123:10: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1124:14: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1125:12: branch_false: following ‘false’ branch (when ‘enc’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1126:16: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1126:16: throw: if ‘opus_encoder_init’ throws an exception...
opus-1.6/tests/test_opus_api.c:1126:16: danger: ‘enc’ leaks here; was allocated at [(21)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/20)
# 1124|            enc=malloc(opus_encoder_get_size(2));
# 1125|            if(enc==NULL)test_failed();
# 1126|->          err = opus_encoder_init(enc, fs, c, OPUS_APPLICATION_VOIP);
# 1127|            if(err!=OPUS_BAD_ARG)test_failed();
# 1128|            cfgs++;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def244]
opus-1.6/tests/test_opus_api.c:1472:6: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1472:6: throw: if ‘opus_repacketizer_get_size’ throws an exception...
opus-1.6/tests/test_opus_api.c:1472:6: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
# 1470|      if(po==NULL)test_failed();
# 1471|   
# 1472|->    i=opus_repacketizer_get_size();
# 1473|      if(i<=0)test_failed();
# 1474|      cfgs++;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def245]
opus-1.6/tests/test_opus_api.c:1472:6: warning[-Wanalyzer-malloc-leak]: leak of ‘po’
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1469:7: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1472:6: throw: if ‘opus_repacketizer_get_size’ throws an exception...
opus-1.6/tests/test_opus_api.c:1472:6: danger: ‘po’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
# 1470|      if(po==NULL)test_failed();
# 1471|   
# 1472|->    i=opus_repacketizer_get_size();
# 1473|      if(i<=0)test_failed();
# 1474|      cfgs++;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def246]
opus-1.6/tests/test_opus_api.c:1478:7: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1478:7: throw: if ‘opus_repacketizer_init’ throws an exception...
opus-1.6/tests/test_opus_api.c:1478:7: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
# 1476|   
# 1477|      rp=malloc(i);
# 1478|->    rp=opus_repacketizer_init(rp);
# 1479|      if(rp==NULL)test_failed();
# 1480|      cfgs++;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def247]
opus-1.6/tests/test_opus_api.c:1478:7: warning[-Wanalyzer-malloc-leak]: leak of ‘po’
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1469:7: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1478:7: throw: if ‘opus_repacketizer_init’ throws an exception...
opus-1.6/tests/test_opus_api.c:1478:7: danger: ‘po’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
# 1476|   
# 1477|      rp=malloc(i);
# 1478|->    rp=opus_repacketizer_init(rp);
# 1479|      if(rp==NULL)test_failed();
# 1480|      cfgs++;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def248]
opus-1.6/tests/test_opus_api.c:1478:7: warning[-Wanalyzer-malloc-leak]: leak of ‘rp’
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1477:7: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1478:7: throw: if ‘opus_repacketizer_init’ throws an exception...
opus-1.6/tests/test_opus_api.c:1478:7: danger: ‘rp’ leaks here; was allocated at [(7)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/6)
# 1476|   
# 1477|      rp=malloc(i);
# 1478|->    rp=opus_repacketizer_init(rp);
# 1479|      if(rp==NULL)test_failed();
# 1480|      cfgs++;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def249]
opus-1.6/tests/test_opus_api.c:1484:7: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1484:7: throw: if ‘opus_repacketizer_create’ throws an exception...
opus-1.6/tests/test_opus_api.c:1484:7: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
# 1482|      fprintf(stdout,"    opus_repacketizer_init ....................... OK.\n");
# 1483|   
# 1484|->    rp=opus_repacketizer_create();
# 1485|      if(rp==NULL)test_failed();
# 1486|      cfgs++;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def250]
opus-1.6/tests/test_opus_api.c:1484:7: warning[-Wanalyzer-malloc-leak]: leak of ‘po’
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1469:7: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1484:7: throw: if ‘opus_repacketizer_create’ throws an exception...
opus-1.6/tests/test_opus_api.c:1484:7: danger: ‘po’ leaks here; was allocated at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
# 1482|      fprintf(stdout,"    opus_repacketizer_init ....................... OK.\n");
# 1483|   
# 1484|->    rp=opus_repacketizer_create();
# 1485|      if(rp==NULL)test_failed();
# 1486|      cfgs++;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def251]
opus-1.6/tests/test_opus_api.c:1489:7: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:7: throw: if ‘opus_repacketizer_get_nb_frames’ throws an exception...
opus-1.6/tests/test_opus_api.c:1489:7: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
# 1487|      fprintf(stdout,"    opus_repacketizer_create ..................... OK.\n");
# 1488|   
# 1489|->    if(opus_repacketizer_get_nb_frames(rp)!=0)test_failed();
# 1490|      cfgs++;
# 1491|      fprintf(stdout,"    opus_repacketizer_get_nb_frames .............. OK.\n");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def252]
opus-1.6/tests/test_opus_api.c:1489:7: warning[-Wanalyzer-malloc-leak]: leak of ‘po’
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1469:7: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:7: throw: if ‘opus_repacketizer_get_nb_frames’ throws an exception...
opus-1.6/tests/test_opus_api.c:1489:7: danger: ‘po’ leaks here; was allocated at [(3)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/2)
# 1487|      fprintf(stdout,"    opus_repacketizer_create ..................... OK.\n");
# 1488|   
# 1489|->    if(opus_repacketizer_get_nb_frames(rp)!=0)test_failed();
# 1490|      cfgs++;
# 1491|      fprintf(stdout,"    opus_repacketizer_get_nb_frames .............. OK.\n");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def253]
opus-1.6/tests/test_opus_api.c:1495:7: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:7: throw: if ‘opus_repacketizer_cat’ throws an exception...
opus-1.6/tests/test_opus_api.c:1495:7: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
# 1493|      /*Length overflows*/
# 1494|      VG_UNDEF(packet,4);
# 1495|->    if(opus_repacketizer_cat(rp,packet,0)!=OPUS_INVALID_PACKET)test_failed(); /* Zero len */
# 1496|      cfgs++;
# 1497|      packet[0]=1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def254]
opus-1.6/tests/test_opus_api.c:1495:7: warning[-Wanalyzer-malloc-leak]: leak of ‘po’
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1469:7: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:7: throw: if ‘opus_repacketizer_cat’ throws an exception...
opus-1.6/tests/test_opus_api.c:1495:7: danger: ‘po’ leaks here; was allocated at [(3)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/2)
# 1493|      /*Length overflows*/
# 1494|      VG_UNDEF(packet,4);
# 1495|->    if(opus_repacketizer_cat(rp,packet,0)!=OPUS_INVALID_PACKET)test_failed(); /* Zero len */
# 1496|      cfgs++;
# 1497|      packet[0]=1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def255]
opus-1.6/tests/test_opus_api.c:1498:7: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:7: throw: if ‘opus_repacketizer_cat’ throws an exception...
opus-1.6/tests/test_opus_api.c:1498:7: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
# 1496|      cfgs++;
# 1497|      packet[0]=1;
# 1498|->    if(opus_repacketizer_cat(rp,packet,2)!=OPUS_INVALID_PACKET)test_failed(); /* Odd payload code 1 */
# 1499|      cfgs++;
# 1500|      packet[0]=2;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def256]
opus-1.6/tests/test_opus_api.c:1498:7: warning[-Wanalyzer-malloc-leak]: leak of ‘po’
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1469:7: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:7: throw: if ‘opus_repacketizer_cat’ throws an exception...
opus-1.6/tests/test_opus_api.c:1498:7: danger: ‘po’ leaks here; was allocated at [(3)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/2)
# 1496|      cfgs++;
# 1497|      packet[0]=1;
# 1498|->    if(opus_repacketizer_cat(rp,packet,2)!=OPUS_INVALID_PACKET)test_failed(); /* Odd payload code 1 */
# 1499|      cfgs++;
# 1500|      packet[0]=2;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def257]
opus-1.6/tests/test_opus_api.c:1501:7: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:7: throw: if ‘opus_repacketizer_cat’ throws an exception...
opus-1.6/tests/test_opus_api.c:1501:7: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
# 1499|      cfgs++;
# 1500|      packet[0]=2;
# 1501|->    if(opus_repacketizer_cat(rp,packet,1)!=OPUS_INVALID_PACKET)test_failed(); /* Code 2 overflow one */
# 1502|      cfgs++;
# 1503|      packet[0]=3;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def258]
opus-1.6/tests/test_opus_api.c:1501:7: warning[-Wanalyzer-malloc-leak]: leak of ‘po’
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1469:7: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:7: throw: if ‘opus_repacketizer_cat’ throws an exception...
opus-1.6/tests/test_opus_api.c:1501:7: danger: ‘po’ leaks here; was allocated at [(3)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/2)
# 1499|      cfgs++;
# 1500|      packet[0]=2;
# 1501|->    if(opus_repacketizer_cat(rp,packet,1)!=OPUS_INVALID_PACKET)test_failed(); /* Code 2 overflow one */
# 1502|      cfgs++;
# 1503|      packet[0]=3;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def259]
opus-1.6/tests/test_opus_api.c:1504:7: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:7: throw: if ‘opus_repacketizer_cat’ throws an exception...
opus-1.6/tests/test_opus_api.c:1504:7: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
# 1502|      cfgs++;
# 1503|      packet[0]=3;
# 1504|->    if(opus_repacketizer_cat(rp,packet,1)!=OPUS_INVALID_PACKET)test_failed(); /* Code 3 no count */
# 1505|      cfgs++;
# 1506|      packet[0]=2;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def260]
opus-1.6/tests/test_opus_api.c:1504:7: warning[-Wanalyzer-malloc-leak]: leak of ‘po’
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1469:7: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:7: throw: if ‘opus_repacketizer_cat’ throws an exception...
opus-1.6/tests/test_opus_api.c:1504:7: danger: ‘po’ leaks here; was allocated at [(3)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/2)
# 1502|      cfgs++;
# 1503|      packet[0]=3;
# 1504|->    if(opus_repacketizer_cat(rp,packet,1)!=OPUS_INVALID_PACKET)test_failed(); /* Code 3 no count */
# 1505|      cfgs++;
# 1506|      packet[0]=2;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def261]
opus-1.6/tests/test_opus_api.c:1508:7: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:7: throw: if ‘opus_repacketizer_cat’ throws an exception...
opus-1.6/tests/test_opus_api.c:1508:7: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
# 1506|      packet[0]=2;
# 1507|      packet[1]=255;
# 1508|->    if(opus_repacketizer_cat(rp,packet,2)!=OPUS_INVALID_PACKET)test_failed(); /* Code 2 overflow two */
# 1509|      cfgs++;
# 1510|      packet[0]=2;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def262]
opus-1.6/tests/test_opus_api.c:1508:7: warning[-Wanalyzer-malloc-leak]: leak of ‘po’
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1469:7: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:7: throw: if ‘opus_repacketizer_cat’ throws an exception...
opus-1.6/tests/test_opus_api.c:1508:7: danger: ‘po’ leaks here; was allocated at [(3)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/2)
# 1506|      packet[0]=2;
# 1507|      packet[1]=255;
# 1508|->    if(opus_repacketizer_cat(rp,packet,2)!=OPUS_INVALID_PACKET)test_failed(); /* Code 2 overflow two */
# 1509|      cfgs++;
# 1510|      packet[0]=2;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def263]
opus-1.6/tests/test_opus_api.c:1512:7: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:7: throw: if ‘opus_repacketizer_cat’ throws an exception...
opus-1.6/tests/test_opus_api.c:1512:7: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/0)
# 1510|      packet[0]=2;
# 1511|      packet[1]=250;
# 1512|->    if(opus_repacketizer_cat(rp,packet,251)!=OPUS_INVALID_PACKET)test_failed(); /* Code 2 overflow three */
# 1513|      cfgs++;
# 1514|      packet[0]=3;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def264]
opus-1.6/tests/test_opus_api.c:1512:7: warning[-Wanalyzer-malloc-leak]: leak of ‘po’
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1469:7: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:7: throw: if ‘opus_repacketizer_cat’ throws an exception...
opus-1.6/tests/test_opus_api.c:1512:7: danger: ‘po’ leaks here; was allocated at [(3)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/2)
# 1510|      packet[0]=2;
# 1511|      packet[1]=250;
# 1512|->    if(opus_repacketizer_cat(rp,packet,251)!=OPUS_INVALID_PACKET)test_failed(); /* Code 2 overflow three */
# 1513|      cfgs++;
# 1514|      packet[0]=3;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def265]
opus-1.6/tests/test_opus_api.c:1516:7: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:7: throw: if ‘opus_repacketizer_cat’ throws an exception...
opus-1.6/tests/test_opus_api.c:1516:7: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/0)
# 1514|      packet[0]=3;
# 1515|      packet[1]=0;
# 1516|->    if(opus_repacketizer_cat(rp,packet,2)!=OPUS_INVALID_PACKET)test_failed(); /* Code 3 m=0 */
# 1517|      cfgs++;
# 1518|      packet[1]=49;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def266]
opus-1.6/tests/test_opus_api.c:1516:7: warning[-Wanalyzer-malloc-leak]: leak of ‘po’
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1469:7: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:7: throw: if ‘opus_repacketizer_cat’ throws an exception...
opus-1.6/tests/test_opus_api.c:1516:7: danger: ‘po’ leaks here; was allocated at [(3)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/2)
# 1514|      packet[0]=3;
# 1515|      packet[1]=0;
# 1516|->    if(opus_repacketizer_cat(rp,packet,2)!=OPUS_INVALID_PACKET)test_failed(); /* Code 3 m=0 */
# 1517|      cfgs++;
# 1518|      packet[1]=49;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def267]
opus-1.6/tests/test_opus_api.c:1519:7: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:7: throw: if ‘opus_repacketizer_cat’ throws an exception...
opus-1.6/tests/test_opus_api.c:1519:7: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/0)
# 1517|      cfgs++;
# 1518|      packet[1]=49;
# 1519|->    if(opus_repacketizer_cat(rp,packet,100)!=OPUS_INVALID_PACKET)test_failed(); /* Code 3 m=49 */
# 1520|      cfgs++;
# 1521|      packet[0]=0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def268]
opus-1.6/tests/test_opus_api.c:1519:7: warning[-Wanalyzer-malloc-leak]: leak of ‘po’
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1469:7: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:7: throw: if ‘opus_repacketizer_cat’ throws an exception...
opus-1.6/tests/test_opus_api.c:1519:7: danger: ‘po’ leaks here; was allocated at [(3)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/2)
# 1517|      cfgs++;
# 1518|      packet[1]=49;
# 1519|->    if(opus_repacketizer_cat(rp,packet,100)!=OPUS_INVALID_PACKET)test_failed(); /* Code 3 m=49 */
# 1520|      cfgs++;
# 1521|      packet[0]=0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def269]
opus-1.6/tests/test_opus_api.c:1522:7: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:7: throw: if ‘opus_repacketizer_cat’ throws an exception...
opus-1.6/tests/test_opus_api.c:1522:7: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/0)
# 1520|      cfgs++;
# 1521|      packet[0]=0;
# 1522|->    if(opus_repacketizer_cat(rp,packet,3)!=OPUS_OK)test_failed();
# 1523|      cfgs++;
# 1524|      packet[0]=1<<2;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def270]
opus-1.6/tests/test_opus_api.c:1522:7: warning[-Wanalyzer-malloc-leak]: leak of ‘po’
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1469:7: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:7: throw: if ‘opus_repacketizer_cat’ throws an exception...
opus-1.6/tests/test_opus_api.c:1522:7: danger: ‘po’ leaks here; was allocated at [(3)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/2)
# 1520|      cfgs++;
# 1521|      packet[0]=0;
# 1522|->    if(opus_repacketizer_cat(rp,packet,3)!=OPUS_OK)test_failed();
# 1523|      cfgs++;
# 1524|      packet[0]=1<<2;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def271]
opus-1.6/tests/test_opus_api.c:1525:7: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:7: throw: if ‘opus_repacketizer_cat’ throws an exception...
opus-1.6/tests/test_opus_api.c:1525:7: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/0)
# 1523|      cfgs++;
# 1524|      packet[0]=1<<2;
# 1525|->    if(opus_repacketizer_cat(rp,packet,3)!=OPUS_INVALID_PACKET)test_failed(); /* Change in TOC */
# 1526|      cfgs++;
# 1527|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def272]
opus-1.6/tests/test_opus_api.c:1525:7: warning[-Wanalyzer-malloc-leak]: leak of ‘po’
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1469:7: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:7: throw: if ‘opus_repacketizer_cat’ throws an exception...
opus-1.6/tests/test_opus_api.c:1525:7: danger: ‘po’ leaks here; was allocated at [(3)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/2)
# 1523|      cfgs++;
# 1524|      packet[0]=1<<2;
# 1525|->    if(opus_repacketizer_cat(rp,packet,3)!=OPUS_INVALID_PACKET)test_failed(); /* Change in TOC */
# 1526|      cfgs++;
# 1527|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def273]
opus-1.6/tests/test_opus_api.c:1529:4: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1529:4: throw: if ‘opus_repacketizer_init’ throws an exception...
opus-1.6/tests/test_opus_api.c:1529:4: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/0)
# 1527|   
# 1528|      /* Code 0,1,3 CBR -> Code 0,1,3 CBR */
# 1529|->    opus_repacketizer_init(rp);
# 1530|      for(j=0;j<32;j++)
# 1531|      {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def274]
opus-1.6/tests/test_opus_api.c:1529:4: warning[-Wanalyzer-malloc-leak]: leak of ‘po’
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1469:7: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1529:4: throw: if ‘opus_repacketizer_init’ throws an exception...
opus-1.6/tests/test_opus_api.c:1529:4: danger: ‘po’ leaks here; was allocated at [(3)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/2)
# 1527|   
# 1528|      /* Code 0,1,3 CBR -> Code 0,1,3 CBR */
# 1529|->    opus_repacketizer_init(rp);
# 1530|      for(j=0;j<32;j++)
# 1531|      {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def275]
opus-1.6/tests/test_opus_api.c:1535:16: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1535:16: throw: if ‘opus_packet_get_samples_per_frame’ throws an exception...
opus-1.6/tests/test_opus_api.c:1535:16: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/0)
# 1533|         int maxi;
# 1534|         packet[0]=((j<<1)+(j&1))<<2;
# 1535|->       maxi=960/opus_packet_get_samples_per_frame(packet,8000);
# 1536|         for(i=1;i<=maxi;i++)
# 1537|         {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def276]
opus-1.6/tests/test_opus_api.c:1535:16: warning[-Wanalyzer-malloc-leak]: leak of ‘po’
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1469:7: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1535:16: throw: if ‘opus_packet_get_samples_per_frame’ throws an exception...
opus-1.6/tests/test_opus_api.c:1535:16: danger: ‘po’ leaks here; was allocated at [(3)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/2)
# 1533|         int maxi;
# 1534|         packet[0]=((j<<1)+(j&1))<<2;
# 1535|->       maxi=960/opus_packet_get_samples_per_frame(packet,8000);
# 1536|         for(i=1;i<=maxi;i++)
# 1537|         {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def277]
opus-1.6/tests/test_opus_api.c:1543:22: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1541:12: branch_false: following ‘false’ branch (when ‘i == 1’)...
opus-1.6/tests/test_opus_api.c:1542:10: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1543:22: throw: if ‘opus_packet_get_samples_per_frame’ throws an exception...
opus-1.6/tests/test_opus_api.c:1543:22: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/0)
# 1541|            if(i>1)packet[0]+=i==2?1:3;
# 1542|            packet[1]=i>2?i:0;
# 1543|->          maxp=960/(i*opus_packet_get_samples_per_frame(packet,8000));
# 1544|            for(k=0;k<=(1275+75);k+=3)
# 1545|            {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def278]
opus-1.6/tests/test_opus_api.c:1543:22: warning[-Wanalyzer-malloc-leak]: leak of ‘po’
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1469:7: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1541:12: branch_false: following ‘false’ branch (when ‘i == 1’)...
opus-1.6/tests/test_opus_api.c:1542:10: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1543:22: throw: if ‘opus_packet_get_samples_per_frame’ throws an exception...
opus-1.6/tests/test_opus_api.c:1543:22: danger: ‘po’ leaks here; was allocated at [(3)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/2)
# 1541|            if(i>1)packet[0]+=i==2?1:3;
# 1542|            packet[1]=i>2?i:0;
# 1543|->          maxp=960/(i*opus_packet_get_samples_per_frame(packet,8000));
# 1544|            for(k=0;k<=(1275+75);k+=3)
# 1545|            {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def279]
opus-1.6/tests/test_opus_api.c:1553:23: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1541:12: branch_false: following ‘false’ branch (when ‘i == 1’)...
opus-1.6/tests/test_opus_api.c:1542:10: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1544:18: branch_true: following ‘true’ branch (when ‘k <= 1350’)...
opus-1.6/tests/test_opus_api.c:1548:16: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1548:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1548:15: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1551:18: branch_false: following ‘false’ branch (when ‘cnt == 0’)...
opus-1.6/tests/test_opus_api.c:1557:24: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1557:21: branch_true: following ‘true’ branch...
opus-1.6/tests/test_opus_api.c:1557:16: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1558:18: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1559:16: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1597:26: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1549:34: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1549:23: branch_true: following ‘true’ branch...
opus-1.6/tests/test_opus_api.c:1551:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1551:18: branch_true: following ‘true’ branch (when ‘cnt != 0’)...
opus-1.6/tests/test_opus_api.c:1553:57: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1553:57: branch_false: following ‘false’ branch (when ‘i <= 2’)...
opus-1.6/tests/test_opus_api.c:1553:57: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1553:23: throw: if ‘opus_repacketizer_cat’ throws an exception...
opus-1.6/tests/test_opus_api.c:1553:23: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/0)
# 1551|                  if(cnt>0)
# 1552|                  {
# 1553|->                   ret=opus_repacketizer_cat(rp,packet,k+(i>2?2:1));
# 1554|                     if((cnt<=maxp&&k<=(1275*i))?ret!=OPUS_OK:ret!=OPUS_INVALID_PACKET)test_failed();
# 1555|                     cfgs++;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def280]
opus-1.6/tests/test_opus_api.c:1558:19: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1541:12: branch_false: following ‘false’ branch (when ‘i == 1’)...
opus-1.6/tests/test_opus_api.c:1542:10: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1544:18: branch_true: following ‘true’ branch (when ‘k <= 1350’)...
opus-1.6/tests/test_opus_api.c:1548:16: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1548:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1548:15: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1551:18: branch_false: following ‘false’ branch (when ‘cnt == 0’)...
opus-1.6/tests/test_opus_api.c:1557:24: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1557:21: branch_true: following ‘true’ branch...
opus-1.6/tests/test_opus_api.c:1557:16: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1558:19: throw: if ‘opus_repacketizer_get_nb_frames’ throws an exception...
opus-1.6/tests/test_opus_api.c:1558:19: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/0)
# 1556|                  }
# 1557|                  rcnt=k<=(1275*i)?(cnt<maxp?cnt:maxp):0;
# 1558|->                if(opus_repacketizer_get_nb_frames(rp)!=rcnt*i)test_failed();
# 1559|                  cfgs++;
# 1560|                  ret=opus_repacketizer_out_range(rp,0,rcnt*i,po,max_out);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def281]
opus-1.6/tests/test_opus_api.c:1558:19: warning[-Wanalyzer-malloc-leak]: leak of ‘po’
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1469:7: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1541:12: branch_false: following ‘false’ branch (when ‘i == 1’)...
opus-1.6/tests/test_opus_api.c:1542:10: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1544:18: branch_true: following ‘true’ branch (when ‘k <= 1350’)...
opus-1.6/tests/test_opus_api.c:1548:16: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1548:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1548:15: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1551:18: branch_false: following ‘false’ branch (when ‘cnt == 0’)...
opus-1.6/tests/test_opus_api.c:1557:24: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1557:21: branch_true: following ‘true’ branch...
opus-1.6/tests/test_opus_api.c:1557:16: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1558:19: throw: if ‘opus_repacketizer_get_nb_frames’ throws an exception...
opus-1.6/tests/test_opus_api.c:1558:19: danger: ‘po’ leaks here; was allocated at [(3)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/2)
# 1556|                  }
# 1557|                  rcnt=k<=(1275*i)?(cnt<maxp?cnt:maxp):0;
# 1558|->                if(opus_repacketizer_get_nb_frames(rp)!=rcnt*i)test_failed();
# 1559|                  cfgs++;
# 1560|                  ret=opus_repacketizer_out_range(rp,0,rcnt*i,po,max_out);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def282]
opus-1.6/tests/test_opus_api.c:1560:20: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1541:12: branch_false: following ‘false’ branch (when ‘i == 1’)...
opus-1.6/tests/test_opus_api.c:1542:10: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1544:18: branch_true: following ‘true’ branch (when ‘k <= 1350’)...
opus-1.6/tests/test_opus_api.c:1548:16: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1548:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1548:15: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1551:18: branch_false: following ‘false’ branch (when ‘cnt == 0’)...
opus-1.6/tests/test_opus_api.c:1557:24: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1557:21: branch_true: following ‘true’ branch...
opus-1.6/tests/test_opus_api.c:1557:16: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1558:18: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1559:16: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1560:20: throw: if ‘opus_repacketizer_out_range’ throws an exception...
opus-1.6/tests/test_opus_api.c:1560:20: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/0)
# 1558|                  if(opus_repacketizer_get_nb_frames(rp)!=rcnt*i)test_failed();
# 1559|                  cfgs++;
# 1560|->                ret=opus_repacketizer_out_range(rp,0,rcnt*i,po,max_out);
# 1561|                  if(rcnt>0)
# 1562|                  {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def283]
opus-1.6/tests/test_opus_api.c:1560:20: warning[-Wanalyzer-malloc-leak]: leak of ‘po’
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1469:7: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1541:12: branch_false: following ‘false’ branch (when ‘i == 1’)...
opus-1.6/tests/test_opus_api.c:1542:10: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1544:18: branch_true: following ‘true’ branch (when ‘k <= 1350’)...
opus-1.6/tests/test_opus_api.c:1548:16: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1548:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1548:15: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1551:18: branch_false: following ‘false’ branch (when ‘cnt == 0’)...
opus-1.6/tests/test_opus_api.c:1557:24: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1557:21: branch_true: following ‘true’ branch...
opus-1.6/tests/test_opus_api.c:1557:16: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1558:18: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1559:16: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1560:20: throw: if ‘opus_repacketizer_out_range’ throws an exception...
opus-1.6/tests/test_opus_api.c:1560:20: danger: ‘po’ leaks here; was allocated at [(3)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/2)
# 1558|                  if(opus_repacketizer_get_nb_frames(rp)!=rcnt*i)test_failed();
# 1559|                  cfgs++;
# 1560|->                ret=opus_repacketizer_out_range(rp,0,rcnt*i,po,max_out);
# 1561|                  if(rcnt>0)
# 1562|                  {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def284]
opus-1.6/tests/test_opus_api.c:1570:22: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1541:12: branch_false: following ‘false’ branch (when ‘i == 1’)...
opus-1.6/tests/test_opus_api.c:1542:10: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1544:18: branch_true: following ‘true’ branch (when ‘k <= 1350’)...
opus-1.6/tests/test_opus_api.c:1548:16: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1548:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1548:15: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1551:18: branch_false: following ‘false’ branch (when ‘cnt == 0’)...
opus-1.6/tests/test_opus_api.c:1557:24: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1557:21: branch_true: following ‘true’ branch...
opus-1.6/tests/test_opus_api.c:1557:16: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1558:18: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1559:16: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1561:18: branch_true: following ‘true’ branch (when ‘rcnt > 0’)...
opus-1.6/tests/test_opus_api.c:1564:23: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1565:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1566:21: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1570:22: throw: if ‘opus_repacketizer_out’ throws an exception...
opus-1.6/tests/test_opus_api.c:1570:22: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/0)
# 1568|                     if((rcnt*i)>2&&(((po[0]&3)!=3)||(po[1]!=rcnt*i)))test_failed(); /* Code 3 CBR */
# 1569|                     cfgs++;
# 1570|->                   if(opus_repacketizer_out(rp,po,len)!=len)test_failed();
# 1571|                     cfgs++;
# 1572|                     if(opus_packet_unpad(po,len)!=len)test_failed();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def285]
opus-1.6/tests/test_opus_api.c:1572:22: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1541:12: branch_false: following ‘false’ branch (when ‘i == 1’)...
opus-1.6/tests/test_opus_api.c:1542:10: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1544:18: branch_true: following ‘true’ branch (when ‘k <= 1350’)...
opus-1.6/tests/test_opus_api.c:1548:16: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1548:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1548:15: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1551:18: branch_false: following ‘false’ branch (when ‘cnt == 0’)...
opus-1.6/tests/test_opus_api.c:1557:24: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1557:21: branch_true: following ‘true’ branch...
opus-1.6/tests/test_opus_api.c:1557:16: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1558:18: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1559:16: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1561:18: branch_true: following ‘true’ branch (when ‘rcnt > 0’)...
opus-1.6/tests/test_opus_api.c:1564:23: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1565:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1566:21: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1570:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1572:22: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1572:22: throw: if ‘opus_packet_unpad’ throws an exception...
opus-1.6/tests/test_opus_api.c:1572:22: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/0)
# 1570|                     if(opus_repacketizer_out(rp,po,len)!=len)test_failed();
# 1571|                     cfgs++;
# 1572|->                   if(opus_packet_unpad(po,len)!=len)test_failed();
# 1573|                     cfgs++;
# 1574|                     if(opus_packet_pad(po,len,len+1)!=OPUS_OK)test_failed();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def286]
opus-1.6/tests/test_opus_api.c:1574:22: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1541:12: branch_false: following ‘false’ branch (when ‘i == 1’)...
opus-1.6/tests/test_opus_api.c:1542:10: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1544:18: branch_true: following ‘true’ branch (when ‘k <= 1350’)...
opus-1.6/tests/test_opus_api.c:1548:16: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1548:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1548:15: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1551:18: branch_false: following ‘false’ branch (when ‘cnt == 0’)...
opus-1.6/tests/test_opus_api.c:1557:24: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1557:21: branch_true: following ‘true’ branch...
opus-1.6/tests/test_opus_api.c:1557:16: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1558:18: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1559:16: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1561:18: branch_true: following ‘true’ branch (when ‘rcnt > 0’)...
opus-1.6/tests/test_opus_api.c:1564:23: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1565:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1566:21: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1570:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1572:22: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1572:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1574:45: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1574:22: throw: if ‘opus_packet_pad’ throws an exception...
opus-1.6/tests/test_opus_api.c:1574:22: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/0)
# 1572|                     if(opus_packet_unpad(po,len)!=len)test_failed();
# 1573|                     cfgs++;
# 1574|->                   if(opus_packet_pad(po,len,len+1)!=OPUS_OK)test_failed();
# 1575|                     cfgs++;
# 1576|                     if(opus_packet_pad(po,len+1,len+256)!=OPUS_OK)test_failed();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def287]
opus-1.6/tests/test_opus_api.c:1576:22: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1541:12: branch_false: following ‘false’ branch (when ‘i == 1’)...
opus-1.6/tests/test_opus_api.c:1542:10: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1544:18: branch_true: following ‘true’ branch (when ‘k <= 1350’)...
opus-1.6/tests/test_opus_api.c:1548:16: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1548:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1548:15: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1551:18: branch_false: following ‘false’ branch (when ‘cnt == 0’)...
opus-1.6/tests/test_opus_api.c:1557:24: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1557:21: branch_true: following ‘true’ branch...
opus-1.6/tests/test_opus_api.c:1557:16: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1558:18: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1559:16: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1561:18: branch_true: following ‘true’ branch (when ‘rcnt > 0’)...
opus-1.6/tests/test_opus_api.c:1564:23: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1565:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1566:21: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1570:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1572:22: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1572:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1574:45: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1574:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1576:47: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1576:22: throw: if ‘opus_packet_pad’ throws an exception...
opus-1.6/tests/test_opus_api.c:1576:22: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/0)
# 1574|                     if(opus_packet_pad(po,len,len+1)!=OPUS_OK)test_failed();
# 1575|                     cfgs++;
# 1576|->                   if(opus_packet_pad(po,len+1,len+256)!=OPUS_OK)test_failed();
# 1577|                     cfgs++;
# 1578|                     if(opus_packet_unpad(po,len+256)!=len)test_failed();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def288]
opus-1.6/tests/test_opus_api.c:1578:22: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1541:12: branch_false: following ‘false’ branch (when ‘i == 1’)...
opus-1.6/tests/test_opus_api.c:1542:10: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1544:18: branch_true: following ‘true’ branch (when ‘k <= 1350’)...
opus-1.6/tests/test_opus_api.c:1548:16: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1548:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1548:15: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1551:18: branch_false: following ‘false’ branch (when ‘cnt == 0’)...
opus-1.6/tests/test_opus_api.c:1557:24: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1557:21: branch_true: following ‘true’ branch...
opus-1.6/tests/test_opus_api.c:1557:16: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1558:18: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1559:16: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1561:18: branch_true: following ‘true’ branch (when ‘rcnt > 0’)...
opus-1.6/tests/test_opus_api.c:1564:23: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1565:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1566:21: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1570:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1572:22: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1572:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1574:45: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1574:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1576:47: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1576:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1578:22: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1578:22: throw: if ‘opus_packet_unpad’ throws an exception...
opus-1.6/tests/test_opus_api.c:1578:22: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/0)
# 1576|                     if(opus_packet_pad(po,len+1,len+256)!=OPUS_OK)test_failed();
# 1577|                     cfgs++;
# 1578|->                   if(opus_packet_unpad(po,len+256)!=len)test_failed();
# 1579|                     cfgs++;
# 1580|                     if(opus_multistream_packet_unpad(po,len,1)!=len)test_failed();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def289]
opus-1.6/tests/test_opus_api.c:1580:22: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1541:12: branch_false: following ‘false’ branch (when ‘i == 1’)...
opus-1.6/tests/test_opus_api.c:1542:10: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1544:18: branch_true: following ‘true’ branch (when ‘k <= 1350’)...
opus-1.6/tests/test_opus_api.c:1548:16: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1548:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1548:15: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1551:18: branch_false: following ‘false’ branch (when ‘cnt == 0’)...
opus-1.6/tests/test_opus_api.c:1557:24: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1557:21: branch_true: following ‘true’ branch...
opus-1.6/tests/test_opus_api.c:1557:16: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1558:18: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1559:16: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1561:18: branch_true: following ‘true’ branch (when ‘rcnt > 0’)...
opus-1.6/tests/test_opus_api.c:1564:23: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1565:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1566:21: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1570:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1572:22: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1572:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1574:45: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1574:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1576:47: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1576:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1578:22: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1578:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1580:22: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1580:22: throw: if ‘opus_multistream_packet_unpad’ throws an exception...
opus-1.6/tests/test_opus_api.c:1580:22: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/0)
# 1578|                     if(opus_packet_unpad(po,len+256)!=len)test_failed();
# 1579|                     cfgs++;
# 1580|->                   if(opus_multistream_packet_unpad(po,len,1)!=len)test_failed();
# 1581|                     cfgs++;
# 1582|                     if(opus_multistream_packet_pad(po,len,len+1,1)!=OPUS_OK)test_failed();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def290]
opus-1.6/tests/test_opus_api.c:1582:22: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1541:12: branch_false: following ‘false’ branch (when ‘i == 1’)...
opus-1.6/tests/test_opus_api.c:1542:10: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1544:18: branch_true: following ‘true’ branch (when ‘k <= 1350’)...
opus-1.6/tests/test_opus_api.c:1548:16: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1548:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1548:15: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1551:18: branch_false: following ‘false’ branch (when ‘cnt == 0’)...
opus-1.6/tests/test_opus_api.c:1557:24: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1557:21: branch_true: following ‘true’ branch...
opus-1.6/tests/test_opus_api.c:1557:16: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1558:18: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1559:16: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1561:18: branch_true: following ‘true’ branch (when ‘rcnt > 0’)...
opus-1.6/tests/test_opus_api.c:1564:23: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1565:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1566:21: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1570:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1572:22: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1572:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1574:45: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1574:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1576:47: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1576:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1578:22: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1578:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1580:22: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1580:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1582:22: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1582:22: throw: if ‘opus_multistream_packet_pad’ throws an exception...
opus-1.6/tests/test_opus_api.c:1582:22: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/0)
# 1580|                     if(opus_multistream_packet_unpad(po,len,1)!=len)test_failed();
# 1581|                     cfgs++;
# 1582|->                   if(opus_multistream_packet_pad(po,len,len+1,1)!=OPUS_OK)test_failed();
# 1583|                     cfgs++;
# 1584|                     if(opus_multistream_packet_pad(po,len+1,len+256,1)!=OPUS_OK)test_failed();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def291]
opus-1.6/tests/test_opus_api.c:1584:22: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1541:12: branch_false: following ‘false’ branch (when ‘i == 1’)...
opus-1.6/tests/test_opus_api.c:1542:10: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1544:18: branch_true: following ‘true’ branch (when ‘k <= 1350’)...
opus-1.6/tests/test_opus_api.c:1548:16: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1548:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1548:15: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1551:18: branch_false: following ‘false’ branch (when ‘cnt == 0’)...
opus-1.6/tests/test_opus_api.c:1557:24: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1557:21: branch_true: following ‘true’ branch...
opus-1.6/tests/test_opus_api.c:1557:16: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1558:18: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1559:16: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1561:18: branch_true: following ‘true’ branch (when ‘rcnt > 0’)...
opus-1.6/tests/test_opus_api.c:1564:23: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1565:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1566:21: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1570:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1572:22: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1572:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1574:45: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1574:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1576:47: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1576:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1578:22: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1578:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1580:22: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1580:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1582:22: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1582:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1584:22: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1584:22: throw: if ‘opus_multistream_packet_pad’ throws an exception...
opus-1.6/tests/test_opus_api.c:1584:22: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/0)
# 1582|                     if(opus_multistream_packet_pad(po,len,len+1,1)!=OPUS_OK)test_failed();
# 1583|                     cfgs++;
# 1584|->                   if(opus_multistream_packet_pad(po,len+1,len+256,1)!=OPUS_OK)test_failed();
# 1585|                     cfgs++;
# 1586|                     if(opus_multistream_packet_unpad(po,len+256,1)!=len)test_failed();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def292]
opus-1.6/tests/test_opus_api.c:1586:22: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1541:12: branch_false: following ‘false’ branch (when ‘i == 1’)...
opus-1.6/tests/test_opus_api.c:1542:10: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1544:18: branch_true: following ‘true’ branch (when ‘k <= 1350’)...
opus-1.6/tests/test_opus_api.c:1548:16: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1548:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1548:15: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1551:18: branch_false: following ‘false’ branch (when ‘cnt == 0’)...
opus-1.6/tests/test_opus_api.c:1557:24: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1557:21: branch_true: following ‘true’ branch...
opus-1.6/tests/test_opus_api.c:1557:16: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1558:18: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1559:16: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1561:18: branch_true: following ‘true’ branch (when ‘rcnt > 0’)...
opus-1.6/tests/test_opus_api.c:1564:23: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1565:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1566:21: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1570:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1572:22: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1572:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1574:45: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1574:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1576:47: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1576:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1578:22: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1578:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1580:22: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1580:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1582:22: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1582:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1584:22: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1584:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1586:22: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1586:22: throw: if ‘opus_multistream_packet_unpad’ throws an exception...
opus-1.6/tests/test_opus_api.c:1586:22: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/0)
# 1584|                     if(opus_multistream_packet_pad(po,len+1,len+256,1)!=OPUS_OK)test_failed();
# 1585|                     cfgs++;
# 1586|->                   if(opus_multistream_packet_unpad(po,len+256,1)!=len)test_failed();
# 1587|                     cfgs++;
# 1588|                     if(opus_repacketizer_out(rp,po,len-1)!=OPUS_BUFFER_TOO_SMALL)test_failed();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def293]
opus-1.6/tests/test_opus_api.c:1588:22: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1541:12: branch_false: following ‘false’ branch (when ‘i == 1’)...
opus-1.6/tests/test_opus_api.c:1542:10: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1544:18: branch_true: following ‘true’ branch (when ‘k <= 1350’)...
opus-1.6/tests/test_opus_api.c:1548:16: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1548:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1548:15: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1551:18: branch_false: following ‘false’ branch (when ‘cnt == 0’)...
opus-1.6/tests/test_opus_api.c:1557:24: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1557:21: branch_true: following ‘true’ branch...
opus-1.6/tests/test_opus_api.c:1557:16: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1558:18: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1559:16: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1561:18: branch_true: following ‘true’ branch (when ‘rcnt > 0’)...
opus-1.6/tests/test_opus_api.c:1564:23: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1565:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1566:21: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1570:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1572:22: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1572:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1574:45: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1574:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1576:47: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1576:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1578:22: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1578:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1580:22: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1580:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1582:22: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1582:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1584:22: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1584:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1586:22: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1586:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1588:50: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1588:22: throw: if ‘opus_repacketizer_out’ throws an exception...
opus-1.6/tests/test_opus_api.c:1588:22: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/0)
# 1586|                     if(opus_multistream_packet_unpad(po,len+256,1)!=len)test_failed();
# 1587|                     cfgs++;
# 1588|->                   if(opus_repacketizer_out(rp,po,len-1)!=OPUS_BUFFER_TOO_SMALL)test_failed();
# 1589|                     cfgs++;
# 1590|                     if(len>1)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def294]
opus-1.6/tests/test_opus_api.c:1592:25: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1541:12: branch_false: following ‘false’ branch (when ‘i == 1’)...
opus-1.6/tests/test_opus_api.c:1542:10: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1544:18: branch_true: following ‘true’ branch (when ‘k <= 1350’)...
opus-1.6/tests/test_opus_api.c:1548:16: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1548:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1548:15: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1551:18: branch_false: following ‘false’ branch (when ‘cnt == 0’)...
opus-1.6/tests/test_opus_api.c:1557:24: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1557:21: branch_true: following ‘true’ branch...
opus-1.6/tests/test_opus_api.c:1557:16: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1558:18: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1559:16: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1561:18: branch_true: following ‘true’ branch (when ‘rcnt > 0’)...
opus-1.6/tests/test_opus_api.c:1564:23: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1565:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1566:21: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1566:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1567:21: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1567:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1568:21: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1568:21: branch_true: following ‘true’ branch...
opus-1.6/tests/test_opus_api.c:1568:37: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1568:22: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1570:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1572:22: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1572:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1574:45: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1574:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1576:47: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1576:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1578:22: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1578:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1580:22: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1580:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1582:22: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1582:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1584:22: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1584:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1586:22: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1586:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1588:50: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1588:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1589:19: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1590:21: branch_true: following ‘true’ branch (when ‘len != 1’)...
opus-1.6/tests/test_opus_api.c:1592:25: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1592:25: throw: if ‘opus_repacketizer_out’ throws an exception...
opus-1.6/tests/test_opus_api.c:1592:25: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/0)
# 1590|                     if(len>1)
# 1591|                     {
# 1592|->                      if(opus_repacketizer_out(rp,po,1)!=OPUS_BUFFER_TOO_SMALL)test_failed();
# 1593|                        cfgs++;
# 1594|                     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def295]
opus-1.6/tests/test_opus_api.c:1595:22: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1541:12: branch_false: following ‘false’ branch (when ‘i == 1’)...
opus-1.6/tests/test_opus_api.c:1542:10: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1544:18: branch_true: following ‘true’ branch (when ‘k <= 1350’)...
opus-1.6/tests/test_opus_api.c:1548:16: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1548:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1548:15: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1551:18: branch_false: following ‘false’ branch (when ‘cnt == 0’)...
opus-1.6/tests/test_opus_api.c:1557:24: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1557:21: branch_true: following ‘true’ branch...
opus-1.6/tests/test_opus_api.c:1557:16: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1558:18: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1559:16: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1561:18: branch_true: following ‘true’ branch (when ‘rcnt > 0’)...
opus-1.6/tests/test_opus_api.c:1564:23: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1565:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1566:21: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1570:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1572:22: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1572:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1574:45: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1574:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1576:47: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1576:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1578:22: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1578:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1580:22: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1580:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1582:22: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1582:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1584:22: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1584:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1586:22: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1586:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1588:50: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1588:21: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1589:19: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1595:22: throw: if ‘opus_repacketizer_out’ throws an exception...
opus-1.6/tests/test_opus_api.c:1595:22: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/0)
# 1593|                        cfgs++;
# 1594|                     }
# 1595|->                   if(opus_repacketizer_out(rp,po,0)!=OPUS_BUFFER_TOO_SMALL)test_failed();
# 1596|                     cfgs++;
# 1597|                  } else if (ret!=OPUS_BAD_ARG)test_failed();                        /* M must not be 0 */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def296]
opus-1.6/tests/test_opus_api.c:1599:13: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1541:12: branch_false: following ‘false’ branch (when ‘i == 1’)...
opus-1.6/tests/test_opus_api.c:1542:10: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1544:18: branch_true: following ‘true’ branch (when ‘k <= 1350’)...
opus-1.6/tests/test_opus_api.c:1548:16: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1548:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1548:15: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1549:23: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1599:13: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1599:13: throw: if ‘opus_repacketizer_init’ throws an exception...
opus-1.6/tests/test_opus_api.c:1599:13: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/57/codeFlows/0/threadFlows/0/locations/0)
# 1597|                  } else if (ret!=OPUS_BAD_ARG)test_failed();                        /* M must not be 0 */
# 1598|               }
# 1599|->             opus_repacketizer_init(rp);
# 1600|            }
# 1601|         }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def297]
opus-1.6/tests/test_opus_api.c:1599:13: warning[-Wanalyzer-malloc-leak]: leak of ‘po’
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1469:7: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1541:12: branch_false: following ‘false’ branch (when ‘i == 1’)...
opus-1.6/tests/test_opus_api.c:1542:10: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1544:18: branch_true: following ‘true’ branch (when ‘k <= 1350’)...
opus-1.6/tests/test_opus_api.c:1548:16: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1548:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1548:15: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1549:23: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1599:13: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1599:13: throw: if ‘opus_repacketizer_init’ throws an exception...
opus-1.6/tests/test_opus_api.c:1599:13: danger: ‘po’ leaks here; was allocated at [(3)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/2)
# 1597|                  } else if (ret!=OPUS_BAD_ARG)test_failed();                        /* M must not be 0 */
# 1598|               }
# 1599|->             opus_repacketizer_init(rp);
# 1600|            }
# 1601|         }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def298]
opus-1.6/tests/test_opus_api.c:1605:4: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1536:15: branch_false: following ‘false’ branch (when ‘i > maxi’)...
opus-1.6/tests/test_opus_api.c:1530:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1536:15: branch_false: following ‘false’ branch (when ‘i > maxi’)...
opus-1.6/tests/test_opus_api.c:1530:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1605:4: throw: if ‘opus_repacketizer_init’ throws an exception...
opus-1.6/tests/test_opus_api.c:1605:4: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/58/codeFlows/0/threadFlows/0/locations/0)
# 1603|   
# 1604|      /*Change in input count code, CBR out*/
# 1605|->    opus_repacketizer_init(rp);
# 1606|      packet[0]=0;
# 1607|      if(opus_repacketizer_cat(rp,packet,5)!=OPUS_OK)test_failed();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def299]
opus-1.6/tests/test_opus_api.c:1605:4: warning[-Wanalyzer-malloc-leak]: leak of ‘po’
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1469:7: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1536:15: branch_false: following ‘false’ branch (when ‘i > maxi’)...
opus-1.6/tests/test_opus_api.c:1530:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1536:15: branch_false: following ‘false’ branch (when ‘i > maxi’)...
opus-1.6/tests/test_opus_api.c:1530:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1605:4: throw: if ‘opus_repacketizer_init’ throws an exception...
opus-1.6/tests/test_opus_api.c:1605:4: danger: ‘po’ leaks here; was allocated at [(3)](sarif:/runs/0/results/59/codeFlows/0/threadFlows/0/locations/2)
# 1603|   
# 1604|      /*Change in input count code, CBR out*/
# 1605|->    opus_repacketizer_init(rp);
# 1606|      packet[0]=0;
# 1607|      if(opus_repacketizer_cat(rp,packet,5)!=OPUS_OK)test_failed();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def300]
opus-1.6/tests/test_opus_api.c:1607:7: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1536:15: branch_false: following ‘false’ branch (when ‘i > maxi’)...
opus-1.6/tests/test_opus_api.c:1530:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1536:15: branch_false: following ‘false’ branch (when ‘i > maxi’)...
opus-1.6/tests/test_opus_api.c:1530:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1607:7: throw: if ‘opus_repacketizer_cat’ throws an exception...
opus-1.6/tests/test_opus_api.c:1607:7: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/60/codeFlows/0/threadFlows/0/locations/0)
# 1605|      opus_repacketizer_init(rp);
# 1606|      packet[0]=0;
# 1607|->    if(opus_repacketizer_cat(rp,packet,5)!=OPUS_OK)test_failed();
# 1608|      cfgs++;
# 1609|      packet[0]+=1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def301]
opus-1.6/tests/test_opus_api.c:1607:7: warning[-Wanalyzer-malloc-leak]: leak of ‘po’
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1469:7: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1536:15: branch_false: following ‘false’ branch (when ‘i > maxi’)...
opus-1.6/tests/test_opus_api.c:1530:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1536:15: branch_false: following ‘false’ branch (when ‘i > maxi’)...
opus-1.6/tests/test_opus_api.c:1530:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1607:7: throw: if ‘opus_repacketizer_cat’ throws an exception...
opus-1.6/tests/test_opus_api.c:1607:7: danger: ‘po’ leaks here; was allocated at [(3)](sarif:/runs/0/results/61/codeFlows/0/threadFlows/0/locations/2)
# 1605|      opus_repacketizer_init(rp);
# 1606|      packet[0]=0;
# 1607|->    if(opus_repacketizer_cat(rp,packet,5)!=OPUS_OK)test_failed();
# 1608|      cfgs++;
# 1609|      packet[0]+=1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def302]
opus-1.6/tests/test_opus_api.c:1610:7: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1536:15: branch_false: following ‘false’ branch (when ‘i > maxi’)...
opus-1.6/tests/test_opus_api.c:1530:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1536:15: branch_false: following ‘false’ branch (when ‘i > maxi’)...
opus-1.6/tests/test_opus_api.c:1530:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:7: throw: if ‘opus_repacketizer_cat’ throws an exception...
opus-1.6/tests/test_opus_api.c:1610:7: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/62/codeFlows/0/threadFlows/0/locations/0)
# 1608|      cfgs++;
# 1609|      packet[0]+=1;
# 1610|->    if(opus_repacketizer_cat(rp,packet,9)!=OPUS_OK)test_failed();
# 1611|      cfgs++;
# 1612|      i=opus_repacketizer_out(rp,po,max_out);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def303]
opus-1.6/tests/test_opus_api.c:1610:7: warning[-Wanalyzer-malloc-leak]: leak of ‘po’
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1469:7: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1536:15: branch_false: following ‘false’ branch (when ‘i > maxi’)...
opus-1.6/tests/test_opus_api.c:1530:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1536:15: branch_false: following ‘false’ branch (when ‘i > maxi’)...
opus-1.6/tests/test_opus_api.c:1530:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:7: throw: if ‘opus_repacketizer_cat’ throws an exception...
opus-1.6/tests/test_opus_api.c:1610:7: danger: ‘po’ leaks here; was allocated at [(3)](sarif:/runs/0/results/63/codeFlows/0/threadFlows/0/locations/2)
# 1608|      cfgs++;
# 1609|      packet[0]+=1;
# 1610|->    if(opus_repacketizer_cat(rp,packet,9)!=OPUS_OK)test_failed();
# 1611|      cfgs++;
# 1612|      i=opus_repacketizer_out(rp,po,max_out);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def304]
opus-1.6/tests/test_opus_api.c:1612:6: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1536:15: branch_false: following ‘false’ branch (when ‘i > maxi’)...
opus-1.6/tests/test_opus_api.c:1530:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1536:15: branch_false: following ‘false’ branch (when ‘i > maxi’)...
opus-1.6/tests/test_opus_api.c:1530:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1612:6: throw: if ‘opus_repacketizer_out’ throws an exception...
opus-1.6/tests/test_opus_api.c:1612:6: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/64/codeFlows/0/threadFlows/0/locations/0)
# 1610|      if(opus_repacketizer_cat(rp,packet,9)!=OPUS_OK)test_failed();
# 1611|      cfgs++;
# 1612|->    i=opus_repacketizer_out(rp,po,max_out);
# 1613|      if((i!=(4+8+2))||((po[0]&3)!=3)||((po[1]&63)!=3)||((po[1]>>7)!=0))test_failed();
# 1614|      cfgs++;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def305]
opus-1.6/tests/test_opus_api.c:1612:6: warning[-Wanalyzer-malloc-leak]: leak of ‘po’
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1469:7: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1536:15: branch_false: following ‘false’ branch (when ‘i > maxi’)...
opus-1.6/tests/test_opus_api.c:1530:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1536:15: branch_false: following ‘false’ branch (when ‘i > maxi’)...
opus-1.6/tests/test_opus_api.c:1530:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1612:6: throw: if ‘opus_repacketizer_out’ throws an exception...
opus-1.6/tests/test_opus_api.c:1612:6: danger: ‘po’ leaks here; was allocated at [(3)](sarif:/runs/0/results/65/codeFlows/0/threadFlows/0/locations/2)
# 1610|      if(opus_repacketizer_cat(rp,packet,9)!=OPUS_OK)test_failed();
# 1611|      cfgs++;
# 1612|->    i=opus_repacketizer_out(rp,po,max_out);
# 1613|      if((i!=(4+8+2))||((po[0]&3)!=3)||((po[1]&63)!=3)||((po[1]>>7)!=0))test_failed();
# 1614|      cfgs++;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def306]
opus-1.6/tests/test_opus_api.c:1615:6: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1536:15: branch_false: following ‘false’ branch (when ‘i > maxi’)...
opus-1.6/tests/test_opus_api.c:1530:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1536:15: branch_false: following ‘false’ branch (when ‘i > maxi’)...
opus-1.6/tests/test_opus_api.c:1530:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1613:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1615:6: throw: if ‘opus_repacketizer_out_range’ throws an exception...
opus-1.6/tests/test_opus_api.c:1615:6: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/66/codeFlows/0/threadFlows/0/locations/0)
# 1613|      if((i!=(4+8+2))||((po[0]&3)!=3)||((po[1]&63)!=3)||((po[1]>>7)!=0))test_failed();
# 1614|      cfgs++;
# 1615|->    i=opus_repacketizer_out_range(rp,0,1,po,max_out);
# 1616|      if(i!=5||(po[0]&3)!=0)test_failed();
# 1617|      cfgs++;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def307]
opus-1.6/tests/test_opus_api.c:1618:6: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1536:15: branch_false: following ‘false’ branch (when ‘i > maxi’)...
opus-1.6/tests/test_opus_api.c:1530:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1536:15: branch_false: following ‘false’ branch (when ‘i > maxi’)...
opus-1.6/tests/test_opus_api.c:1530:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1613:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1616:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1618:6: throw: if ‘opus_repacketizer_out_range’ throws an exception...
opus-1.6/tests/test_opus_api.c:1618:6: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/67/codeFlows/0/threadFlows/0/locations/0)
# 1616|      if(i!=5||(po[0]&3)!=0)test_failed();
# 1617|      cfgs++;
# 1618|->    i=opus_repacketizer_out_range(rp,1,2,po,max_out);
# 1619|      if(i!=5||(po[0]&3)!=0)test_failed();
# 1620|      cfgs++;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def308]
opus-1.6/tests/test_opus_api.c:1623:4: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1536:15: branch_false: following ‘false’ branch (when ‘i > maxi’)...
opus-1.6/tests/test_opus_api.c:1530:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1536:15: branch_false: following ‘false’ branch (when ‘i > maxi’)...
opus-1.6/tests/test_opus_api.c:1530:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1613:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1616:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1619:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1623:4: throw: if ‘opus_repacketizer_init’ throws an exception...
opus-1.6/tests/test_opus_api.c:1623:4: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/68/codeFlows/0/threadFlows/0/locations/0)
# 1621|   
# 1622|      /*Change in input count code, VBR out*/
# 1623|->    opus_repacketizer_init(rp);
# 1624|      packet[0]=1;
# 1625|      if(opus_repacketizer_cat(rp,packet,9)!=OPUS_OK)test_failed();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def309]
opus-1.6/tests/test_opus_api.c:1625:7: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1536:15: branch_false: following ‘false’ branch (when ‘i > maxi’)...
opus-1.6/tests/test_opus_api.c:1530:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1536:15: branch_false: following ‘false’ branch (when ‘i > maxi’)...
opus-1.6/tests/test_opus_api.c:1530:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1613:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1616:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1619:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1625:7: throw: if ‘opus_repacketizer_cat’ throws an exception...
opus-1.6/tests/test_opus_api.c:1625:7: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/69/codeFlows/0/threadFlows/0/locations/0)
# 1623|      opus_repacketizer_init(rp);
# 1624|      packet[0]=1;
# 1625|->    if(opus_repacketizer_cat(rp,packet,9)!=OPUS_OK)test_failed();
# 1626|      cfgs++;
# 1627|      packet[0]=0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def310]
opus-1.6/tests/test_opus_api.c:1628:7: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1536:15: branch_false: following ‘false’ branch (when ‘i > maxi’)...
opus-1.6/tests/test_opus_api.c:1530:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1536:15: branch_false: following ‘false’ branch (when ‘i > maxi’)...
opus-1.6/tests/test_opus_api.c:1530:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1613:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1616:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1619:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1625:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1627:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1628:7: throw: if ‘opus_repacketizer_cat’ throws an exception...
opus-1.6/tests/test_opus_api.c:1628:7: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/70/codeFlows/0/threadFlows/0/locations/0)
# 1626|      cfgs++;
# 1627|      packet[0]=0;
# 1628|->    if(opus_repacketizer_cat(rp,packet,3)!=OPUS_OK)test_failed();
# 1629|      cfgs++;
# 1630|      i=opus_repacketizer_out(rp,po,max_out);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def311]
opus-1.6/tests/test_opus_api.c:1630:6: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1536:15: branch_false: following ‘false’ branch (when ‘i > maxi’)...
opus-1.6/tests/test_opus_api.c:1530:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1536:15: branch_false: following ‘false’ branch (when ‘i > maxi’)...
opus-1.6/tests/test_opus_api.c:1530:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1613:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1616:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1619:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1625:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1627:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1628:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1630:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1630:6: throw: if ‘opus_repacketizer_out’ throws an exception...
opus-1.6/tests/test_opus_api.c:1630:6: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/71/codeFlows/0/threadFlows/0/locations/0)
# 1628|      if(opus_repacketizer_cat(rp,packet,3)!=OPUS_OK)test_failed();
# 1629|      cfgs++;
# 1630|->    i=opus_repacketizer_out(rp,po,max_out);
# 1631|      if((i!=(2+8+2+2))||((po[0]&3)!=3)||((po[1]&63)!=3)||((po[1]>>7)!=1))test_failed();
# 1632|      cfgs++;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def312]
opus-1.6/tests/test_opus_api.c:1635:4: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1536:15: branch_false: following ‘false’ branch (when ‘i > maxi’)...
opus-1.6/tests/test_opus_api.c:1530:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1536:15: branch_false: following ‘false’ branch (when ‘i > maxi’)...
opus-1.6/tests/test_opus_api.c:1530:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1613:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1616:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1619:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1625:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1627:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1628:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1630:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1631:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1635:4: throw: if ‘opus_repacketizer_init’ throws an exception...
opus-1.6/tests/test_opus_api.c:1635:4: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/72/codeFlows/0/threadFlows/0/locations/0)
# 1633|   
# 1634|      /*VBR in, VBR out*/
# 1635|->    opus_repacketizer_init(rp);
# 1636|      packet[0]=2;
# 1637|      packet[1]=4;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def313]
opus-1.6/tests/test_opus_api.c:1638:7: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1613:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1616:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1619:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1625:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1627:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1628:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1630:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1631:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1638:7: throw: if ‘opus_repacketizer_cat’ throws an exception...
opus-1.6/tests/test_opus_api.c:1638:7: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/73/codeFlows/0/threadFlows/0/locations/0)
# 1636|      packet[0]=2;
# 1637|      packet[1]=4;
# 1638|->    if(opus_repacketizer_cat(rp,packet,8)!=OPUS_OK)test_failed();
# 1639|      cfgs++;
# 1640|      if(opus_repacketizer_cat(rp,packet,8)!=OPUS_OK)test_failed();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def314]
opus-1.6/tests/test_opus_api.c:1640:7: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1613:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1616:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1619:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1625:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1627:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1628:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1630:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1631:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1638:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1640:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1640:7: throw: if ‘opus_repacketizer_cat’ throws an exception...
opus-1.6/tests/test_opus_api.c:1640:7: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/74/codeFlows/0/threadFlows/0/locations/0)
# 1638|      if(opus_repacketizer_cat(rp,packet,8)!=OPUS_OK)test_failed();
# 1639|      cfgs++;
# 1640|->    if(opus_repacketizer_cat(rp,packet,8)!=OPUS_OK)test_failed();
# 1641|      cfgs++;
# 1642|      i=opus_repacketizer_out(rp,po,max_out);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def315]
opus-1.6/tests/test_opus_api.c:1642:6: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1613:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1616:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1619:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1625:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1627:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1628:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1630:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1631:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1638:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1640:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1640:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1642:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1642:6: throw: if ‘opus_repacketizer_out’ throws an exception...
opus-1.6/tests/test_opus_api.c:1642:6: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/75/codeFlows/0/threadFlows/0/locations/0)
# 1640|      if(opus_repacketizer_cat(rp,packet,8)!=OPUS_OK)test_failed();
# 1641|      cfgs++;
# 1642|->    i=opus_repacketizer_out(rp,po,max_out);
# 1643|      if((i!=(2+1+1+1+4+2+4+2))||((po[0]&3)!=3)||((po[1]&63)!=4)||((po[1]>>7)!=1))test_failed();
# 1644|      cfgs++;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def316]
opus-1.6/tests/test_opus_api.c:1647:4: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1613:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1616:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1619:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1625:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1627:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1628:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1630:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1631:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1638:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1640:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1640:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1642:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1643:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1647:4: throw: if ‘opus_repacketizer_init’ throws an exception...
opus-1.6/tests/test_opus_api.c:1647:4: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/76/codeFlows/0/threadFlows/0/locations/0)
# 1645|   
# 1646|      /*VBR in, CBR out*/
# 1647|->    opus_repacketizer_init(rp);
# 1648|      packet[0]=2;
# 1649|      packet[1]=4;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def317]
opus-1.6/tests/test_opus_api.c:1650:7: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1613:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1616:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1619:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1625:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1627:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1628:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1630:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1631:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1638:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1640:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1640:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1642:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1643:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1650:7: throw: if ‘opus_repacketizer_cat’ throws an exception...
opus-1.6/tests/test_opus_api.c:1650:7: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/77/codeFlows/0/threadFlows/0/locations/0)
# 1648|      packet[0]=2;
# 1649|      packet[1]=4;
# 1650|->    if(opus_repacketizer_cat(rp,packet,10)!=OPUS_OK)test_failed();
# 1651|      cfgs++;
# 1652|      if(opus_repacketizer_cat(rp,packet,10)!=OPUS_OK)test_failed();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def318]
opus-1.6/tests/test_opus_api.c:1652:7: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1613:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1616:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1619:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1625:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1627:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1628:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1630:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1631:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1638:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1640:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1640:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1642:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1643:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1650:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1652:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1652:7: throw: if ‘opus_repacketizer_cat’ throws an exception...
opus-1.6/tests/test_opus_api.c:1652:7: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/78/codeFlows/0/threadFlows/0/locations/0)
# 1650|      if(opus_repacketizer_cat(rp,packet,10)!=OPUS_OK)test_failed();
# 1651|      cfgs++;
# 1652|->    if(opus_repacketizer_cat(rp,packet,10)!=OPUS_OK)test_failed();
# 1653|      cfgs++;
# 1654|      i=opus_repacketizer_out(rp,po,max_out);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def319]
opus-1.6/tests/test_opus_api.c:1654:6: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1613:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1616:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1619:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1625:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1627:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1628:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1630:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1631:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1638:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1640:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1640:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1642:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1643:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1650:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1652:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1652:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1654:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1654:6: throw: if ‘opus_repacketizer_out’ throws an exception...
opus-1.6/tests/test_opus_api.c:1654:6: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/79/codeFlows/0/threadFlows/0/locations/0)
# 1652|      if(opus_repacketizer_cat(rp,packet,10)!=OPUS_OK)test_failed();
# 1653|      cfgs++;
# 1654|->    i=opus_repacketizer_out(rp,po,max_out);
# 1655|      if((i!=(2+4+4+4+4))||((po[0]&3)!=3)||((po[1]&63)!=4)||((po[1]>>7)!=0))test_failed();
# 1656|      cfgs++;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def320]
opus-1.6/tests/test_opus_api.c:1664:16: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1613:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1616:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1619:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1625:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1627:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1628:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1630:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1631:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1638:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1640:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1640:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1642:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1643:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1650:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1652:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1652:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1654:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1655:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1663:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1664:16: throw: if ‘opus_packet_get_samples_per_frame’ throws an exception...
opus-1.6/tests/test_opus_api.c:1664:16: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/80/codeFlows/0/threadFlows/0/locations/0)
# 1662|         int maxi,sum,rcnt;
# 1663|         packet[0]=((j<<1)+(j&1))<<2;
# 1664|->       maxi=960/opus_packet_get_samples_per_frame(packet,8000);
# 1665|         sum=0;
# 1666|         rcnt=0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def321]
opus-1.6/tests/test_opus_api.c:1667:7: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1613:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1616:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1619:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1625:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1627:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1628:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1630:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1631:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1638:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1640:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1640:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1642:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1643:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1650:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1652:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1652:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1654:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1655:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1663:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1667:7: throw: if ‘opus_repacketizer_init’ throws an exception...
opus-1.6/tests/test_opus_api.c:1667:7: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/81/codeFlows/0/threadFlows/0/locations/0)
# 1665|         sum=0;
# 1666|         rcnt=0;
# 1667|->       opus_repacketizer_init(rp);
# 1668|         for(i=1;i<=maxi+2;i++)
# 1669|         {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def322]
opus-1.6/tests/test_opus_api.c:1671:14: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1613:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1616:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1619:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1625:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1627:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1628:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1630:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1631:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1638:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1640:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1640:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1642:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1643:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1650:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1652:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1652:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1654:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1655:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1663:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1671:14: throw: if ‘opus_repacketizer_cat’ throws an exception...
opus-1.6/tests/test_opus_api.c:1671:14: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/82/codeFlows/0/threadFlows/0/locations/0)
# 1669|         {
# 1670|            int len;
# 1671|->          ret=opus_repacketizer_cat(rp,packet,i);
# 1672|            if(rcnt<maxi)
# 1673|            {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def323]
opus-1.6/tests/test_opus_api.c:1680:13: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1613:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1616:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1619:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1625:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1627:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1628:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1630:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1631:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1638:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1640:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1640:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1642:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1643:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1650:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1652:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1652:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1654:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1655:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1663:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1677:20: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1679:18: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1680:13: throw: if ‘opus_repacketizer_out’ throws an exception...
opus-1.6/tests/test_opus_api.c:1680:13: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/83/codeFlows/0/threadFlows/0/locations/0)
# 1678|            cfgs++;
# 1679|            len=sum+(rcnt<2?1:rcnt<3?2:2+rcnt-1);
# 1680|->          if(opus_repacketizer_out(rp,po,max_out)!=len)test_failed();
# 1681|            if(rcnt>2&&(po[1]&63)!=rcnt)test_failed();
# 1682|            if(rcnt==2&&(po[0]&3)!=2)test_failed();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def324]
opus-1.6/tests/test_opus_api.c:1685:13: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1613:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1616:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1619:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1625:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1627:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1628:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1630:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1631:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1638:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1640:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1640:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1642:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1643:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1650:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1652:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1652:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1654:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1655:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1663:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1677:20: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1679:18: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1680:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1681:12: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1685:13: throw: if ‘opus_repacketizer_out’ throws an exception...
opus-1.6/tests/test_opus_api.c:1685:13: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/84/codeFlows/0/threadFlows/0/locations/0)
# 1683|            if(rcnt==1&&(po[0]&3)!=0)test_failed();
# 1684|            cfgs++;
# 1685|->          if(opus_repacketizer_out(rp,po,len)!=len)test_failed();
# 1686|            cfgs++;
# 1687|            if(opus_packet_unpad(po,len)!=len)test_failed();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def325]
opus-1.6/tests/test_opus_api.c:1687:13: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1613:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1616:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1619:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1625:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1627:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1628:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1630:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1631:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1638:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1640:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1640:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1642:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1643:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1650:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1652:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1652:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1654:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1655:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1663:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1677:20: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1679:18: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1680:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1681:12: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1685:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1687:13: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1687:13: throw: if ‘opus_packet_unpad’ throws an exception...
opus-1.6/tests/test_opus_api.c:1687:13: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/85/codeFlows/0/threadFlows/0/locations/0)
# 1685|            if(opus_repacketizer_out(rp,po,len)!=len)test_failed();
# 1686|            cfgs++;
# 1687|->          if(opus_packet_unpad(po,len)!=len)test_failed();
# 1688|            cfgs++;
# 1689|            if(opus_packet_pad(po,len,len+1)!=OPUS_OK)test_failed();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def326]
opus-1.6/tests/test_opus_api.c:1689:13: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1613:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1616:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1619:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1625:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1627:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1628:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1630:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1631:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1638:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1640:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1640:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1642:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1643:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1650:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1652:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1652:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1654:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1655:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1663:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1677:20: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1679:18: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1680:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1681:12: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1685:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1687:13: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1687:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1689:36: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1689:13: throw: if ‘opus_packet_pad’ throws an exception...
opus-1.6/tests/test_opus_api.c:1689:13: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/86/codeFlows/0/threadFlows/0/locations/0)
# 1687|            if(opus_packet_unpad(po,len)!=len)test_failed();
# 1688|            cfgs++;
# 1689|->          if(opus_packet_pad(po,len,len+1)!=OPUS_OK)test_failed();
# 1690|            cfgs++;
# 1691|            if(opus_packet_pad(po,len+1,len+256)!=OPUS_OK)test_failed();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def327]
opus-1.6/tests/test_opus_api.c:1691:13: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1613:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1616:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1619:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1625:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1627:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1628:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1630:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1631:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1638:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1640:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1640:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1642:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1643:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1650:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1652:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1652:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1654:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1655:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1663:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1677:20: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1679:18: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1680:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1681:12: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1685:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1687:13: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1687:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1689:36: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1689:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1691:38: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1691:13: throw: if ‘opus_packet_pad’ throws an exception...
opus-1.6/tests/test_opus_api.c:1691:13: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/87/codeFlows/0/threadFlows/0/locations/0)
# 1689|            if(opus_packet_pad(po,len,len+1)!=OPUS_OK)test_failed();
# 1690|            cfgs++;
# 1691|->          if(opus_packet_pad(po,len+1,len+256)!=OPUS_OK)test_failed();
# 1692|            cfgs++;
# 1693|            if(opus_packet_unpad(po,len+256)!=len)test_failed();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def328]
opus-1.6/tests/test_opus_api.c:1693:13: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1613:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1616:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1619:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1625:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1627:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1628:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1630:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1631:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1638:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1640:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1640:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1642:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1643:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1650:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1652:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1652:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1654:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1655:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1663:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1677:20: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1679:18: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1680:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1681:12: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1685:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1687:13: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1687:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1689:36: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1689:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1691:38: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1691:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1693:13: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1693:13: throw: if ‘opus_packet_unpad’ throws an exception...
opus-1.6/tests/test_opus_api.c:1693:13: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/88/codeFlows/0/threadFlows/0/locations/0)
# 1691|            if(opus_packet_pad(po,len+1,len+256)!=OPUS_OK)test_failed();
# 1692|            cfgs++;
# 1693|->          if(opus_packet_unpad(po,len+256)!=len)test_failed();
# 1694|            cfgs++;
# 1695|            if(opus_multistream_packet_unpad(po,len,1)!=len)test_failed();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def329]
opus-1.6/tests/test_opus_api.c:1695:13: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1613:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1616:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1619:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1625:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1627:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1628:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1630:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1631:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1638:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1640:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1640:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1642:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1643:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1650:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1652:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1652:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1654:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1655:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1663:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1677:20: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1679:18: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1680:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1681:12: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1685:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1687:13: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1687:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1689:36: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1689:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1691:38: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1691:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1693:13: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1693:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1695:13: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1695:13: throw: if ‘opus_multistream_packet_unpad’ throws an exception...
opus-1.6/tests/test_opus_api.c:1695:13: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/89/codeFlows/0/threadFlows/0/locations/0)
# 1693|            if(opus_packet_unpad(po,len+256)!=len)test_failed();
# 1694|            cfgs++;
# 1695|->          if(opus_multistream_packet_unpad(po,len,1)!=len)test_failed();
# 1696|            cfgs++;
# 1697|            if(opus_multistream_packet_pad(po,len,len+1,1)!=OPUS_OK)test_failed();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def330]
opus-1.6/tests/test_opus_api.c:1697:13: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1613:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1616:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1619:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1625:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1627:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1628:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1630:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1631:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1638:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1640:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1640:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1642:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1643:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1650:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1652:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1652:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1654:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1655:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1663:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1677:20: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1679:18: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1680:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1681:12: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1685:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1687:13: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1687:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1689:36: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1689:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1691:38: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1691:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1693:13: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1693:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1695:13: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1695:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1697:13: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1697:13: throw: if ‘opus_multistream_packet_pad’ throws an exception...
opus-1.6/tests/test_opus_api.c:1697:13: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/90/codeFlows/0/threadFlows/0/locations/0)
# 1695|            if(opus_multistream_packet_unpad(po,len,1)!=len)test_failed();
# 1696|            cfgs++;
# 1697|->          if(opus_multistream_packet_pad(po,len,len+1,1)!=OPUS_OK)test_failed();
# 1698|            cfgs++;
# 1699|            if(opus_multistream_packet_pad(po,len+1,len+256,1)!=OPUS_OK)test_failed();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def331]
opus-1.6/tests/test_opus_api.c:1699:13: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1613:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1616:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1619:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1625:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1627:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1628:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1630:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1631:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1638:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1640:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1640:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1642:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1643:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1650:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1652:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1652:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1654:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1655:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1663:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1677:20: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1679:18: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1680:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1681:12: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1685:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1687:13: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1687:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1689:36: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1689:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1691:38: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1691:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1693:13: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1693:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1695:13: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1695:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1697:13: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1697:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1699:13: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1699:13: throw: if ‘opus_multistream_packet_pad’ throws an exception...
opus-1.6/tests/test_opus_api.c:1699:13: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/91/codeFlows/0/threadFlows/0/locations/0)
# 1697|            if(opus_multistream_packet_pad(po,len,len+1,1)!=OPUS_OK)test_failed();
# 1698|            cfgs++;
# 1699|->          if(opus_multistream_packet_pad(po,len+1,len+256,1)!=OPUS_OK)test_failed();
# 1700|            cfgs++;
# 1701|            if(opus_multistream_packet_unpad(po,len+256,1)!=len)test_failed();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def332]
opus-1.6/tests/test_opus_api.c:1701:13: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1613:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1616:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1619:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1625:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1627:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1628:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1630:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1631:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1638:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1640:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1640:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1642:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1643:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1650:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1652:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1652:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1654:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1655:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1663:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1677:20: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1679:18: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1680:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1681:12: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1685:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1687:13: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1687:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1689:36: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1689:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1691:38: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1691:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1693:13: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1693:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1695:13: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1695:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1697:13: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1697:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1699:13: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1699:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1701:13: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1701:13: throw: if ‘opus_multistream_packet_unpad’ throws an exception...
opus-1.6/tests/test_opus_api.c:1701:13: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/92/codeFlows/0/threadFlows/0/locations/0)
# 1699|            if(opus_multistream_packet_pad(po,len+1,len+256,1)!=OPUS_OK)test_failed();
# 1700|            cfgs++;
# 1701|->          if(opus_multistream_packet_unpad(po,len+256,1)!=len)test_failed();
# 1702|            cfgs++;
# 1703|            if(opus_repacketizer_out(rp,po,len-1)!=OPUS_BUFFER_TOO_SMALL)test_failed();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def333]
opus-1.6/tests/test_opus_api.c:1703:13: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1613:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1616:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1619:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1625:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1627:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1628:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1630:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1631:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1638:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1640:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1640:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1642:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1643:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1650:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1652:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1652:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1654:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1655:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1663:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1677:20: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1679:18: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1680:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1681:12: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1685:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1687:13: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1687:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1689:36: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1689:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1691:38: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1691:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1693:13: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1693:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1695:13: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1695:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1697:13: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1697:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1699:13: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1699:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1701:13: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1701:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1703:41: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1703:13: throw: if ‘opus_repacketizer_out’ throws an exception...
opus-1.6/tests/test_opus_api.c:1703:13: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/93/codeFlows/0/threadFlows/0/locations/0)
# 1701|            if(opus_multistream_packet_unpad(po,len+256,1)!=len)test_failed();
# 1702|            cfgs++;
# 1703|->          if(opus_repacketizer_out(rp,po,len-1)!=OPUS_BUFFER_TOO_SMALL)test_failed();
# 1704|            cfgs++;
# 1705|            if(len>1)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def334]
opus-1.6/tests/test_opus_api.c:1710:13: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1613:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1616:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1619:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1625:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1627:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1628:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1630:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1631:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1638:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1640:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1640:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1642:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1643:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1650:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1652:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1652:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1654:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1655:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1663:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1677:20: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1679:18: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1680:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1681:12: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1685:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1687:13: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1687:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1689:36: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1689:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1691:38: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1691:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1693:13: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1693:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1695:13: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1695:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1697:13: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1697:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1699:13: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1699:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1701:13: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1701:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1703:41: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1703:12: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1704:10: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1710:13: throw: if ‘opus_repacketizer_out’ throws an exception...
opus-1.6/tests/test_opus_api.c:1710:13: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/94/codeFlows/0/threadFlows/0/locations/0)
# 1708|               cfgs++;
# 1709|            }
# 1710|->          if(opus_repacketizer_out(rp,po,0)!=OPUS_BUFFER_TOO_SMALL)test_failed();
# 1711|            cfgs++;
# 1712|         }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def335]
opus-1.6/tests/test_opus_api.c:1717:7: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1613:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1616:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1619:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1625:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1627:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1628:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1630:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1631:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1638:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1640:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1640:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1642:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1643:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1650:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1652:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1652:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1654:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1655:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1663:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1668:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1659:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1663:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1668:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1717:7: throw: if ‘opus_packet_pad’ throws an exception...
opus-1.6/tests/test_opus_api.c:1717:7: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/95/codeFlows/0/threadFlows/0/locations/0)
# 1715|      po[0]='O';
# 1716|      po[1]='p';
# 1717|->    if(opus_packet_pad(po,4,4)!=OPUS_OK)test_failed();
# 1718|      cfgs++;
# 1719|      if(opus_multistream_packet_pad(po,4,4,1)!=OPUS_OK)test_failed();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def336]
opus-1.6/tests/test_opus_api.c:1719:7: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1613:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1616:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1619:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1625:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1627:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1628:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1630:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1631:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1638:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1640:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1640:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1642:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1643:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1650:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1652:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1652:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1654:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1655:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1663:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1668:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1659:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1663:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1668:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1717:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1719:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1719:7: throw: if ‘opus_multistream_packet_pad’ throws an exception...
opus-1.6/tests/test_opus_api.c:1719:7: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/96/codeFlows/0/threadFlows/0/locations/0)
# 1717|      if(opus_packet_pad(po,4,4)!=OPUS_OK)test_failed();
# 1718|      cfgs++;
# 1719|->    if(opus_multistream_packet_pad(po,4,4,1)!=OPUS_OK)test_failed();
# 1720|      cfgs++;
# 1721|      if(opus_packet_pad(po,4,5)!=OPUS_INVALID_PACKET)test_failed();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def337]
opus-1.6/tests/test_opus_api.c:1721:7: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1613:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1616:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1619:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1625:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1627:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1628:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1630:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1631:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1638:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1640:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1640:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1642:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1643:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1650:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1652:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1652:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1654:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1655:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1663:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1668:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1659:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1663:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1668:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1717:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1719:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1719:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1721:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1721:7: throw: if ‘opus_packet_pad’ throws an exception...
opus-1.6/tests/test_opus_api.c:1721:7: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/97/codeFlows/0/threadFlows/0/locations/0)
# 1719|      if(opus_multistream_packet_pad(po,4,4,1)!=OPUS_OK)test_failed();
# 1720|      cfgs++;
# 1721|->    if(opus_packet_pad(po,4,5)!=OPUS_INVALID_PACKET)test_failed();
# 1722|      cfgs++;
# 1723|      if(opus_multistream_packet_pad(po,4,5,1)!=OPUS_INVALID_PACKET)test_failed();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def338]
opus-1.6/tests/test_opus_api.c:1723:7: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1613:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1616:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1619:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1625:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1627:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1628:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1630:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1631:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1638:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1640:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1640:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1642:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1643:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1650:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1652:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1652:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1654:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1655:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1663:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1668:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1659:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1663:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1668:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1717:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1719:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1719:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1721:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1721:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1723:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1723:7: throw: if ‘opus_multistream_packet_pad’ throws an exception...
opus-1.6/tests/test_opus_api.c:1723:7: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/98/codeFlows/0/threadFlows/0/locations/0)
# 1721|      if(opus_packet_pad(po,4,5)!=OPUS_INVALID_PACKET)test_failed();
# 1722|      cfgs++;
# 1723|->    if(opus_multistream_packet_pad(po,4,5,1)!=OPUS_INVALID_PACKET)test_failed();
# 1724|      cfgs++;
# 1725|      if(opus_packet_pad(po,0,5)!=OPUS_BAD_ARG)test_failed();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def339]
opus-1.6/tests/test_opus_api.c:1725:7: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1613:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1616:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1619:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1625:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1627:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1628:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1630:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1631:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1638:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1640:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1640:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1642:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1643:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1650:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1652:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1652:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1654:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1655:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1663:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1668:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1659:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1663:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1668:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1717:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1719:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1719:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1721:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1721:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1723:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1723:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1725:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1725:7: throw: if ‘opus_packet_pad’ throws an exception...
opus-1.6/tests/test_opus_api.c:1725:7: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/99/codeFlows/0/threadFlows/0/locations/0)
# 1723|      if(opus_multistream_packet_pad(po,4,5,1)!=OPUS_INVALID_PACKET)test_failed();
# 1724|      cfgs++;
# 1725|->    if(opus_packet_pad(po,0,5)!=OPUS_BAD_ARG)test_failed();
# 1726|      cfgs++;
# 1727|      if(opus_multistream_packet_pad(po,0,5,1)!=OPUS_BAD_ARG)test_failed();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def340]
opus-1.6/tests/test_opus_api.c:1727:7: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1613:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1616:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1619:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1625:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1627:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1628:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1630:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1631:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1638:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1640:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1640:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1642:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1643:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1650:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1652:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1652:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1654:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1655:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1663:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1668:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1659:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1663:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1668:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1717:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1719:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1719:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1721:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1721:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1723:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1723:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1725:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1725:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1727:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1727:7: throw: if ‘opus_multistream_packet_pad’ throws an exception...
opus-1.6/tests/test_opus_api.c:1727:7: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/100/codeFlows/0/threadFlows/0/locations/0)
# 1725|      if(opus_packet_pad(po,0,5)!=OPUS_BAD_ARG)test_failed();
# 1726|      cfgs++;
# 1727|->    if(opus_multistream_packet_pad(po,0,5,1)!=OPUS_BAD_ARG)test_failed();
# 1728|      cfgs++;
# 1729|      if(opus_packet_unpad(po,0)!=OPUS_BAD_ARG)test_failed();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def341]
opus-1.6/tests/test_opus_api.c:1729:7: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1613:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1616:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1619:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1625:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1627:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1628:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1630:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1631:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1638:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1640:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1640:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1642:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1643:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1650:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1652:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1652:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1654:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1655:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1663:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1668:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1659:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1663:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1668:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1717:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1719:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1719:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1721:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1721:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1723:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1723:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1725:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1725:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1727:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1727:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1729:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1729:7: throw: if ‘opus_packet_unpad’ throws an exception...
opus-1.6/tests/test_opus_api.c:1729:7: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/101/codeFlows/0/threadFlows/0/locations/0)
# 1727|      if(opus_multistream_packet_pad(po,0,5,1)!=OPUS_BAD_ARG)test_failed();
# 1728|      cfgs++;
# 1729|->    if(opus_packet_unpad(po,0)!=OPUS_BAD_ARG)test_failed();
# 1730|      cfgs++;
# 1731|      if(opus_multistream_packet_unpad(po,0,1)!=OPUS_BAD_ARG)test_failed();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def342]
opus-1.6/tests/test_opus_api.c:1731:7: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1613:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1616:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1619:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1625:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1627:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1628:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1630:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1631:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1638:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1640:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1640:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1642:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1643:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1650:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1652:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1652:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1654:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1655:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1663:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1668:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1659:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1663:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1668:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1717:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1719:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1719:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1721:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1721:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1723:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1723:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1725:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1725:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1727:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1727:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1729:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1729:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1731:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1731:7: throw: if ‘opus_multistream_packet_unpad’ throws an exception...
opus-1.6/tests/test_opus_api.c:1731:7: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/102/codeFlows/0/threadFlows/0/locations/0)
# 1729|      if(opus_packet_unpad(po,0)!=OPUS_BAD_ARG)test_failed();
# 1730|      cfgs++;
# 1731|->    if(opus_multistream_packet_unpad(po,0,1)!=OPUS_BAD_ARG)test_failed();
# 1732|      cfgs++;
# 1733|      if(opus_packet_unpad(po,4)!=OPUS_INVALID_PACKET)test_failed();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def343]
opus-1.6/tests/test_opus_api.c:1733:7: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1613:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1616:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1619:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1625:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1627:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1628:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1630:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1631:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1638:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1640:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1640:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1642:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1643:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1650:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1652:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1652:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1654:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1655:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1663:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1668:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1659:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1663:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1668:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1717:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1719:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1719:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1721:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1721:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1723:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1723:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1725:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1725:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1727:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1727:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1729:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1729:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1731:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1731:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1733:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1733:7: throw: if ‘opus_packet_unpad’ throws an exception...
opus-1.6/tests/test_opus_api.c:1733:7: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/103/codeFlows/0/threadFlows/0/locations/0)
# 1731|      if(opus_multistream_packet_unpad(po,0,1)!=OPUS_BAD_ARG)test_failed();
# 1732|      cfgs++;
# 1733|->    if(opus_packet_unpad(po,4)!=OPUS_INVALID_PACKET)test_failed();
# 1734|      cfgs++;
# 1735|      if(opus_multistream_packet_unpad(po,4,1)!=OPUS_INVALID_PACKET)test_failed();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def344]
opus-1.6/tests/test_opus_api.c:1735:7: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1613:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1616:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1619:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1625:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1627:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1628:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1630:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1631:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1638:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1640:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1640:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1642:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1643:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1650:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1652:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1652:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1654:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1655:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1663:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1668:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1659:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1663:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1668:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1717:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1719:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1719:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1721:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1721:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1723:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1723:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1725:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1725:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1727:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1727:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1729:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1729:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1731:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1731:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1733:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1733:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1735:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1735:7: throw: if ‘opus_multistream_packet_unpad’ throws an exception...
opus-1.6/tests/test_opus_api.c:1735:7: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/104/codeFlows/0/threadFlows/0/locations/0)
# 1733|      if(opus_packet_unpad(po,4)!=OPUS_INVALID_PACKET)test_failed();
# 1734|      cfgs++;
# 1735|->    if(opus_multistream_packet_unpad(po,4,1)!=OPUS_INVALID_PACKET)test_failed();
# 1736|      cfgs++;
# 1737|      po[0]=0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def345]
opus-1.6/tests/test_opus_api.c:1740:7: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1613:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1616:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1619:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1625:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1627:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1628:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1630:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1631:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1638:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1640:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1640:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1642:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1643:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1650:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1652:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1652:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1654:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1655:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1663:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1668:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1659:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1663:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1668:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1717:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1719:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1719:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1721:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1721:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1723:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1723:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1725:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1725:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1727:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1727:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1729:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1729:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1731:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1731:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1733:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1733:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1735:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1735:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1737:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1740:7: throw: if ‘opus_packet_pad’ throws an exception...
opus-1.6/tests/test_opus_api.c:1740:7: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/105/codeFlows/0/threadFlows/0/locations/0)
# 1738|      po[1]=0;
# 1739|      po[2]=0;
# 1740|->    if(opus_packet_pad(po,5,4)!=OPUS_BAD_ARG)test_failed();
# 1741|      cfgs++;
# 1742|      if(opus_multistream_packet_pad(po,5,4,1)!=OPUS_BAD_ARG)test_failed();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def346]
opus-1.6/tests/test_opus_api.c:1742:7: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1613:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1616:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1619:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1625:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1627:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1628:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1630:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1631:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1638:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1640:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1640:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1642:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1643:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1650:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1652:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1652:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1654:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1655:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1663:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1668:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1659:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1663:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1668:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1717:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1719:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1719:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1721:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1721:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1723:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1723:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1725:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1725:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1727:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1727:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1729:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1729:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1731:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1731:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1733:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1733:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1735:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1735:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1737:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1740:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1742:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1742:7: throw: if ‘opus_multistream_packet_pad’ throws an exception...
opus-1.6/tests/test_opus_api.c:1742:7: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/106/codeFlows/0/threadFlows/0/locations/0)
# 1740|      if(opus_packet_pad(po,5,4)!=OPUS_BAD_ARG)test_failed();
# 1741|      cfgs++;
# 1742|->    if(opus_multistream_packet_pad(po,5,4,1)!=OPUS_BAD_ARG)test_failed();
# 1743|      cfgs++;
# 1744|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def347]
opus-1.6/tests/test_opus_api.c:1753:4: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1475:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1479:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1481:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1485:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1487:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1489:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1491:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1495:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1497:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1498:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1500:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1501:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1503:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1504:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1506:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1508:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1510:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1512:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1514:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1516:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1518:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1519:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1521:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1522:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1524:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1525:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1529:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1530:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1534:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1607:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1609:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1610:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1612:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1613:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1616:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1619:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1625:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1627:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1628:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1630:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1631:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1638:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1640:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1640:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1642:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1643:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1650:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1652:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1652:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1654:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1655:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1663:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1668:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1659:12: branch_true: following ‘true’ branch (when ‘j != 32’)...
opus-1.6/tests/test_opus_api.c:1663:18: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1668:15: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1659:17: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1717:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1719:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1719:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1721:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1721:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1723:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1723:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1725:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1725:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1727:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1727:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1729:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1729:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1731:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1731:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1733:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1733:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1735:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1735:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1737:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1740:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1742:7: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1742:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_api.c:1745:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1753:4: throw: if ‘opus_repacketizer_destroy’ throws an exception...
opus-1.6/tests/test_opus_api.c:1753:4: danger: ‘packet’ leaks here; was allocated at [(1)](sarif:/runs/0/results/107/codeFlows/0/threadFlows/0/locations/0)
# 1751|      fprintf(stdout,"    opus_multistream_packet_unpad ................ OK.\n");
# 1752|   
# 1753|->    opus_repacketizer_destroy(rp);
# 1754|      cfgs++;
# 1755|      free(packet);

Error: CPPCHECK_WARNING (CWE-476): [#def348]
opus-1.6/tests/test_opus_common.h:34: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: _t
#   32|        if(_y<3)for(i=0;i<_y;i++)*(--*_p)=_t[i+1];
#   33|     }else{
#   34|->      _t[_x]=_t[_x-_y];
#   35|        deb2_impl(_t,_p,_k,_x+1,_y);
#   36|        for(i=_t[_x-_y]+1;i<_k;i++){

Error: CPPCHECK_WARNING (CWE-476): [#def349]
opus-1.6/tests/test_opus_common.h:36: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: _t
#   34|        _t[_x]=_t[_x-_y];
#   35|        deb2_impl(_t,_p,_k,_x+1,_y);
#   36|->      for(i=_t[_x-_y]+1;i<_k;i++){
#   37|          _t[_x]=i;
#   38|          deb2_impl(_t,_p,_k,_x+1,_x);

Error: CPPCHECK_WARNING (CWE-476): [#def350]
opus-1.6/tests/test_opus_common.h:37: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: _t
#   35|        deb2_impl(_t,_p,_k,_x+1,_y);
#   36|        for(i=_t[_x-_y]+1;i<_k;i++){
#   37|->        _t[_x]=i;
#   38|          deb2_impl(_t,_p,_k,_x+1,_x);
#   39|        }

Error: CPPCHECK_WARNING (CWE-476): [#def351]
opus-1.6/tests/test_opus_common.h:49: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: t
#   47|      unsigned char *t;
#   48|      t=malloc(sizeof(unsigned char)*_k*2);
#   49|->    memset(t,0,sizeof(unsigned char)*_k*2);
#   50|      p=&_res[_k*_k];
#   51|      deb2_impl(t,&p,_k,1,1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def352]
opus-1.6/tests/test_opus_common.h:76:3: warning[-Wanalyzer-malloc-leak]: leak of ‘in’
opus-1.6/tests/test_opus_padding.c:46:6: enter_function: entry to ‘test_overflow’
opus-1.6/tests/test_opus_padding.c:52:23: acquire_memory: allocated here
opus-1.6/tests/test_opus_padding.c:56:6: branch_true: following ‘true’ branch...
opus-1.6/tests/test_opus_padding.c:57:5: branch_true: ...to here
opus-1.6/tests/test_opus_padding.c:58:5: call_function: calling ‘_test_failed’ from ‘test_overflow’
#   74|     fprintf(stderr," ***************************************************\n");
#   75|     fprintf(stderr,"Please report this failure and include\n");
#   76|->   fprintf(stderr,"'make check SEED=%u fails %s at line %d for %s'\n",iseed,file,line,opus_get_version_string());
#   77|     fprintf(stderr,"and any relevant details about your system.\n\n");
#   78|   #if defined(_MSC_VER)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def353]
opus-1.6/tests/test_opus_common.h:76:3: warning[-Wanalyzer-malloc-leak]: leak of ‘out’
opus-1.6/tests/test_opus_padding.c:46:6: enter_function: entry to ‘test_overflow’
opus-1.6/tests/test_opus_padding.c:53:21: acquire_memory: allocated here
opus-1.6/tests/test_opus_padding.c:56:6: branch_true: following ‘true’ branch...
opus-1.6/tests/test_opus_padding.c:57:5: branch_true: ...to here
opus-1.6/tests/test_opus_padding.c:58:5: call_function: calling ‘_test_failed’ from ‘test_overflow’
#   74|     fprintf(stderr," ***************************************************\n");
#   75|     fprintf(stderr,"Please report this failure and include\n");
#   76|->   fprintf(stderr,"'make check SEED=%u fails %s at line %d for %s'\n",iseed,file,line,opus_get_version_string());
#   77|     fprintf(stderr,"and any relevant details about your system.\n\n");
#   78|   #if defined(_MSC_VER)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def354]
opus-1.6/tests/test_opus_common.h:76:3: warning[-Wanalyzer-malloc-leak]: leak of ‘packet’
opus-1.6/tests/test_opus_api.c:1456:5: enter_function: entry to ‘test_repacketizer_api’
opus-1.6/tests/test_opus_api.c:1466:11: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1470:6: branch_true: following ‘true’ branch (when ‘po’ is NULL)...
opus-1.6/tests/test_opus_api.c:1470:16: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1470:16: call_function: calling ‘_test_failed’ from ‘test_repacketizer_api’
#   74|     fprintf(stderr," ***************************************************\n");
#   75|     fprintf(stderr,"Please report this failure and include\n");
#   76|->   fprintf(stderr,"'make check SEED=%u fails %s at line %d for %s'\n",iseed,file,line,opus_get_version_string());
#   77|     fprintf(stderr,"and any relevant details about your system.\n\n");
#   78|   #if defined(_MSC_VER)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def355]
opus-1.6/tests/test_opus_common.h:76:3: warning[-Wanalyzer-malloc-leak]: leak of ‘po’
opus-1.6/tests/test_opus_api.c:1456:5: enter_function: entry to ‘test_repacketizer_api’
opus-1.6/tests/test_opus_api.c:1467:6: branch_false: following ‘false’ branch (when ‘packet’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1468:4: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1469:7: acquire_memory: allocated here
opus-1.6/tests/test_opus_api.c:1470:6: branch_false: following ‘false’ branch (when ‘po’ is non-NULL)...
opus-1.6/tests/test_opus_api.c:1472:6: branch_false: ...to here
opus-1.6/tests/test_opus_api.c:1473:6: branch_true: following ‘true’ branch...
opus-1.6/tests/test_opus_api.c:1473:12: branch_true: ...to here
opus-1.6/tests/test_opus_api.c:1473:12: call_function: calling ‘_test_failed’ from ‘test_repacketizer_api’
#   74|     fprintf(stderr," ***************************************************\n");
#   75|     fprintf(stderr,"Please report this failure and include\n");
#   76|->   fprintf(stderr,"'make check SEED=%u fails %s at line %d for %s'\n",iseed,file,line,opus_get_version_string());
#   77|     fprintf(stderr,"and any relevant details about your system.\n\n");
#   78|   #if defined(_MSC_VER)

Error: CPPCHECK_WARNING (CWE-476): [#def356]
opus-1.6/tests/test_opus_custom.c:169: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: decC_copy
#  167|         decC = (OpusCustomDecoder*)params.decoder;
#  168|         decC_copy = malloc(size);
#  169|->       memcpy(decC_copy, decC, size);
#  170|      }
#  171|      else {

Error: CPPCHECK_WARNING (CWE-476): [#def357]
opus-1.6/tests/test_opus_custom.c:175: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dec_copy
#  173|         dec = (OpusDecoder*)params.decoder;
#  174|         dec_copy = malloc(size);
#  175|->       memcpy(dec_copy, dec, size);
#  176|      }
#  177|   

Error: CPPCHECK_WARNING (CWE-476): [#def358]
opus-1.6/tests/test_opus_decode.c:73: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: outbuf_int
#   71|   
#   72|      outbuf_int=malloc(sizeof(short)*(MAX_FRAME_SAMP+16)*2);
#   73|->    for(i=0;i<(MAX_FRAME_SAMP+16)*2;i++)outbuf_int[i]=32749;
#   74|      outbuf=&outbuf_int[8*2];
#   75|   

Error: CPPCHECK_WARNING (CWE-457): [#def359]
opus-1.6/tests/test_opus_dred.c:74: warning[uninitvar]: Uninitialized variable: payload
#   72|         for (j=0;j<len;j++)
#   73|            payload[j] = fast_rand()&0xFF;
#   74|->       res1 = opus_dred_parse(dred_dec, dred, payload, len, 48000, 48000, &dred_end, fast_rand()&0x1);
#   75|         if (res1 > 0)
#   76|         {

Error: CPPCHECK_WARNING (CWE-476): [#def360]
opus-1.6/tests/test_opus_encode.c:66: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#   64|      j=0;
#   65|      /*60ms silence*/
#   66|->    for(i=0;i<2880;i++)buf[i*2]=buf[i*2+1]=0;
#   67|      for(i=2880;i<len;i++)
#   68|      {

Error: CPPCHECK_WARNING (CWE-476): [#def361]
opus-1.6/tests/test_opus_encode.c:80: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#   78|        v1=(c1+128)>>8;
#   79|        v2=(c2+128)>>8;
#   80|->      buf[i*2]=v1>32767?32767:(v1<-32768?-32768:v1);
#   81|        buf[i*2+1]=v2>32767?32767:(v2<-32768?-32768:v2);
#   82|        if(i%6==0)j++;

Error: CPPCHECK_WARNING (CWE-476): [#def362]
opus-1.6/tests/test_opus_encode.c:81: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#   79|        v2=(c2+128)>>8;
#   80|        buf[i*2]=v1>32767?32767:(v1<-32768?-32768:v1);
#   81|->      buf[i*2+1]=v2>32767?32767:(v2<-32768?-32768:v2);
#   82|        if(i%6==0)j++;
#   83|      }

Error: CPPCHECK_WARNING (CWE-476): [#def363]
opus-1.6/tests/test_opus_extensions.c:396: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  394|         unsigned char *buf = malloc(LENSIZE+1);
#  395|         len = LENSIZE+1;
#  396|->       buf[0] = 33<<1 | 1;
#  397|         memset(buf + 1, 0xFF, LENSIZE - 1);
#  398|         buf[LENSIZE] = 0xFE;

Error: CPPCHECK_WARNING (CWE-682): [#def364]
opus-1.6/tests/test_opus_extensions.c:397: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
#  395|         len = LENSIZE+1;
#  396|         buf[0] = 33<<1 | 1;
#  397|->       memset(buf + 1, 0xFF, LENSIZE - 1);
#  398|         buf[LENSIZE] = 0xFE;
#  399|         result = opus_packet_extensions_parse(buf, len, ext_out, &nb_ext, 1);

Error: CPPCHECK_WARNING (CWE-476): [#def365]
opus-1.6/tests/test_opus_extensions.c:398: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  396|         buf[0] = 33<<1 | 1;
#  397|         memset(buf + 1, 0xFF, LENSIZE - 1);
#  398|->       buf[LENSIZE] = 0xFE;
#  399|         result = opus_packet_extensions_parse(buf, len, ext_out, &nb_ext, 1);
#  400|         expect_true(result == OPUS_INVALID_PACKET, "expected OPUS_INVALID_PACKET");

Error: CPPCHECK_WARNING (CWE-457): [#def366]
opus-1.6/tests/test_opus_extensions.c:601: warning[uninitvar]: Uninitialized variable: payload
#  599|         nb_frames = (fast_rand()%48) + 1;
#  600|         result =
#  601|->        opus_packet_extensions_parse(payload, len, ext_out, &nb_ext, nb_frames);
#  602|         expect_true(result == OPUS_OK || result == OPUS_BUFFER_TOO_SMALL || result == OPUS_INVALID_PACKET, "expected OPUS_OK, OPUS_BUFFER_TOO_SMALL or OPUS_INVALID_PACKET");
#  603|         /* Even if parsing fails, check that the extensions that got extracted make sense. */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def367]
opus-1.6/tests/test_opus_padding.c:65:13: warning[-Wanalyzer-malloc-leak]: leak of ‘in’
opus-1.6/tests/test_opus_padding.c:52:23: acquire_memory: allocated here
opus-1.6/tests/test_opus_padding.c:56:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_padding.c:60:3: branch_false: ...to here
opus-1.6/tests/test_opus_padding.c:65:13: throw: if ‘opus_decoder_create’ throws an exception...
opus-1.6/tests/test_opus_padding.c:65:13: danger: ‘in’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#   63|     in[PACKETSIZE-1] = 0x0b;
#   64|   
#   65|->   decoder = opus_decoder_create(48000, CHANNELS, &error);
#   66|     result = opus_decode(decoder, in, PACKETSIZE, out, FRAMESIZE, 0);
#   67|     opus_decoder_destroy(decoder);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def368]
opus-1.6/tests/test_opus_padding.c:65:13: warning[-Wanalyzer-malloc-leak]: leak of ‘out’
opus-1.6/tests/test_opus_padding.c:53:21: acquire_memory: allocated here
opus-1.6/tests/test_opus_padding.c:56:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_padding.c:60:3: branch_false: ...to here
opus-1.6/tests/test_opus_padding.c:65:13: throw: if ‘opus_decoder_create’ throws an exception...
opus-1.6/tests/test_opus_padding.c:65:13: danger: ‘out’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#   63|     in[PACKETSIZE-1] = 0x0b;
#   64|   
#   65|->   decoder = opus_decoder_create(48000, CHANNELS, &error);
#   66|     result = opus_decode(decoder, in, PACKETSIZE, out, FRAMESIZE, 0);
#   67|     opus_decoder_destroy(decoder);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def369]
opus-1.6/tests/test_opus_padding.c:66:12: warning[-Wanalyzer-malloc-leak]: leak of ‘in’
opus-1.6/tests/test_opus_padding.c:52:23: acquire_memory: allocated here
opus-1.6/tests/test_opus_padding.c:56:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_padding.c:60:3: branch_false: ...to here
opus-1.6/tests/test_opus_padding.c:66:12: throw: if ‘opus_decode’ throws an exception...
opus-1.6/tests/test_opus_padding.c:66:12: danger: ‘in’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#   64|   
#   65|     decoder = opus_decoder_create(48000, CHANNELS, &error);
#   66|->   result = opus_decode(decoder, in, PACKETSIZE, out, FRAMESIZE, 0);
#   67|     opus_decoder_destroy(decoder);
#   68|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def370]
opus-1.6/tests/test_opus_padding.c:66:12: warning[-Wanalyzer-malloc-leak]: leak of ‘out’
opus-1.6/tests/test_opus_padding.c:53:21: acquire_memory: allocated here
opus-1.6/tests/test_opus_padding.c:56:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_padding.c:60:3: branch_false: ...to here
opus-1.6/tests/test_opus_padding.c:66:12: throw: if ‘opus_decode’ throws an exception...
opus-1.6/tests/test_opus_padding.c:66:12: danger: ‘out’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#   64|   
#   65|     decoder = opus_decoder_create(48000, CHANNELS, &error);
#   66|->   result = opus_decode(decoder, in, PACKETSIZE, out, FRAMESIZE, 0);
#   67|     opus_decoder_destroy(decoder);
#   68|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def371]
opus-1.6/tests/test_opus_padding.c:67:3: warning[-Wanalyzer-malloc-leak]: leak of ‘in’
opus-1.6/tests/test_opus_padding.c:52:23: acquire_memory: allocated here
opus-1.6/tests/test_opus_padding.c:56:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_padding.c:60:3: branch_false: ...to here
opus-1.6/tests/test_opus_padding.c:67:3: throw: if ‘opus_decoder_destroy’ throws an exception...
opus-1.6/tests/test_opus_padding.c:67:3: danger: ‘in’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#   65|     decoder = opus_decoder_create(48000, CHANNELS, &error);
#   66|     result = opus_decode(decoder, in, PACKETSIZE, out, FRAMESIZE, 0);
#   67|->   opus_decoder_destroy(decoder);
#   68|   
#   69|     free(in);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def372]
opus-1.6/tests/test_opus_projection.c:103:24: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(120)’
opus-1.6/tests/test_opus_projection.c:76:6: enter_function: entry to ‘test_simple_matrix’
opus-1.6/tests/test_opus_projection.c:98:27: call_function: inlined call to ‘opus_alloc’ from ‘test_simple_matrix’
opus-1.6/tests/test_opus_projection.c:103:24: throw: if ‘mapping_matrix_get_size’ throws an exception...
opus-1.6/tests/test_opus_projection.c:103:24: danger: ‘malloc(120)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  101|   
#  102|     /* Initialize matrix */
#  103|->   simple_matrix_size = mapping_matrix_get_size(simple_matrix_params.rows,
#  104|       simple_matrix_params.cols);
#  105|     if (!simple_matrix_size)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def373]
opus-1.6/tests/test_opus_projection.c:103:24: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(160)’
opus-1.6/tests/test_opus_projection.c:76:6: enter_function: entry to ‘test_simple_matrix’
opus-1.6/tests/test_opus_projection.c:100:28: call_function: inlined call to ‘opus_alloc’ from ‘test_simple_matrix’
opus-1.6/tests/test_opus_projection.c:103:24: throw: if ‘mapping_matrix_get_size’ throws an exception...
opus-1.6/tests/test_opus_projection.c:103:24: danger: ‘malloc(160)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  101|   
#  102|     /* Initialize matrix */
#  103|->   simple_matrix_size = mapping_matrix_get_size(simple_matrix_params.rows,
#  104|       simple_matrix_params.cols);
#  105|     if (!simple_matrix_size)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def374]
opus-1.6/tests/test_opus_projection.c:103:24: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(80)’
opus-1.6/tests/test_opus_projection.c:76:6: enter_function: entry to ‘test_simple_matrix’
opus-1.6/tests/test_opus_projection.c:99:32: call_function: inlined call to ‘opus_alloc’ from ‘test_simple_matrix’
opus-1.6/tests/test_opus_projection.c:103:24: throw: if ‘mapping_matrix_get_size’ throws an exception...
opus-1.6/tests/test_opus_projection.c:103:24: danger: ‘malloc(80)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  101|   
#  102|     /* Initialize matrix */
#  103|->   simple_matrix_size = mapping_matrix_get_size(simple_matrix_params.rows,
#  104|       simple_matrix_params.cols);
#  105|     if (!simple_matrix_size)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def375]
opus-1.6/tests/test_opus_projection.c:105:6: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(120)’
opus-1.6/tests/test_opus_projection.c:76:6: enter_function: entry to ‘test_simple_matrix’
opus-1.6/tests/test_opus_projection.c:98:27: call_function: inlined call to ‘opus_alloc’ from ‘test_simple_matrix’
opus-1.6/tests/test_opus_projection.c:105:6: danger: ‘malloc(120)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#  103|     simple_matrix_size = mapping_matrix_get_size(simple_matrix_params.rows,
#  104|       simple_matrix_params.cols);
#  105|->   if (!simple_matrix_size)
#  106|       test_failed();
#  107|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def376]
opus-1.6/tests/test_opus_projection.c:105:6: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(160)’
opus-1.6/tests/test_opus_projection.c:76:6: enter_function: entry to ‘test_simple_matrix’
opus-1.6/tests/test_opus_projection.c:100:28: call_function: inlined call to ‘opus_alloc’ from ‘test_simple_matrix’
opus-1.6/tests/test_opus_projection.c:105:6: danger: ‘malloc(160)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#  103|     simple_matrix_size = mapping_matrix_get_size(simple_matrix_params.rows,
#  104|       simple_matrix_params.cols);
#  105|->   if (!simple_matrix_size)
#  106|       test_failed();
#  107|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def377]
opus-1.6/tests/test_opus_projection.c:105:6: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(80)’
opus-1.6/tests/test_opus_projection.c:76:6: enter_function: entry to ‘test_simple_matrix’
opus-1.6/tests/test_opus_projection.c:99:32: call_function: inlined call to ‘opus_alloc’ from ‘test_simple_matrix’
opus-1.6/tests/test_opus_projection.c:105:6: danger: ‘malloc(80)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#  103|     simple_matrix_size = mapping_matrix_get_size(simple_matrix_params.rows,
#  104|       simple_matrix_params.cols);
#  105|->   if (!simple_matrix_size)
#  106|       test_failed();
#  107|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def378]
opus-1.6/tests/test_opus_projection.c:108:36: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(120)’
opus-1.6/tests/test_opus_projection.c:76:6: enter_function: entry to ‘test_simple_matrix’
opus-1.6/tests/test_opus_projection.c:98:27: call_function: inlined call to ‘opus_alloc’ from ‘test_simple_matrix’
opus-1.6/tests/test_opus_projection.c:105:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:108:36: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:109:3: throw: if ‘mapping_matrix_init’ throws an exception...
opus-1.6/tests/test_opus_projection.c:108:36: danger: ‘malloc(120)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
#  106|       test_failed();
#  107|   
#  108|->   simple_matrix = (MappingMatrix *)opus_alloc(simple_matrix_size);
#  109|     mapping_matrix_init(simple_matrix, simple_matrix_params.rows,
#  110|       simple_matrix_params.cols, simple_matrix_params.gain, simple_matrix_data,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def379]
opus-1.6/tests/test_opus_projection.c:108:36: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(160)’
opus-1.6/tests/test_opus_projection.c:76:6: enter_function: entry to ‘test_simple_matrix’
opus-1.6/tests/test_opus_projection.c:100:28: call_function: inlined call to ‘opus_alloc’ from ‘test_simple_matrix’
opus-1.6/tests/test_opus_projection.c:105:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:108:36: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:109:3: throw: if ‘mapping_matrix_init’ throws an exception...
opus-1.6/tests/test_opus_projection.c:108:36: danger: ‘malloc(160)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
#  106|       test_failed();
#  107|   
#  108|->   simple_matrix = (MappingMatrix *)opus_alloc(simple_matrix_size);
#  109|     mapping_matrix_init(simple_matrix, simple_matrix_params.rows,
#  110|       simple_matrix_params.cols, simple_matrix_params.gain, simple_matrix_data,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def380]
opus-1.6/tests/test_opus_projection.c:108:36: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(80)’
opus-1.6/tests/test_opus_projection.c:76:6: enter_function: entry to ‘test_simple_matrix’
opus-1.6/tests/test_opus_projection.c:99:32: call_function: inlined call to ‘opus_alloc’ from ‘test_simple_matrix’
opus-1.6/tests/test_opus_projection.c:105:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:108:36: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:109:3: throw: if ‘mapping_matrix_init’ throws an exception...
opus-1.6/tests/test_opus_projection.c:108:36: danger: ‘malloc(80)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
#  106|       test_failed();
#  107|   
#  108|->   simple_matrix = (MappingMatrix *)opus_alloc(simple_matrix_size);
#  109|     mapping_matrix_init(simple_matrix, simple_matrix_params.rows,
#  110|       simple_matrix_params.cols, simple_matrix_params.gain, simple_matrix_data,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def381]
opus-1.6/tests/test_opus_projection.c:109:3: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc((long unsigned int)mapping_matrix_get_size(4, 3))’
opus-1.6/tests/test_opus_projection.c:76:6: enter_function: entry to ‘test_simple_matrix’
opus-1.6/tests/test_opus_projection.c:105:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:108:36: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:108:36: call_function: inlined call to ‘opus_alloc’ from ‘test_simple_matrix’
opus-1.6/tests/test_opus_projection.c:109:3: throw: if ‘mapping_matrix_init’ throws an exception...
opus-1.6/tests/test_opus_projection.c:109:3: danger: ‘malloc((long unsigned int)mapping_matrix_get_size(4, 3))’ leaks here; was allocated at [(5)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/4)
#  107|   
#  108|     simple_matrix = (MappingMatrix *)opus_alloc(simple_matrix_size);
#  109|->   mapping_matrix_init(simple_matrix, simple_matrix_params.rows,
#  110|       simple_matrix_params.cols, simple_matrix_params.gain, simple_matrix_data,
#  111|       sizeof(simple_matrix_data));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def382]
opus-1.6/tests/test_opus_projection.c:116:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(120)’
opus-1.6/tests/test_opus_projection.c:76:6: enter_function: entry to ‘test_simple_matrix’
opus-1.6/tests/test_opus_projection.c:98:27: call_function: inlined call to ‘opus_alloc’ from ‘test_simple_matrix’
opus-1.6/tests/test_opus_projection.c:105:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:108:36: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:114:15: branch_true: following ‘true’ branch (when ‘i != 30’)...
opus-1.6/tests/test_opus_projection.c:116:20: branch_true: ...to here
opus-1.6/tests/test_opus_projection.c:116:5: danger: ‘malloc(120) + (long unsigned int)i * 4’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/2)
#  114|     for (i = 0; i < SIMPLE_MATRIX_INPUT_SIZE; i++)
#  115|     {
#  116|->     input_pcm[i] = INT16TORES(input_int16[i]);
#  117|     }
#  118|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def383]
opus-1.6/tests/test_opus_projection.c:121:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(160)’
opus-1.6/tests/test_opus_projection.c:76:6: enter_function: entry to ‘test_simple_matrix’
opus-1.6/tests/test_opus_projection.c:100:28: call_function: inlined call to ‘opus_alloc’ from ‘test_simple_matrix’
opus-1.6/tests/test_opus_projection.c:105:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:108:36: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:114:15: branch_true: following ‘true’ branch (when ‘i != 30’)...
opus-1.6/tests/test_opus_projection.c:116:20: branch_true: ...to here
opus-1.6/tests/test_opus_projection.c:114:15: branch_true: following ‘true’ branch (when ‘i != 30’)...
opus-1.6/tests/test_opus_projection.c:116:20: branch_true: ...to here
opus-1.6/tests/test_opus_projection.c:120:15: branch_true: following ‘true’ branch (when ‘i != 40’)...
opus-1.6/tests/test_opus_projection.c:121:15: branch_true: ...to here
opus-1.6/tests/test_opus_projection.c:121:5: danger: ‘malloc(160) + (long unsigned int)i * 4’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/2)
#  119|     /* _in_short */
#  120|     for (i = 0; i < SIMPLE_MATRIX_OUTPUT_SIZE; i++)
#  121|->     output_pcm[i] = 0;
#  122|     for (i = 0; i < simple_matrix->rows; i++)
#  123|     {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def384]
opus-1.6/tests/test_opus_projection.c:211:11: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc((long unsigned int)matrix_size)’
opus-1.6/tests/test_opus_projection.c:179:6: enter_function: entry to ‘test_creation_arguments’
opus-1.6/tests/test_opus_projection.c:200:6: branch_true: following ‘true’ branch...
opus-1.6/tests/test_opus_projection.c:205:11: branch_true: ...to here
opus-1.6/tests/test_opus_projection.c:207:8: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:210:31: call_function: inlined call to ‘opus_alloc’ from ‘test_creation_arguments’
opus-1.6/tests/test_opus_projection.c:211:11: throw: if ‘opus_projection_encoder_ctl’ throws an exception...
opus-1.6/tests/test_opus_projection.c:211:11: danger: ‘malloc((long unsigned int)matrix_size)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/6)
#  209|   
#  210|       matrix = (unsigned char *)opus_alloc(matrix_size);
#  211|->     ret = opus_projection_encoder_ctl(st_enc,
#  212|         OPUS_PROJECTION_GET_DEMIXING_MATRIX_REQUEST, matrix, matrix_size);
#  213|   

Error: CPPCHECK_WARNING (CWE-457): [#def385]
opus-1.6/tests/test_opus_projection.c:227: warning[uninitvar]: Uninitialized variable: dec_error
#  225|     is_channels_valid = (order_plus_one >= 2 && order_plus_one <= 6) &&
#  226|       (nondiegetic_channels == 0 || nondiegetic_channels == 2);
#  227|->   is_projection_valid = (enc_error == OPUS_OK && dec_error == OPUS_OK);
#  228|     if (is_channels_valid ^ is_projection_valid)
#  229|     {

Error: CPPCHECK_WARNING (CWE-476): [#def386]
opus-1.6/tests/test_opus_projection.c:247: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: a
#  245|      c = (opus_int32 *)malloc(sizeof(opus_int32) * channels);
#  246|      d = (opus_int32 *)malloc(sizeof(opus_int32) * channels);
#  247|->    memset(a, 0, sizeof(opus_int32) * channels);
#  248|      memset(b, 0, sizeof(opus_int32) * channels);
#  249|      memset(c, 0, sizeof(opus_int32) * channels);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def387]
opus-1.6/tests/test_opus_projection.c:247:4: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘a’ where non-null expected
opus-1.6/tests/test_opus_projection.c:243:22: acquire_memory: this call could return NULL
opus-1.6/tests/test_opus_projection.c:247:4: danger: argument 1 (‘a’) from [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#  245|      c = (opus_int32 *)malloc(sizeof(opus_int32) * channels);
#  246|      d = (opus_int32 *)malloc(sizeof(opus_int32) * channels);
#  247|->    memset(a, 0, sizeof(opus_int32) * channels);
#  248|      memset(b, 0, sizeof(opus_int32) * channels);
#  249|      memset(c, 0, sizeof(opus_int32) * channels);

Error: CPPCHECK_WARNING (CWE-476): [#def388]
opus-1.6/tests/test_opus_projection.c:248: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: b
#  246|      d = (opus_int32 *)malloc(sizeof(opus_int32) * channels);
#  247|      memset(a, 0, sizeof(opus_int32) * channels);
#  248|->    memset(b, 0, sizeof(opus_int32) * channels);
#  249|      memset(c, 0, sizeof(opus_int32) * channels);
#  250|      memset(d, 0, sizeof(opus_int32) * channels);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def389]
opus-1.6/tests/test_opus_projection.c:248:4: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘b’ where non-null expected
opus-1.6/tests/test_opus_projection.c:244:22: acquire_memory: this call could return NULL
opus-1.6/tests/test_opus_projection.c:248:4: danger: argument 1 (‘b’) from [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#  246|      d = (opus_int32 *)malloc(sizeof(opus_int32) * channels);
#  247|      memset(a, 0, sizeof(opus_int32) * channels);
#  248|->    memset(b, 0, sizeof(opus_int32) * channels);
#  249|      memset(c, 0, sizeof(opus_int32) * channels);
#  250|      memset(d, 0, sizeof(opus_int32) * channels);

Error: CPPCHECK_WARNING (CWE-476): [#def390]
opus-1.6/tests/test_opus_projection.c:249: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: c
#  247|      memset(a, 0, sizeof(opus_int32) * channels);
#  248|      memset(b, 0, sizeof(opus_int32) * channels);
#  249|->    memset(c, 0, sizeof(opus_int32) * channels);
#  250|      memset(d, 0, sizeof(opus_int32) * channels);
#  251|      j=0;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def391]
opus-1.6/tests/test_opus_projection.c:249:4: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘c’ where non-null expected
opus-1.6/tests/test_opus_projection.c:245:22: acquire_memory: this call could return NULL
opus-1.6/tests/test_opus_projection.c:249:4: danger: argument 1 (‘c’) from [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#  247|      memset(a, 0, sizeof(opus_int32) * channels);
#  248|      memset(b, 0, sizeof(opus_int32) * channels);
#  249|->    memset(c, 0, sizeof(opus_int32) * channels);
#  250|      memset(d, 0, sizeof(opus_int32) * channels);
#  251|      j=0;

Error: CPPCHECK_WARNING (CWE-476): [#def392]
opus-1.6/tests/test_opus_projection.c:250: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: d
#  248|      memset(b, 0, sizeof(opus_int32) * channels);
#  249|      memset(c, 0, sizeof(opus_int32) * channels);
#  250|->    memset(d, 0, sizeof(opus_int32) * channels);
#  251|      j=0;
#  252|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def393]
opus-1.6/tests/test_opus_projection.c:250:4: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘d’ where non-null expected
opus-1.6/tests/test_opus_projection.c:246:22: acquire_memory: this call could return NULL
opus-1.6/tests/test_opus_projection.c:250:4: danger: argument 1 (‘d’) from [(1)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#  248|      memset(b, 0, sizeof(opus_int32) * channels);
#  249|      memset(c, 0, sizeof(opus_int32) * channels);
#  250|->    memset(d, 0, sizeof(opus_int32) * channels);
#  251|      j=0;
#  252|   

Error: CPPCHECK_WARNING (CWE-476): [#def394]
opus-1.6/tests/test_opus_projection.c:261: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: a
#  259|         v=(((j*((j>>12)^((j>>10|j>>12)&26&j>>7)))&128)+128)<<15;
#  260|         r=fast_rand();v+=r&65535;v-=r>>16;
#  261|->       b[k]=v-a[k]+((b[k]*61+32)>>6);a[k]=v;
#  262|         c[k]=(30*(c[k]+b[k]+d[k])+32)>>6;d[k]=b[k];
#  263|         v=(c[k]+128)>>8;

Error: CPPCHECK_WARNING (CWE-476): [#def395]
opus-1.6/tests/test_opus_projection.c:261: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: b
#  259|         v=(((j*((j>>12)^((j>>10|j>>12)&26&j>>7)))&128)+128)<<15;
#  260|         r=fast_rand();v+=r&65535;v-=r>>16;
#  261|->       b[k]=v-a[k]+((b[k]*61+32)>>6);a[k]=v;
#  262|         c[k]=(30*(c[k]+b[k]+d[k])+32)>>6;d[k]=b[k];
#  263|         v=(c[k]+128)>>8;

Error: CPPCHECK_WARNING (CWE-476): [#def396]
opus-1.6/tests/test_opus_projection.c:262: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: b
#  260|         r=fast_rand();v+=r&65535;v-=r>>16;
#  261|         b[k]=v-a[k]+((b[k]*61+32)>>6);a[k]=v;
#  262|->       c[k]=(30*(c[k]+b[k]+d[k])+32)>>6;d[k]=b[k];
#  263|         v=(c[k]+128)>>8;
#  264|         buf[i*channels+k]=v>32767?32767:(v<-32768?-32768:v);

Error: CPPCHECK_WARNING (CWE-476): [#def397]
opus-1.6/tests/test_opus_projection.c:262: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: c
#  260|         r=fast_rand();v+=r&65535;v-=r>>16;
#  261|         b[k]=v-a[k]+((b[k]*61+32)>>6);a[k]=v;
#  262|->       c[k]=(30*(c[k]+b[k]+d[k])+32)>>6;d[k]=b[k];
#  263|         v=(c[k]+128)>>8;
#  264|         buf[i*channels+k]=v>32767?32767:(v<-32768?-32768:v);

Error: CPPCHECK_WARNING (CWE-476): [#def398]
opus-1.6/tests/test_opus_projection.c:262: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: d
#  260|         r=fast_rand();v+=r&65535;v-=r>>16;
#  261|         b[k]=v-a[k]+((b[k]*61+32)>>6);a[k]=v;
#  262|->       c[k]=(30*(c[k]+b[k]+d[k])+32)>>6;d[k]=b[k];
#  263|         v=(c[k]+128)>>8;
#  264|         buf[i*channels+k]=v>32767?32767:(v<-32768?-32768:v);

Error: CPPCHECK_WARNING (CWE-476): [#def399]
opus-1.6/tests/test_opus_projection.c:263: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: c
#  261|         b[k]=v-a[k]+((b[k]*61+32)>>6);a[k]=v;
#  262|         c[k]=(30*(c[k]+b[k]+d[k])+32)>>6;d[k]=b[k];
#  263|->       v=(c[k]+128)>>8;
#  264|         buf[i*channels+k]=v>32767?32767:(v<-32768?-32768:v);
#  265|         if(i%6==0)j++;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def400]
opus-1.6/tests/test_opus_projection.c:297:12: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer_in’
opus-1.6/tests/test_opus_projection.c:294:24: acquire_memory: allocated here
opus-1.6/tests/test_opus_projection.c:297:12: throw: if ‘opus_projection_ambisonics_encoder_create’ throws an exception...
opus-1.6/tests/test_opus_projection.c:297:12: danger: ‘buffer_in’ leaks here; was allocated at [(1)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/0)
#  295|     buffer_out = (short *)malloc(sizeof(short) * BUFFER_SIZE * channels);
#  296|   
#  297|->   st_enc = opus_projection_ambisonics_encoder_create(Fs, channels,
#  298|       mapping_family, &streams, &coupled, application, &error);
#  299|     if (error != OPUS_OK) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def401]
opus-1.6/tests/test_opus_projection.c:297:12: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer_out’
opus-1.6/tests/test_opus_projection.c:295:25: acquire_memory: allocated here
opus-1.6/tests/test_opus_projection.c:297:12: throw: if ‘opus_projection_ambisonics_encoder_create’ throws an exception...
opus-1.6/tests/test_opus_projection.c:297:12: danger: ‘buffer_out’ leaks here; was allocated at [(1)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/0)
#  295|     buffer_out = (short *)malloc(sizeof(short) * BUFFER_SIZE * channels);
#  296|   
#  297|->   st_enc = opus_projection_ambisonics_encoder_create(Fs, channels,
#  298|       mapping_family, &streams, &coupled, application, &error);
#  299|     if (error != OPUS_OK) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def402]
opus-1.6/tests/test_opus_projection.c:308:11: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer_in’
opus-1.6/tests/test_opus_projection.c:294:24: acquire_memory: allocated here
opus-1.6/tests/test_opus_projection.c:299:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:309:5: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:308:11: throw: if ‘opus_projection_encoder_ctl’ throws an exception...
opus-1.6/tests/test_opus_projection.c:308:11: danger: ‘buffer_in’ leaks here; was allocated at [(1)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/0)
#  306|     }
#  307|   
#  308|->   error = opus_projection_encoder_ctl(st_enc,
#  309|       OPUS_SET_BITRATE(bitrate * 1000 * (streams + coupled)));
#  310|     if (error != OPUS_OK)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def403]
opus-1.6/tests/test_opus_projection.c:308:11: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer_out’
opus-1.6/tests/test_opus_projection.c:295:25: acquire_memory: allocated here
opus-1.6/tests/test_opus_projection.c:299:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:309:5: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:308:11: throw: if ‘opus_projection_encoder_ctl’ throws an exception...
opus-1.6/tests/test_opus_projection.c:308:11: danger: ‘buffer_out’ leaks here; was allocated at [(1)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/0)
#  306|     }
#  307|   
#  308|->   error = opus_projection_encoder_ctl(st_enc,
#  309|       OPUS_SET_BITRATE(bitrate * 1000 * (streams + coupled)));
#  310|     if (error != OPUS_OK)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def404]
opus-1.6/tests/test_opus_projection.c:315:11: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer_in’
opus-1.6/tests/test_opus_projection.c:294:24: acquire_memory: allocated here
opus-1.6/tests/test_opus_projection.c:299:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:309:5: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:310:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:315:11: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:315:11: throw: if ‘opus_projection_encoder_ctl’ throws an exception...
opus-1.6/tests/test_opus_projection.c:315:11: danger: ‘buffer_in’ leaks here; was allocated at [(1)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/0)
#  313|     }
#  314|   
#  315|->   error = opus_projection_encoder_ctl(st_enc,
#  316|       OPUS_PROJECTION_GET_DEMIXING_MATRIX_SIZE_REQUEST, &matrix_size);
#  317|     if (error != OPUS_OK || !matrix_size)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def405]
opus-1.6/tests/test_opus_projection.c:315:11: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer_out’
opus-1.6/tests/test_opus_projection.c:295:25: acquire_memory: allocated here
opus-1.6/tests/test_opus_projection.c:299:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:309:5: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:310:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:315:11: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:315:11: throw: if ‘opus_projection_encoder_ctl’ throws an exception...
opus-1.6/tests/test_opus_projection.c:315:11: danger: ‘buffer_out’ leaks here; was allocated at [(1)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/0)
#  313|     }
#  314|   
#  315|->   error = opus_projection_encoder_ctl(st_enc,
#  316|       OPUS_PROJECTION_GET_DEMIXING_MATRIX_SIZE_REQUEST, &matrix_size);
#  317|     if (error != OPUS_OK || !matrix_size)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def406]
opus-1.6/tests/test_opus_projection.c:323:11: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer_in’
opus-1.6/tests/test_opus_projection.c:294:24: acquire_memory: allocated here
opus-1.6/tests/test_opus_projection.c:299:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:309:5: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:310:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:315:11: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:317:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:323:11: throw: if ‘opus_projection_encoder_ctl’ throws an exception...
opus-1.6/tests/test_opus_projection.c:323:11: danger: ‘buffer_in’ leaks here; was allocated at [(1)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/0)
#  321|   
#  322|     matrix = (unsigned char *)opus_alloc(matrix_size);
#  323|->   error = opus_projection_encoder_ctl(st_enc,
#  324|       OPUS_PROJECTION_GET_DEMIXING_MATRIX_REQUEST, matrix, matrix_size);
#  325|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def407]
opus-1.6/tests/test_opus_projection.c:323:11: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer_out’
opus-1.6/tests/test_opus_projection.c:295:25: acquire_memory: allocated here
opus-1.6/tests/test_opus_projection.c:299:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:309:5: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:310:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:315:11: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:317:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:323:11: throw: if ‘opus_projection_encoder_ctl’ throws an exception...
opus-1.6/tests/test_opus_projection.c:323:11: danger: ‘buffer_out’ leaks here; was allocated at [(1)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/0)
#  321|   
#  322|     matrix = (unsigned char *)opus_alloc(matrix_size);
#  323|->   error = opus_projection_encoder_ctl(st_enc,
#  324|       OPUS_PROJECTION_GET_DEMIXING_MATRIX_REQUEST, matrix, matrix_size);
#  325|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def408]
opus-1.6/tests/test_opus_projection.c:323:11: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc((long unsigned int)matrix_size)’
opus-1.6/tests/test_opus_projection.c:275:6: enter_function: entry to ‘test_encode_decode’
opus-1.6/tests/test_opus_projection.c:299:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:309:5: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:310:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:315:11: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:317:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:322:29: call_function: inlined call to ‘opus_alloc’ from ‘test_encode_decode’
opus-1.6/tests/test_opus_projection.c:323:11: throw: if ‘opus_projection_encoder_ctl’ throws an exception...
opus-1.6/tests/test_opus_projection.c:323:11: danger: ‘malloc((long unsigned int)matrix_size)’ leaks here; was allocated at [(9)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/8)
#  321|   
#  322|     matrix = (unsigned char *)opus_alloc(matrix_size);
#  323|->   error = opus_projection_encoder_ctl(st_enc,
#  324|       OPUS_PROJECTION_GET_DEMIXING_MATRIX_REQUEST, matrix, matrix_size);
#  325|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def409]
opus-1.6/tests/test_opus_projection.c:326:12: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer_in’
opus-1.6/tests/test_opus_projection.c:294:24: acquire_memory: allocated here
opus-1.6/tests/test_opus_projection.c:299:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:309:5: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:310:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:315:11: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:317:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:326:12: throw: if ‘opus_projection_decoder_create’ throws an exception...
opus-1.6/tests/test_opus_projection.c:326:12: danger: ‘buffer_in’ leaks here; was allocated at [(1)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/0)
#  324|       OPUS_PROJECTION_GET_DEMIXING_MATRIX_REQUEST, matrix, matrix_size);
#  325|   
#  326|->   st_dec = opus_projection_decoder_create(Fs, channels, streams, coupled,
#  327|       matrix, matrix_size, &error);
#  328|     opus_free(matrix);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def410]
opus-1.6/tests/test_opus_projection.c:326:12: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer_out’
opus-1.6/tests/test_opus_projection.c:295:25: acquire_memory: allocated here
opus-1.6/tests/test_opus_projection.c:299:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:309:5: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:310:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:315:11: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:317:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:326:12: throw: if ‘opus_projection_decoder_create’ throws an exception...
opus-1.6/tests/test_opus_projection.c:326:12: danger: ‘buffer_out’ leaks here; was allocated at [(1)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/0)
#  324|       OPUS_PROJECTION_GET_DEMIXING_MATRIX_REQUEST, matrix, matrix_size);
#  325|   
#  326|->   st_dec = opus_projection_decoder_create(Fs, channels, streams, coupled,
#  327|       matrix, matrix_size, &error);
#  328|     opus_free(matrix);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def411]
opus-1.6/tests/test_opus_projection.c:339:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer_in’
opus-1.6/tests/test_opus_projection.c:275:6: enter_function: entry to ‘test_encode_decode’
opus-1.6/tests/test_opus_projection.c:294:24: acquire_memory: allocated here
opus-1.6/tests/test_opus_projection.c:299:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:309:5: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:310:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:315:11: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:317:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:330:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:337:3: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:337:3: call_function: calling ‘generate_music’ from ‘test_encode_decode’
opus-1.6/tests/test_opus_projection.c:337:3: return_function: returning to ‘test_encode_decode’ from ‘generate_music’
opus-1.6/tests/test_opus_projection.c:339:9: throw: if ‘opus_projection_encode’ throws an exception...
opus-1.6/tests/test_opus_projection.c:339:9: danger: ‘buffer_in’ leaks here; was allocated at [(2)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/1)
#  337|     generate_music(buffer_in, BUFFER_SIZE, channels);
#  338|   
#  339|->   len = opus_projection_encode(
#  340|       st_enc, buffer_in, BUFFER_SIZE, data, MAX_DATA_BYTES);
#  341|     if(len<0 || len>MAX_DATA_BYTES) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def412]
opus-1.6/tests/test_opus_projection.c:339:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer_out’
opus-1.6/tests/test_opus_projection.c:275:6: enter_function: entry to ‘test_encode_decode’
opus-1.6/tests/test_opus_projection.c:295:25: acquire_memory: allocated here
opus-1.6/tests/test_opus_projection.c:299:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:309:5: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:310:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:315:11: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:317:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:330:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:337:3: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:337:3: call_function: calling ‘generate_music’ from ‘test_encode_decode’
opus-1.6/tests/test_opus_projection.c:337:3: return_function: returning to ‘test_encode_decode’ from ‘generate_music’
opus-1.6/tests/test_opus_projection.c:339:9: throw: if ‘opus_projection_encode’ throws an exception...
opus-1.6/tests/test_opus_projection.c:339:9: danger: ‘buffer_out’ leaks here; was allocated at [(2)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/1)
#  337|     generate_music(buffer_in, BUFFER_SIZE, channels);
#  338|   
#  339|->   len = opus_projection_encode(
#  340|       st_enc, buffer_in, BUFFER_SIZE, data, MAX_DATA_BYTES);
#  341|     if(len<0 || len>MAX_DATA_BYTES) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def413]
opus-1.6/tests/test_opus_projection.c:346:17: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer_in’
opus-1.6/tests/test_opus_projection.c:275:6: enter_function: entry to ‘test_encode_decode’
opus-1.6/tests/test_opus_projection.c:294:24: acquire_memory: allocated here
opus-1.6/tests/test_opus_projection.c:299:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:309:5: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:310:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:315:11: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:317:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:330:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:337:3: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:337:3: call_function: calling ‘generate_music’ from ‘test_encode_decode’
opus-1.6/tests/test_opus_projection.c:337:3: return_function: returning to ‘test_encode_decode’ from ‘generate_music’
opus-1.6/tests/test_opus_projection.c:341:5: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:346:17: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:346:17: throw: if ‘opus_projection_decode’ throws an exception...
opus-1.6/tests/test_opus_projection.c:346:17: danger: ‘buffer_in’ leaks here; was allocated at [(2)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/1)
#  344|     }
#  345|   
#  346|->   out_samples = opus_projection_decode(
#  347|       st_dec, data, len, buffer_out, MAX_FRAME_SAMPLES, 0);
#  348|     if(out_samples!=BUFFER_SIZE) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def414]
opus-1.6/tests/test_opus_projection.c:346:17: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer_out’
opus-1.6/tests/test_opus_projection.c:275:6: enter_function: entry to ‘test_encode_decode’
opus-1.6/tests/test_opus_projection.c:295:25: acquire_memory: allocated here
opus-1.6/tests/test_opus_projection.c:299:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:309:5: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:310:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:315:11: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:317:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:330:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:337:3: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:337:3: call_function: calling ‘generate_music’ from ‘test_encode_decode’
opus-1.6/tests/test_opus_projection.c:337:3: return_function: returning to ‘test_encode_decode’ from ‘generate_music’
opus-1.6/tests/test_opus_projection.c:341:5: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:346:17: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:346:17: throw: if ‘opus_projection_decode’ throws an exception...
opus-1.6/tests/test_opus_projection.c:346:17: danger: ‘buffer_out’ leaks here; was allocated at [(2)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/1)
#  344|     }
#  345|   
#  346|->   out_samples = opus_projection_decode(
#  347|       st_dec, data, len, buffer_out, MAX_FRAME_SAMPLES, 0);
#  348|     if(out_samples!=BUFFER_SIZE) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def415]
opus-1.6/tests/test_opus_projection.c:353:3: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer_in’
opus-1.6/tests/test_opus_projection.c:275:6: enter_function: entry to ‘test_encode_decode’
opus-1.6/tests/test_opus_projection.c:294:24: acquire_memory: allocated here
opus-1.6/tests/test_opus_projection.c:299:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:309:5: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:310:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:315:11: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:317:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:330:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:337:3: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:337:3: call_function: calling ‘generate_music’ from ‘test_encode_decode’
opus-1.6/tests/test_opus_projection.c:337:3: return_function: returning to ‘test_encode_decode’ from ‘generate_music’
opus-1.6/tests/test_opus_projection.c:341:5: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:346:17: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:348:5: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:353:3: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:353:3: throw: if ‘opus_projection_decoder_destroy’ throws an exception...
opus-1.6/tests/test_opus_projection.c:353:3: danger: ‘buffer_in’ leaks here; was allocated at [(2)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/1)
#  351|     }
#  352|   
#  353|->   opus_projection_decoder_destroy(st_dec);
#  354|     opus_projection_encoder_destroy(st_enc);
#  355|     free(buffer_in);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def416]
opus-1.6/tests/test_opus_projection.c:354:3: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer_in’
opus-1.6/tests/test_opus_projection.c:275:6: enter_function: entry to ‘test_encode_decode’
opus-1.6/tests/test_opus_projection.c:294:24: acquire_memory: allocated here
opus-1.6/tests/test_opus_projection.c:299:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:309:5: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:310:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:315:11: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:317:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:330:6: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:337:3: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:337:3: call_function: calling ‘generate_music’ from ‘test_encode_decode’
opus-1.6/tests/test_opus_projection.c:337:3: return_function: returning to ‘test_encode_decode’ from ‘generate_music’
opus-1.6/tests/test_opus_projection.c:341:5: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:346:17: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:348:5: branch_false: following ‘false’ branch...
opus-1.6/tests/test_opus_projection.c:353:3: branch_false: ...to here
opus-1.6/tests/test_opus_projection.c:354:3: throw: if ‘opus_projection_encoder_destroy’ throws an exception...
opus-1.6/tests/test_opus_projection.c:354:3: danger: ‘buffer_in’ leaks here; was allocated at [(2)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/1)
#  352|   
#  353|     opus_projection_decoder_destroy(st_dec);
#  354|->   opus_projection_encoder_destroy(st_enc);
#  355|     free(buffer_in);
#  356|     free(buffer_out);

Scan Properties

analyzer-version-clippy1.92.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.0
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-110.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-nameopus-1.6-1.fc44
store-results-to/tmp/tmp4huqfjwa/opus-1.6-1.fc44.tar.xz
time-created2026-01-08 20:03:55
time-finished2026-01-08 20:07:24
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmp4huqfjwa/opus-1.6-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp4huqfjwa/opus-1.6-1.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9