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/gtkhash-1.2/src/callbacks.c
Examining data/gtkhash-1.2/src/callbacks.h
Examining data/gtkhash-1.2/src/check.c
Examining data/gtkhash-1.2/src/check.h
Examining data/gtkhash-1.2/src/gui.c
Examining data/gtkhash-1.2/src/gui.h
Examining data/gtkhash-1.2/src/hash.c
Examining data/gtkhash-1.2/src/hash.h
Examining data/gtkhash-1.2/src/list.c
Examining data/gtkhash-1.2/src/list.h
Examining data/gtkhash-1.2/src/main.c
Examining data/gtkhash-1.2/src/main.h
Examining data/gtkhash-1.2/src/prefs.c
Examining data/gtkhash-1.2/src/prefs.h
Examining data/gtkhash-1.2/src/uri-digest.c
Examining data/gtkhash-1.2/src/uri-digest.h
Examining data/gtkhash-1.2/src/test.c
Examining data/gtkhash-1.2/src/hash/md6/md6.c
Examining data/gtkhash-1.2/src/hash/md6/md6.h
Examining data/gtkhash-1.2/src/hash/md6/md6_compress.c
Examining data/gtkhash-1.2/src/hash/md6/md6_mode.c
Examining data/gtkhash-1.2/src/hash/mutils/mhash_config.h
Examining data/gtkhash-1.2/src/hash/digest.c
Examining data/gtkhash-1.2/src/hash/digest.h
Examining data/gtkhash-1.2/src/hash/digest-format.h
Examining data/gtkhash-1.2/src/hash/hash-file.c
Examining data/gtkhash-1.2/src/hash/hash-file.h
Examining data/gtkhash-1.2/src/hash/hash-func.c
Examining data/gtkhash-1.2/src/hash/hash-func.h
Examining data/gtkhash-1.2/src/hash/hash-lib.c
Examining data/gtkhash-1.2/src/hash/hash-lib.h
Examining data/gtkhash-1.2/src/hash/hash-string.c
Examining data/gtkhash-1.2/src/hash/hash-string.h
Examining data/gtkhash-1.2/src/hash/hmac.c
Examining data/gtkhash-1.2/src/hash/hmac.h
Examining data/gtkhash-1.2/src/hash/hash-lib-blake2.c
Examining data/gtkhash-1.2/src/hash/hash-lib-gcrypt.c
Examining data/gtkhash-1.2/src/hash/hash-lib-glib.c
Examining data/gtkhash-1.2/src/hash/hash-lib-crypto.c
Examining data/gtkhash-1.2/src/hash/hash-lib-linux.c
Examining data/gtkhash-1.2/src/hash/hash-lib-mbedtls.c
Examining data/gtkhash-1.2/src/hash/hash-lib-md6.c
Examining data/gtkhash-1.2/src/hash/hash-lib-mhash.c
Examining data/gtkhash-1.2/src/hash/hash-lib-nettle.c
Examining data/gtkhash-1.2/src/hash/hash-lib-zlib.c
Examining data/gtkhash-1.2/src/util/util.c
Examining data/gtkhash-1.2/src/util/util.h
Examining data/gtkhash-1.2/src/nautilus/properties.c
Examining data/gtkhash-1.2/src/nautilus/properties.h
Examining data/gtkhash-1.2/src/nautilus/properties-hash.c
Examining data/gtkhash-1.2/src/nautilus/properties-hash.h
Examining data/gtkhash-1.2/src/nautilus/properties-list.c
Examining data/gtkhash-1.2/src/nautilus/properties-list.h
Examining data/gtkhash-1.2/src/nautilus/properties-prefs.c
Examining data/gtkhash-1.2/src/nautilus/properties-prefs.h

FINAL RESULTS:

data/gtkhash-1.2/src/hash/digest.c:40:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(&ret[i * 2], 3, format_str, digest->bin[i]);
data/gtkhash-1.2/src/hash/hash-lib-linux.c:86:2:  [4] (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).
	strcpy((char *)addr.salg_name, data.name);
data/gtkhash-1.2/src/hash/hash-lib-linux.c:109:2:  [4] (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).
	strcpy((char *)addr.salg_name, LIB_DATA->name);
data/gtkhash-1.2/src/check.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.
	const char * const pattern[CHECK_FORMAT_N];
data/gtkhash-1.2/src/hash/hmac.c:57: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(padded_key, func->hmac_data->digest->bin, newsize);
data/gtkhash-1.2/src/hash/hmac.c:61: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(padded_key, key, key_size);
data/gtkhash-1.2/src/hash/md6/md6.h:227:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char hashval[ md6_c*(md6_w/8) ];
data/gtkhash-1.2/src/hash/md6/md6.h:234:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char hexhashval[(md6_c*(md6_w/8))+1];
data/gtkhash-1.2/src/hash/md6/md6_compress.c:276: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( A, N, n*sizeof(md6_word) );    /* copy N to front of A */
data/gtkhash-1.2/src/hash/md6/md6_compress.c:280: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( C, A+(r-1)*c+n, c*sizeof(md6_word) ); /* output into C */
data/gtkhash-1.2/src/hash/md6/md6_compress.c:370: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((unsigned char *)&N[ni],
data/gtkhash-1.2/src/hash/md6/md6_compress.c:380: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((unsigned char *)&N[ni],
data/gtkhash-1.2/src/hash/md6/md6_compress.c:385: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(N+ni,B,b*sizeof(md6_word));      /* B: data words    25--88 */
data/gtkhash-1.2/src/hash/md6/md6_mode.c:432: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(st->K,key,keylen);    /* else save key (with zeros added) */
data/gtkhash-1.2/src/hash/md6/md6_mode.c:639: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( st->hashval, C, md6_c*(w/8) );
data/gtkhash-1.2/src/hash/md6/md6_mode.c:655: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((char *)st->B[next_level] + st->bits[next_level]/8,
data/gtkhash-1.2/src/hash/md6/md6_mode.c:698: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((char *)st->B[1] + st->bits[1]/8,
data/gtkhash-1.2/src/hash/md6/md6_mode.c:837:24:  [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 (hashval != NULL) memcpy( hashval, st->hashval, (st->d+7)/8 );
data/gtkhash-1.2/src/check.c:124: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).
	size_t len = strlen(basename);
data/gtkhash-1.2/src/check.c:127:11:  [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).
	g_assert(strlen(STR) == LEN); \
data/gtkhash-1.2/src/hash/hash-lib-linux.c:138:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	*size = read(LIB_DATA->connfd, digest, func->digest_size);
data/gtkhash-1.2/src/hash/hash-string.c:40: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).
	const size_t len = strlen(str);

ANALYSIS SUMMARY:

Hits = 22
Lines analyzed = 9936 in approximately 0.33 seconds (30297 lines/second)
Physical Source Lines of Code (SLOC) = 6711
Hits@level = [0]   1 [1]   4 [2]  15 [3]   0 [4]   3 [5]   0
Hits@level+ = [0+]  23 [1+]  22 [2+]  18 [3+]   3 [4+]   3 [5+]   0
Hits/KSLOC@level+ = [0+] 3.42721 [1+] 3.2782 [2+] 2.68216 [3+] 0.447027 [4+] 0.447027 [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.