Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler.
Number of rules (primarily dangerous function names) in C/C++ ruleset: 223
Examining data/opus-1.3.1/win32/config.h
Examining data/opus-1.3.1/celt/celt_lpc.h
Examining data/opus-1.3.1/celt/pitch.h
Examining data/opus-1.3.1/celt/entenc.h
Examining data/opus-1.3.1/celt/cwrs.h
Examining data/opus-1.3.1/celt/entenc.c
Examining data/opus-1.3.1/celt/celt_decoder.c
Examining data/opus-1.3.1/celt/cpu_support.h
Examining data/opus-1.3.1/celt/entdec.h
Examining data/opus-1.3.1/celt/opus_custom_demo.c
Examining data/opus-1.3.1/celt/rate.h
Examining data/opus-1.3.1/celt/entcode.c
Examining data/opus-1.3.1/celt/static_modes_float.h
Examining data/opus-1.3.1/celt/celt.h
Examining data/opus-1.3.1/celt/fixed_debug.h
Examining data/opus-1.3.1/celt/fixed_generic.h
Examining data/opus-1.3.1/celt/mathops.h
Examining data/opus-1.3.1/celt/mfrngcod.h
Examining data/opus-1.3.1/celt/entdec.c
Examining data/opus-1.3.1/celt/rate.c
Examining data/opus-1.3.1/celt/celt_encoder.c
Examining data/opus-1.3.1/celt/_kiss_fft_guts.h
Examining data/opus-1.3.1/celt/quant_bands.c
Examining data/opus-1.3.1/celt/float_cast.h
Examining data/opus-1.3.1/celt/laplace.h
Examining data/opus-1.3.1/celt/pitch.c
Examining data/opus-1.3.1/celt/ecintrin.h
Examining data/opus-1.3.1/celt/static_modes_float_arm_ne10.h
Examining data/opus-1.3.1/celt/vq.h
Examining data/opus-1.3.1/celt/static_modes_fixed_arm_ne10.h
Examining data/opus-1.3.1/celt/modes.c
Examining data/opus-1.3.1/celt/quant_bands.h
Examining data/opus-1.3.1/celt/mdct.h
Examining data/opus-1.3.1/celt/entcode.h
Examining data/opus-1.3.1/celt/mathops.c
Examining data/opus-1.3.1/celt/bands.h
Examining data/opus-1.3.1/celt/laplace.c
Examining data/opus-1.3.1/celt/modes.h
Examining data/opus-1.3.1/celt/x86/vq_sse2.c
Examining data/opus-1.3.1/celt/x86/pitch_sse.h
Examining data/opus-1.3.1/celt/x86/x86cpu.c
Examining data/opus-1.3.1/celt/x86/vq_sse.h
Examining data/opus-1.3.1/celt/x86/celt_lpc_sse.h
Examining data/opus-1.3.1/celt/x86/x86cpu.h
Examining data/opus-1.3.1/celt/x86/pitch_sse.c
Examining data/opus-1.3.1/celt/x86/pitch_sse4_1.c
Examining data/opus-1.3.1/celt/x86/pitch_sse2.c
Examining data/opus-1.3.1/celt/x86/celt_lpc_sse4_1.c
Examining data/opus-1.3.1/celt/x86/x86_celt_map.c
Examining data/opus-1.3.1/celt/mips/mdct_mipsr1.h
Examining data/opus-1.3.1/celt/mips/vq_mipsr1.h
Examining data/opus-1.3.1/celt/mips/pitch_mipsr1.h
Examining data/opus-1.3.1/celt/mips/kiss_fft_mipsr1.h
Examining data/opus-1.3.1/celt/mips/celt_mipsr1.h
Examining data/opus-1.3.1/celt/mips/fixed_generic_mipsr1.h
Examining data/opus-1.3.1/celt/arch.h
Examining data/opus-1.3.1/celt/tests/test_unit_dft.c
Examining data/opus-1.3.1/celt/tests/test_unit_mdct.c
Examining data/opus-1.3.1/celt/tests/test_unit_cwrs32.c
Examining data/opus-1.3.1/celt/tests/test_unit_types.c
Examining data/opus-1.3.1/celt/tests/test_unit_mathops.c
Examining data/opus-1.3.1/celt/tests/test_unit_rotation.c
Examining data/opus-1.3.1/celt/tests/test_unit_laplace.c
Examining data/opus-1.3.1/celt/tests/test_unit_entropy.c
Examining data/opus-1.3.1/celt/vq.c
Examining data/opus-1.3.1/celt/mdct.c
Examining data/opus-1.3.1/celt/celt.c
Examining data/opus-1.3.1/celt/cwrs.c
Examining data/opus-1.3.1/celt/bands.c
Examining data/opus-1.3.1/celt/os_support.h
Examining data/opus-1.3.1/celt/stack_alloc.h
Examining data/opus-1.3.1/celt/kiss_fft.h
Examining data/opus-1.3.1/celt/static_modes_fixed.h
Examining data/opus-1.3.1/celt/kiss_fft.c
Examining data/opus-1.3.1/celt/arm/kiss_fft_armv5e.h
Examining data/opus-1.3.1/celt/arm/mdct_arm.h
Examining data/opus-1.3.1/celt/arm/fft_arm.h
Examining data/opus-1.3.1/celt/arm/armcpu.c
Examining data/opus-1.3.1/celt/arm/celt_mdct_ne10.c
Examining data/opus-1.3.1/celt/arm/pitch_neon_intr.c
Examining data/opus-1.3.1/celt/arm/fixed_armv4.h
Examining data/opus-1.3.1/celt/arm/arm_celt_map.c
Examining data/opus-1.3.1/celt/arm/kiss_fft_armv4.h
Examining data/opus-1.3.1/celt/arm/celt_neon_intr.c
Examining data/opus-1.3.1/celt/arm/pitch_arm.h
Examining data/opus-1.3.1/celt/arm/celt_fft_ne10.c
Examining data/opus-1.3.1/celt/arm/fixed_arm64.h
Examining data/opus-1.3.1/celt/arm/fixed_armv5e.h
Examining data/opus-1.3.1/celt/arm/armcpu.h
Examining data/opus-1.3.1/celt/celt_lpc.c
Examining data/opus-1.3.1/src/repacketizer.c
Examining data/opus-1.3.1/src/repacketizer_demo.c
Examining data/opus-1.3.1/src/opus_private.h
Examining data/opus-1.3.1/src/opus_encoder.c
Examining data/opus-1.3.1/src/mlp.c
Examining data/opus-1.3.1/src/opus_compare.c
Examining data/opus-1.3.1/src/mapping_matrix.h
Examining data/opus-1.3.1/src/opus_decoder.c
Examining data/opus-1.3.1/src/mlp.h
Examining data/opus-1.3.1/src/opus_multistream_encoder.c
Examining data/opus-1.3.1/src/opus_demo.c
Examining data/opus-1.3.1/src/analysis.h
Examining data/opus-1.3.1/src/opus.c
Examining data/opus-1.3.1/src/mapping_matrix.c
Examining data/opus-1.3.1/src/opus_multistream_decoder.c
Examining data/opus-1.3.1/src/tansig_table.h
Examining data/opus-1.3.1/src/opus_projection_decoder.c
Examining data/opus-1.3.1/src/opus_projection_encoder.c
Examining data/opus-1.3.1/src/opus_multistream.c
Examining data/opus-1.3.1/src/mlp_data.c
Examining data/opus-1.3.1/src/analysis.c
Examining data/opus-1.3.1/include/opus.h
Examining data/opus-1.3.1/include/opus_types.h
Examining data/opus-1.3.1/include/opus_custom.h
Examining data/opus-1.3.1/include/opus_multistream.h
Examining data/opus-1.3.1/include/opus_defines.h
Examining data/opus-1.3.1/include/opus_projection.h
Examining data/opus-1.3.1/tests/test_opus_decode.c
Examining data/opus-1.3.1/tests/test_opus_api.c
Examining data/opus-1.3.1/tests/opus_encode_regressions.c
Examining data/opus-1.3.1/tests/test_opus_common.h
Examining data/opus-1.3.1/tests/test_opus_encode.c
Examining data/opus-1.3.1/tests/test_opus_padding.c
Examining data/opus-1.3.1/tests/test_opus_projection.c
Examining data/opus-1.3.1/doc/trivial_example.c
Examining data/opus-1.3.1/silk/errors.h
Examining data/opus-1.3.1/silk/resampler.c
Examining data/opus-1.3.1/silk/NLSF_del_dec_quant.c
Examining data/opus-1.3.1/silk/macros.h
Examining data/opus-1.3.1/silk/NSQ.h
Examining data/opus-1.3.1/silk/resampler_down2.c
Examining data/opus-1.3.1/silk/code_signs.c
Examining data/opus-1.3.1/silk/main.h
Examining data/opus-1.3.1/silk/stereo_find_predictor.c
Examining data/opus-1.3.1/silk/encode_indices.c
Examining data/opus-1.3.1/silk/biquad_alt.c
Examining data/opus-1.3.1/silk/bwexpander_32.c
Examining data/opus-1.3.1/silk/tables_pulses_per_block.c
Examining data/opus-1.3.1/silk/dec_API.c
Examining data/opus-1.3.1/silk/interpolate.c
Examining data/opus-1.3.1/silk/NLSF_VQ.c
Examining data/opus-1.3.1/silk/sort.c
Examining data/opus-1.3.1/silk/bwexpander.c
Examining data/opus-1.3.1/silk/decode_pulses.c
Examining data/opus-1.3.1/silk/inner_prod_aligned.c
Examining data/opus-1.3.1/silk/resampler_private_up2_HQ.c
Examining data/opus-1.3.1/silk/resampler_private_IIR_FIR.c
Examining data/opus-1.3.1/silk/VQ_WMat_EC.c
Examining data/opus-1.3.1/silk/A2NLSF.c
Examining data/opus-1.3.1/silk/PLC.h
Examining data/opus-1.3.1/silk/control_audio_bandwidth.c
Examining data/opus-1.3.1/silk/NLSF2A.c
Examining data/opus-1.3.1/silk/decode_frame.c
Examining data/opus-1.3.1/silk/resampler_private_AR2.c
Examining data/opus-1.3.1/silk/Inlines.h
Examining data/opus-1.3.1/silk/stereo_decode_pred.c
Examining data/opus-1.3.1/silk/tables_pitch_lag.c
Examining data/opus-1.3.1/silk/sum_sqr_shift.c
Examining data/opus-1.3.1/silk/NLSF_encode.c
Examining data/opus-1.3.1/silk/stereo_quant_pred.c
Examining data/opus-1.3.1/silk/tables_other.c
Examining data/opus-1.3.1/silk/pitch_est_tables.c
Examining data/opus-1.3.1/silk/decoder_set_fs.c
Examining data/opus-1.3.1/silk/stereo_MS_to_LR.c
Examining data/opus-1.3.1/silk/init_encoder.c
Examining data/opus-1.3.1/silk/tuning_parameters.h
Examining data/opus-1.3.1/silk/control.h
Examining data/opus-1.3.1/silk/table_LSF_cos.c
Examining data/opus-1.3.1/silk/MacroCount.h
Examining data/opus-1.3.1/silk/float/SigProc_FLP.h
Examining data/opus-1.3.1/silk/float/encode_frame_FLP.c
Examining data/opus-1.3.1/silk/float/autocorrelation_FLP.c
Examining data/opus-1.3.1/silk/float/scale_copy_vector_FLP.c
Examining data/opus-1.3.1/silk/float/LPC_inv_pred_gain_FLP.c
Examining data/opus-1.3.1/silk/float/find_pred_coefs_FLP.c
Examining data/opus-1.3.1/silk/float/wrappers_FLP.c
Examining data/opus-1.3.1/silk/float/regularize_correlations_FLP.c
Examining data/opus-1.3.1/silk/float/find_pitch_lags_FLP.c
Examining data/opus-1.3.1/silk/float/structs_FLP.h
Examining data/opus-1.3.1/silk/float/sort_FLP.c
Examining data/opus-1.3.1/silk/float/inner_product_FLP.c
Examining data/opus-1.3.1/silk/float/process_gains_FLP.c
Examining data/opus-1.3.1/silk/float/warped_autocorrelation_FLP.c
Examining data/opus-1.3.1/silk/float/LTP_scale_ctrl_FLP.c
Examining data/opus-1.3.1/silk/float/LPC_analysis_filter_FLP.c
Examining data/opus-1.3.1/silk/float/main_FLP.h
Examining data/opus-1.3.1/silk/float/schur_FLP.c
Examining data/opus-1.3.1/silk/float/scale_vector_FLP.c
Examining data/opus-1.3.1/silk/float/energy_FLP.c
Examining data/opus-1.3.1/silk/float/LTP_analysis_filter_FLP.c
Examining data/opus-1.3.1/silk/float/find_LTP_FLP.c
Examining data/opus-1.3.1/silk/float/bwexpander_FLP.c
Examining data/opus-1.3.1/silk/float/find_LPC_FLP.c
Examining data/opus-1.3.1/silk/float/pitch_analysis_core_FLP.c
Examining data/opus-1.3.1/silk/float/burg_modified_FLP.c
Examining data/opus-1.3.1/silk/float/residual_energy_FLP.c
Examining data/opus-1.3.1/silk/float/corrMatrix_FLP.c
Examining data/opus-1.3.1/silk/float/noise_shape_analysis_FLP.c
Examining data/opus-1.3.1/silk/float/k2a_FLP.c
Examining data/opus-1.3.1/silk/float/apply_sine_window_FLP.c
Examining data/opus-1.3.1/silk/NLSF_VQ_weights_laroia.c
Examining data/opus-1.3.1/silk/LP_variable_cutoff.c
Examining data/opus-1.3.1/silk/decode_core.c
Examining data/opus-1.3.1/silk/sigm_Q15.c
Examining data/opus-1.3.1/silk/tables_NLSF_CB_WB.c
Examining data/opus-1.3.1/silk/resampler_rom.h
Examining data/opus-1.3.1/silk/process_NLSFs.c
Examining data/opus-1.3.1/silk/pitch_est_defines.h
Examining data/opus-1.3.1/silk/NSQ.c
Examining data/opus-1.3.1/silk/PLC.c
Examining data/opus-1.3.1/silk/NLSF_decode.c
Examining data/opus-1.3.1/silk/decode_parameters.c
Examining data/opus-1.3.1/silk/enc_API.c
Examining data/opus-1.3.1/silk/decode_indices.c
Examining data/opus-1.3.1/silk/debug.h
Examining data/opus-1.3.1/silk/control_codec.c
Examining data/opus-1.3.1/silk/shell_coder.c
Examining data/opus-1.3.1/silk/tables_gain.c
Examining data/opus-1.3.1/silk/log2lin.c
Examining data/opus-1.3.1/silk/control_SNR.c
Examining data/opus-1.3.1/silk/tables.h
Examining data/opus-1.3.1/silk/gain_quant.c
Examining data/opus-1.3.1/silk/resampler_private_down_FIR.c
Examining data/opus-1.3.1/silk/tables_NLSF_CB_NB_MB.c
Examining data/opus-1.3.1/silk/tables_LTP.c
Examining data/opus-1.3.1/silk/resampler_structs.h
Examining data/opus-1.3.1/silk/SigProc_FIX.h
Examining data/opus-1.3.1/silk/MacroDebug.h
Examining data/opus-1.3.1/silk/CNG.c
Examining data/opus-1.3.1/silk/typedef.h
Examining data/opus-1.3.1/silk/check_control_input.c
Examining data/opus-1.3.1/silk/HP_variable_cutoff.c
Examining data/opus-1.3.1/silk/stereo_LR_to_MS.c
Examining data/opus-1.3.1/silk/init_decoder.c
Examining data/opus-1.3.1/silk/fixed/apply_sine_window_FIX.c
Examining data/opus-1.3.1/silk/fixed/find_pred_coefs_FIX.c
Examining data/opus-1.3.1/silk/fixed/LTP_analysis_filter_FIX.c
Examining data/opus-1.3.1/silk/fixed/structs_FIX.h
Examining data/opus-1.3.1/silk/fixed/vector_ops_FIX.c
Examining data/opus-1.3.1/silk/fixed/autocorr_FIX.c
Examining data/opus-1.3.1/silk/fixed/regularize_correlations_FIX.c
Examining data/opus-1.3.1/silk/fixed/find_LPC_FIX.c
Examining data/opus-1.3.1/silk/fixed/find_LTP_FIX.c
Examining data/opus-1.3.1/silk/fixed/k2a_FIX.c
Examining data/opus-1.3.1/silk/fixed/corrMatrix_FIX.c
Examining data/opus-1.3.1/silk/fixed/residual_energy16_FIX.c
Examining data/opus-1.3.1/silk/fixed/find_pitch_lags_FIX.c
Examining data/opus-1.3.1/silk/fixed/k2a_Q16_FIX.c
Examining data/opus-1.3.1/silk/fixed/residual_energy_FIX.c
Examining data/opus-1.3.1/silk/fixed/schur_FIX.c
Examining data/opus-1.3.1/silk/fixed/schur64_FIX.c
Examining data/opus-1.3.1/silk/fixed/x86/burg_modified_FIX_sse4_1.c
Examining data/opus-1.3.1/silk/fixed/x86/vector_ops_FIX_sse4_1.c
Examining data/opus-1.3.1/silk/fixed/encode_frame_FIX.c
Examining data/opus-1.3.1/silk/fixed/mips/warped_autocorrelation_FIX_mipsr1.h
Examining data/opus-1.3.1/silk/fixed/mips/noise_shape_analysis_FIX_mipsr1.h
Examining data/opus-1.3.1/silk/fixed/burg_modified_FIX.c
Examining data/opus-1.3.1/silk/fixed/main_FIX.h
Examining data/opus-1.3.1/silk/fixed/noise_shape_analysis_FIX.c
Examining data/opus-1.3.1/silk/fixed/arm/warped_autocorrelation_FIX_neon_intr.c
Examining data/opus-1.3.1/silk/fixed/arm/warped_autocorrelation_FIX_arm.h
Examining data/opus-1.3.1/silk/fixed/process_gains_FIX.c
Examining data/opus-1.3.1/silk/fixed/warped_autocorrelation_FIX.c
Examining data/opus-1.3.1/silk/fixed/pitch_analysis_core_FIX.c
Examining data/opus-1.3.1/silk/fixed/LTP_scale_ctrl_FIX.c
Examining data/opus-1.3.1/silk/encode_pulses.c
Examining data/opus-1.3.1/silk/LPC_fit.c
Examining data/opus-1.3.1/silk/debug.c
Examining data/opus-1.3.1/silk/x86/NSQ_del_dec_sse4_1.c
Examining data/opus-1.3.1/silk/x86/x86_silk_map.c
Examining data/opus-1.3.1/silk/x86/VQ_WMat_EC_sse4_1.c
Examining data/opus-1.3.1/silk/x86/NSQ_sse4_1.c
Examining data/opus-1.3.1/silk/x86/SigProc_FIX_sse.h
Examining data/opus-1.3.1/silk/x86/main_sse.h
Examining data/opus-1.3.1/silk/x86/VAD_sse4_1.c
Examining data/opus-1.3.1/silk/mips/macros_mipsr1.h
Examining data/opus-1.3.1/silk/mips/NSQ_del_dec_mipsr1.h
Examining data/opus-1.3.1/silk/mips/sigproc_fix_mipsr1.h
Examining data/opus-1.3.1/silk/quant_LTP_gains.c
Examining data/opus-1.3.1/silk/NLSF_stabilize.c
Examining data/opus-1.3.1/silk/tests/test_unit_LPC_inv_pred_gain.c
Examining data/opus-1.3.1/silk/structs.h
Examining data/opus-1.3.1/silk/API.h
Examining data/opus-1.3.1/silk/resampler_down2_3.c
Examining data/opus-1.3.1/silk/define.h
Examining data/opus-1.3.1/silk/stereo_encode_pred.c
Examining data/opus-1.3.1/silk/NSQ_del_dec.c
Examining data/opus-1.3.1/silk/resampler_rom.c
Examining data/opus-1.3.1/silk/ana_filt_bank_1.c
Examining data/opus-1.3.1/silk/LPC_inv_pred_gain.c
Examining data/opus-1.3.1/silk/VAD.c
Examining data/opus-1.3.1/silk/NLSF_unpack.c
Examining data/opus-1.3.1/silk/lin2log.c
Examining data/opus-1.3.1/silk/arm/macros_armv4.h
Examining data/opus-1.3.1/silk/arm/LPC_inv_pred_gain_arm.h
Examining data/opus-1.3.1/silk/arm/LPC_inv_pred_gain_neon_intr.c
Examining data/opus-1.3.1/silk/arm/macros_arm64.h
Examining data/opus-1.3.1/silk/arm/biquad_alt_arm.h
Examining data/opus-1.3.1/silk/arm/SigProc_FIX_armv5e.h
Examining data/opus-1.3.1/silk/arm/biquad_alt_neon_intr.c
Examining data/opus-1.3.1/silk/arm/SigProc_FIX_armv4.h
Examining data/opus-1.3.1/silk/arm/arm_silk_map.c
Examining data/opus-1.3.1/silk/arm/macros_armv5e.h
Examining data/opus-1.3.1/silk/arm/NSQ_del_dec_arm.h
Examining data/opus-1.3.1/silk/arm/NSQ_neon.h
Examining data/opus-1.3.1/silk/arm/NSQ_del_dec_neon_intr.c
Examining data/opus-1.3.1/silk/arm/NSQ_neon.c
Examining data/opus-1.3.1/silk/LPC_analysis_filter.c
Examining data/opus-1.3.1/silk/resampler_private.h
Examining data/opus-1.3.1/silk/decode_pitch.c

FINAL RESULTS:

data/opus-1.3.1/celt/stack_alloc.h:170:35:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define OPUS_PRINT_INT(value) do {fprintf(stderr, #value " = %d at %s:%d\n", value, __FILE__, __LINE__);}while(0)
data/opus-1.3.1/celt/stack_alloc.h:171:22:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define OPUS_FPRINTF fprintf
data/opus-1.3.1/silk/debug.h:114:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(silk_Timer_tags[ID], #TAG_NAME);         \
data/opus-1.3.1/silk/debug.h:142:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(silk_Timer_tags[ID], #TAG_NAME);         \
data/opus-1.3.1/tests/test_opus_api.c:1057:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
   fprintf(stdout,sok);\
data/opus-1.3.1/tests/test_opus_api.c:1062:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
   fprintf(stdout,gok);\
data/opus-1.3.1/celt/tests/test_unit_entropy.c:74:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  env_seed = getenv("SEED");
data/opus-1.3.1/celt/tests/test_unit_entropy.c:167:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srand(seed);
data/opus-1.3.1/silk/tests/test_unit_LPC_inv_pred_gain.c:99:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand(0);
data/opus-1.3.1/tests/test_opus_decode.c:439:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
   env_seed=getenv("SEED");
data/opus-1.3.1/tests/test_opus_decode.c:457:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
   test_decoder_code0(getenv("TEST_OPUS_NOFUZZ")!=NULL);
data/opus-1.3.1/tests/test_opus_encode.c:648:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
   env_seed=getenv("SEED");
data/opus-1.3.1/tests/test_opus_encode.c:691:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
   run_test1(getenv("TEST_OPUS_NOFUZZ")!=NULL);
data/opus-1.3.1/tests/test_opus_encode.c:694:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
   if(getenv("TEST_OPUS_NOFUZZ")==NULL) {
data/opus-1.3.1/celt/arm/armcpu.c:103:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  cpuinfo = fopen("/proc/cpuinfo", "r");
data/opus-1.3.1/celt/arm/armcpu.c:109:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[512];
data/opus-1.3.1/celt/arm/armcpu.c:137:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        version = atoi(buf+17);
data/opus-1.3.1/celt/arm/celt_fft_ne10.c:126:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy((void *)cfg, st->arch_fft->priv, sizeof(NE10_FFT_STATE_TYPE_T));
data/opus-1.3.1/celt/arm/celt_fft_ne10.c:158:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy((void *)cfg, st->arch_fft->priv, sizeof(NE10_FFT_STATE_TYPE_T));
data/opus-1.3.1/celt/bands.c:1152:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      static const unsigned char bit_interleave_table[16]={
data/opus-1.3.1/celt/bands.c:1211:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
         static const unsigned char bit_deinterleave_table[16]={
data/opus-1.3.1/celt/bands.c:1590:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
               unsigned char bytes_save[1275];
data/opus-1.3.1/celt/celt.c:263:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const signed char tf_select_table[4][8] = {
data/opus-1.3.1/celt/celt.c:287:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   static const char * const error_strings[8] = {
data/opus-1.3.1/celt/celt.h:68:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char leak_boost[LEAK_BANDS];
data/opus-1.3.1/celt/celt.h:165:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char trim_icdf[11] = {126, 124, 119, 109, 87, 41, 19, 9, 4, 2, 0};
data/opus-1.3.1/celt/celt.h:167:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char spread_icdf[4] = {25, 23, 2, 0};
data/opus-1.3.1/celt/celt.h:169:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char tapset_icdf[3]={2,1,0};
data/opus-1.3.1/celt/celt.h:172:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char toOpusTable[20] = {
data/opus-1.3.1/celt/celt.h:180:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char fromOpusTable[16] = {
data/opus-1.3.1/celt/celt.h:210:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const signed char tf_select_table[4][8];
data/opus-1.3.1/celt/celt_encoder.c:246:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   static const unsigned char inv_table[128] = {
data/opus-1.3.1/celt/opus_custom_demo.c:53:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char data[MAX_PACKET];
data/opus-1.3.1/celt/opus_custom_demo.c:70:23:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   rate = (opus_int32)atol(argv[1]);
data/opus-1.3.1/celt/opus_custom_demo.c:71:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   channels = atoi(argv[2]);
data/opus-1.3.1/celt/opus_custom_demo.c:72:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   frame_size = atoi(argv[3]);
data/opus-1.3.1/celt/opus_custom_demo.c:80:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   bytes_per_packet = atoi(argv[4]);
data/opus-1.3.1/celt/opus_custom_demo.c:89:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   fin = fopen(inFile, "rb");
data/opus-1.3.1/celt/opus_custom_demo.c:96:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   fout = fopen(outFile, "wb+");
data/opus-1.3.1/celt/opus_custom_demo.c:124:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      complexity=atoi(argv[5]);
data/opus-1.3.1/celt/opus_custom_demo.c:148:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
         if (rand()%atoi(argv[8])==0)
data/opus-1.3.1/celt/opus_custom_demo.c:166:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      if (argc==9 && rand()%1000<atoi(argv[argc-3]))
data/opus-1.3.1/celt/os_support.h:72:33:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define OPUS_COPY(dst, src, n) (memcpy((dst), (src), (n)*sizeof(*(dst)) + 0*((dst)-(src)) ))
data/opus-1.3.1/celt/quant_bands.c:44:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const signed char eMeans[25] = {
data/opus-1.3.1/celt/quant_bands.c:77:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char e_prob_model[4][2][42] = {
data/opus-1.3.1/celt/quant_bands.c:140:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char small_energy_icdf[3]={2,1,0};
data/opus-1.3.1/celt/quant_bands.h:39:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const signed char eMeans[25];
data/opus-1.3.1/celt/rate.c:42:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char LOG2_FRAC_TABLE[24]={
data/opus-1.3.1/celt/static_modes_fixed.h:59:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char cache_bits50[392] = {
data/opus-1.3.1/celt/static_modes_fixed.h:87:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char cache_caps50[168] = {
data/opus-1.3.1/celt/static_modes_float.h:59:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char cache_bits50[392] = {
data/opus-1.3.1/celt/static_modes_float.h:87:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char cache_caps50[168] = {
data/opus-1.3.1/celt/tests/test_unit_cwrs32.c:124:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(u,uu,(k+2U)*sizeof(*u));
data/opus-1.3.1/celt/tests/test_unit_dft.c:153:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            test1d(atoi(argv[k]),0,arch);
data/opus-1.3.1/celt/tests/test_unit_dft.c:154:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            test1d(atoi(argv[k]),1,arch);
data/opus-1.3.1/celt/tests/test_unit_entropy.c:76:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    seed = atoi(_argv[1]);
data/opus-1.3.1/celt/tests/test_unit_entropy.c:78:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    seed = atoi(env_seed);
data/opus-1.3.1/celt/tests/test_unit_entropy.c:260:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          unsigned char icdf[2];
data/opus-1.3.1/celt/tests/test_unit_entropy.c:301:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          unsigned char icdf[2];
data/opus-1.3.1/celt/tests/test_unit_mdct.c:193:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            test1d(atoi(argv[k]),0,arch);
data/opus-1.3.1/celt/tests/test_unit_mdct.c:194:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            test1d(atoi(argv[k]),1,arch);
data/opus-1.3.1/doc/trivial_example.c:56:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char cbits[MAX_PACKET_SIZE];
data/opus-1.3.1/doc/trivial_example.c:88:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   fin = fopen(inFile, "r");
data/opus-1.3.1/doc/trivial_example.c:104:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   fout = fopen(outFile, "w");
data/opus-1.3.1/doc/trivial_example.c:114:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      unsigned char pcm_bytes[MAX_FRAME_SIZE*CHANNELS*2];
data/opus-1.3.1/include/opus.h:528:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   const unsigned char *data,
data/opus-1.3.1/include/opus.h:530:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char *out_toc,
data/opus-1.3.1/include/opus.h:531:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   const unsigned char *frames[48],
data/opus-1.3.1/silk/NLSF2A.c:75:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static const unsigned char ordering16[16] = {
data/opus-1.3.1/silk/NLSF2A.c:78:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static const unsigned char ordering10[10] = {
data/opus-1.3.1/silk/SigProc_FIX.h:420:45:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define silk_memcpy(dest, src, size)        memcpy((dest), (src), (size))
data/opus-1.3.1/silk/control_SNR.c:40:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char silk_TargetRate_NB_21[117 - 10] = {
data/opus-1.3.1/silk/control_SNR.c:51:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char silk_TargetRate_MB_21[165 - 10] = {
data/opus-1.3.1/silk/control_SNR.c:65:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char silk_TargetRate_WB_21[201 - 10] = {
data/opus-1.3.1/silk/debug.c:67:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char          silk_Timer_tags[silk_NUM_TIMERS_MAX][silk_NUM_TIMERS_MAX_TAG_LEN];
data/opus-1.3.1/silk/debug.c:106:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fp = fopen(file_name, "w");
data/opus-1.3.1/silk/debug.c:138:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fp = fopen(file_name, "w");
data/opus-1.3.1/silk/debug.h:83:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char          silk_Timer_tags[silk_NUM_TIMERS_MAX][silk_NUM_TIMERS_MAX_TAG_LEN];
data/opus-1.3.1/silk/debug.h:241:38:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        silk_debug_store_fp[ cnt ] = fopen(#FILE_NAME, "wb");       \
data/opus-1.3.1/src/opus.c:194:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int opus_packet_parse_impl(const unsigned char *data, opus_int32 len,
data/opus-1.3.1/src/opus.c:195:36:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      int self_delimited, unsigned char *out_toc,
data/opus-1.3.1/src/opus.c:196:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      const unsigned char *frames[48], opus_int16 size[48],
data/opus-1.3.1/src/opus.c:349:38:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int opus_packet_parse(const unsigned char *data, opus_int32 len,
data/opus-1.3.1/src/opus.c:350:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      unsigned char *out_toc, const unsigned char *frames[48],
data/opus-1.3.1/src/opus.c:350:46:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      unsigned char *out_toc, const unsigned char *frames[48],
data/opus-1.3.1/src/opus_compare.c:55:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char  buf[1024];
data/opus-1.3.1/src/opus_compare.c:203:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    rate=atoi(_argv[2]);
data/opus-1.3.1/src/opus_compare.c:219:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fin1=fopen(_argv[1],"rb");
data/opus-1.3.1/src/opus_compare.c:224:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fin2=fopen(_argv[2],"rb");
data/opus-1.3.1/src/opus_decoder.c:521:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      unsigned char silence[2] = {0xFF, 0xFF};
data/opus-1.3.1/src/opus_demo.c:68:49:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static void int_to_char(opus_uint32 i, unsigned char ch[4])
data/opus-1.3.1/src/opus_demo.c:76:41:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static opus_uint32 char_to_int(unsigned char ch[4])
data/opus-1.3.1/src/opus_demo.c:196:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char mapping[256];
data/opus-1.3.1/src/opus_demo.c:203:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char mapping[256]={0,1};
data/opus-1.3.1/src/opus_demo.c:222:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char *data[2] = {NULL, NULL};
data/opus-1.3.1/src/opus_demo.c:306:33:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    sampling_rate = (opus_int32)atol(argv[args]);
data/opus-1.3.1/src/opus_demo.c:319:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    channels = atoi(argv[args]);
data/opus-1.3.1/src/opus_demo.c:330:34:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
       bitrate_bps = (opus_int32)atol(argv[args]);
data/opus-1.3.1/src/opus_demo.c:397:33:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            max_payload_bytes = atoi( argv[ args + 1 ] );
data/opus-1.3.1/src/opus_demo.c:401:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            complexity = atoi( argv[ args + 1 ] );
data/opus-1.3.1/src/opus_demo.c:423:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            packet_loss_perc = atoi( argv[ args + 1 ] );
data/opus-1.3.1/src/opus_demo.c:427:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            sweep_bps = atoi( argv[ args + 1 ] );
data/opus-1.3.1/src/opus_demo.c:435:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            sweep_max = atoi( argv[ args + 1 ] );
data/opus-1.3.1/src/opus_demo.c:494:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fin = fopen(inFile, "rb");
data/opus-1.3.1/src/opus_demo.c:512:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fout = fopen(outFile, "wb+");
data/opus-1.3.1/src/opus_demo.c:651:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            unsigned char ch[4];
data/opus-1.3.1/src/opus_demo.c:747:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            unsigned char int_field[4];
data/opus-1.3.1/src/opus_encoder.c:2064:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
           unsigned char dummy[2];
data/opus-1.3.1/src/opus_encoder.c:2097:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char dummy[2];
data/opus-1.3.1/src/opus_multistream_encoder.c:49:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char mapping[8];
data/opus-1.3.1/src/opus_multistream_encoder.c:823:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char tmp_data[MS_FRAME_TMP];
data/opus-1.3.1/src/opus_private.h:42:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   const unsigned char *frames[48];
data/opus-1.3.1/src/opus_private.h:51:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char mapping[256];
data/opus-1.3.1/src/opus_private.h:165:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int opus_packet_parse_impl(const unsigned char *data, opus_int32 len,
data/opus-1.3.1/src/opus_private.h:166:36:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      int self_delimited, unsigned char *out_toc,
data/opus-1.3.1/src/opus_private.h:167:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      const unsigned char *frames[48], opus_int16 size[48],
data/opus-1.3.1/src/opus_projection_decoder.c:132:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char mapping[255];
data/opus-1.3.1/src/opus_projection_encoder.c:213:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char mapping[255];
data/opus-1.3.1/src/repacketizer_demo.c:44:49:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static void int_to_char(opus_uint32 i, unsigned char ch[4])
data/opus-1.3.1/src/repacketizer_demo.c:52:41:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static opus_uint32 char_to_int(unsigned char ch[4])
data/opus-1.3.1/src/repacketizer_demo.c:62:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char packets[48][1500];
data/opus-1.3.1/src/repacketizer_demo.c:66:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char output_packet[MAX_PACKETOUT];
data/opus-1.3.1/src/repacketizer_demo.c:78:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
         merge = atoi(argv[i+1]);
data/opus-1.3.1/src/repacketizer_demo.c:99:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   fin = fopen(argv[argc-2], "r");
data/opus-1.3.1/src/repacketizer_demo.c:105:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   fout = fopen(argv[argc-1], "w");
data/opus-1.3.1/src/repacketizer_demo.c:121:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
         unsigned char ch[4];
data/opus-1.3.1/src/repacketizer_demo.c:162:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            unsigned char int_field[4];
data/opus-1.3.1/src/repacketizer_demo.c:187:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
               unsigned char int_field[4];
data/opus-1.3.1/tests/opus_encode_regressions.c:48:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char data[2460];
data/opus-1.3.1/tests/opus_encode_regressions.c:51:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char mapping[1];
data/opus-1.3.1/tests/opus_encode_regressions.c:295:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char data[627300];
data/opus-1.3.1/tests/opus_encode_regressions.c:296:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static const unsigned char mapping[255] =
data/opus-1.3.1/tests/opus_encode_regressions.c:348:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char data[472320];
data/opus-1.3.1/tests/opus_encode_regressions.c:349:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static const unsigned char mapping[192] =
data/opus-1.3.1/tests/opus_encode_regressions.c:398:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char data[7380];
data/opus-1.3.1/tests/opus_encode_regressions.c:401:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char mapping[3];
data/opus-1.3.1/tests/opus_encode_regressions.c:899:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char data[2000];
data/opus-1.3.1/tests/opus_encode_regressions.c:962:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char data[2000];
data/opus-1.3.1/tests/opus_encode_regressions.c:994:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char data[1000];
data/opus-1.3.1/tests/test_opus_api.c:92:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char packet[1276];
data/opus-1.3.1/tests/test_opus_api.c:241:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(dec2,dec,opus_decoder_get_size(2));
data/opus-1.3.1/tests/test_opus_api.c:349:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char packet[1276];
data/opus-1.3.1/tests/test_opus_api.c:350:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char mapping[256];
data/opus-1.3.1/tests/test_opus_api.c:710:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char packet[1276];
data/opus-1.3.1/tests/test_opus_api.c:713:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   const unsigned char *frames[48];
data/opus-1.3.1/tests/test_opus_api.c:1070:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char packet[1276];
data/opus-1.3.1/tests/test_opus_api.c:1772:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char mapping[256] = {0,1};
data/opus-1.3.1/tests/test_opus_decode.c:63:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char modes[4096];
data/opus-1.3.1/tests/test_opus_decode.c:90:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
         memcpy(dec2,dec[t],opus_decoder_get_size(c));
data/opus-1.3.1/tests/test_opus_decode.c:316:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(decbak,dec[0],decsize);
data/opus-1.3.1/tests/test_opus_decode.c:318:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(decbak,dec[0],decsize);
data/opus-1.3.1/tests/test_opus_decode.c:320:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(decbak,dec[0],decsize);
data/opus-1.3.1/tests/test_opus_decode.c:440:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   if(_argc>1)iseed=atoi(_argv[1]);
data/opus-1.3.1/tests/test_opus_decode.c:443:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      iseed=atoi(env_seed);
data/opus-1.3.1/tests/test_opus_encode.c:88:49:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static void int_to_char(opus_uint32 i, unsigned char ch[4])
data/opus-1.3.1/tests/test_opus_encode.c:99:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char int_field[4];
data/opus-1.3.1/tests/test_opus_encode.c:100:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char name[256];
data/opus-1.3.1/tests/test_opus_encode.c:103:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   fout=fopen(name, "wb+");
data/opus-1.3.1/tests/test_opus_encode.c:147:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char packet[MAX_PACKET+257];
data/opus-1.3.1/tests/test_opus_encode.c:275:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   static const char *mstrings[3] = {"    LP","Hybrid","  MDCT"};
data/opus-1.3.1/tests/test_opus_encode.c:276:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char mapping[256] = {0,1,255};
data/opus-1.3.1/tests/test_opus_encode.c:277:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char db62[36];
data/opus-1.3.1/tests/test_opus_encode.c:290:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char packet[MAX_PACKET+257];
data/opus-1.3.1/tests/test_opus_encode.c:353:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(dec_err[0],dec,opus_decoder_get_size(2));
data/opus-1.3.1/tests/test_opus_encode.c:369:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(enccpy,enc,opus_encoder_get_size(2));
data/opus-1.3.1/tests/test_opus_encode.c:557:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      const unsigned char *frames[48];
data/opus-1.3.1/tests/test_opus_encode.c:654:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      iseed=atoi(env_seed);
data/opus-1.3.1/tests/test_opus_projection.c:298:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char data[MAX_DATA_BYTES] = { 0 };
data/opus-1.3.1/celt/kiss_fft.h:44:33:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
#define KISS_FFT_MALLOC(nbytes) memalign(16,nbytes)
data/opus-1.3.1/tests/test_opus_api.c:1891:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if(strlen(opus_strerror(0))<1)test_failed();

ANALYSIS SUMMARY:

Hits = 170
Lines analyzed = 76864 in approximately 2.69 seconds (28521 lines/second)
Physical Source Lines of Code (SLOC) = 53090
Hits@level = [0] 473 [1]   2 [2] 154 [3]   8 [4]   6 [5]   0
Hits@level+ = [0+] 643 [1+] 170 [2+] 168 [3+]  14 [4+]   6 [5+]   0
Hits/KSLOC@level+ = [0+] 12.1115 [1+] 3.20211 [2+] 3.16444 [3+] 0.263703 [4+] 0.113016 [5+]   0
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.