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/bowtie2-2.4.2/aligner_bt.cpp
Examining data/bowtie2-2.4.2/aligner_bt.h
Examining data/bowtie2-2.4.2/aligner_cache.cpp
Examining data/bowtie2-2.4.2/aligner_cache.h
Examining data/bowtie2-2.4.2/aligner_driver.cpp
Examining data/bowtie2-2.4.2/aligner_driver.h
Examining data/bowtie2-2.4.2/aligner_metrics.h
Examining data/bowtie2-2.4.2/aligner_report.h
Examining data/bowtie2-2.4.2/aligner_result.cpp
Examining data/bowtie2-2.4.2/aligner_result.h
Examining data/bowtie2-2.4.2/aligner_seed.cpp
Examining data/bowtie2-2.4.2/aligner_seed.h
Examining data/bowtie2-2.4.2/aligner_seed2.cpp
Examining data/bowtie2-2.4.2/aligner_seed2.h
Examining data/bowtie2-2.4.2/aligner_seed_policy.cpp
Examining data/bowtie2-2.4.2/aligner_seed_policy.h
Examining data/bowtie2-2.4.2/aligner_sw.cpp
Examining data/bowtie2-2.4.2/aligner_sw.h
Examining data/bowtie2-2.4.2/aligner_sw_common.h
Examining data/bowtie2-2.4.2/aligner_sw_driver.cpp
Examining data/bowtie2-2.4.2/aligner_sw_driver.h
Examining data/bowtie2-2.4.2/aligner_sw_nuc.h
Examining data/bowtie2-2.4.2/aligner_swsse.cpp
Examining data/bowtie2-2.4.2/aligner_swsse.h
Examining data/bowtie2-2.4.2/aligner_swsse_ee_i16.cpp
Examining data/bowtie2-2.4.2/aligner_swsse_ee_u8.cpp
Examining data/bowtie2-2.4.2/aligner_swsse_loc_i16.cpp
Examining data/bowtie2-2.4.2/aligner_swsse_loc_u8.cpp
Examining data/bowtie2-2.4.2/aln_sink.cpp
Examining data/bowtie2-2.4.2/aln_sink.h
Examining data/bowtie2-2.4.2/alphabet.cpp
Examining data/bowtie2-2.4.2/alphabet.h
Examining data/bowtie2-2.4.2/assert_helpers.h
Examining data/bowtie2-2.4.2/banded.cpp
Examining data/bowtie2-2.4.2/banded.h
Examining data/bowtie2-2.4.2/binary_sa_search.h
Examining data/bowtie2-2.4.2/bitpack.h
Examining data/bowtie2-2.4.2/bowtie_build_main.cpp
Examining data/bowtie2-2.4.2/bowtie_main.cpp
Examining data/bowtie2-2.4.2/bt2_dp.cpp
Examining data/bowtie2-2.4.2/bt2_idx.cpp
Examining data/bowtie2-2.4.2/bt2_idx.h
Examining data/bowtie2-2.4.2/bt2_io.cpp
Examining data/bowtie2-2.4.2/bt2_util.cpp
Examining data/bowtie2-2.4.2/btypes.h
Examining data/bowtie2-2.4.2/ccnt_lut.cpp
Examining data/bowtie2-2.4.2/cpu_numa_info.cpp
Examining data/bowtie2-2.4.2/cpu_numa_info.h
Examining data/bowtie2-2.4.2/diff_sample.cpp
Examining data/bowtie2-2.4.2/dp_framer.cpp
Examining data/bowtie2-2.4.2/dp_framer.h
Examining data/bowtie2-2.4.2/ds.cpp
Examining data/bowtie2-2.4.2/ds.h
Examining data/bowtie2-2.4.2/edit.cpp
Examining data/bowtie2-2.4.2/edit.h
Examining data/bowtie2-2.4.2/endian_swap.h
Examining data/bowtie2-2.4.2/fast_mutex.h
Examining data/bowtie2-2.4.2/filebuf.h
Examining data/bowtie2-2.4.2/formats.h
Examining data/bowtie2-2.4.2/group_walk.cpp
Examining data/bowtie2-2.4.2/group_walk.h
Examining data/bowtie2-2.4.2/ival_list.cpp
Examining data/bowtie2-2.4.2/ival_list.h
Examining data/bowtie2-2.4.2/limit.cpp
Examining data/bowtie2-2.4.2/limit.h
Examining data/bowtie2-2.4.2/ls.cpp
Examining data/bowtie2-2.4.2/ls.h
Examining data/bowtie2-2.4.2/mask.cpp
Examining data/bowtie2-2.4.2/mask.h
Examining data/bowtie2-2.4.2/mem_ids.h
Examining data/bowtie2-2.4.2/mm.h
Examining data/bowtie2-2.4.2/multikey_qsort.cpp
Examining data/bowtie2-2.4.2/multikey_qsort.h
Examining data/bowtie2-2.4.2/opts.h
Examining data/bowtie2-2.4.2/outq.cpp
Examining data/bowtie2-2.4.2/outq.h
Examining data/bowtie2-2.4.2/pat.cpp
Examining data/bowtie2-2.4.2/pat.h
Examining data/bowtie2-2.4.2/pe.cpp
Examining data/bowtie2-2.4.2/pe.h
Examining data/bowtie2-2.4.2/presets.cpp
Examining data/bowtie2-2.4.2/presets.h
Examining data/bowtie2-2.4.2/processor_support.h
Examining data/bowtie2-2.4.2/qual.cpp
Examining data/bowtie2-2.4.2/qual.h
Examining data/bowtie2-2.4.2/random_source.cpp
Examining data/bowtie2-2.4.2/random_source.h
Examining data/bowtie2-2.4.2/random_util.cpp
Examining data/bowtie2-2.4.2/random_util.h
Examining data/bowtie2-2.4.2/read.h
Examining data/bowtie2-2.4.2/read_qseq.cpp
Examining data/bowtie2-2.4.2/ref_coord.cpp
Examining data/bowtie2-2.4.2/ref_coord.h
Examining data/bowtie2-2.4.2/ref_read.cpp
Examining data/bowtie2-2.4.2/ref_read.h
Examining data/bowtie2-2.4.2/reference.cpp
Examining data/bowtie2-2.4.2/reference.h
Examining data/bowtie2-2.4.2/sam.cpp
Examining data/bowtie2-2.4.2/sam.h
Examining data/bowtie2-2.4.2/scoring.cpp
Examining data/bowtie2-2.4.2/scoring.h
Examining data/bowtie2-2.4.2/search_globals.h
Examining data/bowtie2-2.4.2/sequence_io.h
Examining data/bowtie2-2.4.2/shmem.cpp
Examining data/bowtie2-2.4.2/shmem.h
Examining data/bowtie2-2.4.2/simple_func.cpp
Examining data/bowtie2-2.4.2/simple_func.h
Examining data/bowtie2-2.4.2/sse_util.cpp
Examining data/bowtie2-2.4.2/sse_util.h
Examining data/bowtie2-2.4.2/sstring.cpp
Examining data/bowtie2-2.4.2/sstring.h
Examining data/bowtie2-2.4.2/str_util.h
Examining data/bowtie2-2.4.2/third_party/cpuid.h
Examining data/bowtie2-2.4.2/threading.h
Examining data/bowtie2-2.4.2/timer.h
Examining data/bowtie2-2.4.2/tinythread.cpp
Examining data/bowtie2-2.4.2/tinythread.h
Examining data/bowtie2-2.4.2/tokenize.h
Examining data/bowtie2-2.4.2/unique.cpp
Examining data/bowtie2-2.4.2/unique.h
Examining data/bowtie2-2.4.2/util.h
Examining data/bowtie2-2.4.2/word_io.h
Examining data/bowtie2-2.4.2/zbox.h
Examining data/bowtie2-2.4.2/bt2_search.cpp
Examining data/bowtie2-2.4.2/bt2_search.h
Examining data/bowtie2-2.4.2/blockwise_sa.h
Examining data/bowtie2-2.4.2/diff_sample.h
Examining data/bowtie2-2.4.2/sse_wrap.h
Examining data/bowtie2-2.4.2/bt2_build.cpp
Examining data/bowtie2-2.4.2/bt2_inspect.cpp

FINAL RESULTS:

data/bowtie2-2.4.2/filebuf.h:259: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/bowtie2-2.4.2/aligner_cache.cpp:267: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/bowtie2-2.4.2/aligner_seed.cpp:1741: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/bowtie2-2.4.2/aligner_sw.cpp:3126: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/bowtie2-2.4.2/aligner_sw.cpp:3179: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/bowtie2-2.4.2/bt2_build.cpp:244: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/bowtie2-2.4.2/bt2_build.cpp:640: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/bowtie2-2.4.2/bt2_build.cpp:660: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/bowtie2-2.4.2/bt2_dp.cpp:484: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/bowtie2-2.4.2/bt2_idx.cpp:285: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("BOWTIE2_INDEXES") != NULL) {
data/bowtie2-2.4.2/bt2_idx.cpp:286: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("BOWTIE2_INDEXES")) + "/" + ebwtFileBase;
data/bowtie2-2.4.2/bt2_inspect.cpp:128: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/bowtie2-2.4.2/bt2_search.cpp:1594: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/bowtie2-2.4.2/fast_mutex.h:97:7:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
      InitializeCriticalSection(&mHandle);
data/bowtie2-2.4.2/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/bowtie2-2.4.2/tinythread.cpp:61:3:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
  InitializeCriticalSection(&mWaitersCountLock);
data/bowtie2-2.4.2/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/bowtie2-2.4.2/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/bowtie2-2.4.2/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/bowtie2-2.4.2/tinythread.h:168:7:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
      InitializeCriticalSection(&mHandle);
data/bowtie2-2.4.2/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/bowtie2-2.4.2/tinythread.h:257:7:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
      InitializeCriticalSection(&mHandle);
data/bowtie2-2.4.2/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/bowtie2-2.4.2/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/bowtie2-2.4.2/aligner_cache.cpp:215: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/bowtie2-2.4.2/aligner_result.cpp:776: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[128];
data/bowtie2-2.4.2/aligner_result.cpp:806: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[128];
data/bowtie2-2.4.2/aligner_result.cpp:1184: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 buf1[1024];
data/bowtie2-2.4.2/aligner_result.cpp:1190: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 buf2[1024];
data/bowtie2-2.4.2/aligner_result.cpp:1196: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 buf3[1024];
data/bowtie2-2.4.2/aligner_result.cpp:1202: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 buf4[1024];
data/bowtie2-2.4.2/aligner_result.cpp:1242: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 buf1[1024];
data/bowtie2-2.4.2/aligner_result.cpp:1248: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 buf2[1024];
data/bowtie2-2.4.2/aligner_result.cpp:1254: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 buf3[1024];
data/bowtie2-2.4.2/aligner_result.cpp:1260: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 buf4[1024];
data/bowtie2-2.4.2/aligner_result.cpp:1406: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 buf1[1024];
data/bowtie2-2.4.2/aligner_result.cpp:1412: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 buf2[1024];
data/bowtie2-2.4.2/aligner_result.cpp:1418: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 buf3[1024];
data/bowtie2-2.4.2/aligner_result.cpp:1424: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 buf4[1024];
data/bowtie2-2.4.2/aligner_result.cpp:1469: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 buf1[1024];
data/bowtie2-2.4.2/aligner_result.cpp:1475: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 buf2[1024];
data/bowtie2-2.4.2/aligner_result.cpp:1481: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 buf3[1024];
data/bowtie2-2.4.2/aligner_result.cpp:1487: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 buf4[1024];
data/bowtie2-2.4.2/aligner_result.cpp:1535: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 buf1[1024];
data/bowtie2-2.4.2/aligner_result.cpp:1541: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 buf2[1024];
data/bowtie2-2.4.2/aligner_result.cpp:1589: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 buf1[1024];
data/bowtie2-2.4.2/aligner_result.cpp:1595: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 buf2[1024];
data/bowtie2-2.4.2/aligner_result.cpp:1643: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 buf1[1024];
data/bowtie2-2.4.2/aligner_result.cpp:1649: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 buf2[1024];
data/bowtie2-2.4.2/aligner_result.cpp:1697: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 buf1[1024];
data/bowtie2-2.4.2/aligner_result.cpp:1703: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 buf2[1024];
data/bowtie2-2.4.2/aligner_result.cpp:1751: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 buf1[1024];
data/bowtie2-2.4.2/aligner_result.cpp:1757: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 buf2[1024];
data/bowtie2-2.4.2/aligner_result.cpp:1805: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 buf1[1024];
data/bowtie2-2.4.2/aligner_result.cpp:1811: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 buf2[1024];
data/bowtie2-2.4.2/aligner_result.cpp:1859: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 buf1[1024];
data/bowtie2-2.4.2/aligner_result.cpp:1865: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 buf2[1024];
data/bowtie2-2.4.2/aligner_result.cpp:1895: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/bowtie2-2.4.2/aligner_result.cpp:1918: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/bowtie2-2.4.2/aligner_swsse_ee_i16.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/bowtie2-2.4.2/aligner_swsse_ee_i16.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/bowtie2-2.4.2/aligner_swsse_ee_u8.cpp:727: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/bowtie2-2.4.2/aligner_swsse_ee_u8.cpp:735: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/bowtie2-2.4.2/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/bowtie2-2.4.2/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/bowtie2-2.4.2/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/bowtie2-2.4.2/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/bowtie2-2.4.2/aln_sink.cpp:1817: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/bowtie2-2.4.2/aln_sink.cpp:1907: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/bowtie2-2.4.2/aln_sink.cpp:1908: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 mapqInps[1024];
data/bowtie2-2.4.2/alphabet.cpp:207: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/bowtie2-2.4.2/alphabet.h:52: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/bowtie2-2.4.2/bowtie_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/bowtie2-2.4.2/bowtie_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/bowtie2-2.4.2/bowtie_main.cpp:46: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(file);
data/bowtie2-2.4.2/bowtie_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/bowtie2-2.4.2/bt2_build.cpp:404: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(infiles[i].c_str(), "rb");
data/bowtie2-2.4.2/bt2_dp.cpp:539: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).
		ih_.open(fn_.c_str());
data/bowtie2-2.4.2/bt2_idx.cpp:281: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/bowtie2-2.4.2/bt2_idx.cpp:288: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/bowtie2-2.4.2/bt2_idx.h:293: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/bowtie2-2.4.2/bt2_io.cpp:63: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/bowtie2-2.4.2/bt2_io.cpp:69: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/bowtie2-2.4.2/bt2_io.cpp:738: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).
    fin = fopen((instr + ".1." + gEbwt_ext).c_str(),"rb");
data/bowtie2-2.4.2/bt2_io.cpp:753: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/bowtie2-2.4.2/bt2_search.cpp:1971: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/bowtie2-2.4.2/bt2_search.cpp:4553:12:  [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(fname, "w");
data/bowtie2-2.4.2/bt2_search.cpp:4605:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		int pid = atoi(ent->d_name);
data/bowtie2-2.4.2/diff_sample.h:814: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(sOrig, sPrimeArr, OFF_SIZE * sPrimeSz);
data/bowtie2-2.4.2/ds.h:1770: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/bowtie2-2.4.2/filebuf.h:448: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/bowtie2-2.4.2/filebuf.h:489: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/bowtie2-2.4.2/filebuf.h:502: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/bowtie2-2.4.2/filebuf.h:555: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/bowtie2-2.4.2/filebuf.h:573: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/bowtie2-2.4.2/filebuf.h:589: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/bowtie2-2.4.2/filebuf.h:613: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/bowtie2-2.4.2/filebuf.h:645: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/bowtie2-2.4.2/filebuf.h:650: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/bowtie2-2.4.2/filebuf.h:671: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/bowtie2-2.4.2/filebuf.h:676: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/bowtie2-2.4.2/filebuf.h:695: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/bowtie2-2.4.2/filebuf.h:700: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/bowtie2-2.4.2/filebuf.h:765: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/bowtie2-2.4.2/multikey_qsort.h:650: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(sOrig, s, OFF_SIZE * slen);
data/bowtie2-2.4.2/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[1] > 0) { memcpy(&s[cur], bkts[0], cnts[1] << (OFF_SIZE/4 + 1)); cur += cnts[1]; }
data/bowtie2-2.4.2/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[2] > 0) { memcpy(&s[cur], bkts[1], cnts[2] << (OFF_SIZE/4 + 1)); cur += cnts[2]; }
data/bowtie2-2.4.2/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[3] > 0) { memcpy(&s[cur], bkts[2], cnts[3] << (OFF_SIZE/4 + 1)); cur += cnts[3]; }
data/bowtie2-2.4.2/multikey_qsort.h:1087: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/bowtie2-2.4.2/pat.cpp:428: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).
			open();
data/bowtie2-2.4.2/pat.cpp:461: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).
void CFilePatternSource::open() {
data/bowtie2-2.4.2/pat.cpp:487:15:  [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).
			int fd = ::open(filename, O_RDONLY);
data/bowtie2-2.4.2/pat.cpp:828: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/bowtie2-2.4.2/pat.cpp:1161: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/bowtie2-2.4.2/pat.cpp:1339: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(readbuf[readi].readOrigBuf.wbuf(), &bam_batches_[pt.tid_][0] + i, block_size);
data/bowtie2-2.4.2/pat.cpp:1379: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(empty_slot->data, mate, mate_len);
data/bowtie2-2.4.2/pat.cpp:1389: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(ra.readOrigBuf.wbuf(), mate, mate_len);
data/bowtie2-2.4.2/pat.cpp:1391: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(rb.readOrigBuf.wbuf(), orphan_mates[i].data, orphan_mates[i].size);
data/bowtie2-2.4.2/pat.cpp:1394: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(rb.readOrigBuf.wbuf(), mate, mate_len);
data/bowtie2-2.4.2/pat.cpp:1396: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(ra.readOrigBuf.wbuf(), orphan_mates[i].data, orphan_mates[i].size);
data/bowtie2-2.4.2/pat.cpp:1665: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 cbuf[20];
data/bowtie2-2.4.2/pat.cpp:1871:24:  [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/bowtie2-2.4.2/pat.h:333: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 nametmp_[20];		   // temp buffer for constructing name
data/bowtie2-2.4.2/pat.h:360: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/bowtie2-2.4.2/pat.h:400: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/bowtie2-2.4.2/pat.h:423: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/bowtie2-2.4.2/pat.h:480: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_[64*1024];		 // file buffer
data/bowtie2-2.4.2/pat.h:693: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];	/// FASTA sequence buffer
data/bowtie2-2.4.2/pat.h:695: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 name_int_buf_[20]; /// for composing offsets for names
data/bowtie2-2.4.2/pat.h:1282: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/bowtie2-2.4.2/pat.h:1320: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/bowtie2-2.4.2/pat.h:1333: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/bowtie2-2.4.2/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/bowtie2-2.4.2/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/bowtie2-2.4.2/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/bowtie2-2.4.2/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/bowtie2-2.4.2/sam.cpp:86: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/bowtie2-2.4.2/sam.cpp:136: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/bowtie2-2.4.2/sam.cpp:684: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/bowtie2-2.4.2/sam.cpp:879: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/bowtie2-2.4.2/sam.cpp:884:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 tag[2], val_type;
data/bowtie2-2.4.2/sam.cpp:885: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(tag, b + i, 2 * sizeof(char));
data/bowtie2-2.4.2/sam.cpp:888: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(&val_type, b + i, 1);
data/bowtie2-2.4.2/sam.cpp:951: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(&c, b + i, sizeof(char));
data/bowtie2-2.4.2/sam.cpp:955:7:  [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(&c, b + i, sizeof(char));
data/bowtie2-2.4.2/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/bowtie2-2.4.2/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/bowtie2-2.4.2/sstring.h:71: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/bowtie2-2.4.2/sstring.h:687: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/bowtie2-2.4.2/sstring.h:698: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/bowtie2-2.4.2/sstring.h:1149: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/bowtie2-2.4.2/sstring.h:1824: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/bowtie2-2.4.2/sstring.h:1998: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/bowtie2-2.4.2/sstring.h:2087: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/bowtie2-2.4.2/sstring.h:2091: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/bowtie2-2.4.2/sstring.h:2292: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/bowtie2-2.4.2/sstring.h:2460: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/bowtie2-2.4.2/sstring.h:2531: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/bowtie2-2.4.2/sstring.h:2655: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/bowtie2-2.4.2/sstring.h:2959: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/bowtie2-2.4.2/sstring.h:3218: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/bowtie2-2.4.2/aligner_driver.cpp:75:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			int c = q.getc(off5p, fw);
data/bowtie2-2.4.2/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/bowtie2-2.4.2/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/bowtie2-2.4.2/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/bowtie2-2.4.2/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/bowtie2-2.4.2/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/bowtie2-2.4.2/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/bowtie2-2.4.2/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/bowtie2-2.4.2/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/bowtie2-2.4.2/aligner_seed.cpp:347:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	const Read& read, // input read
data/bowtie2-2.4.2/aligner_seed.cpp:356: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/bowtie2-2.4.2/aligner_seed.cpp:356: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/bowtie2-2.4.2/aligner_seed.cpp:362: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, depth, len), i);
data/bowtie2-2.4.2/aligner_seed.cpp:363: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/bowtie2-2.4.2/aligner_seed.cpp:376:14:  [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/bowtie2-2.4.2/aligner_seed.cpp:387: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/bowtie2-2.4.2/aligner_seed.cpp:398: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/bowtie2-2.4.2/aligner_seed.cpp:399: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/bowtie2-2.4.2/aligner_seed.cpp:407: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/bowtie2-2.4.2/aligner_seed.cpp:424:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				read,
data/bowtie2-2.4.2/aligner_seed.cpp:427:38:  [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/bowtie2-2.4.2/aligner_seed.cpp:438:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					read,
data/bowtie2-2.4.2/aligner_seed.cpp:475:14:  [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/bowtie2-2.4.2/aligner_seed.cpp:489:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read_ = &read;
data/bowtie2-2.4.2/aligner_seed.cpp:617:21:  [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/bowtie2-2.4.2/aligner_seed.cpp:631: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/bowtie2-2.4.2/aligner_seed.cpp:637: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/bowtie2-2.4.2/aligner_seed.cpp:637: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/bowtie2-2.4.2/aligner_seed.cpp:746:21:  [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/bowtie2-2.4.2/aligner_seed.cpp:758: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/bowtie2-2.4.2/aligner_seed.cpp:760: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/bowtie2-2.4.2/aligner_seed.cpp:806:21:  [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/bowtie2-2.4.2/aligner_seed.cpp:806:34:  [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/bowtie2-2.4.2/aligner_seed.cpp:807:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				      (ebwtfw ? read.patRc : read.patRcRev));
data/bowtie2-2.4.2/aligner_seed.cpp:807:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				      (ebwtfw ? read.patRc : read.patRcRev));
data/bowtie2-2.4.2/aligner_seed.cpp:810:21:  [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/bowtie2-2.4.2/aligner_seed.cpp:810:36:  [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/bowtie2-2.4.2/aligner_seed.cpp:811:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				      (ebwtfw ? read.qualRev : read.qual));
data/bowtie2-2.4.2/aligner_seed.cpp:811:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				      (ebwtfw ? read.qualRev : read.qual));
data/bowtie2-2.4.2/aligner_seed.cpp:1039: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/bowtie2-2.4.2/aligner_seed.cpp:1039: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/bowtie2-2.4.2/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/bowtie2-2.4.2/aligner_seed.h:636: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/bowtie2-2.4.2/aligner_seed.h:637:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		read_ = &read;
data/bowtie2-2.4.2/aligner_seed.h:689:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		const Read& read,
data/bowtie2-2.4.2/aligner_seed.h:714:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		read_ = &read;
data/bowtie2-2.4.2/aligner_seed.h:970: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/bowtie2-2.4.2/aligner_seed.h:1472: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/bowtie2-2.4.2/aligner_seed.h:1487: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/bowtie2-2.4.2/aligner_seed.h:1505: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/bowtie2-2.4.2/aligner_seed.h:1533:22:  [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/bowtie2-2.4.2/aligner_seed.h:1550:22:  [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/bowtie2-2.4.2/aligner_seed2.cpp:888: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/bowtie2-2.4.2/aligner_seed2.cpp:889:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if(i < trimLf || i >= read.length() - trimRg) {
data/bowtie2-2.4.2/aligner_seed2.cpp:890:42:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if(os != NULL) { *os << (char)tolower(read.toChar(i)); }
data/bowtie2-2.4.2/aligner_seed2.cpp:899: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/bowtie2-2.4.2/aligner_seed2.cpp:900:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				if(os != NULL) { *os << read.toChar(i); }
data/bowtie2-2.4.2/aligner_seed2.cpp:904: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/bowtie2-2.4.2/aligner_seed2.cpp:911:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if(os != NULL) { *os << read.toChar(i); }
data/bowtie2-2.4.2/aligner_seed2.cpp:920: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/bowtie2-2.4.2/aligner_seed2.cpp:921:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if(i < trimLf || i >= read.length() - trimRg) {
data/bowtie2-2.4.2/aligner_seed2.cpp:947: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/bowtie2-2.4.2/aligner_seed2.cpp:948:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if(i < trimLf || i >= read.length() - trimRg) {
data/bowtie2-2.4.2/aligner_seed2.cpp:969:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			rf.append(read[i]);
data/bowtie2-2.4.2/aligner_seed2.cpp:970:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if(os != NULL) { *os << read.toChar(i); }
data/bowtie2-2.4.2/aligner_seed2.cpp:1506:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			int rdc = q.getc(off5p, fw);
data/bowtie2-2.4.2/aligner_seed2.cpp:1608:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int rdc = q.getc(off5p, fw);
data/bowtie2-2.4.2/aligner_sw.cpp:1234:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	const BTDnaString& read,
data/bowtie2-2.4.2/aligner_sw.cpp:1248: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/bowtie2-2.4.2/aligner_sw.cpp:1249: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/bowtie2-2.4.2/aligner_sw.cpp:1256: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/bowtie2-2.4.2/aligner_sw.cpp:1257: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/bowtie2-2.4.2/aligner_sw.cpp:1265: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/bowtie2-2.4.2/aligner_sw.cpp:1317:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	readrc = read;
data/bowtie2-2.4.2/aligner_sw.cpp:1320:3:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		read,          // read sequence
data/bowtie2-2.4.2/aligner_sw.cpp:1325: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/bowtie2-2.4.2/aligner_sw.cpp:1352:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	const char        *read,
data/bowtie2-2.4.2/aligner_sw.cpp:1364:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	btread.install(read, true);
data/bowtie2-2.4.2/aligner_sw.cpp:1397:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	const char        *read,
data/bowtie2-2.4.2/aligner_sw.cpp:1411:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	btread.install(read, true);
data/bowtie2-2.4.2/aligner_sw.cpp:1449:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	const char        *read,
data/bowtie2-2.4.2/aligner_sw.cpp:1464:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	btread.install(read, true);
data/bowtie2-2.4.2/aligner_sw.cpp:3185:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	BTDnaString read;
data/bowtie2-2.4.2/aligner_sw.cpp:3188:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read.installChars(argv[optind]);
data/bowtie2-2.4.2/aligner_sw.cpp:3191: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/bowtie2-2.4.2/aligner_sw.cpp:3220:3:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		read.length(),
data/bowtie2-2.4.2/aligner_sw.cpp:3224:3:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		read.length(),
data/bowtie2-2.4.2/aligner_sw.cpp:3231:3:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		read,
data/bowtie2-2.4.2/aligner_sw_driver.cpp:491:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	const Read& read,            // read
data/bowtie2-2.4.2/aligner_sw_driver.cpp:510:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	const int matei = (read.mate <= 1 ? 0 : 1);
data/bowtie2-2.4.2/aligner_sw_driver.cpp:577:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					read,
data/bowtie2-2.4.2/bt2_io.cpp:708:22:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        read_value = fgetc(fin);
data/bowtie2-2.4.2/bt2_search.cpp:695: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/bowtie2-2.4.2/bt2_search.cpp:983: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/bowtie2-2.4.2/bt2_search.cpp:1180:8:  [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) > 1 && arg[1] != ':') {
data/bowtie2-2.4.2/bt2_search.cpp:1367: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/bowtie2-2.4.2/bt2_search.cpp:1419: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/bowtie2-2.4.2/bt2_search.cpp:5268:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				getchar();
data/bowtie2-2.4.2/edit.cpp:96:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	const BTDnaString& read,
data/bowtie2-2.4.2/edit.cpp:99:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	printQAlign(os, "", read, edits);
data/bowtie2-2.4.2/edit.cpp:108:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	const BTDnaString& read,
data/bowtie2-2.4.2/edit.cpp:111:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	printQAlignNoCheck(os, "", read, edits);
data/bowtie2-2.4.2/edit.cpp:121:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	const BTDnaString& read,
data/bowtie2-2.4.2/edit.cpp:127: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/bowtie2-2.4.2/edit.cpp:134: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/bowtie2-2.4.2/edit.cpp:135:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				os << read.toChar(i);
data/bowtie2-2.4.2/edit.cpp:139: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/bowtie2-2.4.2/edit.cpp:144: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/bowtie2-2.4.2/edit.cpp:150: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/bowtie2-2.4.2/edit.cpp:171: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/bowtie2-2.4.2/edit.cpp:186: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/bowtie2-2.4.2/edit.cpp:198:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	const BTDnaString& read,
data/bowtie2-2.4.2/edit.cpp:204: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/bowtie2-2.4.2/edit.cpp:211:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				os << read.toChar(i);
data/bowtie2-2.4.2/edit.cpp:218: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/bowtie2-2.4.2/edit.cpp:224: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/bowtie2-2.4.2/edit.cpp:244: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/bowtie2-2.4.2/edit.cpp:258: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/bowtie2-2.4.2/edit.cpp:279:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	const BTDnaString& read,
data/bowtie2-2.4.2/edit.cpp:289: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/bowtie2-2.4.2/edit.cpp:292: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/bowtie2-2.4.2/edit.cpp:294: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/bowtie2-2.4.2/edit.cpp:297: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/bowtie2-2.4.2/edit.cpp:325:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				ref.append(read[i]);
data/bowtie2-2.4.2/edit.cpp:339: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/bowtie2-2.4.2/edit.h:238:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		const BTDnaString& read,
data/bowtie2-2.4.2/edit.h:252:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		const BTDnaString& read,
data/bowtie2-2.4.2/edit.h:264:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		const BTDnaString& read,
data/bowtie2-2.4.2/edit.h:274:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		const BTDnaString& read,
data/bowtie2-2.4.2/edit.h:286:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		const BTDnaString& read,
data/bowtie2-2.4.2/filebuf.h:227: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/bowtie2-2.4.2/filebuf.h:232: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/bowtie2-2.4.2/filebuf.h: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).
		writeChars(s, strlen(s));
data/bowtie2-2.4.2/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/bowtie2-2.4.2/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/bowtie2-2.4.2/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/bowtie2-2.4.2/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/bowtie2-2.4.2/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/bowtie2-2.4.2/pat.h:456:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ssize_t r1 = read(fd, &byte1, sizeof(uint8_t));
data/bowtie2-2.4.2/pat.h:457:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ssize_t r2 = read(fd, &byte2, sizeof(uint8_t));
data/bowtie2-2.4.2/pat.h:871:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	void store_orphan_mate(const uint8_t* read, size_t read_len);
data/bowtie2-2.4.2/read.h:219: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/bowtie2-2.4.2/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/bowtie2-2.4.2/sstring.h:72: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/bowtie2-2.4.2/sstring.h:80: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/bowtie2-2.4.2/sstring.h:88: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/bowtie2-2.4.2/sstring.h:562: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/bowtie2-2.4.2/sstring.h:705: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/bowtie2-2.4.2/sstring.h:833: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/bowtie2-2.4.2/sstring.h:967: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/bowtie2-2.4.2/sstring.h:969: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/bowtie2-2.4.2/sstring.h:972: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/bowtie2-2.4.2/sstring.h:1218: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/bowtie2-2.4.2/sstring.h:1225: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/bowtie2-2.4.2/sstring.h:1232: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/bowtie2-2.4.2/sstring.h:1282: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/bowtie2-2.4.2/sstring.h:1314: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/bowtie2-2.4.2/sstring.h:1346: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/bowtie2-2.4.2/sstring.h:1685: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/bowtie2-2.4.2/sstring.h:1832: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/bowtie2-2.4.2/sstring.h:2006: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/bowtie2-2.4.2/sstring.h:2029: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/bowtie2-2.4.2/sstring.h:2161: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/bowtie2-2.4.2/sstring.h:2299: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/bowtie2-2.4.2/sstring.h:2468: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/bowtie2-2.4.2/sstring.h:2509: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/bowtie2-2.4.2/sstring.h:2594: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/bowtie2-2.4.2/sstring.h:2596: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/bowtie2-2.4.2/sstring.h:2599: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/bowtie2-2.4.2/sstring.h:2945: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/bowtie2-2.4.2/sstring.h:2947: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/bowtie2-2.4.2/sstring.h:2950: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/bowtie2-2.4.2/sstring.h:3154: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/bowtie2-2.4.2/sstring.h:3156: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/bowtie2-2.4.2/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/bowtie2-2.4.2/word_io.h:89:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	in.read((char *)&x, sizeof(T));
data/bowtie2-2.4.2/word_io.h:159:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	in.read((char *)&x, sizeof(T));

ANALYSIS SUMMARY:

Hits = 338
Lines analyzed = 85263 in approximately 2.06 seconds (41490 lines/second)
Physical Source Lines of Code (SLOC) = 60455
Hits@level = [0]  15 [1] 177 [2] 137 [3]  23 [4]   0 [5]   1
Hits@level+ = [0+] 353 [1+] 338 [2+] 161 [3+]  24 [4+]   1 [5+]   1
Hits/KSLOC@level+ = [0+] 5.83905 [1+] 5.59094 [2+] 2.66314 [3+] 0.396989 [4+] 0.0165412 [5+] 0.0165412
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.