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/tthsum-1.3.2/autoconf.c
Examining data/tthsum-1.3.2/base32.c
Examining data/tthsum-1.3.2/base32.h
Examining data/tthsum-1.3.2/base32_test.c
Examining data/tthsum-1.3.2/endian.h
Examining data/tthsum-1.3.2/endian_test.c
Examining data/tthsum-1.3.2/escape.c
Examining data/tthsum-1.3.2/escape.h
Examining data/tthsum-1.3.2/escape_test.c
Examining data/tthsum-1.3.2/getopt.c
Examining data/tthsum-1.3.2/getopt.h
Examining data/tthsum-1.3.2/getopt_test.c
Examining data/tthsum-1.3.2/main.c
Examining data/tthsum-1.3.2/read.c
Examining data/tthsum-1.3.2/read.h
Examining data/tthsum-1.3.2/read_test.c
Examining data/tthsum-1.3.2/test.c
Examining data/tthsum-1.3.2/test.h
Examining data/tthsum-1.3.2/texts.c
Examining data/tthsum-1.3.2/texts.h
Examining data/tthsum-1.3.2/texts_test.c
Examining data/tthsum-1.3.2/thex.c
Examining data/tthsum-1.3.2/thex.h
Examining data/tthsum-1.3.2/thex_test.c
Examining data/tthsum-1.3.2/tiger.c
Examining data/tthsum-1.3.2/tiger.h
Examining data/tthsum-1.3.2/tiger_test.c
Examining data/tthsum-1.3.2/tthsum.c
Examining data/tthsum-1.3.2/tthsum.h
Examining data/tthsum-1.3.2/types.h
Examining data/tthsum-1.3.2/types_test.c
Examining data/tthsum-1.3.2/utf8.c
Examining data/tthsum-1.3.2/utf8.h
Examining data/tthsum-1.3.2/utf8_test.c

FINAL RESULTS:

data/tthsum-1.3.2/getopt.c:32:5:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
int getopt(int argc, char* const argv[], const char* optstring) {
data/tthsum-1.3.2/getopt.c:137:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    return getopt(argc, argv, optstring);
data/tthsum-1.3.2/getopt.h:52:5:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
int getopt(int argc, char* const argv[], const char* optstring);
data/tthsum-1.3.2/getopt_test.c:57:19:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ret = getopt(argc, (char* const*)argv, "Vbg")) >= 0) {
data/tthsum-1.3.2/getopt_test.c:95:19:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ret = getopt(argc, (char* const*)argv, "o:")) >= 0) {
data/tthsum-1.3.2/getopt_test.c:116:19:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ret = getopt(argc, (char* const*)argv, "o")) >= 0) {
data/tthsum-1.3.2/main.c:48:19:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ret = getopt(argc, argv, "bchmpvVw")) >= 0) {
data/tthsum-1.3.2/autoconf.c:45:2:  [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(buf64, "AAAAAAA" "BBBBBBBB" "CCCCCCCC", 24); /* 7+8+8+1 */
data/tthsum-1.3.2/base32_test.c:34:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char base32buf[2048];
data/tthsum-1.3.2/base32_test.c:55:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char base32buf[2048];
data/tthsum-1.3.2/escape.c:42:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(dest, "\\x%02hx", (short)*src); /* %hhx is not C90 */
data/tthsum-1.3.2/escape_test.c:28:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char strbuf[2048];
data/tthsum-1.3.2/escape_test.c:29:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char escapedbuf[2048];
data/tthsum-1.3.2/escape_test.c:47:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char resultbuf[2048];
data/tthsum-1.3.2/escape_test.c:100:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256];
data/tthsum-1.3.2/escape_test.c:109:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256];
data/tthsum-1.3.2/read.c:107: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(rf->u.rof_mem.buf, data, length);
data/tthsum-1.3.2/read.c:179:22:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	rf->u.rof_mmap.fd = open(filename, O_RDONLY | O_BINARY);
data/tthsum-1.3.2/read.c:257: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).
    if ((fd = open(filename, O_RDONLY | O_BINARY)) >= 0) {
data/tthsum-1.3.2/read.c:483:2:  [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 + written, next, readsize);
data/tthsum-1.3.2/read_test.c:46: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.
static char test_data[2048] = {0};
data/tthsum-1.3.2/read_test.c:48: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.
static char test_filename[512] = {0};
data/tthsum-1.3.2/read_test.c:66: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(test_data, test_data_src, test_data_len);
data/tthsum-1.3.2/read_test.c:72:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(test_filename, "test_read.XXXXXX");
data/tthsum-1.3.2/read_test.c:73:15:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    if ((fd = mkstemp(test_filename)) < 0) {
data/tthsum-1.3.2/read_test.c:80:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(test_filename, "tempfile.bin"); /* XXX not a proper name, no? */
data/tthsum-1.3.2/read_test.c:86: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 ((fp = fopen(test_filename, "wb")) == NULL) {
data/tthsum-1.3.2/texts.c:37: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.
static char last_error_buf[LAST_ERROR_SIZE];
data/tthsum-1.3.2/texts.c:117:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(last_error_buf + i + w - 2, " (0x%x)", last_error);
data/tthsum-1.3.2/texts.c:122:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(last_error_buf + i, " (0x%x)", (unsigned)last_error);
data/tthsum-1.3.2/texts.c:129:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(last_error_buf + i, " (%i)", last_error);
data/tthsum-1.3.2/texts_test.c:52: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("", O_RDONLY);
data/tthsum-1.3.2/thex_test.c:30:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tstbase32[40];
data/tthsum-1.3.2/thex_test.c:39: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 hexbuf[49];
data/tthsum-1.3.2/thex_test.c:73:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1026];
data/tthsum-1.3.2/thex_test.c:87:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[buflen];
data/tthsum-1.3.2/thex_test.c:90:2:  [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 + i, "\x00" "ABCDEFGHIJKLMNOPQRSTUVWXYZ" "\xff", 28);
data/tthsum-1.3.2/thex_test.c:103:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256];
data/tthsum-1.3.2/tiger.c:813:2:  [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(temp8 + 1, (const uint8_t*)data, 63);
data/tthsum-1.3.2/tiger.c: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(temp8, str, 64); /* 3.5% penalty on x86_64 */
data/tthsum-1.3.2/tiger.c:864:2:  [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(temp8 + 1, (const uint8_t*)data, length);
data/tthsum-1.3.2/tiger_test.c:31:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char base32buf[40];
data/tthsum-1.3.2/tiger_test.c:52:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf64, input, input_len); /* force 64 bit alignment */
data/tthsum-1.3.2/tiger_test.c:76:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[2048];
data/tthsum-1.3.2/tiger_test.c:143:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[256];
data/tthsum-1.3.2/tiger_test.c:146:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *results[256] = {
data/tthsum-1.3.2/tiger_test.c:408:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(name, "<characters 0..%d, length %d>", i, i + 1);
data/tthsum-1.3.2/tiger_test.c:418:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[127];
data/tthsum-1.3.2/tiger_test.c:458:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[128];
data/tthsum-1.3.2/tthsum.c:48:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char hash_base32[40];
data/tthsum-1.3.2/tthsum.c:50:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t filename_uni[MY_PATH_MAX + 1];
data/tthsum-1.3.2/tthsum.c:52:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char filename_buf[MY_PATH_MAX * 4 + 1];
data/tthsum-1.3.2/tthsum.c:77: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 filename_tmp[MY_PATH_MAX + 1];
data/tthsum-1.3.2/tthsum.c:130:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t filename_uni[MY_PATH_MAX * 4 + 1];
data/tthsum-1.3.2/tthsum.c:131:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char filename_mbs[MY_PATH_MAX * 4 + 1];
data/tthsum-1.3.2/tthsum.c:132:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char filename[MY_PATH_MAX * 4 + 1];
data/tthsum-1.3.2/utf8.c:212:11:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    ret = MultiByteToWideChar(
data/tthsum-1.3.2/utf8_test.c:29:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char utf8buf[2048];
data/tthsum-1.3.2/utf8_test.c:31:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t unicodebuf[2048];
data/tthsum-1.3.2/utf8_test.c:80:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t buf[5];
data/tthsum-1.3.2/utf8_test.c:141:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t unicode[2048];
data/tthsum-1.3.2/utf8_test.c:142:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char utf8[2048];
data/tthsum-1.3.2/utf8_test.c:175:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t buf[2];
data/tthsum-1.3.2/base32_test.c:38:29:  [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 (uint8len >= 1024 || strlen(base32) >= 2048)
data/tthsum-1.3.2/base32_test.c:40:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		uint8len, (unsigned)strlen(base32));
data/tthsum-1.3.2/base32_test.c:59: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).
    if (uint64len >= 1024 / 8 || strlen(base32) >= 2048)
data/tthsum-1.3.2/base32_test.c:61:24:  [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).
		uint64len, (unsigned)strlen(base32));
data/tthsum-1.3.2/base32_test.c:75:6:  [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).
	    strlen(string), base32, 0);
data/tthsum-1.3.2/base32_test.c:80:6:  [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).
	    strlen(string), base32, 1);
data/tthsum-1.3.2/base32_test.c:100:6:  [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).
	    strlen(string), 0);
data/tthsum-1.3.2/escape_test.c:31:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(str) >= 512 || strlen(escaped) >= 2048)
data/tthsum-1.3.2/escape_test.c:31:31:  [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(str) >= 512 || strlen(escaped) >= 2048)
data/tthsum-1.3.2/escape_test.c:33: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).
		(unsigned)strlen(str), (unsigned)strlen(escaped));
data/tthsum-1.3.2/escape_test.c:33:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		(unsigned)strlen(str), (unsigned)strlen(escaped));
data/tthsum-1.3.2/escape_test.c:49:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(escaped) >= 2048)
data/tthsum-1.3.2/escape_test.c:51: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).
		(unsigned)strlen(escaped));
data/tthsum-1.3.2/read.c:347:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((ret = (int)read(rf->u.rof_sys.fd, rf->u.rof_sys.buf + len,
data/tthsum-1.3.2/read_test.c:110:35:  [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).
    init_test_data(test_data_src, strlen(test_data_src));
data/tthsum-1.3.2/texts.c:66:12:  [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(strlen(context) < 32);
data/tthsum-1.3.2/thex_test.c:69:29:  [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 thex_memcmp(str, strlen(str), base32);
data/tthsum-1.3.2/tiger_test.c:48: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).
    unsigned input_len = strlen(input);
data/tthsum-1.3.2/tthsum.c:54:29:  [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 (filename != NULL && strlen(filename) > MY_PATH_MAX) {
data/tthsum-1.3.2/tthsum.c:103:2:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	strcpy(filename_buf, "-");
data/tthsum-1.3.2/utf8.c:61:15:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = wcslen(src) * 4 + 1;
data/tthsum-1.3.2/utf8.c:79:15:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = wcslen(src);
data/tthsum-1.3.2/utf8.c:187: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).
    int len = strlen(src) + 1;
data/tthsum-1.3.2/utf8.c:205: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).
    int len = strlen(src);
data/tthsum-1.3.2/utf8_test.c:33:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    unsigned utf8len = strlen(utf8);
data/tthsum-1.3.2/utf8_test.c:34:27:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    unsigned unicodelen = wcslen(unicode);

ANALYSIS SUMMARY:

Hits = 89
Lines analyzed = 5660 in approximately 0.22 seconds (25557 lines/second)
Physical Source Lines of Code (SLOC) = 4142
Hits@level = [0]  51 [1]  26 [2]  56 [3]   7 [4]   0 [5]   0
Hits@level+ = [0+] 140 [1+]  89 [2+]  63 [3+]   7 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 33.8001 [1+] 21.4872 [2+] 15.21 [3+] 1.69 [4+]   0 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.