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/volk-2.4.0/apps/volk-config-info.cc
Examining data/volk-2.4.0/apps/volk_option_helpers.cc
Examining data/volk-2.4.0/apps/volk_option_helpers.h
Examining data/volk-2.4.0/apps/volk_profile.cc
Examining data/volk-2.4.0/apps/volk_profile.h
Examining data/volk-2.4.0/cmake/msvc/config.h
Examining data/volk-2.4.0/cmake/msvc/sys/time.h
Examining data/volk-2.4.0/include/volk/constants.h
Examining data/volk-2.4.0/include/volk/saturation_arithmetic.h
Examining data/volk-2.4.0/include/volk/volk_avx2_intrinsics.h
Examining data/volk-2.4.0/include/volk/volk_avx_intrinsics.h
Examining data/volk-2.4.0/include/volk/volk_common.h
Examining data/volk-2.4.0/include/volk/volk_complex.h
Examining data/volk-2.4.0/include/volk/volk_malloc.h
Examining data/volk-2.4.0/include/volk/volk_prefs.h
Examining data/volk-2.4.0/include/volk/volk_sse3_intrinsics.h
Examining data/volk-2.4.0/include/volk/volk_sse_intrinsics.h
Examining data/volk-2.4.0/include/volk/volk_neon_intrinsics.h
Examining data/volk-2.4.0/kernels/volk/volk_16i_32fc_dot_prod_32fc.h
Examining data/volk-2.4.0/kernels/volk/volk_16i_branch_4_state_8.h
Examining data/volk-2.4.0/kernels/volk/volk_16i_convert_8i.h
Examining data/volk-2.4.0/kernels/volk/volk_16i_max_star_16i.h
Examining data/volk-2.4.0/kernels/volk/volk_16i_max_star_horizontal_16i.h
Examining data/volk-2.4.0/kernels/volk/volk_16i_permute_and_scalar_add.h
Examining data/volk-2.4.0/kernels/volk/volk_16i_s32f_convert_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_16i_x4_quad_max_star_16i.h
Examining data/volk-2.4.0/kernels/volk/volk_16i_x5_add_quad_16i_x4.h
Examining data/volk-2.4.0/kernels/volk/volk_16ic_convert_32fc.h
Examining data/volk-2.4.0/kernels/volk/volk_16ic_deinterleave_16i_x2.h
Examining data/volk-2.4.0/kernels/volk/volk_16ic_deinterleave_real_16i.h
Examining data/volk-2.4.0/kernels/volk/volk_16ic_deinterleave_real_8i.h
Examining data/volk-2.4.0/kernels/volk/volk_16ic_magnitude_16i.h
Examining data/volk-2.4.0/kernels/volk/volk_16ic_s32f_deinterleave_32f_x2.h
Examining data/volk-2.4.0/kernels/volk/volk_16ic_s32f_deinterleave_real_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_16ic_s32f_magnitude_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_16ic_x2_dot_prod_16ic.h
Examining data/volk-2.4.0/kernels/volk/volk_16ic_x2_multiply_16ic.h
Examining data/volk-2.4.0/kernels/volk/volk_16u_byteswap.h
Examining data/volk-2.4.0/kernels/volk/volk_16u_byteswappuppet_16u.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_64f_add_64f.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_64f_multiply_64f.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_8u_polarbutterfly_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_accumulator_s32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_acos_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_asin_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_atan_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_binary_slicer_32i.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_binary_slicer_8i.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_convert_64f.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_cos_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_exp_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_expfast_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_index_max_16u.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_index_max_32u.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_invsqrt_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_log2_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_null_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_s32f_32f_fm_detect_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_s32f_add_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_s32f_calc_spectral_noise_floor_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_s32f_convert_16i.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_s32f_convert_32i.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_s32f_convert_8i.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_s32f_mod_rangepuppet_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_s32f_multiply_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_s32f_normalize.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_s32f_power_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_s32f_s32f_mod_range_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_s32f_stddev_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_sin_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_sqrt_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_stddev_and_mean_32f_x2.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_tan_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_tanh_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_x2_add_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_x2_divide_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_x2_dot_prod_16i.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_x2_dot_prod_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_x2_fm_detectpuppet_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_x2_interleave_32fc.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_x2_max_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_x2_min_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_x2_multiply_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_x2_pow_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_x2_s32f_interleave_16ic.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_x2_subtract_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_x3_sum_of_poly_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32fc_32f_add_32fc.h
Examining data/volk-2.4.0/kernels/volk/volk_32fc_32f_dot_prod_32fc.h
Examining data/volk-2.4.0/kernels/volk/volk_32fc_32f_multiply_32fc.h
Examining data/volk-2.4.0/kernels/volk/volk_32fc_conjugate_32fc.h
Examining data/volk-2.4.0/kernels/volk/volk_32fc_convert_16ic.h
Examining data/volk-2.4.0/kernels/volk/volk_32fc_deinterleave_32f_x2.h
Examining data/volk-2.4.0/kernels/volk/volk_32fc_deinterleave_64f_x2.h
Examining data/volk-2.4.0/kernels/volk/volk_32fc_deinterleave_imag_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32fc_deinterleave_real_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32fc_deinterleave_real_64f.h
Examining data/volk-2.4.0/kernels/volk/volk_32fc_index_max_16u.h
Examining data/volk-2.4.0/kernels/volk/volk_32fc_index_max_32u.h
Examining data/volk-2.4.0/kernels/volk/volk_32fc_magnitude_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32fc_magnitude_squared_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32fc_s32f_atan2_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32fc_s32f_deinterleave_real_16i.h
Examining data/volk-2.4.0/kernels/volk/volk_32fc_s32f_magnitude_16i.h
Examining data/volk-2.4.0/kernels/volk/volk_32fc_s32f_power_32fc.h
Examining data/volk-2.4.0/kernels/volk/volk_32fc_s32f_power_spectral_densitypuppet_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32fc_s32f_power_spectrum_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32fc_s32f_x2_power_spectral_density_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32fc_s32fc_multiply_32fc.h
Examining data/volk-2.4.0/kernels/volk/volk_32fc_s32fc_rotatorpuppet_32fc.h
Examining data/volk-2.4.0/kernels/volk/volk_32fc_s32fc_x2_rotator_32fc.h
Examining data/volk-2.4.0/kernels/volk/volk_32fc_x2_add_32fc.h
Examining data/volk-2.4.0/kernels/volk/volk_32fc_x2_conjugate_dot_prod_32fc.h
Examining data/volk-2.4.0/kernels/volk/volk_32fc_x2_divide_32fc.h
Examining data/volk-2.4.0/kernels/volk/volk_32fc_x2_dot_prod_32fc.h
Examining data/volk-2.4.0/kernels/volk/volk_32fc_x2_multiply_32fc.h
Examining data/volk-2.4.0/kernels/volk/volk_32fc_x2_multiply_conjugate_32fc.h
Examining data/volk-2.4.0/kernels/volk/volk_32fc_x2_s32f_square_dist_scalar_mult_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32fc_x2_s32fc_multiply_conjugate_add_32fc.h
Examining data/volk-2.4.0/kernels/volk/volk_32fc_x2_square_dist_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32i_s32f_convert_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_32i_x2_and_32i.h
Examining data/volk-2.4.0/kernels/volk/volk_32i_x2_or_32i.h
Examining data/volk-2.4.0/kernels/volk/volk_32u_byteswap.h
Examining data/volk-2.4.0/kernels/volk/volk_32u_byteswappuppet_32u.h
Examining data/volk-2.4.0/kernels/volk/volk_32u_popcnt.h
Examining data/volk-2.4.0/kernels/volk/volk_32u_popcntpuppet_32u.h
Examining data/volk-2.4.0/kernels/volk/volk_32u_reverse_32u.h
Examining data/volk-2.4.0/kernels/volk/volk_64f_convert_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_64f_x2_add_64f.h
Examining data/volk-2.4.0/kernels/volk/volk_64f_x2_max_64f.h
Examining data/volk-2.4.0/kernels/volk/volk_64f_x2_min_64f.h
Examining data/volk-2.4.0/kernels/volk/volk_64f_x2_multiply_64f.h
Examining data/volk-2.4.0/kernels/volk/volk_64u_byteswap.h
Examining data/volk-2.4.0/kernels/volk/volk_64u_byteswappuppet_64u.h
Examining data/volk-2.4.0/kernels/volk/volk_64u_popcnt.h
Examining data/volk-2.4.0/kernels/volk/volk_64u_popcntpuppet_64u.h
Examining data/volk-2.4.0/kernels/volk/volk_8i_convert_16i.h
Examining data/volk-2.4.0/kernels/volk/volk_8i_s32f_convert_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_8ic_deinterleave_16i_x2.h
Examining data/volk-2.4.0/kernels/volk/volk_8ic_deinterleave_real_16i.h
Examining data/volk-2.4.0/kernels/volk/volk_8ic_deinterleave_real_8i.h
Examining data/volk-2.4.0/kernels/volk/volk_8ic_s32f_deinterleave_32f_x2.h
Examining data/volk-2.4.0/kernels/volk/volk_8ic_s32f_deinterleave_real_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_8ic_x2_multiply_conjugate_16ic.h
Examining data/volk-2.4.0/kernels/volk/volk_8ic_x2_s32f_multiply_conjugate_32fc.h
Examining data/volk-2.4.0/kernels/volk/volk_8u_conv_k7_r2puppet_8u.h
Examining data/volk-2.4.0/kernels/volk/volk_8u_x3_encodepolar_8u_x2.h
Examining data/volk-2.4.0/kernels/volk/volk_8u_x3_encodepolarpuppet_8u.h
Examining data/volk-2.4.0/kernels/volk/volk_8u_x4_conv_k7_r2_8u.h
Examining data/volk-2.4.0/kernels/volk/volk_32f_8u_polarbutterflypuppet_32f.h
Examining data/volk-2.4.0/kernels/volk/volk_8u_x2_encodeframepolar_8u.h
Examining data/volk-2.4.0/lib/kernel_tests.h
Examining data/volk-2.4.0/lib/qa_utils.cc
Examining data/volk-2.4.0/lib/qa_utils.h
Examining data/volk-2.4.0/lib/testqa.cc
Examining data/volk-2.4.0/lib/volk_malloc.c
Examining data/volk-2.4.0/lib/volk_prefs.c
Examining data/volk-2.4.0/lib/volk_rank_archs.c
Examining data/volk-2.4.0/lib/volk_rank_archs.h
Examining data/volk-2.4.0/tmpl/volk.tmpl.c
Examining data/volk-2.4.0/tmpl/volk.tmpl.h
Examining data/volk-2.4.0/tmpl/volk_config_fixed.tmpl.h
Examining data/volk-2.4.0/tmpl/volk_cpu.tmpl.c
Examining data/volk-2.4.0/tmpl/volk_cpu.tmpl.h
Examining data/volk-2.4.0/tmpl/volk_machine_xxx.tmpl.c
Examining data/volk-2.4.0/tmpl/volk_machines.tmpl.c
Examining data/volk-2.4.0/tmpl/volk_machines.tmpl.h
Examining data/volk-2.4.0/tmpl/volk_typedefs.tmpl.h
Examining data/volk-2.4.0/cpu-features/include/cpu_features_cache_info.h
Examining data/volk-2.4.0/cpu-features/include/cpu_features_macros.h
Examining data/volk-2.4.0/cpu-features/include/cpuinfo_aarch64.h
Examining data/volk-2.4.0/cpu-features/include/cpuinfo_arm.h
Examining data/volk-2.4.0/cpu-features/include/cpuinfo_mips.h
Examining data/volk-2.4.0/cpu-features/include/cpuinfo_ppc.h
Examining data/volk-2.4.0/cpu-features/include/cpuinfo_x86.h
Examining data/volk-2.4.0/cpu-features/include/internal/bit_utils.h
Examining data/volk-2.4.0/cpu-features/include/internal/cpuid_x86.h
Examining data/volk-2.4.0/cpu-features/include/internal/filesystem.h
Examining data/volk-2.4.0/cpu-features/include/internal/hwcaps.h
Examining data/volk-2.4.0/cpu-features/include/internal/stack_line_reader.h
Examining data/volk-2.4.0/cpu-features/include/internal/string_view.h
Examining data/volk-2.4.0/cpu-features/ndk_compat/cpu-features.c
Examining data/volk-2.4.0/cpu-features/ndk_compat/cpu-features.h
Examining data/volk-2.4.0/cpu-features/ndk_compat/ndk-compat-test.c
Examining data/volk-2.4.0/cpu-features/src/cpuinfo_aarch64.c
Examining data/volk-2.4.0/cpu-features/src/cpuinfo_arm.c
Examining data/volk-2.4.0/cpu-features/src/cpuinfo_mips.c
Examining data/volk-2.4.0/cpu-features/src/cpuinfo_ppc.c
Examining data/volk-2.4.0/cpu-features/src/cpuinfo_x86.c
Examining data/volk-2.4.0/cpu-features/src/define_tables.h
Examining data/volk-2.4.0/cpu-features/src/filesystem.c
Examining data/volk-2.4.0/cpu-features/src/hwcaps.c
Examining data/volk-2.4.0/cpu-features/src/stack_line_reader.c
Examining data/volk-2.4.0/cpu-features/src/string_view.c
Examining data/volk-2.4.0/cpu-features/src/utils/list_cpu_features.c
Examining data/volk-2.4.0/cpu-features/test/bit_utils_test.cc
Examining data/volk-2.4.0/cpu-features/test/cpuinfo_aarch64_test.cc
Examining data/volk-2.4.0/cpu-features/test/cpuinfo_arm_test.cc
Examining data/volk-2.4.0/cpu-features/test/cpuinfo_mips_test.cc
Examining data/volk-2.4.0/cpu-features/test/cpuinfo_ppc_test.cc
Examining data/volk-2.4.0/cpu-features/test/cpuinfo_x86_test.cc
Examining data/volk-2.4.0/cpu-features/test/filesystem_for_testing.cc
Examining data/volk-2.4.0/cpu-features/test/filesystem_for_testing.h
Examining data/volk-2.4.0/cpu-features/test/hwcaps_for_testing.cc
Examining data/volk-2.4.0/cpu-features/test/hwcaps_for_testing.h
Examining data/volk-2.4.0/cpu-features/test/stack_line_reader_test.cc
Examining data/volk-2.4.0/cpu-features/test/string_view_test.cc

FINAL RESULTS:

data/volk-2.4.0/cpu-features/src/hwcaps.c:48:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf(__VA_ARGS__); \
data/volk-2.4.0/cpu-features/src/utils/list_cpu_features.c:142:23:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  const int written = vsnprintf(ptr, gBumpAllocator.size, format, arglist);
data/volk-2.4.0/lib/volk_prefs.c:7:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
#define access _access
data/volk-2.4.0/lib/volk_prefs.c:26:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(path, suffix2);
data/volk-2.4.0/lib/volk_prefs.c:27:22:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (!read || access(path, F_OK) != -1) {
data/volk-2.4.0/lib/volk_prefs.c:36:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(path, suffix);
data/volk-2.4.0/lib/volk_prefs.c:37:23:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (!read || (access(path, F_OK) != -1)) {
data/volk-2.4.0/lib/volk_prefs.c:46:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(path, suffix);
data/volk-2.4.0/lib/volk_prefs.c:47:23:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (!read || (access(path, F_OK) != -1)) {
data/volk-2.4.0/lib/volk_prefs.c:53:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access("/etc/volk/volk_config", F_OK) != -1) {
data/volk-2.4.0/lib/volk_prefs.c:55:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(path, suffix2);
data/volk-2.4.0/lib/volk_prefs.c:56:23:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (!read || (access(path, F_OK) != -1)) {
data/volk-2.4.0/lib/volk_prefs.c:90:13:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
        if (sscanf(line, "%s %s %s", p->name, p->impl_a, p->impl_u) == 3 &&
data/volk-2.4.0/cmake/msvc/config.h:55:24:  [3] (random) random:
  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.
static inline long int random(void) { return rand(); }
data/volk-2.4.0/cmake/msvc/config.h:56:20:  [3] (random) srandom:
  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.
static inline void srandom(unsigned int seed) { srand(seed); }
data/volk-2.4.0/cmake/msvc/config.h:56:49:  [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.
static inline void srandom(unsigned int seed) { srand(seed); }
data/volk-2.4.0/lib/volk_prefs.c:23:12:  [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.
    home = getenv("VOLK_CONFIGPATH");
data/volk-2.4.0/lib/volk_prefs.c:33:12:  [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.
    home = getenv("HOME");
data/volk-2.4.0/lib/volk_prefs.c:43:12:  [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.
    home = getenv("APPDATA");
data/volk-2.4.0/lib/volk_rank_archs.c:66:21:  [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.
    char* gen_env = getenv("VOLK_GENERIC");
data/volk-2.4.0/apps/volk_option_helpers.cc:143:35:  [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).
                        int_val = atoi(argv[++arg_number]);
data/volk-2.4.0/apps/volk_option_helpers.cc:180:49:  [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).
                                int_val = (bool)atoi(argv[++arg_number]);
data/volk-2.4.0/apps/volk_profile.cc:116:19:  [2] (misc) open:
  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).
        json_file.open(json_filename.c_str());
data/volk-2.4.0/apps/volk_profile.cc:195: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 path[1024];
data/volk-2.4.0/apps/volk_profile.cc:213:9:  [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 config_line[256];
data/volk-2.4.0/apps/volk_profile.cc:234: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.
                char line_buffer[128] = { '\0' };
data/volk-2.4.0/apps/volk_profile.cc:255: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 path[1024];
data/volk-2.4.0/apps/volk_profile.cc:284:16:  [2] (misc) open:
  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).
        config.open(path.c_str(), std::ofstream::app);
data/volk-2.4.0/apps/volk_profile.cc:291:16:  [2] (misc) open:
  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).
        config.open(path.c_str());
data/volk-2.4.0/cpu-features/include/cpuinfo_ppc.h:78:3:  [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 platform[64];  // 0 terminated string
data/volk-2.4.0/cpu-features/include/cpuinfo_ppc.h:79:3:  [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 model[64];     // 0 terminated string
data/volk-2.4.0/cpu-features/include/cpuinfo_ppc.h:80:3:  [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 machine[64];   // 0 terminated string
data/volk-2.4.0/cpu-features/include/cpuinfo_ppc.h:81:3:  [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 cpu[64];       // 0 terminated string
data/volk-2.4.0/cpu-features/include/cpuinfo_x86.h:100:3:  [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 vendor[13];  // 0 terminated string
data/volk-2.4.0/cpu-features/include/cpuinfo_x86.h:150: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.
void FillX86BrandString(char brand_string[49]);
data/volk-2.4.0/cpu-features/include/internal/hwcaps.h:178:3:  [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 platform[64];       // 0 terminated string
data/volk-2.4.0/cpu-features/include/internal/hwcaps.h:179:3:  [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 base_platform[64];  // 0 terminated string
data/volk-2.4.0/cpu-features/include/internal/stack_line_reader.h:28:3:  [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 buffer[STACK_LINE_READER_BUFFER_SIZE];
data/volk-2.4.0/cpu-features/src/cpuinfo_x86.c:217: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 proc_name[49] = {0};
data/volk-2.4.0/cpu-features/src/cpuinfo_x86.c:1540:3:  [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(buffer, &leaf, sizeof(Leaf));
data/volk-2.4.0/cpu-features/src/cpuinfo_x86.c:1543: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.
void FillX86BrandString(char brand_string[49]) {
data/volk-2.4.0/cpu-features/src/filesystem.c:46:14:  [2] (misc) open:
  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).
    result = open(filename, O_RDONLY);
data/volk-2.4.0/cpu-features/src/string_view.c:141:5:  [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(dst, src.ptr, copy_size);
data/volk-2.4.0/cpu-features/src/utils/list_cpu_features.c:53: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 gGlobalBuffer[64 * 1024];
data/volk-2.4.0/cpu-features/src/utils/list_cpu_features.c:365:3:  [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 brand_string[49];
data/volk-2.4.0/cpu-features/test/cpuinfo_x86_test.cc:196:3:  [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 brand_string[49];
data/volk-2.4.0/cpu-features/test/cpuinfo_x86_test.cc:321:3:  [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 brand_string[49];
data/volk-2.4.0/cpu-features/test/cpuinfo_x86_test.cc:387:3:  [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 brand_string[49];
data/volk-2.4.0/cpu-features/test/cpuinfo_x86_test.cc:464:3:  [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 brand_string[49];
data/volk-2.4.0/cpu-features/test/cpuinfo_x86_test.cc:511:3:  [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 brand_string[49];
data/volk-2.4.0/cpu-features/test/filesystem_for_testing.cc:45:3:  [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(buf, content_.data() + head_index_, read);
data/volk-2.4.0/cpu-features/test/string_view_test.cc:143:3:  [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[4];
data/volk-2.4.0/include/volk/volk_prefs.h:11: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 name[128];   // name of the kernel
data/volk-2.4.0/include/volk/volk_prefs.h:12: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 impl_a[128]; // best aligned impl
data/volk-2.4.0/include/volk/volk_prefs.h:13: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 impl_u[128]; // best unaligned impl
data/volk-2.4.0/kernels/volk/volk_16u_byteswappuppet_16u.h:16:5:  [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*)output, (void*)intsToSwap, num_points * sizeof(uint16_t));
data/volk-2.4.0/kernels/volk/volk_16u_byteswappuppet_16u.h:27:5:  [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*)output, (void*)intsToSwap, num_points * sizeof(uint16_t));
data/volk-2.4.0/kernels/volk/volk_16u_byteswappuppet_16u.h:38:5:  [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*)output, (void*)intsToSwap, num_points * sizeof(uint16_t));
data/volk-2.4.0/kernels/volk/volk_16u_byteswappuppet_16u.h:49:5:  [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*)output, (void*)intsToSwap, num_points * sizeof(uint16_t));
data/volk-2.4.0/kernels/volk/volk_16u_byteswappuppet_16u.h:60:5:  [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*)output, (void*)intsToSwap, num_points * sizeof(uint16_t));
data/volk-2.4.0/kernels/volk/volk_16u_byteswappuppet_16u.h:71:5:  [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*)output, (void*)intsToSwap, num_points * sizeof(uint16_t));
data/volk-2.4.0/kernels/volk/volk_16u_byteswappuppet_16u.h:82:5:  [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*)output, (void*)intsToSwap, num_points * sizeof(uint16_t));
data/volk-2.4.0/kernels/volk/volk_32f_8u_polarbutterfly_32f.h:246: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_temp, u + u_num - stage_size, sizeof(unsigned char) * stage_size);
data/volk-2.4.0/kernels/volk/volk_32f_8u_polarbutterfly_32f.h:347: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_temp, u + u_num - stage_size, sizeof(unsigned char) * stage_size);
data/volk-2.4.0/kernels/volk/volk_32u_byteswappuppet_32u.h:15:5:  [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*)output, (void*)intsToSwap, num_points * sizeof(uint32_t));
data/volk-2.4.0/kernels/volk/volk_32u_byteswappuppet_32u.h:26:5:  [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*)output, (void*)intsToSwap, num_points * sizeof(uint32_t));
data/volk-2.4.0/kernels/volk/volk_32u_byteswappuppet_32u.h:37:5:  [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*)output, (void*)intsToSwap, num_points * sizeof(uint32_t));
data/volk-2.4.0/kernels/volk/volk_32u_byteswappuppet_32u.h:48:5:  [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*)output, (void*)intsToSwap, num_points * sizeof(uint32_t));
data/volk-2.4.0/kernels/volk/volk_32u_byteswappuppet_32u.h:59:5:  [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*)output, (void*)intsToSwap, num_points * sizeof(uint32_t));
data/volk-2.4.0/kernels/volk/volk_32u_byteswappuppet_32u.h:70:5:  [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*)output, (void*)intsToSwap, num_points * sizeof(uint32_t));
data/volk-2.4.0/kernels/volk/volk_32u_byteswappuppet_32u.h:81:5:  [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*)output, (void*)intsToSwap, num_points * sizeof(uint32_t));
data/volk-2.4.0/kernels/volk/volk_64u_byteswappuppet_64u.h:16:5:  [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*)output, (void*)intsToSwap, num_points * sizeof(uint64_t));
data/volk-2.4.0/kernels/volk/volk_64u_byteswappuppet_64u.h:27:5:  [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*)output, (void*)intsToSwap, num_points * sizeof(uint64_t));
data/volk-2.4.0/kernels/volk/volk_64u_byteswappuppet_64u.h:37:5:  [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*)output, (void*)intsToSwap, num_points * sizeof(uint64_t));
data/volk-2.4.0/kernels/volk/volk_64u_byteswappuppet_64u.h:49:5:  [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*)output, (void*)intsToSwap, num_points * sizeof(uint64_t));
data/volk-2.4.0/kernels/volk/volk_64u_byteswappuppet_64u.h:60:5:  [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*)output, (void*)intsToSwap, num_points * sizeof(uint64_t));
data/volk-2.4.0/kernels/volk/volk_64u_byteswappuppet_64u.h:71:5:  [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*)output, (void*)intsToSwap, num_points * sizeof(uint64_t));
data/volk-2.4.0/kernels/volk/volk_64u_byteswappuppet_64u.h:82:5:  [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*)output, (void*)intsToSwap, num_points * sizeof(uint64_t));
data/volk-2.4.0/kernels/volk/volk_64u_byteswappuppet_64u.h:93:5:  [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*)output, (void*)intsToSwap, num_points * sizeof(uint64_t));
data/volk-2.4.0/kernels/volk/volk_64u_byteswappuppet_64u.h:104:5:  [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*)output, (void*)intsToSwap, num_points * sizeof(uint64_t));
data/volk-2.4.0/kernels/volk/volk_64u_popcntpuppet_64u.h:39:5:  [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*)outVector, (void*)inVector, num_points * sizeof(uint64_t));
data/volk-2.4.0/kernels/volk/volk_64u_popcntpuppet_64u.h:52:5:  [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*)outVector, (void*)inVector, num_points * sizeof(uint64_t));
data/volk-2.4.0/kernels/volk/volk_64u_popcntpuppet_64u.h:65:5:  [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*)outVector, (void*)inVector, num_points * sizeof(uint64_t));
data/volk-2.4.0/kernels/volk/volk_8u_conv_k7_r2puppet_8u.h:127: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.
    static unsigned char Partab[256];
data/volk-2.4.0/kernels/volk/volk_8u_conv_k7_r2puppet_8u.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.
    static unsigned char Partab[256];
data/volk-2.4.0/kernels/volk/volk_8u_conv_k7_r2puppet_8u.h:291: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.
    static unsigned char Partab[256];
data/volk-2.4.0/kernels/volk/volk_8u_x2_encodeframepolar_8u.h:74: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(temp, frame, sizeof(unsigned char) * frame_size);
data/volk-2.4.0/kernels/volk/volk_8u_x2_encodeframepolar_8u.h:159:13:  [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(temp, frame, sizeof(unsigned char) * frame_size);
data/volk-2.4.0/kernels/volk/volk_8u_x2_encodeframepolar_8u.h:432:13:  [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(temp, frame, sizeof(unsigned char) * frame_size);
data/volk-2.4.0/kernels/volk/volk_8u_x2_encodeframepolar_8u.h:694:13:  [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(temp, frame, sizeof(unsigned char) * frame_size);
data/volk-2.4.0/kernels/volk/volk_8u_x2_encodeframepolar_8u.h:966:13:  [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(temp, frame, sizeof(unsigned char) * frame_size);
data/volk-2.4.0/kernels/volk/volk_8u_x4_conv_k7_r2_8u.h:65: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 c[64 /*NUMSTATES*/ / 8];
data/volk-2.4.0/lib/qa_utils.cc:595:13:  [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(arch_inbuff,
data/volk-2.4.0/lib/testqa.cc:125:13:  [2] (misc) open:
  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).
    qa_file.open(".unittest/kernels.xml");
data/volk-2.4.0/lib/volk_prefs.c:69: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 path[512], line[512];
data/volk-2.4.0/lib/volk_prefs.c:77:19:  [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).
    config_file = fopen(path, "r");
data/volk-2.4.0/cpu-features/include/internal/string_view.h:47:66:  [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).
static inline StringView str(const char* str) { return view(str, strlen(str)); }
data/volk-2.4.0/cpu-features/src/filesystem.c:57:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    result = read(file_descriptor, buffer, buffer_size);
data/volk-2.4.0/cpu-features/src/stack_line_reader.c:34:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  assert(read >= 0);
data/volk-2.4.0/cpu-features/src/stack_line_reader.c:36:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  reader->view.size = read;
data/volk-2.4.0/cpu-features/src/stack_line_reader.c:37:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return read;
data/volk-2.4.0/cpu-features/src/stack_line_reader.c:45:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  assert(read >= 0);
data/volk-2.4.0/cpu-features/src/stack_line_reader.c:46:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  assert(read <= (int)size_to_read);
data/volk-2.4.0/cpu-features/src/stack_line_reader.c:47:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  reader->view.size += read;
data/volk-2.4.0/cpu-features/src/stack_line_reader.c:48:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return read;
data/volk-2.4.0/cpu-features/test/filesystem_for_testing.cc:45:46:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  memcpy(buf, content_.data() + head_index_, read);
data/volk-2.4.0/cpu-features/test/filesystem_for_testing.cc:46:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  head_index_ += read;
data/volk-2.4.0/cpu-features/test/filesystem_for_testing.cc:47:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  assert(read < INT_MAX);
data/volk-2.4.0/cpu-features/test/filesystem_for_testing.cc:48:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return (int)read;
data/volk-2.4.0/lib/volk_prefs.c:14:44:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void volk_get_config_path(char* path, bool read)
data/volk-2.4.0/lib/volk_prefs.c:25:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(path, home, 512);
data/volk-2.4.0/lib/volk_prefs.c:27:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (!read || access(path, F_OK) != -1) {
data/volk-2.4.0/lib/volk_prefs.c:35:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(path, home, 512);
data/volk-2.4.0/lib/volk_prefs.c:37:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (!read || (access(path, F_OK) != -1)) {
data/volk-2.4.0/lib/volk_prefs.c:45:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(path, home, 512);
data/volk-2.4.0/lib/volk_prefs.c:47:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (!read || (access(path, F_OK) != -1)) {
data/volk-2.4.0/lib/volk_prefs.c:54:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(path, "/etc", 512);
data/volk-2.4.0/lib/volk_prefs.c:56:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (!read || (access(path, F_OK) != -1)) {

ANALYSIS SUMMARY:

Hits = 118
Lines analyzed = 62777 in approximately 1.39 seconds (45268 lines/second)
Physical Source Lines of Code (SLOC) = 41368
Hits@level = [0]  20 [1]  22 [2]  76 [3]   7 [4]  13 [5]   0
Hits@level+ = [0+] 138 [1+] 118 [2+]  96 [3+]  20 [4+]  13 [5+]   0
Hits/KSLOC@level+ = [0+] 3.33591 [1+] 2.85245 [2+] 2.32063 [3+] 0.483465 [4+] 0.314253 [5+]   0
Dot directories skipped = 3 (--followdotdir overrides)
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.