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

FINAL RESULTS:

data/volk-2.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.0/tmpl/volk_cpu.tmpl.c:143:16:  [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).
    auxvec_f = fopen("/proc/self/auxv", "rb");
data/volk-2.3.0/tmpl/volk_cpu.tmpl.c:176:16:  [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).
    auxvec_f = fopen("/proc/self/auxv", "rb");
data/volk-2.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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 = 82
Lines analyzed = 55734 in approximately 1.30 seconds (42846 lines/second)
Physical Source Lines of Code (SLOC) = 36330
Hits@level = [0]  11 [1]   9 [2]  55 [3]   7 [4]  11 [5]   0
Hits@level+ = [0+]  93 [1+]  82 [2+]  73 [3+]  18 [4+]  11 [5+]   0
Hits/KSLOC@level+ = [0+] 2.55987 [1+] 2.25709 [2+] 2.00936 [3+] 0.495458 [4+] 0.30278 [5+]   0
Dot directories skipped = 2 (--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.