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/centrifuge-1.0.3/aligner_bt.cpp Examining data/centrifuge-1.0.3/aligner_bt.h Examining data/centrifuge-1.0.3/aligner_cache.cpp Examining data/centrifuge-1.0.3/aligner_cache.h Examining data/centrifuge-1.0.3/aligner_metrics.h Examining data/centrifuge-1.0.3/aligner_result.h Examining data/centrifuge-1.0.3/aligner_seed.cpp Examining data/centrifuge-1.0.3/aligner_seed.h Examining data/centrifuge-1.0.3/aligner_seed_policy.cpp Examining data/centrifuge-1.0.3/aligner_seed_policy.h Examining data/centrifuge-1.0.3/aligner_sw.cpp Examining data/centrifuge-1.0.3/aligner_sw.h Examining data/centrifuge-1.0.3/aligner_sw_common.h Examining data/centrifuge-1.0.3/aligner_sw_nuc.h Examining data/centrifuge-1.0.3/aligner_swsse.cpp Examining data/centrifuge-1.0.3/aligner_swsse.h Examining data/centrifuge-1.0.3/aligner_swsse_ee_i16.cpp Examining data/centrifuge-1.0.3/aligner_swsse_ee_u8.cpp Examining data/centrifuge-1.0.3/aligner_swsse_loc_i16.cpp Examining data/centrifuge-1.0.3/aligner_swsse_loc_u8.cpp Examining data/centrifuge-1.0.3/aln_sink.h Examining data/centrifuge-1.0.3/assert_helpers.h Examining data/centrifuge-1.0.3/binary_sa_search.h Examining data/centrifuge-1.0.3/bitpack.h Examining data/centrifuge-1.0.3/blockwise_sa.h Examining data/centrifuge-1.0.3/bt2_idx.cpp Examining data/centrifuge-1.0.3/bt2_io.h Examining data/centrifuge-1.0.3/bt2_util.h Examining data/centrifuge-1.0.3/btypes.h Examining data/centrifuge-1.0.3/ccnt_lut.cpp Examining data/centrifuge-1.0.3/centrifuge_build.cpp Examining data/centrifuge-1.0.3/centrifuge_build_main.cpp Examining data/centrifuge-1.0.3/centrifuge_compress.cpp Examining data/centrifuge-1.0.3/centrifuge_inspect.cpp Examining data/centrifuge-1.0.3/centrifuge_main.cpp Examining data/centrifuge-1.0.3/centrifuge_report.cpp Examining data/centrifuge-1.0.3/diff_sample.cpp Examining data/centrifuge-1.0.3/diff_sample.h Examining data/centrifuge-1.0.3/dp_framer.cpp Examining data/centrifuge-1.0.3/dp_framer.h Examining data/centrifuge-1.0.3/ds.cpp Examining data/centrifuge-1.0.3/ds.h Examining data/centrifuge-1.0.3/edit.cpp Examining data/centrifuge-1.0.3/edit.h Examining data/centrifuge-1.0.3/endian_swap.h Examining data/centrifuge-1.0.3/fast_mutex.h Examining data/centrifuge-1.0.3/filebuf.h Examining data/centrifuge-1.0.3/formats.h Examining data/centrifuge-1.0.3/group_walk.cpp Examining data/centrifuge-1.0.3/group_walk.h Examining data/centrifuge-1.0.3/hi_aligner.h Examining data/centrifuge-1.0.3/hier_idx.h Examining data/centrifuge-1.0.3/hier_idx_common.h Examining data/centrifuge-1.0.3/hyperloglogbias.h Examining data/centrifuge-1.0.3/hyperloglogplus.h Examining data/centrifuge-1.0.3/limit.cpp Examining data/centrifuge-1.0.3/limit.h Examining data/centrifuge-1.0.3/ls.cpp Examining data/centrifuge-1.0.3/ls.h Examining data/centrifuge-1.0.3/mask.cpp Examining data/centrifuge-1.0.3/mask.h Examining data/centrifuge-1.0.3/mem_ids.h Examining data/centrifuge-1.0.3/mm.h Examining data/centrifuge-1.0.3/multikey_qsort.h Examining data/centrifuge-1.0.3/opts.h Examining data/centrifuge-1.0.3/outq.cpp Examining data/centrifuge-1.0.3/outq.h Examining data/centrifuge-1.0.3/pat.cpp Examining data/centrifuge-1.0.3/pat.h Examining data/centrifuge-1.0.3/pe.cpp Examining data/centrifuge-1.0.3/pe.h Examining data/centrifuge-1.0.3/presets.cpp Examining data/centrifuge-1.0.3/presets.h Examining data/centrifuge-1.0.3/processor_support.h Examining data/centrifuge-1.0.3/qual.cpp Examining data/centrifuge-1.0.3/qual.h Examining data/centrifuge-1.0.3/random_source.cpp Examining data/centrifuge-1.0.3/random_source.h Examining data/centrifuge-1.0.3/random_util.cpp Examining data/centrifuge-1.0.3/random_util.h Examining data/centrifuge-1.0.3/read.h Examining data/centrifuge-1.0.3/read_qseq.cpp Examining data/centrifuge-1.0.3/ref_coord.cpp Examining data/centrifuge-1.0.3/ref_coord.h Examining data/centrifuge-1.0.3/ref_read.cpp Examining data/centrifuge-1.0.3/ref_read.h Examining data/centrifuge-1.0.3/reference.cpp Examining data/centrifuge-1.0.3/reference.h Examining data/centrifuge-1.0.3/scoring.cpp Examining data/centrifuge-1.0.3/scoring.h Examining data/centrifuge-1.0.3/search_globals.h Examining data/centrifuge-1.0.3/sequence_io.h Examining data/centrifuge-1.0.3/shmem.cpp Examining data/centrifuge-1.0.3/shmem.h Examining data/centrifuge-1.0.3/simple_func.cpp Examining data/centrifuge-1.0.3/simple_func.h Examining data/centrifuge-1.0.3/sse_util.cpp Examining data/centrifuge-1.0.3/sse_util.h Examining data/centrifuge-1.0.3/sstring.cpp Examining data/centrifuge-1.0.3/sstring.h Examining data/centrifuge-1.0.3/str_util.h Examining data/centrifuge-1.0.3/taxonomy.h Examining data/centrifuge-1.0.3/third_party/MurmurHash3.cpp Examining data/centrifuge-1.0.3/third_party/MurmurHash3.h Examining data/centrifuge-1.0.3/third_party/cpuid.h Examining data/centrifuge-1.0.3/threading.h Examining data/centrifuge-1.0.3/timer.h Examining data/centrifuge-1.0.3/tinythread.cpp Examining data/centrifuge-1.0.3/tinythread.h Examining data/centrifuge-1.0.3/tokenize.h Examining data/centrifuge-1.0.3/util.h Examining data/centrifuge-1.0.3/word_io.h Examining data/centrifuge-1.0.3/zbox.h Examining data/centrifuge-1.0.3/bt2_idx.h Examining data/centrifuge-1.0.3/centrifuge.cpp Examining data/centrifuge-1.0.3/classifier.h Examining data/centrifuge-1.0.3/alphabet.cpp Examining data/centrifuge-1.0.3/alphabet.h FINAL RESULTS: data/centrifuge-1.0.3/filebuf.h:222:9: [5] (buffer) gets: Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead. size_t gets(char *buf, size_t len) { data/centrifuge-1.0.3/pat.h:1013:22: [5] (buffer) gets: Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead. size_t rd = filebuf.gets(buf, buflen); data/centrifuge-1.0.3/aligner_cache.cpp:168:17: [3] (buffer) getopt_long: 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. next_option = getopt_long(argc, argv, short_opts, long_opts, &option_index); data/centrifuge-1.0.3/aligner_seed.cpp:427:17: [3] (buffer) getopt_long: 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. next_option = getopt_long( data/centrifuge-1.0.3/aligner_sw.cpp:2873:17: [3] (buffer) getopt_long: 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. next_option = getopt_long(argc, argv, short_opts, long_opts, &option_index); data/centrifuge-1.0.3/aligner_sw.cpp:2926:2: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand(seed); data/centrifuge-1.0.3/bt2_idx.cpp:49:6: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if(getenv("CENTRIFUGE_INDEXES") != NULL) { data/centrifuge-1.0.3/bt2_idx.cpp:50:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. str = string(getenv("CENTRIFUGE_INDEXES")) + "/" + ebwtFileBase; data/centrifuge-1.0.3/centrifuge.cpp:1477:17: [3] (buffer) getopt_long: 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. next_option = getopt_long( data/centrifuge-1.0.3/centrifuge_build.cpp:262:17: [3] (buffer) getopt_long: 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. next_option = getopt_long( data/centrifuge-1.0.3/centrifuge_build.cpp:672:3: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand(seed); data/centrifuge-1.0.3/centrifuge_build.cpp:711:3: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand(seed); data/centrifuge-1.0.3/centrifuge_compress.cpp:253:17: [3] (buffer) getopt_long: 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. next_option = getopt_long( data/centrifuge-1.0.3/centrifuge_compress.cpp:1366:3: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand(seed); data/centrifuge-1.0.3/centrifuge_inspect.cpp:149:17: [3] (buffer) getopt_long: 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. next_option = getopt_long(argc, argv, short_options, long_options, &option_index); data/centrifuge-1.0.3/fast_mutex.h:97:7: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection(&mHandle); data/centrifuge-1.0.3/fast_mutex.h:137:7: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&mHandle); data/centrifuge-1.0.3/tinythread.cpp:61:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection(&mWaitersCountLock); data/centrifuge-1.0.3/tinythread.cpp:82:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&mWaitersCountLock); data/centrifuge-1.0.3/tinythread.cpp:98:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&mWaitersCountLock); data/centrifuge-1.0.3/tinythread.cpp:112:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&mWaitersCountLock); data/centrifuge-1.0.3/tinythread.h:168:7: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection(&mHandle); data/centrifuge-1.0.3/tinythread.h:191:7: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&mHandle); data/centrifuge-1.0.3/tinythread.h:257:7: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection(&mHandle); data/centrifuge-1.0.3/tinythread.h:283:7: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&mHandle); data/centrifuge-1.0.3/tinythread.h:424:7: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&mWaitersCountLock); data/centrifuge-1.0.3/aligner_cache.cpp:116: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 buf[5]; data/centrifuge-1.0.3/aligner_swsse_ee_i16.cpp:731:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, vbuf_r, sizeof(__m128i) * wordspercol); data/centrifuge-1.0.3/aligner_swsse_ee_i16.cpp:739:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, vbuf_r, sizeof(__m128i) * wordspercol); data/centrifuge-1.0.3/aligner_swsse_ee_u8.cpp:729:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, vbuf_r, sizeof(__m128i) * wordspercol); data/centrifuge-1.0.3/aligner_swsse_ee_u8.cpp:737:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, vbuf_r, sizeof(__m128i) * wordspercol); data/centrifuge-1.0.3/aligner_swsse_loc_i16.cpp:826:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, vbuf_r, sizeof(__m128i) * wordspercol); data/centrifuge-1.0.3/aligner_swsse_loc_i16.cpp:834:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, vbuf_r, sizeof(__m128i) * wordspercol); data/centrifuge-1.0.3/aligner_swsse_loc_u8.cpp:828:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, vbuf_r, sizeof(__m128i) * wordspercol); data/centrifuge-1.0.3/aligner_swsse_loc_u8.cpp:836:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, vbuf_r, sizeof(__m128i) * wordspercol); data/centrifuge-1.0.3/aln_sink.h:2134: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 buf[1024]; data/centrifuge-1.0.3/aln_sink.h:2239: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 buf[1024]; data/centrifuge-1.0.3/aln_sink.h:2297: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 buf[1024]; data/centrifuge-1.0.3/alphabet.cpp:403: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. signed char mask2iupac[16] = { data/centrifuge-1.0.3/alphabet.h:68:15: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern signed char mask2iupac[16]; data/centrifuge-1.0.3/bt2_idx.cpp:45:5: [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.open((str + ".1." + gEbwt_ext).c_str(), ios_base::in | ios::binary); data/centrifuge-1.0.3/bt2_idx.cpp:52:7: [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.open((str + ".1." + gEbwt_ext).c_str(), ios_base::in | ios::binary); data/centrifuge-1.0.3/bt2_idx.h:294:4: [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). f.open(name, std::ios_base::binary | std::ios_base::in); data/centrifuge-1.0.3/bt2_idx.h:1322:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[1024]; data/centrifuge-1.0.3/bt2_io.h:66:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((_in1 = fopen(_in1Str.c_str(), "rb")) == NULL) { data/centrifuge-1.0.3/bt2_io.h:72: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). if((_in2 = fopen(_in2Str.c_str(), "rb")) == NULL) { data/centrifuge-1.0.3/bt2_io.h:778:5: [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.open((instr + ".1." + gEbwt_ext).c_str(), ios_base::in | ios::binary); data/centrifuge-1.0.3/bt2_io.h:795:5: [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.open((instr + ".1." + gEbwt_ext).c_str(), ios_base::in | ios::binary); data/centrifuge-1.0.3/centrifuge.cpp:1789:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/centrifuge-1.0.3/centrifuge.cpp:3053:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). reportOfb.open(reportFile.c_str()); data/centrifuge-1.0.3/centrifuge_build.cpp:431:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *f = fopen(infiles[i].c_str(), "r"); data/centrifuge-1.0.3/centrifuge_build_main.cpp:47:6: [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.open(file); data/centrifuge-1.0.3/centrifuge_build_main.cpp:48:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[4096]; data/centrifuge-1.0.3/centrifuge_compress.cpp:459: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). FILE *f = fopen(fafile.c_str(), "r"); data/centrifuge-1.0.3/centrifuge_compress.cpp:1410:12: [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.open(file); data/centrifuge-1.0.3/centrifuge_compress.cpp:1411: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 buf[4096]; data/centrifuge-1.0.3/centrifuge_main.cpp:46:6: [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.open(file); data/centrifuge-1.0.3/centrifuge_main.cpp:47:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[4096]; data/centrifuge-1.0.3/diff_sample.h:785: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(sOrig, sPrimeArr, OFF_SIZE * sPrimeSz); data/centrifuge-1.0.3/ds.h:1737:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(list_, o.list_, cur_ * sizeof(T)); data/centrifuge-1.0.3/ds.h:2409:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(list_, o.list_, cur_ * sizeof(std::pair<K, V>)); data/centrifuge-1.0.3/filebuf.h:411:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, _lastn_buf, _lastn_cur); data/centrifuge-1.0.3/filebuf.h:450: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 _lastn_buf[LASTN_BUF_SZ]; // buffer of the last N chars dispensed data/centrifuge-1.0.3/filebuf.h:463:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). out_ = fopen(in, "wb"); data/centrifuge-1.0.3/filebuf.h:516: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 buf_[BUF_SZ]; // (large) input buffer data/centrifuge-1.0.3/filebuf.h:534:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). out_ = fopen(out.c_str(), binary ? "wb" : "w"); data/centrifuge-1.0.3/filebuf.h:550:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). out_ = fopen(out, binary ? "wb" : "w"); data/centrifuge-1.0.3/filebuf.h:574:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). out_ = fopen(out, binary ? "wb" : "w"); data/centrifuge-1.0.3/filebuf.h:603: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(&buf_[cur_], s.data(), slen); data/centrifuge-1.0.3/filebuf.h:608:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&buf_[cur_], s.data(), slen); data/centrifuge-1.0.3/filebuf.h:626: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(&buf_[cur_], s.toZBuf(), slen); data/centrifuge-1.0.3/filebuf.h:631:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&buf_[cur_], s.toZBuf(), slen); data/centrifuge-1.0.3/filebuf.h:647: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(&buf_[cur_], s, len); data/centrifuge-1.0.3/filebuf.h:652:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&buf_[cur_], s, len); data/centrifuge-1.0.3/filebuf.h:714: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 buf_[BUF_SZ]; // (large) input buffer data/centrifuge-1.0.3/hier_idx.h:1713:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((_in5 = fopen(_in5Str.c_str(), "rb")) == NULL) { data/centrifuge-1.0.3/hier_idx.h:1719: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). if((_in6 = fopen(_in6Str.c_str(), "rb")) == NULL) { data/centrifuge-1.0.3/multikey_qsort.h:657:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(sOrig, s, OFF_SIZE * slen); data/centrifuge-1.0.3/multikey_qsort.h:1083:27: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if(cnts[1] > 0) { memcpy(&s[cur], bkts[0], cnts[1] << (OFF_SIZE/4 + 1)); cur += cnts[1]; } data/centrifuge-1.0.3/multikey_qsort.h:1084:27: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if(cnts[2] > 0) { memcpy(&s[cur], bkts[1], cnts[2] << (OFF_SIZE/4 + 1)); cur += cnts[2]; } data/centrifuge-1.0.3/multikey_qsort.h:1085:27: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if(cnts[3] > 0) { memcpy(&s[cur], bkts[2], cnts[3] << (OFF_SIZE/4 + 1)); cur += cnts[3]; } data/centrifuge-1.0.3/multikey_qsort.h:1086:27: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if(cnts[4] > 0) { memcpy(&s[cur], bkts[3], cnts[4] << (OFF_SIZE/4 + 1)); } data/centrifuge-1.0.3/pat.cpp:674:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[2048]; data/centrifuge-1.0.3/pat.cpp:839:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cbuf[20]; data/centrifuge-1.0.3/pat.cpp:1000:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[4096]; data/centrifuge-1.0.3/pat.cpp:1008:26: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). char c = intToPhred33(atoi(qualToks_[j].c_str()), solQuals_); data/centrifuge-1.0.3/pat.cpp:1147:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cbuf[20]; data/centrifuge-1.0.3/pat.cpp:1375:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cbuf[20]; data/centrifuge-1.0.3/pat.cpp:1456:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[4096]; data/centrifuge-1.0.3/pat.cpp:1461:27: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). char c = intToPhred33(atoi(qualToks_[j].c_str()), solQuals_); data/centrifuge-1.0.3/pat.cpp:1737:28: [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). void SRAPatternSource::open() { data/centrifuge-1.0.3/pat.h:773:3: [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). open(); // open first file in the list data/centrifuge-1.0.3/pat.h:800:5: [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). open(); data/centrifuge-1.0.3/pat.h:832:5: [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). open(); data/centrifuge-1.0.3/pat.h:854:3: [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). open(); data/centrifuge-1.0.3/pat.h:883:7: [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). void open() { data/centrifuge-1.0.3/pat.h:890:20: [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). } else if((in = fopen(infiles_[filecur_].c_str(), "rb")) == NULL) { data/centrifuge-1.0.3/pat.h:1297:6: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 cbuf[20]; data/centrifuge-1.0.3/pat.h:1346: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 buf_[1024]; /// read buffer data/centrifuge-1.0.3/pat.h:1578:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cbuf[20]; data/centrifuge-1.0.3/pat.h:1658:9: [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). open(); // open first file in the list data/centrifuge-1.0.3/pat.h:1683:17: [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). open(); data/centrifuge-1.0.3/pat.h:1715:17: [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). open(); data/centrifuge-1.0.3/pat.h:1737:9: [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). open(); data/centrifuge-1.0.3/pat.h:1769:10: [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). void open(); data/centrifuge-1.0.3/read_qseq.cpp:62:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cbuf[20]; data/centrifuge-1.0.3/read_qseq.cpp:151:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[4096]; data/centrifuge-1.0.3/read_qseq.cpp:156:27: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). char c = intToPhred33(atoi(qualToks_[j].c_str()), solQuals_); data/centrifuge-1.0.3/reference.cpp:54:11: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f3 = fopen(s3.c_str(), "rb")) == NULL) { data/centrifuge-1.0.3/reference.cpp:62:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((f4 = fopen(s4.c_str(), "rb")) == NULL) { data/centrifuge-1.0.3/reference.cpp:182:17: [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). FILE *ftmp = fopen(s4.c_str(), "rb"); data/centrifuge-1.0.3/reference.cpp:217: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). FILE *f4 = fopen(s4.c_str(), "rb"); data/centrifuge-1.0.3/sequence_io.h:43:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *in = fopen(sstr_to_cstr(infile), "r"); data/centrifuge-1.0.3/sequence_io.h:80:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *in = fopen(sstr_to_cstr(infile), "r"); data/centrifuge-1.0.3/sstring.h:74:38: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static inline size_t sstr_len(const char s[N]) { data/centrifuge-1.0.3/sstring.h:691:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cs_, b, sz * sizeof(T)); data/centrifuge-1.0.3/sstring.h:702:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cs_, b.c_str(), sz * sizeof(T)); data/centrifuge-1.0.3/sstring.h:1153:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cs_, b, sizeof(uint32_t)*nwords()); data/centrifuge-1.0.3/sstring.h:1839:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cs_, b, sz * sizeof(T)); data/centrifuge-1.0.3/sstring.h:2008:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cs_ + len_, b, sz * sizeof(T)); data/centrifuge-1.0.3/sstring.h:2097:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp, cs_, sizeof(T)*len_); data/centrifuge-1.0.3/sstring.h:2101:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptmp, printcs_, sizeof(char)*len_); data/centrifuge-1.0.3/sstring.h:2302:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cs_, b, sz * sizeof(T)); data/centrifuge-1.0.3/sstring.h:2470:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cs_ + len_, b, sz * sizeof(T)); data/centrifuge-1.0.3/sstring.h:2541: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 printcs_[S+1]; // +1 so that we have the option of dropping in a terminating "\0" data/centrifuge-1.0.3/sstring.h:2669:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->cs_, b, sz); data/centrifuge-1.0.3/sstring.h:2983:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->cs_, b, sz); data/centrifuge-1.0.3/sstring.h:3339:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->cs_, b, sz); data/centrifuge-1.0.3/taxonomy.h:326:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[1024]; data/centrifuge-1.0.3/aligner_metrics.h:194:35: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void nextRead(const BTDnaString& read) { data/centrifuge-1.0.3/aligner_metrics.h:208:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const size_t len = read.length(); data/centrifuge-1.0.3/aligner_metrics.h:210:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if((int)read[i] == 4) curNumNs_++; data/centrifuge-1.0.3/aligner_seed.cpp:89:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const Read& read, data/centrifuge-1.0.3/aligner_seed.cpp:101:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if((int)read.length() < seedlen) { data/centrifuge-1.0.3/aligner_seed.cpp:103:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). seedlen = (int)read.length(); data/centrifuge-1.0.3/aligner_seed.cpp:190:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). is.cons[i].instantiate(read.length()); data/centrifuge-1.0.3/aligner_seed.cpp:193:25: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). is.overall.instantiate(read.length()); data/centrifuge-1.0.3/aligner_seed.h:373:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const Read& read, data/centrifuge-1.0.3/aligner_seed.h:638:28: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void nextRead(const Read& read) { data/centrifuge-1.0.3/aligner_seed.h:639:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read_ = &read; data/centrifuge-1.0.3/aligner_seed.h:684:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const Read& read, data/centrifuge-1.0.3/aligner_seed.h:709:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read_ = &read; data/centrifuge-1.0.3/aligner_seed.h:879:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const Read& read() const { return *read_; } data/centrifuge-1.0.3/aligner_seed.h:1352:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const Read& read, // input read data/centrifuge-1.0.3/aligner_seed.h:1367:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const Read& read, // read to align data/centrifuge-1.0.3/aligner_seed.h:1383:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const Read& read, // read to align data/centrifuge-1.0.3/aligner_seed.h:1411:25: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const Read& read, // read to align data/centrifuge-1.0.3/aligner_seed.h:1428:25: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const Read& read, // read to align data/centrifuge-1.0.3/aligner_seed.h:1556:25: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const Read& read, // input read data/centrifuge-1.0.3/aligner_seed.h:1565:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if((int)read.length() < seedlen) seedlen = (int)read.length(); data/centrifuge-1.0.3/aligner_seed.h:1565:50: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if((int)read.length() < seedlen) seedlen = (int)read.length(); data/centrifuge-1.0.3/aligner_seed.h:1571:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). seq.set(read.patFw.windowGetDna(i, fw, read.color, depth, len), i); data/centrifuge-1.0.3/aligner_seed.h:1571:42: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). seq.set(read.patFw.windowGetDna(i, fw, read.color, depth, len), i); data/centrifuge-1.0.3/aligner_seed.h:1572:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). qual.set(read.qual.windowGet(i, fw, depth, len), i); data/centrifuge-1.0.3/aligner_seed.h:1586:28: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const Read& read, // read to align data/centrifuge-1.0.3/aligner_seed.h:1595:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert_gt(read.length(), 0); data/centrifuge-1.0.3/aligner_seed.h:1606:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if((int)read.length() - (int)off > len) { data/centrifuge-1.0.3/aligner_seed.h:1607:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nseeds += ((int)read.length() - (int)off - len) / per; data/centrifuge-1.0.3/aligner_seed.h:1615:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). sr.reset(read, offIdx2off_, nseeds); data/centrifuge-1.0.3/aligner_seed.h:1632:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read, data/centrifuge-1.0.3/aligner_seed.h:1635:43: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). std::min<int>((int)seedlen, (int)read.length()), data/centrifuge-1.0.3/aligner_seed.h:1646:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read, data/centrifuge-1.0.3/aligner_seed.h:1683:25: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const Read& read, // read to align data/centrifuge-1.0.3/aligner_seed.h:1697:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read_ = &read; data/centrifuge-1.0.3/aligner_seed.h:1825:33: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const Read& read, // read to align data/centrifuge-1.0.3/aligner_seed.h:1839:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const size_t len = read.length(); data/centrifuge-1.0.3/aligner_seed.h:1845:33: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const BTDnaString& seq = fw ? read.patFw : read.patRc; data/centrifuge-1.0.3/aligner_seed.h:1845:46: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const BTDnaString& seq = fw ? read.patFw : read.patRc; data/centrifuge-1.0.3/aligner_seed.h:1955:35: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const Read& read, // read to align data/centrifuge-1.0.3/aligner_seed.h:1967:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const size_t len = read.length(); data/centrifuge-1.0.3/aligner_seed.h:1969:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). size_t ns = read.ns(); data/centrifuge-1.0.3/aligner_seed.h:2015:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (fw ? (ebwtfw ? read.patFw : read.patFwRev) : data/centrifuge-1.0.3/aligner_seed.h:2015:33: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (fw ? (ebwtfw ? read.patFw : read.patFwRev) : data/centrifuge-1.0.3/aligner_seed.h:2016:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (ebwtfw ? read.patRc : read.patRcRev)); data/centrifuge-1.0.3/aligner_seed.h:2016:28: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (ebwtfw ? read.patRc : read.patRcRev)); data/centrifuge-1.0.3/aligner_seed.h:2019:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (fw ? (ebwtfw ? read.qual : read.qualRev) : data/centrifuge-1.0.3/aligner_seed.h:2019:35: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (fw ? (ebwtfw ? read.qual : read.qualRev) : data/centrifuge-1.0.3/aligner_seed.h:2020:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (ebwtfw ? read.qualRev : read.qual)); data/centrifuge-1.0.3/aligner_seed.h:2020:30: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (ebwtfw ? read.qualRev : read.qual)); data/centrifuge-1.0.3/aligner_seed.h:2248:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Edit::toRef(fw ? read.patFw : read.patRc, edits_, rf); data/centrifuge-1.0.3/aligner_seed.h:2248:39: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Edit::toRef(fw ? read.patFw : read.patRc, edits_, rf); data/centrifuge-1.0.3/aligner_sw.cpp:981:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const BTDnaString& read, data/centrifuge-1.0.3/aligner_sw.cpp:995:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert_eq(read.length(), qual.length()); data/centrifuge-1.0.3/aligner_sw.cpp:996:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). size_t nrow = read.length(); data/centrifuge-1.0.3/aligner_sw.cpp:1003:40: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int readGaps = sc.maxReadGaps(minsc, read.length()); data/centrifuge-1.0.3/aligner_sw.cpp:1004:38: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int refGaps = sc.maxRefGaps(minsc, read.length()); data/centrifuge-1.0.3/aligner_sw.cpp:1012:44: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). size_t nceil = (size_t)sc.nCeil.f((double)read.length()); data/centrifuge-1.0.3/aligner_sw.cpp:1064:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). readrc = read; data/centrifuge-1.0.3/aligner_sw.cpp:1067:3: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read, // read sequence data/centrifuge-1.0.3/aligner_sw.cpp:1072:3: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read.length(), // offset of last char (exclusive) in 'read' to consider data/centrifuge-1.0.3/aligner_sw.cpp:1099:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const char *read, data/centrifuge-1.0.3/aligner_sw.cpp:1111:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). btread.install(read, true); data/centrifuge-1.0.3/aligner_sw.cpp:1144:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const char *read, data/centrifuge-1.0.3/aligner_sw.cpp:1158:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). btread.install(read, true); data/centrifuge-1.0.3/aligner_sw.cpp:1196:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const char *read, data/centrifuge-1.0.3/aligner_sw.cpp:1211:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). btread.install(read, true); data/centrifuge-1.0.3/aligner_sw.cpp:2932:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). BTDnaString read; data/centrifuge-1.0.3/aligner_sw.cpp:2935:2: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read.installChars(argv[optind]); data/centrifuge-1.0.3/aligner_sw.cpp:2938:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert_eq(read.length(), qual.length()); data/centrifuge-1.0.3/aligner_sw.cpp:2967:3: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read.length(), data/centrifuge-1.0.3/aligner_sw.cpp:2971:3: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read.length(), data/centrifuge-1.0.3/aligner_sw.cpp:2978:3: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read, data/centrifuge-1.0.3/bt2_io.h:749:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). in.read(&c, 1); data/centrifuge-1.0.3/centrifuge.cpp:710:17: [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). size_t solen = strlen(short_options); data/centrifuge-1.0.3/centrifuge.cpp:913:20: [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). s.replace(found, strlen("%LOCAL%"), localAlign ? "-local" : ""); data/centrifuge-1.0.3/centrifuge.cpp:1221:22: [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(arg == NULL || strlen(arg) == 0) { data/centrifuge-1.0.3/centrifuge.cpp:1240:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(arg) > 0) { data/centrifuge-1.0.3/centrifuge.cpp:3280:5: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). getchar(); data/centrifuge-1.0.3/edit.cpp:104:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const BTDnaString& read, data/centrifuge-1.0.3/edit.cpp:107:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). printQAlign(os, "", read, edits); data/centrifuge-1.0.3/edit.cpp:116:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const BTDnaString& read, data/centrifuge-1.0.3/edit.cpp:119:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). printQAlignNoCheck(os, "", read, edits); data/centrifuge-1.0.3/edit.cpp:129:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const BTDnaString& read, data/centrifuge-1.0.3/edit.cpp:135:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). for(size_t i = 0; i < read.length(); i++) { data/centrifuge-1.0.3/edit.cpp:142:38: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert_eq((int)edits[eidx].qchr, read.toChar(i)); data/centrifuge-1.0.3/edit.cpp:143:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). os << read.toChar(i); data/centrifuge-1.0.3/edit.cpp:147:38: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert_eq((int)edits[eidx].qchr, read.toChar(i)); data/centrifuge-1.0.3/edit.cpp:152:25: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if(!del && !mm) os << read.toChar(i); data/centrifuge-1.0.3/edit.cpp:158:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). for(size_t i = 0; i < read.length(); i++) { data/centrifuge-1.0.3/edit.cpp:179:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). for(size_t i = 0; i < read.length(); i++) { data/centrifuge-1.0.3/edit.cpp:194:25: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if(!del && !mm) os << read.toChar(i); data/centrifuge-1.0.3/edit.cpp:206:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const BTDnaString& read, data/centrifuge-1.0.3/edit.cpp:212:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). for(size_t i = 0; i < read.length(); i++) { data/centrifuge-1.0.3/edit.cpp:219:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). os << read.toChar(i); data/centrifuge-1.0.3/edit.cpp:226:25: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if(!del && !mm) os << read.toChar(i); data/centrifuge-1.0.3/edit.cpp:232:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). for(size_t i = 0; i < read.length(); i++) { data/centrifuge-1.0.3/edit.cpp:252:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). for(size_t i = 0; i < read.length(); i++) { data/centrifuge-1.0.3/edit.cpp:266:25: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if(!del && !mm) os << read.toChar(i); data/centrifuge-1.0.3/edit.cpp:287:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const BTDnaString& read, data/centrifuge-1.0.3/edit.cpp:297:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const size_t rdlen = read.length(); data/centrifuge-1.0.3/edit.cpp:300:28: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(Edit::repOk(edits, read, fw, trim5, trim3)); data/centrifuge-1.0.3/edit.cpp:302:47: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). invertPoss(const_cast<EList<Edit>&>(edits), read.length()-trimBeg-trimEnd, false); data/centrifuge-1.0.3/edit.cpp:305:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ASSERT_ONLY(int c = read[i]); data/centrifuge-1.0.3/edit.cpp:332:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ref.append(read[i]); data/centrifuge-1.0.3/edit.cpp:346:47: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). invertPoss(const_cast<EList<Edit>&>(edits), read.length()-trimBeg-trimEnd, false); data/centrifuge-1.0.3/edit.h:295:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const BTDnaString& read, data/centrifuge-1.0.3/edit.h:309:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const BTDnaString& read, data/centrifuge-1.0.3/edit.h:321:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const BTDnaString& read, data/centrifuge-1.0.3/edit.h:331:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const BTDnaString& read, data/centrifuge-1.0.3/edit.h:343:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const BTDnaString& read, data/centrifuge-1.0.3/filebuf.h:193:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _inf->read((char*)_buf, BUF_SZ); data/centrifuge-1.0.3/filebuf.h:196:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _ins->read((char*)_buf, BUF_SZ); data/centrifuge-1.0.3/filebuf.h:662:17: [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). writeChars(s, strlen(s)); data/centrifuge-1.0.3/hi_aligner.h:809:50: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const Read& read, // read to align data/centrifuge-1.0.3/hi_aligner.h:905:84: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const Read& read, // read to align data/centrifuge-1.0.3/hi_aligner.h:917:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const index_t len = (index_t)read.length(); data/centrifuge-1.0.3/hi_aligner.h:918:35: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const BTDnaString& seq = fw ? read.patFw : read.patRc; data/centrifuge-1.0.3/hi_aligner.h:918:48: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const BTDnaString& seq = fw ? read.patFw : read.patRc; data/centrifuge-1.0.3/ls.cpp:37: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). for(size_t i = 0; i < strlen(t); i++) { data/centrifuge-1.0.3/ls.cpp:59: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). for(size_t i = 0; i < strlen(t); i++) { data/centrifuge-1.0.3/ls.cpp:87: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). for(size_t i = 0; i < strlen(t); i++) { data/centrifuge-1.0.3/ls.cpp:105: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). for(size_t i = 0; i < strlen(t); i++) { data/centrifuge-1.0.3/ls.cpp:123: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). for(size_t i = 0; i < strlen(t); i++) { data/centrifuge-1.0.3/pat.cpp:725:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool FastaPatternSource::read( data/centrifuge-1.0.3/pat.cpp:852:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool FastqPatternSource::read( data/centrifuge-1.0.3/pat.cpp:1159:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool TabbedPatternSource::read( data/centrifuge-1.0.3/pat.h:796:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). do { read(r, rdid, endid, success, done); } data/centrifuge-1.0.3/pat.h:862:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual bool read( data/centrifuge-1.0.3/pat.h:967:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual bool read( data/centrifuge-1.0.3/pat.h:1042:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual bool read( data/centrifuge-1.0.3/pat.h:1179:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual bool read( data/centrifuge-1.0.3/pat.h:1233:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual bool read( data/centrifuge-1.0.3/pat.h:1426:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual bool read( data/centrifuge-1.0.3/pat.h:1493:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual bool read( data/centrifuge-1.0.3/pat.h:1679:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). do { read(r, rdid, endid, success, done); } data/centrifuge-1.0.3/pat.h:1743:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual bool read( data/centrifuge-1.0.3/read.h:298:6: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int getc(TReadOff off5p, bool fw) const { data/centrifuge-1.0.3/read_qseq.cpp:202:25: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool QseqPatternSource::read( data/centrifuge-1.0.3/ref_read.h:91:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). first = fgetc(in) ? true : false; data/centrifuge-1.0.3/sstring.h:75:10: [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). return strlen(s); data/centrifuge-1.0.3/sstring.h:83:10: [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). return strlen(s); data/centrifuge-1.0.3/sstring.h:91:10: [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). return strlen((const char *)s); data/centrifuge-1.0.3/sstring.h:566:14: [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). install(b, strlen(b)); data/centrifuge-1.0.3/sstring.h:709:14: [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). install(b, strlen(b)); data/centrifuge-1.0.3/sstring.h:837:34: [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). ASSERT_ONLY(size_t xformElts = strlen(xform)); data/centrifuge-1.0.3/sstring.h:971:22: [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). installColors(b, strlen(b)); data/centrifuge-1.0.3/sstring.h:973:21: [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). installChars(b, strlen(b)); data/centrifuge-1.0.3/sstring.h:976:15: [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). install(b, strlen(b)); data/centrifuge-1.0.3/sstring.h:1222:14: [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). install(b, strlen(b)); data/centrifuge-1.0.3/sstring.h:1229:19: [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). installChars(b, strlen(b)); data/centrifuge-1.0.3/sstring.h:1236:20: [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). installColors(b, strlen(b)); data/centrifuge-1.0.3/sstring.h:1286:21: [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). installReverse(b, strlen(b)); data/centrifuge-1.0.3/sstring.h:1318:26: [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). installReverseChars(b, strlen(b)); data/centrifuge-1.0.3/sstring.h:1350:27: [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). installReverseColors(b, strlen(b)); data/centrifuge-1.0.3/sstring.h:1692:14: [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). install(b, strlen(b)); data/centrifuge-1.0.3/sstring.h:1847:40: [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). void install(const T* b) { install(b, strlen(b)); } data/centrifuge-1.0.3/sstring.h:2016:13: [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). append(b, strlen(b)); data/centrifuge-1.0.3/sstring.h:2039:34: [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). ASSERT_ONLY(size_t xformElts = strlen(xform)); data/centrifuge-1.0.3/sstring.h:2171:14: [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). install(b, strlen(b)); data/centrifuge-1.0.3/sstring.h:2309:40: [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). void install(const T* b) { install(b, strlen(b)); } data/centrifuge-1.0.3/sstring.h:2478:13: [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). append(b, strlen(b)); data/centrifuge-1.0.3/sstring.h:2519:34: [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). ASSERT_ONLY(size_t xformElts = strlen(xform)); data/centrifuge-1.0.3/sstring.h:2604:22: [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). installColors(b, strlen(b)); data/centrifuge-1.0.3/sstring.h:2606:21: [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). installChars(b, strlen(b)); data/centrifuge-1.0.3/sstring.h:2609:15: [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). install(b, strlen(b)); data/centrifuge-1.0.3/sstring.h:2969:22: [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). installColors(b, strlen(b)); data/centrifuge-1.0.3/sstring.h:2971:21: [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). installChars(b, strlen(b)); data/centrifuge-1.0.3/sstring.h:2974:15: [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). install(b, strlen(b)); data/centrifuge-1.0.3/sstring.h:3271:20: [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). installChars(b, strlen(b)); data/centrifuge-1.0.3/sstring.h:3273:15: [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). install(b, strlen(b)); data/centrifuge-1.0.3/tinythread.h:704:5: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(int(double(aTime.count()) * (1000000.0 * _Period::_as_double()) + 0.5)); data/centrifuge-1.0.3/word_io.h:108:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). in.read((char *)&x, 4); data/centrifuge-1.0.3/word_io.h:124:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if(read(in, (void *)&x, 4) != 4) { data/centrifuge-1.0.3/word_io.h:158:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). in.read((char *)&x, 4); data/centrifuge-1.0.3/word_io.h:174:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if(read(in, (void *)&x, 4) != 4) { data/centrifuge-1.0.3/word_io.h:208:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). in.read((char *)&x, 2); data/centrifuge-1.0.3/word_io.h:224:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if(read(in, (void *)&x, 2) != 2) { data/centrifuge-1.0.3/word_io.h:258:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). in.read((char *)&x, 2); data/centrifuge-1.0.3/word_io.h:274:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if(read(in, (void *)&x, 2) != 2) { data/centrifuge-1.0.3/word_io.h:314:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). in.read((char *)&x, sizeof(index_t)); data/centrifuge-1.0.3/word_io.h:331:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if(read(in, (void *)&x, sizeof(index_t)) != sizeof(index_t)) { ANALYSIS SUMMARY: Hits = 311 Lines analyzed = 73678 in approximately 1.81 seconds (40651 lines/second) Physical Source Lines of Code (SLOC) = 51938 Hits@level = [0] 12 [1] 182 [2] 103 [3] 24 [4] 0 [5] 2 Hits@level+ = [0+] 323 [1+] 311 [2+] 129 [3+] 26 [4+] 2 [5+] 2 Hits/KSLOC@level+ = [0+] 6.21895 [1+] 5.98791 [2+] 2.48373 [3+] 0.500597 [4+] 0.0385075 [5+] 0.0385075 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.