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/libad9361-0.2/ad9361.h Examining data/libad9361-0.2/ad9361_baseband_auto_rate.c Examining data/libad9361-0.2/ad9361_design_taps.c Examining data/libad9361-0.2/ad9361_fmcomms5_phase_sync.c Examining data/libad9361-0.2/ad9361_multichip_sync.c Examining data/libad9361-0.2/bindings/matlab/ad9361-wrapper.h Examining data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c Examining data/libad9361-0.2/filterdesigner/internal_design_filter_cg.h Examining data/libad9361-0.2/filterdesigner/internal_design_filter_cg_emxutil.c Examining data/libad9361-0.2/filterdesigner/internal_design_filter_cg_emxutil.h Examining data/libad9361-0.2/filterdesigner/internal_design_filter_cg_types.h Examining data/libad9361-0.2/filterdesigner/rtGetInf.c Examining data/libad9361-0.2/filterdesigner/rtGetInf.h Examining data/libad9361-0.2/filterdesigner/rtGetNaN.c Examining data/libad9361-0.2/filterdesigner/rtGetNaN.h Examining data/libad9361-0.2/filterdesigner/rt_defines.h Examining data/libad9361-0.2/filterdesigner/rt_nonfinite.c Examining data/libad9361-0.2/filterdesigner/rt_nonfinite.h Examining data/libad9361-0.2/filterdesigner/rtwtypes.h Examining data/libad9361-0.2/test/auto_rate_test_hw.c Examining data/libad9361-0.2/test/filter_designer_hw.c Examining data/libad9361-0.2/test/filter_designer_test.c Examining data/libad9361-0.2/test/fmcomms5_sync_test.c Examining data/libad9361-0.2/test/gen_rates_test.c Examining data/libad9361-0.2/ad9361_calculate_rf_clock_chain.c FINAL RESULTS: data/libad9361-0.2/ad9361_baseband_auto_rate.c:27:9: [4] (format) snprintf: 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. #define snprintf sprintf_s data/libad9361-0.2/ad9361_design_taps.c:32:9: [4] (format) snprintf: 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. #define snprintf sprintf_s data/libad9361-0.2/ad9361_fmcomms5_phase_sync.c:36:9: [4] (format) snprintf: 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. #define snprintf sprintf_s data/libad9361-0.2/ad9361_baseband_auto_rate.c:147: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 readbuf[100]; data/libad9361-0.2/ad9361_design_taps.c:260: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 readbuf[100]; data/libad9361-0.2/ad9361_fmcomms5_phase_sync.c:478: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[16]; data/libad9361-0.2/ad9361_multichip_sync.c:45:2: [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 ensm_mode[MAX_AD9361_SYNC_DEVS][20]; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:30: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 range[8]; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:32: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 configlevel[7]; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:38:30: [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 analogresp(const char type[2], const double f[2048], double data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:45: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 void b_analogresp(const char type[2], const emxArray_real_T *f, double data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:64:48: [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 b_generateCascadedResponseRx(const char enables[4], const data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:77:33: [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 boolean_T b_strcmp(const char a[2]); data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:97:48: [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 c_generateCascadedResponseRx(const char enables[4], const data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:108:33: [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 boolean_T c_strcmp(const char a[2]); data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:161: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. static void generateCascadedResponseRx(const char enables[4], const double w data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:265:30: [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 analogresp(const char type[2], const double f[2048], double data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:273: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. static const char cv33[2] = { 'T', 'x' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:275: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. static const char cv34[2] = { 'R', 'x' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:466: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 void b_analogresp(const char type[2], const emxArray_real_T *f, double data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:474: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. static const char cv46[2] = { 'T', 'x' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:479: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. static const char cv47[2] = { 'R', 'x' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:1695: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. static const char cv14[8] = { 'o', 'n', 'e', 's', 'i', 'd', 'e', 'd' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:1698: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. static const char cv15[7] = { 'o', 'm', 'i', 't', 't', 'e', 'd' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:1702: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(&options.nfft[0], &w[0], sizeof(double) << 11); data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:1703: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(&options.w[0], &w[0], sizeof(double) << 11); data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:1735:48: [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 b_generateCascadedResponseRx(const char enables[4], const data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:1746: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. static const char cv35[4] = { '2', '1', '1', '1' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:1761: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. static const char cv36[4] = { '1', '2', '1', '1' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:1763: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. static const char cv37[4] = { '1', '1', '2', '1' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:1769: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. static const char cv38[4] = { '2', '2', '1', '1' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:1771: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. static const char cv39[4] = { '2', '1', '2', '1' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:1773: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. static const char cv40[4] = { '1', '2', '2', '1' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:1775: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. static const char cv41[4] = { '2', '2', '2', '1' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:1777: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. static const char cv42[4] = { '1', '1', '1', '3' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:1779: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. static const char cv43[4] = { '2', '1', '1', '3' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:1781: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. static const char cv44[4] = { '1', '2', '1', '3' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:1783: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. static const char cv45[4] = { '2', '2', '1', '3' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:2569:33: [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 boolean_T b_strcmp(const char a[2]) data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:2574: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. static const char cv0[2] = { 'R', 'x' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:3187: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. static const char cv16[8] = { 'o', 'n', 'e', 's', 'i', 'd', 'e', 'd' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:3190: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. static const char cv17[7] = { 'o', 'm', 'i', 't', 't', 'e', 'd' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:3194: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(&options.nfft[0], &w[0], sizeof(double) << 11); data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:3195: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(&options.w[0], &w[0], sizeof(double) << 11); data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:3228:48: [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 c_generateCascadedResponseRx(const char enables[4], const data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:3239: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. static const char cv48[4] = { '2', '1', '1', '1' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:3256: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. static const char cv49[4] = { '1', '2', '1', '1' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:3258: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. static const char cv50[4] = { '1', '1', '2', '1' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:3264: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. static const char cv51[4] = { '2', '2', '1', '1' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:3266: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. static const char cv52[4] = { '2', '1', '2', '1' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:3268: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. static const char cv53[4] = { '1', '2', '2', '1' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:3270: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. static const char cv54[4] = { '2', '2', '2', '1' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:3272: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. static const char cv55[4] = { '1', '1', '1', '3' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:3274: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. static const char cv56[4] = { '2', '1', '1', '3' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:3276: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. static const char cv57[4] = { '1', '2', '1', '3' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:3278: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. static const char cv58[4] = { '2', '2', '1', '3' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:4101:33: [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 boolean_T c_strcmp(const char a[2]) data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:4106: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. static const char cv32[2] = { 'T', 'x' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:4299: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(&b_b_data[0], &b_data[0], (unsigned int)(loop_ub * (int)sizeof(double))); data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:4304: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(&b_data[0], &b_b_data[0], (unsigned int)(b_idx_0 * (int)sizeof(double))); data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:4409: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. static const char cv18[8] = { 'o', 'n', 'e', 's', 'i', 'd', 'e', 'd' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:4412: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. static const char cv19[7] = { 'o', 'm', 'i', 't', 't', 'e', 'd' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:4419: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(&options.nfft[0], &w[0], sizeof(double) << 11); data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:4420: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(&options.w[0], &w[0], sizeof(double) << 11); data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:4437: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(&b_b_data[0], &b_data[0], (unsigned int)(loop_ub * (int)sizeof(double))); data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:4492: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(&u[0], &b_u[0], 29U * sizeof(double)); data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:5557: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. static const char cv20[8] = { 'o', 'n', 'e', 's', 'i', 'd', 'e', 'd' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:5560: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. static const char cv21[7] = { 'o', 'm', 'i', 't', 't', 'e', 'd' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:5564: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(&options.nfft[0], &w[0], sizeof(double) << 11); data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:5565: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(&options.w[0], &w[0], sizeof(double) << 11); data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:5630: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(&u[0], &b_u[0], 13U * sizeof(double)); data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:6509: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. static const char cv22[8] = { 'o', 'n', 'e', 's', 'i', 'd', 'e', 'd' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:6512: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. static const char cv23[7] = { 'o', 'm', 'i', 't', 't', 'e', 'd' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:6516: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(&options.nfft[0], &w[0], sizeof(double) << 11); data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:6517: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(&options.w[0], &w[0], sizeof(double) << 11); data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:6582: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(&u[0], &b_u[0], 57U * sizeof(double)); data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:7229: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. static const char cv12[8] = { 'o', 'n', 'e', 's', 'i', 'd', 'e', 'd' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:7232: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. static const char cv13[7] = { 'o', 'm', 'i', 't', 't', 'e', 'd' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:7236: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(&options.nfft[0], &w[0], sizeof(double) << 11); data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:7237: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(&options.w[0], &w[0], sizeof(double) << 11); data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:7377: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. static const char cv24[8] = { 'o', 'n', 'e', 's', 'i', 'd', 'e', 'd' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:7380: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. static const char cv25[7] = { 'o', 'm', 'i', 't', 't', 'e', 'd' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:7384: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(&options.nfft[0], &w[0], sizeof(double) << 11); data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:7385: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(&options.w[0], &w[0], sizeof(double) << 11); data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:7450: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(&u[0], &b_u[0], 43U * sizeof(double)); data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:7466: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. static void generateCascadedResponseRx(const char enables[4], const double w data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:7486: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. static const char cv1[4] = { '2', '1', '1', '1' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:7495: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. static const char cv2[4] = { '1', '2', '1', '1' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:7497: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. static const char cv3[4] = { '1', '1', '2', '1' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:7499: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. static const char cv4[4] = { '2', '2', '1', '1' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:7501: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. static const char cv5[4] = { '2', '1', '2', '1' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:7503: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. static const char cv6[4] = { '1', '2', '2', '1' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:7505: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. static const char cv7[4] = { '2', '2', '2', '1' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:7507: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. static const char cv8[4] = { '1', '1', '1', '3' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:7509: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. static const char cv9[4] = { '2', '1', '1', '3' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:7511: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. static const char cv10[4] = { '1', '2', '1', '3' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:7513: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. static const char cv11[4] = { '2', '2', '1', '3' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:8030: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. static const char cv26[8] = { 'o', 'n', 'e', 's', 'i', 'd', 'e', 'd' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:8033: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. static const char cv27[7] = { 'o', 'm', 'i', 't', 't', 'e', 'd' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:8037: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(&options.nfft[0], &w[0], sizeof(double) << 11); data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:8038: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(&options.w[0], &w[0], sizeof(double) << 11); data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:8103: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(&u[0], &b_u[0], 19U * sizeof(double)); data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:8227: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. static const char cv28[8] = { 'o', 'n', 'e', 's', 'i', 'd', 'e', 'd' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:8230: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. static const char cv29[7] = { 'o', 'm', 'i', 't', 't', 'e', 'd' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:8234: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(&options.nfft[0], &w[0], sizeof(double) << 11); data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:8235: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(&options.w[0], &w[0], sizeof(double) << 11); data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:8300: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(&u[0], &b_u[0], 85U * sizeof(double)); data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:8554: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. static const char cv30[8] = { 'o', 'n', 'e', 's', 'i', 'd', 'e', 'd' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:8557: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. static const char cv31[7] = { 'o', 'm', 'i', 't', 't', 'e', 'd' }; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:8561: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(&options.nfft[0], &w[0], sizeof(double) << 11); data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:8562: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(&options.w[0], &w[0], sizeof(double) << 11); data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:11818: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. signed char varargin_1_data[1]; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:14401:75: [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. double phEQ, double HB2, double HB3, const char Type[7], const char RxTx[2], data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:14401:95: [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. double phEQ, double HB2, double HB3, const char Type[7], const char RxTx[2], data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:14455: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 enables[4]; data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:14607: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(&hb1_coeff[0], &dv1[0], 15U * sizeof(double)); data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:14616: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(&dec_int3_coeff_data[0], &d_y[0], 17U * sizeof(double)); data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:14644: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(&hb1_coeff[0], &dv0[0], 15U * sizeof(double)); data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:14653: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(&dec_int3_coeff_data[0], &c_y[0], 29U * sizeof(double)); data/libad9361-0.2/filterdesigner/internal_design_filter_cg.c:16383: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(&b_firTapsPreScale[0], &firTapsPreScale[0], sizeof(double) << 7); data/libad9361-0.2/filterdesigner/internal_design_filter_cg.h:38:89: [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. Astop, double phEQ, double HB2, double HB3, const char Type[7], const char data/libad9361-0.2/filterdesigner/internal_design_filter_cg.h:38:109: [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. Astop, double phEQ, double HB2, double HB3, const char Type[7], const char data/libad9361-0.2/filterdesigner/internal_design_filter_cg_emxutil.c:57: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(newData, (void *)emxArray->data, sizeof(cint8_T) * oldNumel); data/libad9361-0.2/filterdesigner/internal_design_filter_cg_emxutil.c:104: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(newData, (void *)emxArray->data, sizeof(creal_T) * oldNumel); data/libad9361-0.2/filterdesigner/internal_design_filter_cg_emxutil.c:151: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(newData, (void *)emxArray->data, sizeof(creal_T) * oldNumel); data/libad9361-0.2/filterdesigner/internal_design_filter_cg_emxutil.c:198: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(newData, (void *)emxArray->data, sizeof(int) * oldNumel); data/libad9361-0.2/filterdesigner/internal_design_filter_cg_emxutil.c:245: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(newData, (void *)emxArray->data, sizeof(int) * oldNumel); data/libad9361-0.2/filterdesigner/internal_design_filter_cg_emxutil.c:292: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(newData, (void *)emxArray->data, sizeof(signed char) * oldNumel); data/libad9361-0.2/filterdesigner/internal_design_filter_cg_emxutil.c:339: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(newData, (void *)emxArray->data, sizeof(double) * oldNumel); data/libad9361-0.2/filterdesigner/internal_design_filter_cg_emxutil.c:386: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(newData, (void *)emxArray->data, sizeof(double) * oldNumel); data/libad9361-0.2/test/filter_designer_test.c:10:31: [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 check_result(short *taps, char tap_filename[100]) data/libad9361-0.2/test/filter_designer_test.c: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 buffer[255]; data/libad9361-0.2/test/filter_designer_test.c:15: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). fp = fopen(tap_filename, "r"); data/libad9361-0.2/test/filter_designer_test.c:20: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). int tap = atoi(buffer); data/libad9361-0.2/test/filter_designer_test.c:40: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 filename[100]; data/libad9361-0.2/test/filter_designer_test.c:53:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(filename,"rateRX_%lu.taps",rates[k]); data/libad9361-0.2/test/filter_designer_test.c:62:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(filename,"rateTX_%lu.taps",rates[k]); ANALYSIS SUMMARY: Hits = 137 Lines analyzed = 20532 in approximately 0.56 seconds (36774 lines/second) Physical Source Lines of Code (SLOC) = 16065 Hits@level = [0] 52 [1] 0 [2] 134 [3] 0 [4] 3 [5] 0 Hits@level+ = [0+] 189 [1+] 137 [2+] 137 [3+] 3 [4+] 3 [5+] 0 Hits/KSLOC@level+ = [0+] 11.7647 [1+] 8.52786 [2+] 8.52786 [3+] 0.186741 [4+] 0.186741 [5+] 0 Dot directories skipped = 1 (--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.