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/dsdcc-1.8.6/crc.cpp Examining data/dsdcc-1.8.6/crc.h Examining data/dsdcc-1.8.6/descramble.cpp Examining data/dsdcc-1.8.6/descramble.h Examining data/dsdcc-1.8.6/dmr.cpp Examining data/dsdcc-1.8.6/dmr.h Examining data/dsdcc-1.8.6/doublebuffer.h Examining data/dsdcc-1.8.6/dpmr.cpp Examining data/dsdcc-1.8.6/dpmr.h Examining data/dsdcc-1.8.6/dsd_decoder.cpp Examining data/dsdcc-1.8.6/dsd_decoder.h Examining data/dsdcc-1.8.6/dsd_filters.cpp Examining data/dsdcc-1.8.6/dsd_filters.h Examining data/dsdcc-1.8.6/dsd_logger.cpp Examining data/dsdcc-1.8.6/dsd_logger.h Examining data/dsdcc-1.8.6/dsd_main.cpp Examining data/dsdcc-1.8.6/dsd_mbe.cpp Examining data/dsdcc-1.8.6/dsd_mbe.h Examining data/dsdcc-1.8.6/dsd_mbelib.h Examining data/dsdcc-1.8.6/dsd_opts.cpp Examining data/dsdcc-1.8.6/dsd_opts.h Examining data/dsdcc-1.8.6/dsd_state.cpp Examining data/dsdcc-1.8.6/dsd_state.h Examining data/dsdcc-1.8.6/dsd_symbol.cpp Examining data/dsdcc-1.8.6/dsd_symbol.h Examining data/dsdcc-1.8.6/dsd_upsample.cpp Examining data/dsdcc-1.8.6/dsd_upsample.h Examining data/dsdcc-1.8.6/dstar.cpp Examining data/dsdcc-1.8.6/dstar.h Examining data/dsdcc-1.8.6/export.h Examining data/dsdcc-1.8.6/fec.cpp Examining data/dsdcc-1.8.6/fec.h Examining data/dsdcc-1.8.6/iirfilter.h Examining data/dsdcc-1.8.6/locator.cpp Examining data/dsdcc-1.8.6/locator.h Examining data/dsdcc-1.8.6/mbefec.cpp Examining data/dsdcc-1.8.6/mbefec.h Examining data/dsdcc-1.8.6/nxdn.cpp Examining data/dsdcc-1.8.6/nxdn.h Examining data/dsdcc-1.8.6/nxdnconvolution.cpp Examining data/dsdcc-1.8.6/nxdnconvolution.h Examining data/dsdcc-1.8.6/nxdncrc.cpp Examining data/dsdcc-1.8.6/nxdncrc.h Examining data/dsdcc-1.8.6/nxdnmessage.cpp Examining data/dsdcc-1.8.6/nxdnmessage.h Examining data/dsdcc-1.8.6/p25p1_heuristics.cpp Examining data/dsdcc-1.8.6/p25p1_heuristics.h Examining data/dsdcc-1.8.6/phaselock.cpp Examining data/dsdcc-1.8.6/phaselock.h Examining data/dsdcc-1.8.6/pn.cpp Examining data/dsdcc-1.8.6/pn.h Examining data/dsdcc-1.8.6/runningmaxmin.h Examining data/dsdcc-1.8.6/testfec/crc.cpp Examining data/dsdcc-1.8.6/testfec/golay20.cpp Examining data/dsdcc-1.8.6/testfec/golay23.cpp Examining data/dsdcc-1.8.6/testfec/golay24.cpp Examining data/dsdcc-1.8.6/testfec/hamming12.cpp Examining data/dsdcc-1.8.6/testfec/hamming15.cpp Examining data/dsdcc-1.8.6/testfec/hamming16.cpp Examining data/dsdcc-1.8.6/testfec/hamming7.cpp Examining data/dsdcc-1.8.6/testfec/pn.cpp Examining data/dsdcc-1.8.6/testfec/qr.cpp Examining data/dsdcc-1.8.6/testfec/viterbi.cpp Examining data/dsdcc-1.8.6/testfec/viterbi35.cpp Examining data/dsdcc-1.8.6/timeutil.cpp Examining data/dsdcc-1.8.6/timeutil.h Examining data/dsdcc-1.8.6/viterbi.cpp Examining data/dsdcc-1.8.6/viterbi.h Examining data/dsdcc-1.8.6/viterbi3.cpp Examining data/dsdcc-1.8.6/viterbi3.h Examining data/dsdcc-1.8.6/viterbi5.cpp Examining data/dsdcc-1.8.6/viterbi5.h Examining data/dsdcc-1.8.6/ysf.cpp Examining data/dsdcc-1.8.6/ysf.h FINAL RESULTS: data/dsdcc-1.8.6/dsd_decoder.cpp:1344:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(&statusText[15], "DPM>%s CC: %04d OI: %08d CI: %08d", data/dsdcc-1.8.6/dsd_decoder.cpp:1357:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(&statusText[15], "YSF>%s ", DSDcc::DSDYSF::ysfChannelTypeText[(int) getYSFDecoder().getFICH().getFrameInformation()]); data/dsdcc-1.8.6/dsd_decoder.cpp:1364:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(&statusText[21], "%s %s %d:%d %c%c", data/dsdcc-1.8.6/dsd_decoder.cpp:1385:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(dest, "%-5s:%-5s", data/dsdcc-1.8.6/dsd_decoder.cpp:1391:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(dest, "%-10s", getYSFDecoder().getDest()); data/dsdcc-1.8.6/dsd_decoder.cpp:1394:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(&statusText[36], "|%-10s>%s|%-10s>%-10s|%-5s", data/dsdcc-1.8.6/dsd_decoder.cpp:1410:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(&statusText[15], "NXD>RC %s %02d %02X %06X %02X", data/dsdcc-1.8.6/dsd_logger.h:44:13: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(m_logfp, fmt, argptr); data/dsdcc-1.8.6/dsd_main.cpp:201:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt(argc, argv, data/dsdcc-1.8.6/descramble.cpp:252: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 m_pathMemory0[330]; data/dsdcc-1.8.6/descramble.cpp:254: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 m_pathMemory1[330]; data/dsdcc-1.8.6/descramble.cpp:256: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 m_pathMemory2[330]; data/dsdcc-1.8.6/descramble.cpp:258: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 m_pathMemory3[330]; data/dsdcc-1.8.6/descramble.cpp:260: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 m_pathMetric[4]; data/dsdcc-1.8.6/descramble.cpp: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. unsigned char data[2]; data/dsdcc-1.8.6/dmr.cpp:174: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(m_dsdDecoder->m_state.slot0light, "/-- UNK", 7); data/dsdcc-1.8.6/dmr.cpp:280: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(m_dsdDecoder->m_state.slot0light, "/-- UNK", 7); data/dsdcc-1.8.6/dmr.cpp:525: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(&m_dsdDecoder->m_state.slot0light[4], "VOX", 3); data/dsdcc-1.8.6/dmr.cpp:614:25: [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(&m_dsdDecoder->m_state.slot0light[4], "VOX", 3); data/dsdcc-1.8.6/dmr.cpp:616:25: [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(&m_dsdDecoder->m_state.slot1light[4], "VOX", 3); data/dsdcc-1.8.6/dmr.cpp:775: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(m_dsdDecoder->m_mbeDVFrame1, m_mbeDVFrame, 9); data/dsdcc-1.8.6/dmr.cpp:781: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(m_dsdDecoder->m_mbeDVFrame2, m_mbeDVFrame, 9); data/dsdcc-1.8.6/dmr.cpp:886: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 slotTypeBits[20]; data/dsdcc-1.8.6/dmr.cpp:897: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(&m_slotText[1], "%02d ", m_colorCode); data/dsdcc-1.8.6/dmr.cpp:904: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(&m_slotText[4], "RES", 3); data/dsdcc-1.8.6/dmr.cpp:909: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(&m_slotText[4], m_slotTypeText[dataType], 3); data/dsdcc-1.8.6/dmr.cpp:916: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(&m_slotText[1], "-- UNK", 6); data/dsdcc-1.8.6/dmr.cpp:923: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 embBits[16]; data/dsdcc-1.8.6/dmr.cpp:934: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(&m_slotText[1], "%02d", m_colorCode); data/dsdcc-1.8.6/dmr.cpp:1075:5: [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(&slotText[8], "%08u", addresses.m_source); data/dsdcc-1.8.6/dmr.cpp:1076:5: [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(&slotText[18], "%08u", addresses.m_target); data/dsdcc-1.8.6/dmr.h:124: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 m_slotTypePDU_dibits[10]; data/dsdcc-1.8.6/dmr.h:125: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 m_cachBits[24]; data/dsdcc-1.8.6/dmr.h:126: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 m_emb_dibits[8]; data/dsdcc-1.8.6/dmr.h:127: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 m_voiceEmbSig_dibits[16]; data/dsdcc-1.8.6/dmr.h:128: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 m_voice1EmbSigRawBits[16*8]; data/dsdcc-1.8.6/dmr.h:132: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 m_voice2EmbSigRawBits[16*8]; data/dsdcc-1.8.6/dmr.h:136: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 m_syncDibits[24]; data/dsdcc-1.8.6/dmr.h:139: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 m_mbeDVFrame[9]; data/dsdcc-1.8.6/dmr.h:150: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 *m_slotTypeText[13]; data/dsdcc-1.8.6/doublebuffer.h:44: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(m_buffer, other.m_buffer, 2*m_size*sizeof(T)); data/dsdcc-1.8.6/doublebuffer.h:57: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(m_buffer, other.m_buffer, 2*m_size*sizeof(T)); data/dsdcc-1.8.6/dpmr.cpp:776: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(m_bitWork, bits, nbBits); data/dsdcc-1.8.6/dpmr.cpp:801: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(m_bitWork, bits, nbBits); data/dsdcc-1.8.6/dpmr.h:90: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. static char dpmrFrameTypes[9][3]; data/dsdcc-1.8.6/dpmr.h:135: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 m_syncDoubleBuffer[24]; //!< double buffer for frame sync extensive search data/dsdcc-1.8.6/dpmr.h:136: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 m_colourBuffer[12]; //!< buffer for colour code: 12 dibits data/dsdcc-1.8.6/dpmr.h:143: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 m_scrambleBits[120]; data/dsdcc-1.8.6/dpmr.h:144: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 m_bitBufferRx[120]; data/dsdcc-1.8.6/dpmr.h:145: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 m_bitBuffer[80]; data/dsdcc-1.8.6/dpmr.h:146: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 m_bitWork[80]; data/dsdcc-1.8.6/dpmr.h:164:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_preamble[12]; data/dsdcc-1.8.6/dsd_decoder.cpp:470:13: [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(m_state.fsubtype, " VOICE "); data/dsdcc-1.8.6/dsd_decoder.cpp:499:13: [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(m_state.fsubtype, " VOICE "); data/dsdcc-1.8.6/dsd_decoder.cpp:528: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(m_state.fsubtype, " VOICE "); data/dsdcc-1.8.6/dsd_decoder.cpp:549: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(m_state.fsubtype, " DATA "); data/dsdcc-1.8.6/dsd_decoder.cpp:570: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(m_state.fsubtype, " RDCH "); data/dsdcc-1.8.6/dsd_decoder.cpp:591: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(m_state.fsubtype, " ANY "); data/dsdcc-1.8.6/dsd_decoder.cpp:612: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(m_state.fsubtype, " ANY "); data/dsdcc-1.8.6/dsd_decoder.cpp:672:17: [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(m_state.ftype, "+P25 Phase 1 "); data/dsdcc-1.8.6/dsd_decoder.cpp:688:17: [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(m_state.ftype, "-P25 Phase 1 "); data/dsdcc-1.8.6/dsd_decoder.cpp:708:17: [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(m_state.ftype, "+X2-TDMAd "); data/dsdcc-1.8.6/dsd_decoder.cpp:726:17: [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(m_state.ftype, "+X2-TDMAd "); data/dsdcc-1.8.6/dsd_decoder.cpp:744:17: [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(m_state.ftype, "+X2-TDMAv "); data/dsdcc-1.8.6/dsd_decoder.cpp:762:17: [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(m_state.ftype, "+X2-TDMAv "); data/dsdcc-1.8.6/dsd_decoder.cpp:781:17: [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(m_state.ftype, "+YSF "); data/dsdcc-1.8.6/dsd_decoder.cpp:804:5: [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(m_state.ftype, "+DMRd "); data/dsdcc-1.8.6/dsd_decoder.cpp:825:17: [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(m_state.ftype, "+DMRd "); data/dsdcc-1.8.6/dsd_decoder.cpp:846:5: [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(m_state.ftype, "+DMRv "); data/dsdcc-1.8.6/dsd_decoder.cpp:867:17: [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(m_state.ftype, "+DMRv "); data/dsdcc-1.8.6/dsd_decoder.cpp:887:17: [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(m_state.ftype, "+ProVoice "); data/dsdcc-1.8.6/dsd_decoder.cpp:905:17: [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(m_state.ftype, "-ProVoice "); data/dsdcc-1.8.6/dsd_decoder.cpp:928:6: [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(m_state.ftype, "+NXDN48 "); data/dsdcc-1.8.6/dsd_decoder.cpp:937:6: [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(m_state.ftype, "+NXDN96 "); data/dsdcc-1.8.6/dsd_decoder.cpp:957:6: [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(m_state.ftype, "-NXDN48 "); data/dsdcc-1.8.6/dsd_decoder.cpp:966:6: [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(m_state.ftype, "-NXDN96 "); data/dsdcc-1.8.6/dsd_decoder.cpp:987:25: [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(m_state.ftype, "+NXDN48 "); data/dsdcc-1.8.6/dsd_decoder.cpp:996:25: [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(m_state.ftype, "+NXDN96 "); data/dsdcc-1.8.6/dsd_decoder.cpp:1021:25: [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(m_state.ftype, "-NXDN48 "); data/dsdcc-1.8.6/dsd_decoder.cpp:1030:25: [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(m_state.ftype, "-NXDN96 "); data/dsdcc-1.8.6/dsd_decoder.cpp:1054:17: [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(m_state.ftype, "+dPMR "); data/dsdcc-1.8.6/dsd_decoder.cpp:1073:17: [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(m_state.ftype, "+D-STAR "); data/dsdcc-1.8.6/dsd_decoder.cpp:1089:17: [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(m_state.ftype, "-D-STAR "); data/dsdcc-1.8.6/dsd_decoder.cpp:1105:17: [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(m_state.ftype, "+D-STAR_HD "); data/dsdcc-1.8.6/dsd_decoder.cpp:1121:17: [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(m_state.ftype, "-D-STAR_HD "); data/dsdcc-1.8.6/dsd_decoder.cpp:1149: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(m_state.ftype, "No Sync "); data/dsdcc-1.8.6/dsd_decoder.cpp:1197:5: [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(m_state.slot0light, " "); data/dsdcc-1.8.6/dsd_decoder.cpp:1198:5: [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(m_state.slot1light, " "); data/dsdcc-1.8.6/dsd_decoder.cpp:1199:5: [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(m_state.fsubtype, " "); data/dsdcc-1.8.6/dsd_decoder.cpp:1200:5: [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(m_state.ftype, " "); data/dsdcc-1.8.6/dsd_decoder.cpp:1213:5: [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(m_state.algid, "________"); data/dsdcc-1.8.6/dsd_decoder.cpp:1214:5: [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(m_state.keyid, "________________"); data/dsdcc-1.8.6/dsd_decoder.cpp:1265:5: [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(statusText, "%d.%03d:", (uint32_t) tv_sec, (uint32_t) tv_msec); data/dsdcc-1.8.6/dsd_decoder.cpp:1275:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(&statusText[15], "DMR>Sta: __ S1: __________________________ S2: __________________________"); data/dsdcc-1.8.6/dsd_decoder.cpp:1279:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&statusText[15], "DMR", 3); data/dsdcc-1.8.6/dsd_decoder.cpp:1285: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(&statusText[24], "BS ", 3); data/dsdcc-1.8.6/dsd_decoder.cpp:1288: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(&statusText[24], "MS ", 3); data/dsdcc-1.8.6/dsd_decoder.cpp:1291: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(&statusText[24], "NA ", 3); data/dsdcc-1.8.6/dsd_decoder.cpp:1295: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(&statusText[31], getDMRDecoder().getSlot0Text(), 26); data/dsdcc-1.8.6/dsd_decoder.cpp:1296: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(&statusText[62], getDMRDecoder().getSlot1Text(), 26); data/dsdcc-1.8.6/dsd_decoder.cpp:1307:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(&statusText[15], "DST>________/____>________|________>________|____________________|______:___/_____._"); data/dsdcc-1.8.6/dsd_decoder.cpp:1312:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&statusText[15], "DST", 3); data/dsdcc-1.8.6/dsd_decoder.cpp:1322:17: [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(&statusText[42], rpt1.c_str(), 8); data/dsdcc-1.8.6/dsd_decoder.cpp:1325:17: [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(&statusText[51], rpt2.c_str(), 8); data/dsdcc-1.8.6/dsd_decoder.cpp:1328:17: [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(&statusText[33], yrSign.c_str(), 8); data/dsdcc-1.8.6/dsd_decoder.cpp:1331:17: [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(&statusText[19], mySign.c_str(), 13); data/dsdcc-1.8.6/dsd_decoder.cpp:1333: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(&statusText[60], getDStarDecoder().getInfoText(), 20); data/dsdcc-1.8.6/dsd_decoder.cpp:1334: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(&statusText[81], getDStarDecoder().getLocator(), 6); data/dsdcc-1.8.6/dsd_decoder.cpp:1335:13: [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(&statusText[88], "%03d/%07.1f", data/dsdcc-1.8.6/dsd_decoder.cpp:1361:13: [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(&statusText[15], "YSF>%d ", (int) getYSFDecoder().getFICHError()); data/dsdcc-1.8.6/dsd_decoder.cpp:1374:13: [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(&statusText[33], "%03d", getYSFDecoder().getFICH().getSquelchCode()); data/dsdcc-1.8.6/dsd_decoder.cpp:1378:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(&statusText[33], "---"); data/dsdcc-1.8.6/dsd_decoder.cpp:1381: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 dest[11+1]; data/dsdcc-1.8.6/dsd_decoder.cpp:1448:6: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(&statusText[15], "XXX>"); data/dsdcc-1.8.6/dsd_decoder.h:276:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_syncDMRDataBS[24]; data/dsdcc-1.8.6/dsd_decoder.h:277:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_syncDMRVoiceBS[24]; data/dsdcc-1.8.6/dsd_decoder.h:278:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_syncDMRDataMS[24]; data/dsdcc-1.8.6/dsd_decoder.h:279:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_syncDMRVoiceMS[24]; data/dsdcc-1.8.6/dsd_decoder.h:280:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_syncDPMRFS1[24]; data/dsdcc-1.8.6/dsd_decoder.h:281:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_syncDPMRFS4[24]; data/dsdcc-1.8.6/dsd_decoder.h:282:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_syncDPMRFS2[12]; data/dsdcc-1.8.6/dsd_decoder.h:283:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_syncDPMRFS3[12]; data/dsdcc-1.8.6/dsd_decoder.h:284:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_syncNXDNRDCHFull[19]; data/dsdcc-1.8.6/dsd_decoder.h:285:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_syncNXDNRDCHFullInv[19]; data/dsdcc-1.8.6/dsd_decoder.h:286:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_syncNXDNRDCHFSW[10]; data/dsdcc-1.8.6/dsd_decoder.h:287:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_syncNXDNRDCHFSWInv[10]; data/dsdcc-1.8.6/dsd_decoder.h:288:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_syncDStarHeader[24]; data/dsdcc-1.8.6/dsd_decoder.h:289:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_syncDStarHeaderInv[24]; data/dsdcc-1.8.6/dsd_decoder.h:290:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_syncDStar[24]; data/dsdcc-1.8.6/dsd_decoder.h:291:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_syncDStarInv[24]; data/dsdcc-1.8.6/dsd_decoder.h:292:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_syncYSF[20]; data/dsdcc-1.8.6/dsd_decoder.h:293:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_syncP25P1[24]; data/dsdcc-1.8.6/dsd_decoder.h:294:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_syncP25P1Inv[24]; data/dsdcc-1.8.6/dsd_decoder.h:295:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_syncX2TDMADataBS[24]; data/dsdcc-1.8.6/dsd_decoder.h:296:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_syncX2TDMAVoiceBS[24]; data/dsdcc-1.8.6/dsd_decoder.h:297:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_syncX2TDMADataMS[24]; data/dsdcc-1.8.6/dsd_decoder.h:298:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_syncX2TDMAVoiceMS[24]; data/dsdcc-1.8.6/dsd_decoder.h:299:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_syncProVoice[32]; data/dsdcc-1.8.6/dsd_decoder.h:300:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_syncProVoiceInv[32]; data/dsdcc-1.8.6/dsd_decoder.h:301:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_syncProVoiceEA[32]; data/dsdcc-1.8.6/dsd_decoder.h:302:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_syncProVoiceEAInv[32]; data/dsdcc-1.8.6/dsd_decoder.h:333: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 m_spectrum[64]; data/dsdcc-1.8.6/dsd_decoder.h:340: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 ambe_fr[4][24]; data/dsdcc-1.8.6/dsd_decoder.h:341: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 imbe_fr[8][23]; data/dsdcc-1.8.6/dsd_decoder.h:347: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 m_mbeDVFrame1[18]; //!< AMBE/IMBE encoded frame for TDMA unique or first slot data/dsdcc-1.8.6/dsd_decoder.h:349: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 m_mbeDVFrame2[9]; //!< AMBE encoded frame for TDMA second slot data/dsdcc-1.8.6/dsd_logger.cpp:31:15: [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). m_logfp = fopen(filename, "w"); data/dsdcc-1.8.6/dsd_logger.cpp:51:15: [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). m_logfp = fopen(filename, "w"); data/dsdcc-1.8.6/dsd_main.cpp:175: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 in_file[1023]; data/dsdcc-1.8.6/dsd_main.cpp:177: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 out_file[1023]; data/dsdcc-1.8.6/dsd_main.cpp:179: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 log_file[1023]; data/dsdcc-1.8.6/dsd_main.cpp:181: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 formattext_file[1023]; data/dsdcc-1.8.6/dsd_main.cpp:185: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 formattext[128]; data/dsdcc-1.8.6/dsd_main.cpp:187: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 serialDevice[16]; data/dsdcc-1.8.6/dsd_main.cpp:396:22: [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). in_file_fd = open(in_file, O_RDONLY); data/dsdcc-1.8.6/dsd_main.cpp:415:23: [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). out_file_fd = open(out_file, O_WRONLY|O_CREAT|O_TRUNC, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH); data/dsdcc-1.8.6/dsd_main.cpp:438:26: [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). if (dvController.open(dvSerialDevice)) data/dsdcc-1.8.6/dsd_main.cpp:455:25: [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). formattext_fp = fopen(formattext_file, "w"); data/dsdcc-1.8.6/dsd_mbe.cpp:86:34: [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 DSDMBEDecoder::processFrame(char imbe_fr[8][23], char ambe_fr[4][24], char imbe7100_fr[7][24]) data/dsdcc-1.8.6/dsd_mbe.cpp:86:55: [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 DSDMBEDecoder::processFrame(char imbe_fr[8][23], char ambe_fr[4][24], char imbe7100_fr[7][24]) data/dsdcc-1.8.6/dsd_mbe.cpp:86:76: [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 DSDMBEDecoder::processFrame(char imbe_fr[8][23], char ambe_fr[4][24], char imbe7100_fr[7][24]) data/dsdcc-1.8.6/dsd_mbe.cpp:129: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. void DSDMBEDecoder::processData(char imbe_data[88], char ambe_data[49]) data/dsdcc-1.8.6/dsd_mbe.cpp:129:53: [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 DSDMBEDecoder::processData(char imbe_data[88], char ambe_data[49]) data/dsdcc-1.8.6/dsd_mbe.h:36:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void processFrame(char imbe_fr[8][23], char ambe_fr[4][24], char imbe7100_fr[7][24]); data/dsdcc-1.8.6/dsd_mbe.h:36:44: [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 processFrame(char imbe_fr[8][23], char ambe_fr[4][24], char imbe7100_fr[7][24]); data/dsdcc-1.8.6/dsd_mbe.h:36:65: [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 processFrame(char imbe_fr[8][23], char ambe_fr[4][24], char imbe7100_fr[7][24]); data/dsdcc-1.8.6/dsd_mbe.h:37:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void processData(char imbe_data[88], char ambe_data[49]); data/dsdcc-1.8.6/dsd_mbe.h:37:42: [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 processData(char imbe_data[88], char ambe_data[49]); data/dsdcc-1.8.6/dsd_mbe.h:65: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 imbe_d[88]; data/dsdcc-1.8.6/dsd_mbe.h:66: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 ambe_d[49]; data/dsdcc-1.8.6/dsd_mbe.h:72: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 m_err_str[64]; data/dsdcc-1.8.6/dsd_state.cpp:39:5: [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(fsubtype, " "); data/dsdcc-1.8.6/dsd_state.cpp:40:5: [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(ftype, " "); data/dsdcc-1.8.6/dsd_state.cpp:62:5: [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(slot0light, " "); data/dsdcc-1.8.6/dsd_state.cpp:63:5: [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(slot1light, " "); data/dsdcc-1.8.6/dsd_state.cpp:65:5: [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(algid, "________"); data/dsdcc-1.8.6/dsd_state.cpp:66:5: [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(keyid, "________________"); data/dsdcc-1.8.6/dsd_state.h: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 fsubtype[16]; data/dsdcc-1.8.6/dsd_state.h:41: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 ftype[16]; data/dsdcc-1.8.6/dsd_state.h:46: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 tg[25][16]; data/dsdcc-1.8.6/dsd_state.h:55: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 slot0light[27]; data/dsdcc-1.8.6/dsd_state.h:56: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 slot1light[27]; data/dsdcc-1.8.6/dsd_state.h:58: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 algid[9]; data/dsdcc-1.8.6/dsd_state.h:59: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 keyid[17]; data/dsdcc-1.8.6/dsd_symbol.cpp:58: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(m_zeroCrossingCorrectionProfile, m_zeroCrossingCorrectionProfile4800, 5*sizeof(int)); data/dsdcc-1.8.6/dsd_symbol.cpp:315: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(m_lbuf2, &m_lbuf[32 + m_lmmidx - nbSymbols], nbSymbols * sizeof(int)); // copy to working buffer data/dsdcc-1.8.6/dsd_symbol.cpp:363: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(m_zeroCrossingCorrectionProfile, m_zeroCrossingCorrectionProfile9600, 11*sizeof(int)); data/dsdcc-1.8.6/dsd_symbol.cpp:372: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(m_zeroCrossingCorrectionProfile, m_zeroCrossingCorrectionProfile4800, 11*sizeof(int)); data/dsdcc-1.8.6/dsd_symbol.cpp:381: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(m_zeroCrossingCorrectionProfile, m_zeroCrossingCorrectionProfile2400, 11*sizeof(int)); data/dsdcc-1.8.6/dsd_symbol.cpp:390: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(m_zeroCrossingCorrectionProfile, m_zeroCrossingCorrectionProfile4800, 11*sizeof(int)); data/dsdcc-1.8.6/dstar.cpp:508: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 radioheaderbuffer2[660]; data/dsdcc-1.8.6/dstar.cpp:509: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 radioheaderbuffer3[660]; data/dsdcc-1.8.6/dstar.cpp:510: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 radioheader[41]; data/dsdcc-1.8.6/dstar.cpp:596: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 crcStr[5]; data/dsdcc-1.8.6/dstar.cpp:597: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(crcStr, d, 4); data/dsdcc-1.8.6/dstar.cpp:606: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 latStr[7+1]; data/dsdcc-1.8.6/dstar.cpp:607: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 lonStr[8+1]; data/dsdcc-1.8.6/dstar.cpp:617: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(latStr, pch, 7); data/dsdcc-1.8.6/dstar.cpp:627: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(lonStr, pch, 8); data/dsdcc-1.8.6/dstar.h:155:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char radioHeader[41]; data/dsdcc-1.8.6/dstar.h:157:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[20+1]; data/dsdcc-1.8.6/dstar.h:159:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char gpsNMEA[256]; data/dsdcc-1.8.6/dstar.h:162:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char locator[6+1]; data/dsdcc-1.8.6/dstar.h:210:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char nullBytes[4]; data/dsdcc-1.8.6/dstar.h:211:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char slowdata[4]; data/dsdcc-1.8.6/dstar.h:224:26: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_terminationSequence[48]; data/dsdcc-1.8.6/fec.cpp:410: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(&decodedBits[8*ic], &rxBits[12*ic], 8); data/dsdcc-1.8.6/fec.cpp:494: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(&decodedBits[11*ic], &rxBits[16*ic], 11); data/dsdcc-1.8.6/fec.cpp:578: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(&decodedBits[11*ic], &rxBits[15*ic], 11); data/dsdcc-1.8.6/fec.h:36:11: [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 m_corr[8]; //!< single bit error correction by syndrome index data/dsdcc-1.8.6/fec.h:37:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_G[7*4]; //!< Generator matrix of bits data/dsdcc-1.8.6/fec.h:38:24: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_H[7*3]; //!< Parity check matrix of bits data/dsdcc-1.8.6/fec.h:52: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 m_corr[16]; //!< single bit error correction by syndrome index data/dsdcc-1.8.6/fec.h:53:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_G[12*8]; //!< Generator matrix of bits data/dsdcc-1.8.6/fec.h:54:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_H[12*4]; //!< Parity check matrix of bits data/dsdcc-1.8.6/fec.h:68: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 m_corr[16]; //!< single bit error correction by syndrome index data/dsdcc-1.8.6/fec.h:69:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_G[15*11]; //!< Generator matrix of bits data/dsdcc-1.8.6/fec.h:70:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_H[15*4]; //!< Parity check matrix of bits data/dsdcc-1.8.6/fec.h:84: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 m_corr[32]; //!< single bit error correction by syndrome index data/dsdcc-1.8.6/fec.h:85:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_G[16*11]; //!< Generator matrix of bits data/dsdcc-1.8.6/fec.h:86:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_H[16*5]; //!< Parity check matrix of bits data/dsdcc-1.8.6/fec.h:100:11: [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 m_corr[4096][3]; //!< up to 3 bit error correction by syndrome index data/dsdcc-1.8.6/fec.h:101:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_G[20*8]; //!< Generator matrix of bits data/dsdcc-1.8.6/fec.h:102:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_H[20*12]; //!< Parity check matrix of bits data/dsdcc-1.8.6/fec.h:116: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 m_corr[2048][3]; //!< up to 3 bit error correction by syndrome index data/dsdcc-1.8.6/fec.h:117:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_G[23*12]; //!< Generator matrix of bits data/dsdcc-1.8.6/fec.h:118:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_H[23*11]; //!< Parity check matrix of bits data/dsdcc-1.8.6/fec.h:132: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 m_corr[4096][3]; //!< up to 3 bit error correction by syndrome index data/dsdcc-1.8.6/fec.h:133:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_G[24*12]; //!< Generator matrix of bits data/dsdcc-1.8.6/fec.h:134:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_H[24*12]; //!< Parity check matrix of bits data/dsdcc-1.8.6/fec.h:148:11: [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 m_corr[512][2]; //!< up to 2 bit error correction by syndrome index data/dsdcc-1.8.6/fec.h:149:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_G[16*7]; //!< Generator matrix of bits data/dsdcc-1.8.6/fec.h:150:24: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_H[16*9]; //!< Parity check matrix of bits data/dsdcc-1.8.6/iirfilter.h:88: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(m_a, b, (Order+1)*sizeof(Type)); data/dsdcc-1.8.6/iirfilter.h:89: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(m_b, a, (Order+1)*sizeof(Type)); data/dsdcc-1.8.6/nxdn.cpp:521:9: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(m_rfChannelStr, "XX"); data/dsdcc-1.8.6/nxdn.cpp:535: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(m_rfChannelStr, nxdnRFChannelTypeText[(int) m_rfChannel], 3); data/dsdcc-1.8.6/nxdn.h:88: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 *nxdnRFChannelTypeText[5]; data/dsdcc-1.8.6/nxdn.h:140:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char m_sacchRaw[60]; //!< SACCH bits retrieved from RF channel data/dsdcc-1.8.6/nxdn.h:141:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char m_temp[90]; //!< SACCH working area; data/dsdcc-1.8.6/nxdn.h:142:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char m_data[5]; //!< SACCH bytes after de-convolution (36 bits) data/dsdcc-1.8.6/nxdn.h:161:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char m_cacRaw[300]; //!< CAC outbound bits before Viterbi decoding data/dsdcc-1.8.6/nxdn.h:162:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char m_temp[420]; //!< CAC outbound working area data/dsdcc-1.8.6/nxdn.h:163:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char m_data[22]; //!< CAC outbound bytes after de-convolution (175 bits) data/dsdcc-1.8.6/nxdn.h:177:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char m_cacRaw[252]; //!< Long CAC bits before Viterbi decoding data/dsdcc-1.8.6/nxdn.h:178:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char m_temp[420]; //!< Long CAC working area data/dsdcc-1.8.6/nxdn.h:179:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char m_data[20]; //!< Long CAC bytes after de-convolution (156 bits) data/dsdcc-1.8.6/nxdn.h:191:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char m_cacRaw[252]; //!< Short CAC bits before Viterbi decoding data/dsdcc-1.8.6/nxdn.h:192:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char m_temp[420]; //!< Short CAC working area data/dsdcc-1.8.6/nxdn.h:193:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char m_data[16]; //!< Short CAC bytes after de-convolution (126 bits) data/dsdcc-1.8.6/nxdn.h:206:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char m_facch1Raw[192]; //!< FACCH1 bits before Viterbi decoding data/dsdcc-1.8.6/nxdn.h:207:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char m_temp[210]; //!< FACCH1 working area data/dsdcc-1.8.6/nxdn.h:208:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char m_data[12]; //!< FACCH1 bytes after de-convolution (96 bits) data/dsdcc-1.8.6/nxdn.h:223:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char m_udchRaw[406]; //!< UDCH bits before Viterbi decoding data/dsdcc-1.8.6/nxdn.h:224:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char m_temp[420]; //!< UDCH working area data/dsdcc-1.8.6/nxdn.h:225:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char m_data[26]; //!< UDCH bytes after de-convolution (203 bits) data/dsdcc-1.8.6/nxdn.h:251:11: [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 m_syncBuffer[10]; //!< buffer for frame sync: 10 dibits data/dsdcc-1.8.6/nxdn.h:252:11: [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 m_lichBuffer[8]; //!< LICH bits expanded to char (0 or 1) data/dsdcc-1.8.6/nxdn.h:278: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 m_rfChannelStr[2+1]; data/dsdcc-1.8.6/nxdn.h:285:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char m_voiceTestPattern[36]; data/dsdcc-1.8.6/nxdnmessage.cpp:103: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(m_data, data, 10); data/dsdcc-1.8.6/nxdnmessage.cpp:109: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(m_data, data, 22); data/dsdcc-1.8.6/nxdnmessage.cpp:115: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(m_data, data, 18); data/dsdcc-1.8.6/nxdnmessage.cpp:121: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(m_data, data, 12); data/dsdcc-1.8.6/nxdnmessage.cpp:127: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(m_data, data, 16); data/dsdcc-1.8.6/nxdnmessage.h:93: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 m_data[22]; //!< Maximum 22 bytes data/dsdcc-1.8.6/pn.h:50: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 m_byteTable[64]; data/dsdcc-1.8.6/pn.h:51:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char m_bitTable[512]; data/dsdcc-1.8.6/testfec/crc.cpp:114: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 dstarHeader[41] = { data/dsdcc-1.8.6/testfec/crc.cpp:126: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 dstarCRCGPS[71+2] = { data/dsdcc-1.8.6/testfec/crc.cpp:146: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 dstarCRCGPS_2[98] = "$$CRC8C55,ALBERTO-9>API510,DSTAR*:/182454h4318.59N/00638.13E>/A=000000ICOM-ID5100 TX 10w ant.97cm"; data/dsdcc-1.8.6/testfec/golay20.cpp:46: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 msg[8] = {1, 0, 0, 1, 0, 1, 0, 0}; data/dsdcc-1.8.6/testfec/golay20.cpp:47: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 er0[20] = {0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; data/dsdcc-1.8.6/testfec/golay20.cpp:48:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char codeword[20]; data/dsdcc-1.8.6/testfec/golay23.cpp:46: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 msg[12] = {1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0}; data/dsdcc-1.8.6/testfec/golay23.cpp:47: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 er0[23] = {0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; data/dsdcc-1.8.6/testfec/golay23.cpp:48:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char codeword[23]; data/dsdcc-1.8.6/testfec/golay24.cpp:46: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 msg[12] = {1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0}; data/dsdcc-1.8.6/testfec/golay24.cpp:47: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 er0[24] = {0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; data/dsdcc-1.8.6/testfec/golay24.cpp:48:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char codeword[24]; data/dsdcc-1.8.6/testfec/hamming12.cpp:22: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 decoded[8]; data/dsdcc-1.8.6/testfec/hamming12.cpp:48:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char msg[8] = {1, 0, 0, 1, 1, 1, 0, 1}; data/dsdcc-1.8.6/testfec/hamming12.cpp:49: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 er0[12] = {0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0}; data/dsdcc-1.8.6/testfec/hamming12.cpp:50: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 codeword[12]; data/dsdcc-1.8.6/testfec/hamming15.cpp:22: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 decoded[11]; data/dsdcc-1.8.6/testfec/hamming15.cpp:48:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char msg[11] = {1, 0, 0, 1, 1, 1, 0, 1, 1, 0, 1}; data/dsdcc-1.8.6/testfec/hamming15.cpp:49: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 er0[15] = {0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; data/dsdcc-1.8.6/testfec/hamming15.cpp:50: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 codeword[15]; data/dsdcc-1.8.6/testfec/hamming16.cpp:22: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 decoded[11]; data/dsdcc-1.8.6/testfec/hamming16.cpp:48:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char msg[11] = {1, 0, 0, 1, 1, 1, 0, 1, 1, 0, 1}; data/dsdcc-1.8.6/testfec/hamming16.cpp:49: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 er0[16] = {0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; data/dsdcc-1.8.6/testfec/hamming16.cpp:50: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 codeword[16]; data/dsdcc-1.8.6/testfec/hamming7.cpp:46: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 msg[4] = {1, 0, 0, 1}; data/dsdcc-1.8.6/testfec/hamming7.cpp:47: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 er0[7] = {0, 0, 1, 0, 0, 0, 0}; data/dsdcc-1.8.6/testfec/hamming7.cpp:48:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char codeword[7]; data/dsdcc-1.8.6/testfec/pn.cpp:22:10: [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 NXDN_PN_REF[48] = {0x27, 0x2a, 0xc3, 0x7a, 0x6e, 0x45, 0xa, 0xd3, 0xf6, 0x49, 0x6f, 0xc9, 0xa9, 0x98, 0xc, 0x65, 0x1a, 0x5f, 0xd1, 0x63, 0xac, 0xb3, 0xc7, 0xdd, 0x6, 0xb6, 0xec, 0x16, 0xbe, 0xaa, 0x5, 0x2b, 0xcb, 0xb8, 0x1c, 0xe9, 0x3d, 0x75, 0x12, 0x19, 0xc2, 0xf6, 0xcd, 0xe, 0xf0, 0xff, 0x83, 0xdf}; data/dsdcc-1.8.6/testfec/qr.cpp:47:11: [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 msg[7]; data/dsdcc-1.8.6/testfec/qr.cpp:48:11: [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 codeword[16]; data/dsdcc-1.8.6/testfec/qr.cpp:103: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 msg[7] = {0, 1, 1, 0, 1, 0, 1}; data/dsdcc-1.8.6/testfec/qr.cpp:104: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 codeword[16]; data/dsdcc-1.8.6/testfec/viterbi.cpp:78: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 text[44]; data/dsdcc-1.8.6/testfec/viterbi.cpp:79:11: [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 bits[43*8]; data/dsdcc-1.8.6/testfec/viterbi.cpp:80: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 textBack[44]; data/dsdcc-1.8.6/testfec/viterbi.cpp:82:2: [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(text, "The quick brown fox jumps over the lazy dog"); data/dsdcc-1.8.6/testfec/viterbi.cpp:146:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const unsigned char dataBitsA[6+2] = {1, 0, 1, 1, 0, 0, 0, 0}; data/dsdcc-1.8.6/testfec/viterbi.cpp:147:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const unsigned char correctSymbolsA[6] = {3, 3, 1, 0, 1, 2}; data/dsdcc-1.8.6/testfec/viterbi.cpp:148:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const unsigned char corruptSymbols[6] = {1, 0, 0, 2, 0, 1}; data/dsdcc-1.8.6/testfec/viterbi.cpp:149: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 symbols[6+2]; data/dsdcc-1.8.6/testfec/viterbi.cpp:150: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 decodedDataBits[6+2]; data/dsdcc-1.8.6/testfec/viterbi.cpp:196: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 text[44], decodedText[44]; data/dsdcc-1.8.6/testfec/viterbi.cpp:197:5: [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(text, "The quick brown fox jumps over the lazy dog"); data/dsdcc-1.8.6/testfec/viterbi.cpp:198: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 bitsPh[44*8]; data/dsdcc-1.8.6/testfec/viterbi.cpp:199: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 symbolsPh[44*8]; data/dsdcc-1.8.6/testfec/viterbi.cpp:200: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 decodedBitsPh[44*8]; data/dsdcc-1.8.6/testfec/viterbi.cpp:230: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 text[41], decodedText[41]; data/dsdcc-1.8.6/testfec/viterbi.cpp:232:5: [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(text, "The quick brown fox jumps over the lazy"); data/dsdcc-1.8.6/testfec/viterbi.cpp:233: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 bitsPh[41*8 + 2]; data/dsdcc-1.8.6/testfec/viterbi.cpp:234: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 symbolsPh[41*8 + 2]; data/dsdcc-1.8.6/testfec/viterbi.cpp:235: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 decodedBitsPh[41*8 + 2]; data/dsdcc-1.8.6/testfec/viterbi.cpp:270:11: [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 symbolsPhBits[660]; data/dsdcc-1.8.6/testfec/viterbi.cpp:295:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const unsigned char dataBitsA[6] = {1, 0, 1, 1, 0, 0}; data/dsdcc-1.8.6/testfec/viterbi.cpp:296:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const unsigned char correctSymbolsA[6] = {3, 3, 1, 0, 1, 2}; data/dsdcc-1.8.6/testfec/viterbi.cpp:297:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const unsigned char corruptSymbols[6] = {1, 0, 0, 2, 0, 1}; data/dsdcc-1.8.6/testfec/viterbi.cpp:342: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 text[44], decodedText[44]; data/dsdcc-1.8.6/testfec/viterbi.cpp:343:5: [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(text, "The quick brown fox jumps over the lazy dog"); data/dsdcc-1.8.6/testfec/viterbi.cpp:344: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 bitsPh[44*8]; data/dsdcc-1.8.6/testfec/viterbi.cpp:345: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 symbolsPh[44*8]; data/dsdcc-1.8.6/testfec/viterbi.cpp:346: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 decodedBitsPh[44*8]; data/dsdcc-1.8.6/testfec/viterbi35.cpp:79: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 text[44]; data/dsdcc-1.8.6/testfec/viterbi35.cpp:80:11: [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 bits[43*8]; data/dsdcc-1.8.6/testfec/viterbi35.cpp:81: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 textBack[44]; data/dsdcc-1.8.6/testfec/viterbi35.cpp:83:2: [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(text, "The quick brown fox jumps over the lazy dog"); data/dsdcc-1.8.6/testfec/viterbi35.cpp:145:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const unsigned char dataBitsA[6+2] = {1, 0, 1, 1, 0, 0, 0, 0}; data/dsdcc-1.8.6/testfec/viterbi35.cpp:146:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const unsigned char correctSymbolsA[6] = {3, 3, 1, 0, 1, 2}; data/dsdcc-1.8.6/testfec/viterbi35.cpp:147:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const unsigned char corruptSymbols[6] = {2, 1, 0, 1, 0, 2}; data/dsdcc-1.8.6/testfec/viterbi35.cpp:148: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 symbols[6+2]; data/dsdcc-1.8.6/testfec/viterbi35.cpp:149: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 decodedDataBits[6+2]; data/dsdcc-1.8.6/testfec/viterbi35.cpp:193: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 text[44], decodedText[44]; data/dsdcc-1.8.6/testfec/viterbi35.cpp:194:5: [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(text, "The quick brown fox jumps over the lazy dog"); data/dsdcc-1.8.6/testfec/viterbi35.cpp:195: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 bitsPh[44*8]; data/dsdcc-1.8.6/testfec/viterbi35.cpp:196: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 symbolsPh[44*8]; data/dsdcc-1.8.6/testfec/viterbi35.cpp:197: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 decodedBitsPh[44*8]; data/dsdcc-1.8.6/testfec/viterbi35.cpp:226: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 text[41], decodedText[41]; data/dsdcc-1.8.6/testfec/viterbi35.cpp:228:5: [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(text, "The quick brown fox jumps over the lazy "); data/dsdcc-1.8.6/testfec/viterbi35.cpp:229: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 bitsPh[41*8 + 2]; data/dsdcc-1.8.6/testfec/viterbi35.cpp:230: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 symbolsPh[41*8 + 2]; data/dsdcc-1.8.6/testfec/viterbi35.cpp:231: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 decodedBitsPh[41*8 + 2]; data/dsdcc-1.8.6/testfec/viterbi35.cpp:271:11: [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 symbolsPhBits[660]; data/dsdcc-1.8.6/testfec/viterbi35.cpp:296:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const unsigned char dataBitsA[10] = {1, 0, 1, 1, 0, 0, 0, 1, 0, 1}; data/dsdcc-1.8.6/testfec/viterbi35.cpp:297:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const unsigned char corruptSymbols[10] = {1, 0, 0, 2, 0, 0, 1, 0, 0, 2}; data/dsdcc-1.8.6/testfec/viterbi35.cpp:304: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(dataBits, dataBitsA, 10); data/dsdcc-1.8.6/testfec/viterbi35.cpp:347: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 text[44], decodedText[44]; data/dsdcc-1.8.6/testfec/viterbi35.cpp:348:5: [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(text, "The quick brown fox jumps over the lazy dog"); data/dsdcc-1.8.6/testfec/viterbi35.cpp:349: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 bitsPh[44*8]; data/dsdcc-1.8.6/testfec/viterbi35.cpp:350: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 symbolsPh[44*8]; data/dsdcc-1.8.6/testfec/viterbi35.cpp:351: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 decodedBitsPh[44*8]; data/dsdcc-1.8.6/ysf.cpp:326:17: [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(&m_fichBits[12*i], &m_fichGolay[24*i], 12); data/dsdcc-1.8.6/ysf.cpp:398:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char bytes[22]; data/dsdcc-1.8.6/ysf.cpp:429: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(m_destId, dchBytes, 5); data/dsdcc-1.8.6/ysf.cpp:431: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(m_srcId, &dchBytes[5], 5); data/dsdcc-1.8.6/ysf.cpp:436: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(m_dest, dchBytes, 10); data/dsdcc-1.8.6/ysf.cpp:438: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(m_src, &dchBytes[10], 10); data/dsdcc-1.8.6/ysf.cpp:446: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(m_downlink, dchBytes, 10); data/dsdcc-1.8.6/ysf.cpp:448: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(m_uplink, &dchBytes[10], 10); data/dsdcc-1.8.6/ysf.cpp:455: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(m_rem1, dchBytes, 5); data/dsdcc-1.8.6/ysf.cpp:457: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(m_rem2, &dchBytes[5], 5); data/dsdcc-1.8.6/ysf.cpp:465: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(m_rem3, dchBytes, 5); data/dsdcc-1.8.6/ysf.cpp:467: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(m_rem4, &dchBytes[5], 5); data/dsdcc-1.8.6/ysf.cpp:513:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char bytes[22]; data/dsdcc-1.8.6/ysf.cpp:583:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char bytes[12]; data/dsdcc-1.8.6/ysf.cpp:592:21: [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(m_dest, bytes, 10); data/dsdcc-1.8.6/ysf.cpp:597:21: [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(m_src, bytes, 10); data/dsdcc-1.8.6/ysf.cpp:602:21: [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(m_downlink, bytes, 10); data/dsdcc-1.8.6/ysf.cpp:607:21: [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(m_uplink, bytes, 10); data/dsdcc-1.8.6/ysf.cpp:707:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char bytes[22]; data/dsdcc-1.8.6/ysf.cpp:839: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(&m_vfrBits[81], &m_vfrBitsRaw[137], 7); data/dsdcc-1.8.6/ysf.cpp:868: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 bytes[22]; data/dsdcc-1.8.6/ysf.h:105: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(&m_frameInfo[0], bytes, 32); data/dsdcc-1.8.6/ysf.h:202: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 *ysfChannelTypeText[4]; data/dsdcc-1.8.6/ysf.h:203: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 *ysfDataTypeText[4]; data/dsdcc-1.8.6/ysf.h:204: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 *ysfCallModeText[4]; data/dsdcc-1.8.6/ysf.h:230: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 m_fichRaw[100]; //!< FICH dibits after de-interleave + Viterbi stuff symbols data/dsdcc-1.8.6/ysf.h:231: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 m_fichGolay[100]; //!< FICH Golay encoded bits + 4 stuff bits + Viterbi stuff bits data/dsdcc-1.8.6/ysf.h:232: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 m_fichBits[48]; //!< Final FICH + CRC16 data/dsdcc-1.8.6/ysf.h:236: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 m_dch1Raw[180]; //!< DCH1 dibits after de-interleave data/dsdcc-1.8.6/ysf.h:237: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 m_dch1Bits[180]; //!< DCH1 bits after de-convolution data/dsdcc-1.8.6/ysf.h:239: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 m_dch2Raw[180]; //!< DCH2 dibits after de-interleave data/dsdcc-1.8.6/ysf.h:240: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 m_dch2Bits[180]; //!< DCH2 bits after de-convolution data/dsdcc-1.8.6/ysf.h:242: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 m_vd2BitsRaw[104]; //!< V/D type 2 VCH+VeCH after de-interleave and de-whitening data/dsdcc-1.8.6/ysf.h:243: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 m_vd2MBEBits[72]; data/dsdcc-1.8.6/ysf.h:245: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 m_vfrBitsRaw[144]; //!< VFR bits after de-interleave and de-scarambling data/dsdcc-1.8.6/ysf.h:246: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 m_vfrBits[88]; //!< VFR bits after FEC data/dsdcc-1.8.6/ysf.h:253: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 m_bitWork[48]; data/dsdcc-1.8.6/ysf.h: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 m_dest[10+1]; //!< Destination callsign from CSD1 data/dsdcc-1.8.6/ysf.h:256: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 m_src[10+1]; //!< Source callsign from CSD1 data/dsdcc-1.8.6/ysf.h:257: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 m_downlink[10+1]; //!< Downlink callsign from CSD2 data/dsdcc-1.8.6/ysf.h:258: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 m_uplink[10+1]; //!< Uplink callsign from CSD2 data/dsdcc-1.8.6/ysf.h:259: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 m_rem1[5+1]; //!< Callsign supplementary information #1 from CSD3 data/dsdcc-1.8.6/ysf.h:260: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 m_rem2[5+1]; //!< Callsign supplementary information #2 from CSD3 data/dsdcc-1.8.6/ysf.h:261: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 m_rem3[5+1]; //!< Callsign supplementary information #3 from CSD3 data/dsdcc-1.8.6/ysf.h:262: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 m_rem4[5+1]; //!< Callsign supplementary information #4 from CSD3 data/dsdcc-1.8.6/ysf.h:263: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 m_destId[5+1]; //!< Destination radio ID data/dsdcc-1.8.6/ysf.h:264: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 m_srcId[5+1]; //!< Source radio ID data/dsdcc-1.8.6/dsd_main.cpp:250:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(log_file, (const char *) optarg, 1023); data/dsdcc-1.8.6/dsd_main.cpp:254:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(formattext_file, (const char *) optarg, 1023); data/dsdcc-1.8.6/dsd_main.cpp:265:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(in_file, (const char *) optarg, 1023); data/dsdcc-1.8.6/dsd_main.cpp:269:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(out_file, (const char *) optarg, 1023); data/dsdcc-1.8.6/dsd_main.cpp:274:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(serialDevice, (const char *) optarg, 16); data/dsdcc-1.8.6/dsd_main.cpp:386:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(log_file) > 0) { data/dsdcc-1.8.6/dsd_main.cpp:471:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int result = read(in_file_fd, (void *) &sample, sizeof(short)); data/dsdcc-1.8.6/dstar.cpp:578:23: [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). (int) strlen(m_slowData.gpsNMEA)-10, data/dsdcc-1.8.6/testfec/crc.cpp:69:98: [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). unsigned long ret_crcbitbybit = crc.crcbitbybit((unsigned char *)string, (unsigned long) strlen(string)); data/dsdcc-1.8.6/testfec/crc.cpp:70:102: [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). unsigned long ret_crcbitbybitfast = crc.crcbitbybitfast((unsigned char *)string, (unsigned long) strlen(string)); data/dsdcc-1.8.6/testfec/crc.cpp:71:95: [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). unsigned long ret_crctable = crc.crctable((unsigned char *)string, (unsigned long) strlen(string)); data/dsdcc-1.8.6/testfec/crc.cpp:72:99: [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). unsigned long ret_crctablefast = crc.crctablefast((unsigned char *)string, (unsigned long) strlen(string)); data/dsdcc-1.8.6/testfec/crc.cpp:193:73: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (dStarCRC.check_crc((unsigned char *) &dstarCRCGPS_2[10], ((int) strlen(dstarCRCGPS_2) - 11), dstarCRCGPS_2_crc)) { data/dsdcc-1.8.6/testfec/crc.cpp:199:25: [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). std::cout << ((int) strlen(dstarCRCGPS_2) - 11) << std::endl; ANALYSIS SUMMARY: Hits = 417 Lines analyzed = 19490 in approximately 0.59 seconds (33232 lines/second) Physical Source Lines of Code (SLOC) = 14635 Hits@level = [0] 101 [1] 14 [2] 394 [3] 1 [4] 8 [5] 0 Hits@level+ = [0+] 518 [1+] 417 [2+] 403 [3+] 9 [4+] 8 [5+] 0 Hits/KSLOC@level+ = [0+] 35.3946 [1+] 28.4933 [2+] 27.5367 [3+] 0.614964 [4+] 0.546635 [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.