Task #91680 - added.err
back to task #91680download
Error: CPPCHECK_WARNING (CWE-758):
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: GCC_ANALYZER_WARNING (CWE-457):
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):
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: GCC_ANALYZER_WARNING (CWE-476):
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):
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):
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-401):
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):
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):
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):
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):
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):
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):
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):
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):
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):
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):
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):
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):
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):
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):
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):
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):
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):
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):
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):
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):
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):
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):
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-476):
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):
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):
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):
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):
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):
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-476):
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):
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):
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):
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):
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):
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):
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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: COMPILER_WARNING:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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: COMPILER_WARNING:
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:
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:
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: CPPCHECK_WARNING (CWE-457):
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):
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):
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):
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):
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):
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):
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):
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-476):
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):
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):
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: CPPCHECK_WARNING (CWE-476):
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):
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):
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):
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):
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):
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-476):
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):
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| {