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/rhash-1.4.0/bindings/java/native/bindings.c
Examining data/rhash-1.4.0/bindings/java/native/bindings.h
Examining data/rhash-1.4.0/bindings/java/native/digest.c
Examining data/rhash-1.4.0/bindings/java/native/digest.h
Examining data/rhash-1.4.0/bindings/php/php_compatibility.h
Examining data/rhash-1.4.0/bindings/php/php_rhash.c
Examining data/rhash-1.4.0/bindings/php/php_rhash.h
Examining data/rhash-1.4.0/bindings/ruby/rhash.c
Examining data/rhash-1.4.0/calc_sums.c
Examining data/rhash-1.4.0/calc_sums.h
Examining data/rhash-1.4.0/common_func.c
Examining data/rhash-1.4.0/common_func.h
Examining data/rhash-1.4.0/file.c
Examining data/rhash-1.4.0/file.h
Examining data/rhash-1.4.0/file_mask.c
Examining data/rhash-1.4.0/file_mask.h
Examining data/rhash-1.4.0/file_set.c
Examining data/rhash-1.4.0/file_set.h
Examining data/rhash-1.4.0/find_file.h
Examining data/rhash-1.4.0/hash_check.c
Examining data/rhash-1.4.0/hash_check.h
Examining data/rhash-1.4.0/hash_print.c
Examining data/rhash-1.4.0/hash_print.h
Examining data/rhash-1.4.0/hash_update.c
Examining data/rhash-1.4.0/hash_update.h
Examining data/rhash-1.4.0/librhash/aich.c
Examining data/rhash-1.4.0/librhash/aich.h
Examining data/rhash-1.4.0/librhash/algorithms.c
Examining data/rhash-1.4.0/librhash/algorithms.h
Examining data/rhash-1.4.0/librhash/byte_order.c
Examining data/rhash-1.4.0/librhash/byte_order.h
Examining data/rhash-1.4.0/librhash/crc32.c
Examining data/rhash-1.4.0/librhash/crc32.h
Examining data/rhash-1.4.0/librhash/ed2k.c
Examining data/rhash-1.4.0/librhash/ed2k.h
Examining data/rhash-1.4.0/librhash/edonr.c
Examining data/rhash-1.4.0/librhash/edonr.h
Examining data/rhash-1.4.0/librhash/gost12.c
Examining data/rhash-1.4.0/librhash/gost12.h
Examining data/rhash-1.4.0/librhash/gost94.c
Examining data/rhash-1.4.0/librhash/gost94.h
Examining data/rhash-1.4.0/librhash/has160.c
Examining data/rhash-1.4.0/librhash/has160.h
Examining data/rhash-1.4.0/librhash/hex.c
Examining data/rhash-1.4.0/librhash/hex.h
Examining data/rhash-1.4.0/librhash/md4.c
Examining data/rhash-1.4.0/librhash/md4.h
Examining data/rhash-1.4.0/librhash/md5.c
Examining data/rhash-1.4.0/librhash/md5.h
Examining data/rhash-1.4.0/librhash/plug_openssl.c
Examining data/rhash-1.4.0/librhash/plug_openssl.h
Examining data/rhash-1.4.0/librhash/rhash.c
Examining data/rhash-1.4.0/librhash/rhash.h
Examining data/rhash-1.4.0/librhash/rhash_timing.c
Examining data/rhash-1.4.0/librhash/rhash_timing.h
Examining data/rhash-1.4.0/librhash/rhash_torrent.c
Examining data/rhash-1.4.0/librhash/rhash_torrent.h
Examining data/rhash-1.4.0/librhash/ripemd-160.c
Examining data/rhash-1.4.0/librhash/ripemd-160.h
Examining data/rhash-1.4.0/librhash/sha1.c
Examining data/rhash-1.4.0/librhash/sha1.h
Examining data/rhash-1.4.0/librhash/sha256.c
Examining data/rhash-1.4.0/librhash/sha256.h
Examining data/rhash-1.4.0/librhash/sha3.c
Examining data/rhash-1.4.0/librhash/sha3.h
Examining data/rhash-1.4.0/librhash/sha512.c
Examining data/rhash-1.4.0/librhash/sha512.h
Examining data/rhash-1.4.0/librhash/snefru.c
Examining data/rhash-1.4.0/librhash/snefru.h
Examining data/rhash-1.4.0/librhash/test_hashes.c
Examining data/rhash-1.4.0/librhash/test_hashes.h
Examining data/rhash-1.4.0/librhash/tiger.c
Examining data/rhash-1.4.0/librhash/tiger.h
Examining data/rhash-1.4.0/librhash/tiger_sbox.c
Examining data/rhash-1.4.0/librhash/torrent.c
Examining data/rhash-1.4.0/librhash/torrent.h
Examining data/rhash-1.4.0/librhash/tth.c
Examining data/rhash-1.4.0/librhash/tth.h
Examining data/rhash-1.4.0/librhash/ustd.h
Examining data/rhash-1.4.0/librhash/util.c
Examining data/rhash-1.4.0/librhash/util.h
Examining data/rhash-1.4.0/librhash/whirlpool.c
Examining data/rhash-1.4.0/librhash/whirlpool.h
Examining data/rhash-1.4.0/librhash/whirlpool_sbox.c
Examining data/rhash-1.4.0/output.c
Examining data/rhash-1.4.0/output.h
Examining data/rhash-1.4.0/parse_cmdline.c
Examining data/rhash-1.4.0/parse_cmdline.h
Examining data/rhash-1.4.0/platform.h
Examining data/rhash-1.4.0/rhash_main.c
Examining data/rhash-1.4.0/rhash_main.h
Examining data/rhash-1.4.0/version.h
Examining data/rhash-1.4.0/win_utils.c
Examining data/rhash-1.4.0/win_utils.h
Examining data/rhash-1.4.0/find_file.c

FINAL RESULTS:

data/rhash-1.4.0/common_func.c:431:11:  [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).
	if (res) strcpy(res, str);
data/rhash-1.4.0/common_func.c:456:11:  [4] (buffer) wcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
	if (res) wcscpy(res, str);
data/rhash-1.4.0/common_func.h:78:22:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
# define rsh_fprintf fprintf
data/rhash-1.4.0/common_func.h:79:27:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
# define rsh_fprintf_targ fprintf
data/rhash-1.4.0/common_func.h:80:23:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
# define rsh_vfprintf vfprintf
data/rhash-1.4.0/file.c:100: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(buf + dir_len, sub_path); /* append sub_path */
data/rhash-1.4.0/file.c:816:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	return (access(file->real_path, R_OK) == 0);
data/rhash-1.4.0/file.c:920: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(path, dir_path);
data/rhash-1.4.0/hash_print.c:560:4:  [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(d, p);
data/rhash-1.4.0/librhash/rhash.c:534:4:  [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(output, name);
data/rhash-1.4.0/librhash/test_hashes.c:549:2:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vprintf(format, vl);
data/rhash-1.4.0/librhash/test_hashes.c:850:5:  [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(expected_hash, hash_message(hash_id, message + start, 0));
data/rhash-1.4.0/parse_cmdline.c:29:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(version_buffer, "%s v%s\n", PROGRAM_NAME, get_version_string());
data/rhash-1.4.0/win_utils.c:467:10:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		return vfprintf(out, (format ? format : "%s"), args);
data/rhash-1.4.0/win_utils.c:471:9:  [4] (format) vsnprintf:
  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.
		res = vsnprintf(buffer, sizeof(buffer) - 1, format, args);
data/rhash-1.4.0/win_utils.c:479:9:  [4] (format) vfwprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		res = vfwprintf(out, (wformat ? wformat : L"[UTF8 conversion error]\n"), args);
data/rhash-1.4.0/parse_cmdline.c:310:13:  [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.
	} else if (getenv("MSYSTEM") || getenv("TERM")) {
data/rhash-1.4.0/parse_cmdline.c:310:34:  [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.
	} else if (getenv("MSYSTEM") || getenv("TERM")) {
data/rhash-1.4.0/parse_cmdline.c:569:15:  [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 ( (dir1 = getenv("XDG_CONFIG_HOME")) ) {
data/rhash-1.4.0/parse_cmdline.c:580:15:  [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 ( (dir1 = getenv("HOME")) ) {
data/rhash-1.4.0/parse_cmdline.c:598:15:  [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 ( (dir1 = getenv("APPDATA")) ) {
data/rhash-1.4.0/parse_cmdline.c:611:15:  [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 ( (dir1 = getenv("HOMEDRIVE")) && (path = getenv("HOMEPATH"))) {
data/rhash-1.4.0/parse_cmdline.c:611:47:  [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 ( (dir1 = getenv("HOMEDRIVE")) && (path = getenv("HOMEPATH"))) {
data/rhash-1.4.0/bindings/java/native/bindings.c:85: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 output[130];
data/rhash-1.4.0/bindings/php/php_rhash.c:262: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(&rhash_object_handlers,
data/rhash-1.4.0/bindings/php/php_rhash.c:374: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 buffer[130];
data/rhash-1.4.0/bindings/php/php_rhash.c:394: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 data[8192];
data/rhash-1.4.0/bindings/php/php_rhash.c:442: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 buffer[130];
data/rhash-1.4.0/bindings/php/php_rhash.c:622: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 buffer[130];
data/rhash-1.4.0/bindings/ruby/rhash.c:94: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[130];
data/rhash-1.4.0/calc_sums.c:167:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char raw[4];
data/rhash-1.4.0/calc_sums.c:198: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 suffix[12];
data/rhash-1.4.0/calc_sums.c:443: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 dash_line[84];
data/rhash-1.4.0/calc_sums.c:464: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[4096];
data/rhash-1.4.0/calc_sums.c:683:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char ALIGN_DATA(64) message[8192]; /* 8 KiB */
data/rhash-1.4.0/calc_sums.c:690:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char out[130];
data/rhash-1.4.0/common_func.c:33: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[24]; /* internal buffer to output the number to */
data/rhash-1.4.0/common_func.c:49: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(dst, p + 1, len + 1); /* copy the number to the output buffer */
data/rhash-1.4.0/common_func.c:139: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(result, src, start_pos * sizeof(wchar_t));
data/rhash-1.4.0/common_func.c:143: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(result + start_pos + len2, src + end_pos, (len1 - end_pos) * sizeof(wchar_t));
data/rhash-1.4.0/common_func.c:173: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(result, src, start_pos);
data/rhash-1.4.0/common_func.c:175: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(result + start_pos, replacement, len2);
data/rhash-1.4.0/common_func.c:177: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(result + start_pos + len2, src + end_pos, len1 - end_pos);
data/rhash-1.4.0/common_func.c:661: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(str->str + str->len, text, length);
data/rhash-1.4.0/common_func.h:168: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(((char*)(vect)->array) + item_size * ((vect)->size - 1), item, item_size); \
data/rhash-1.4.0/common_func.h:187: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(rsh_blocks_vector_get_ptr((bvector), (bvector)->size, (blocksize), (item_size)), (item), (item_size)); \
data/rhash-1.4.0/file.c:97: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, dir_path, dir_len);
data/rhash-1.4.0/file.c:133: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(result, dir_path, dir_len * sizeof(wchar_t));
data/rhash-1.4.0/file.c:140: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(result + dir_len, sub_path, (len + 1) * sizeof(wchar_t));
data/rhash-1.4.0/file.c:516: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(&tmp, first, sizeof(file_t));
data/rhash-1.4.0/file.c:517: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(first, second, sizeof(file_t));
data/rhash-1.4.0/file.c:518: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(second, &tmp, sizeof(file_t));
data/rhash-1.4.0/file.c:613: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(dst, src, sizeof(file_t));
data/rhash-1.4.0/file.c:730:9:  [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).
	return fopen(file->real_path, mode);
data/rhash-1.4.0/file.c:869: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[2048];
data/rhash-1.4.0/file.c:921:2:  [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(path + len, "\\*");
data/rhash-1.4.0/hash_check.c:109:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static unsigned char bit_pos[32] =  {
data/rhash-1.4.0/hash_check.c:174:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static unsigned char char_bits[80] = {
data/rhash-1.4.0/hash_check.c:390: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[20];
data/rhash-1.4.0/hash_check.c:752:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char c[4];
data/rhash-1.4.0/hash_check.c:772: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 hex[132], base32[104], base64[88];
data/rhash-1.4.0/hash_print.c:196: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[20];
data/rhash-1.4.0/hash_print.c:332: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[104];
data/rhash-1.4.0/hash_print.c:345:3:  [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(dst, "|h=");
data/rhash-1.4.0/hash_print.c:349:2:  [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(dst, "|/");
data/rhash-1.4.0/hash_print.c:419: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 buffer[130];
data/rhash-1.4.0/hash_print.c:721: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[24];
data/rhash-1.4.0/hash_print.h:30: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 short_name[20];
data/rhash-1.4.0/hash_update.c:185: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[2048];
data/rhash-1.4.0/hash_update.c:244: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[2048];
data/rhash-1.4.0/librhash/aich.c:91:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
typedef unsigned char hash_pair_t[2][sha1_hash_size];
data/rhash-1.4.0/librhash/aich.c:191:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char sha1_stack[56][sha1_hash_size];
data/rhash-1.4.0/librhash/aich.c:202: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 sha1_message[sha1_hash_size];
data/rhash-1.4.0/librhash/aich.c:234: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((level > 0 ? sha1_stack[level] : result), leaf_hash, 20);
data/rhash-1.4.0/librhash/aich.c:271:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			ctx->block_hashes = (unsigned char (*)[sha1_hash_size])malloc(BLOCKS_PER_CHUNK * sha1_hash_size);
data/rhash-1.4.0/librhash/aich.c:285: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 (*pair)[sha1_hash_size];
data/rhash-1.4.0/librhash/aich.c:358:47:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void rhash_aich_final(aich_ctx* ctx, unsigned char result[20])
data/rhash-1.4.0/librhash/aich.c:374:15:  [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 (result) memcpy(result, hash, sha1_hash_size);
data/rhash-1.4.0/librhash/aich.c:402:14:  [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 (result) memcpy(result, hash, sha1_hash_size);
data/rhash-1.4.0/librhash/aich.h:21:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char (*block_hashes)[sha1_hash_size];
data/rhash-1.4.0/librhash/aich.h:33:47:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void rhash_aich_final(aich_ctx* ctx, unsigned char result[20]);
data/rhash-1.4.0/librhash/byte_order.c:48:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static unsigned char bit_pos[32] =  {
data/rhash-1.4.0/librhash/byte_order.h:166:45:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
# define be32_copy(to, index, from, length) memcpy((to) + (index), (from), (length))
data/rhash-1.4.0/librhash/byte_order.h:168:45:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
# define be64_copy(to, index, from, length) memcpy((to) + (index), (from), (length))
data/rhash-1.4.0/librhash/byte_order.h:170:43:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
# define me64_to_be_str(to, from, length) memcpy((to), (from), (length))
data/rhash-1.4.0/librhash/byte_order.h:180:45:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
# define le32_copy(to, index, from, length) memcpy((to) + (index), (from), (length))
data/rhash-1.4.0/librhash/byte_order.h:182:45:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
# define le64_copy(to, index, from, length) memcpy((to) + (index), (from), (length))
data/rhash-1.4.0/librhash/byte_order.h:184:43:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
# define me64_to_le_str(to, from, length) memcpy((to), (from), (length))
data/rhash-1.4.0/librhash/ed2k.c:59:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char chunk_md4_hash[16];
data/rhash-1.4.0/librhash/ed2k.c:94:47:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void rhash_ed2k_final(ed2k_ctx* ctx, unsigned char result[16])
data/rhash-1.4.0/librhash/ed2k.c:106:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			unsigned char md4_digest_inner[16];
data/rhash-1.4.0/librhash/ed2k.c:113: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(&ctx->md4_context_inner.hash, &ctx->md4_context.hash, md4_hash_size);
data/rhash-1.4.0/librhash/ed2k.h:22:47:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void rhash_ed2k_final(ed2k_ctx* ctx, unsigned char result[16]);
data/rhash-1.4.0/librhash/edonr.c:40: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(ctx->u.data256.hash, EDONR256_H0, sizeof(EDONR256_H0));
data/rhash-1.4.0/librhash/edonr.c:61: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(ctx->u.data256.hash, EDONR224_H0, sizeof(EDONR224_H0));
data/rhash-1.4.0/librhash/edonr.c:82: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(ctx->u.data512.hash, EDONR512_H0, sizeof(EDONR512_H0));
data/rhash-1.4.0/librhash/edonr.c:103: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(ctx->u.data512.hash, EDONR384_H0, sizeof(EDONR384_H0));
data/rhash-1.4.0/librhash/gost12.c:844:51:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void rhash_gost12_final(gost12_ctx* ctx, unsigned char result[32])
data/rhash-1.4.0/librhash/gost12.h:29:51:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void rhash_gost12_final(gost12_ctx* ctx, unsigned char result[32]);
data/rhash-1.4.0/librhash/gost94.c:355: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(ctx->message + index, msg, (size < left ? size : left));
data/rhash-1.4.0/librhash/gost94.c:374: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(ctx->message, msg, gost94_block_size);
data/rhash-1.4.0/librhash/gost94.c:384: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(ctx->message, msg, size);
data/rhash-1.4.0/librhash/gost94.c:394:51:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void rhash_gost94_final(gost94_ctx* ctx, unsigned char result[32])
data/rhash-1.4.0/librhash/gost94.c:429:73:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 void rhash_gost94_fill_sbox(unsigned out[4][256], const unsigned char src[8][16])
data/rhash-1.4.0/librhash/gost94.c:460:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static const unsigned char sbox[8][16] = {
data/rhash-1.4.0/librhash/gost94.c:473:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static const unsigned char sbox_cryptpro[8][16] = {
data/rhash-1.4.0/librhash/gost94.h:18:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char message[gost94_block_size]; /* 256-bit buffer for leftovers */
data/rhash-1.4.0/librhash/gost94.h:28:51:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void rhash_gost94_final(gost94_ctx* ctx, unsigned char result[32]);
data/rhash-1.4.0/librhash/has160.c:215: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*)ctx->message + index, msg, (size < left ? size : left));
data/rhash-1.4.0/librhash/has160.c:230: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(ctx->message, msg, has160_block_size);
data/rhash-1.4.0/librhash/has160.c:240: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(ctx->message, msg, size);
data/rhash-1.4.0/librhash/hex.c:112: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 buffer[164];
data/rhash-1.4.0/librhash/hex.c:187: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[24];
data/rhash-1.4.0/librhash/hex.c:208: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(dst, p, length + 1);
data/rhash-1.4.0/librhash/md4.c:178:45:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void rhash_md4_final(md4_ctx* ctx, unsigned char result[16])
data/rhash-1.4.0/librhash/md4.h:25:45:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void rhash_md4_final(md4_ctx* ctx, unsigned char result[16]);
data/rhash-1.4.0/librhash/md5.h:25:45:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void rhash_md5_final(md5_ctx* ctx, unsigned char result[16]);
data/rhash-1.4.0/librhash/plug_openssl.c:109: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(result, ((WHIRLPOOL_CTX*)ctx)->H.c, 64);
data/rhash-1.4.0/librhash/plug_openssl.c:239: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(&rhash_openssl_hash_info[bit_index], method, sizeof(rhash_hash_info));
data/rhash-1.4.0/librhash/rhash.c:232:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buffer[130];
data/rhash-1.4.0/librhash/rhash.c:299: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(result, digest, info->info->digest_size);
data/rhash-1.4.0/librhash/rhash.c:371: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).
	if ((fd = fopen(filepath, "rb")) == NULL)
data/rhash-1.4.0/librhash/rhash.c:500:3:  [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(output, "magnet:?");
data/rhash-1.4.0/librhash/rhash.c:505:3:  [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(output, "xl=");
data/rhash-1.4.0/librhash/rhash.c:513:3:  [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(output, "dn=");
data/rhash-1.4.0/librhash/rhash.c:532:4:  [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(output, "xt=urn:");
data/rhash-1.4.0/librhash/rhash.c:572: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(output, bytes, size);
data/rhash-1.4.0/librhash/rhash.c:583:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char digest[80];
data/rhash-1.4.0/librhash/rhash_timing.c:145:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char ALIGN_ATTR(64) message[8192]; /* 8 KiB */
data/rhash-1.4.0/librhash/rhash_timing.c:152:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char out[130];
data/rhash-1.4.0/librhash/ripemd-160.c:313:57:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void rhash_ripemd160_final(ripemd160_ctx* ctx, unsigned char result[20])
data/rhash-1.4.0/librhash/ripemd-160.h:25:57:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void rhash_ripemd160_final(ripemd160_ctx* ctx, unsigned char result[20]);
data/rhash-1.4.0/librhash/sha1.c:132: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(ctx->message + index, msg, (size < left ? size : left));
data/rhash-1.4.0/librhash/sha1.c:147: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(ctx->message, msg, sha1_block_size);
data/rhash-1.4.0/librhash/sha1.c:157: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(ctx->message, msg, size);
data/rhash-1.4.0/librhash/sha1.h:16:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char message[sha1_block_size]; /* 512-bit buffer for leftovers */
data/rhash-1.4.0/librhash/sha256.c:179: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*)ctx->message + index, msg, (size < left ? size : left));
data/rhash-1.4.0/librhash/sha256.c:194: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(ctx->message, msg, sha256_block_size);
data/rhash-1.4.0/librhash/sha256.c:203: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(ctx->message, msg, size); /* save leftovers */
data/rhash-1.4.0/librhash/sha256.h:26:51:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void rhash_sha256_final(sha256_ctx* ctx, unsigned char result[32]);
data/rhash-1.4.0/librhash/sha3.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((char*)ctx->message + index, msg, (size < left ? size : left));
data/rhash-1.4.0/librhash/sha3.c:295: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(ctx->message, msg, block_size);
data/rhash-1.4.0/librhash/sha3.c:304: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(ctx->message, msg, size); /* save leftovers */
data/rhash-1.4.0/librhash/sha512.c:197: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*)ctx->message + index, msg, (size < left ? size : left));
data/rhash-1.4.0/librhash/sha512.c:212: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(ctx->message, msg, sha512_block_size);
data/rhash-1.4.0/librhash/sha512.c:221: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(ctx->message, msg, size); /* save leftovers */
data/rhash-1.4.0/librhash/snefru.c:860: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*)ctx->buffer + ctx->index, msg, (size < left ? size : left));
data/rhash-1.4.0/librhash/snefru.c:879: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(ctx->buffer, msg, data_block_size);
data/rhash-1.4.0/librhash/snefru.c:891: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(ctx->buffer, msg, size);
data/rhash-1.4.0/librhash/snefru.h:23:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buffer[48]; /* 384-bit message block */
data/rhash-1.4.0/librhash/test_hashes.c:568:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char out[130];
data/rhash-1.4.0/librhash/test_hashes.c:651: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 ALIGN_ATTR(64) msg_chunk[8192]; /* 8 KiB */
data/rhash-1.4.0/librhash/test_hashes.c:652: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 msg_name[20];
data/rhash-1.4.0/librhash/test_hashes.c:654:16:  [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.
	if (ch >= 32) sprintf(msg_name, "\"%c\"x%d", ch, (int)msg_size);
data/rhash-1.4.0/librhash/test_hashes.c:655:7:  [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.
	else sprintf(msg_name, "\"\\%o\"x%d", (unsigned)(unsigned char)ch, (int)msg_size);
data/rhash-1.4.0/librhash/test_hashes.c:797:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char res1[70];
data/rhash-1.4.0/librhash/test_hashes.c:798: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 res2[70];
data/rhash-1.4.0/librhash/test_hashes.c:834: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 expected_hash[130];
data/rhash-1.4.0/librhash/test_hashes.c:841: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 message[30];
data/rhash-1.4.0/librhash/test_hashes.c:904:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char out[240];
data/rhash-1.4.0/librhash/test_hashes.c:957: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[30];
data/rhash-1.4.0/librhash/tiger.c:170: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(ctx->message + index, msg, size);
data/rhash-1.4.0/librhash/tiger.c:173: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(ctx->message + index, msg, left);
data/rhash-1.4.0/librhash/tiger.c:185: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(ctx->message, msg, tiger_block_size);
data/rhash-1.4.0/librhash/tiger.c:194: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(ctx->message, msg, size);
data/rhash-1.4.0/librhash/tiger.c:204:49:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void rhash_tiger_final(tiger_ctx* ctx, unsigned char result[24])
data/rhash-1.4.0/librhash/tiger.h:18:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char message[tiger_block_size]; /* 512-bit buffer for leftovers */
data/rhash-1.4.0/librhash/tiger.h:27:49:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void rhash_tiger_final(tiger_ctx* ctx, unsigned char result[24]);
data/rhash-1.4.0/librhash/torrent.c:163: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 path[1];
data/rhash-1.4.0/librhash/torrent.c:184: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(info->path, path, len + 1);
data/rhash-1.4.0/librhash/torrent.c:237:42:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void bt_final(torrent_ctx* ctx, unsigned char result[20])
data/rhash-1.4.0/librhash/torrent.c:244:14:  [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 (result) memcpy(result, ctx->btih, btih_hash_size);
data/rhash-1.4.0/librhash/torrent.c:288: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(ctx->content.str + ctx->content.length, text, length);
data/rhash-1.4.0/librhash/torrent.c:335: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(p, str, len + 1); /* copy with trailing '\0' */
data/rhash-1.4.0/librhash/torrent.c:363: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(p, ctx->hash_blocks.array[i],
data/rhash-1.4.0/librhash/torrent.c:538:11:  [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 (res) memcpy(res, str, len + 1);
data/rhash-1.4.0/librhash/torrent.h:32:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char btih[20]; /* resulting BTIH hash sum */
data/rhash-1.4.0/librhash/torrent.h:55:42:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void bt_final(torrent_ctx* ctx, unsigned char result[20]);
data/rhash-1.4.0/librhash/tth.c:42:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char msg[24];
data/rhash-1.4.0/librhash/tth.c:93:45:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void rhash_tth_final(tth_ctx* ctx, unsigned char result[24])
data/rhash-1.4.0/librhash/tth.c:97:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char msg[24];
data/rhash-1.4.0/librhash/tth.c:123: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(ctx->tiger.hash, last_message, tiger_hash_length);
data/rhash-1.4.0/librhash/tth.c:124:14:  [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 (result) memcpy(result, last_message, tiger_hash_length);
data/rhash-1.4.0/librhash/tth.h:23:45:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void rhash_tth_final(tth_ctx* ctx, unsigned char result[64]);
data/rhash-1.4.0/librhash/whirlpool.c:146: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(ctx->message + index, msg, (size < left ? size : left));
data/rhash-1.4.0/librhash/whirlpool.c:161: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(ctx->message, msg, whirlpool_block_size);
data/rhash-1.4.0/librhash/whirlpool.c:171: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(ctx->message, msg, size);
data/rhash-1.4.0/librhash/whirlpool.h:16:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char message[whirlpool_block_size]; /* 512-bit buffer to hash */
data/rhash-1.4.0/output.c:102: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 buffer[1024];
data/rhash-1.4.0/output.c:254: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 actual[130], expected[130];
data/rhash-1.4.0/output.c:322: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[56];
data/rhash-1.4.0/output.c:439: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[80];
data/rhash-1.4.0/output.c:511: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.
	static const char rotated_bar[4] = {'-', '\\', '|', '/'};
data/rhash-1.4.0/parse_cmdline.c:28:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char version_buffer[64];
data/rhash-1.4.0/parse_cmdline.c:276:22:  [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).
	o->find_max_depth = atoi(number);
data/rhash-1.4.0/parse_cmdline.c:293:31:  [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).
	o->bt_piece_length = (size_t)atoi(number);
data/rhash-1.4.0/parse_cmdline.c:481: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[4];
data/rhash-1.4.0/parse_cmdline.c:645: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[LINE_BUF_SIZE];
data/rhash-1.4.0/rhash_main.c:150: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 buffer[8192];
data/rhash-1.4.0/win_utils.c:44:2:  [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 format_buffer[4096];
data/rhash-1.4.0/win_utils.c:45:2:  [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 printf_result[65536];
data/rhash-1.4.0/win_utils.c:46:2:  [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 program_dir[32768];
data/rhash-1.4.0/win_utils.c:62:6:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
	if (MultiByteToWideChar(codepage, 0, str, -1, buffer, buf_size / sizeof(wchar_t)) != 0)
data/rhash-1.4.0/win_utils.c:80:13:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
	int size = MultiByteToWideChar(codepage, flags, str, -1, NULL, 0);
data/rhash-1.4.0/win_utils.c:83:7:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
		if (MultiByteToWideChar(codepage, flags, str, -1, buf, size) != 0)
data/rhash-1.4.0/win_utils.c:205:4:  [2] (buffer) wcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer. Risk is low because the source is a constant string.
			wcscpy(result, L"\\\\?\\");
data/rhash-1.4.0/win_utils.c:470:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		static char buffer[8192];
data/rhash-1.4.0/calc_sums.c:166: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).
	const char* e = filepath + strlen(filepath) - 10;
data/rhash-1.4.0/common_func.c:91: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).
	char* last = str + strlen(str) - 1;
data/rhash-1.4.0/common_func.c:126:22:  [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).
	const size_t len1 = wcslen(src);
data/rhash-1.4.0/common_func.c:127:37:  [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 len2 = (replacement ? strlen(replacement) : 0);
data/rhash-1.4.0/common_func.c:161: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).
	const size_t len1 = strlen(src);
data/rhash-1.4.0/common_func.c:162:37:  [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 len2 = (replacement ? strlen(replacement) : 0);
data/rhash-1.4.0/common_func.c:430:28:  [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).
	char* res = (char*)malloc(strlen(str)+1);
data/rhash-1.4.0/common_func.c:455:35:  [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).
	wchar_t* res = (wchar_t*)malloc((wcslen(str) + 1) * sizeof(wchar_t));
data/rhash-1.4.0/common_func.c:460:66:  [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).
		rsh_report_error(srcfile, srcline, "wcsdup(\"%u\") failed\n", (wcslen(str) + 1));
data/rhash-1.4.0/common_func.c:674:30:  [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).
	rsh_str_append_n(str, text, strlen(text));
data/rhash-1.4.0/file.c:65:18:  [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 (p = path + strlen(path) - 1; p >= path && !IS_PATH_SEPARATOR(*p); p--);
data/rhash-1.4.0/file.c:94: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).
	for (dir_len = strlen(dir_path); dir_len > 0 && IS_ANY_SLASH(dir_path[dir_len - 1]); dir_len--);
data/rhash-1.4.0/file.c:96: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).
	buf = (char*)rsh_malloc(dir_len + strlen(sub_path) + 2);
data/rhash-1.4.0/file.c:128:14:  [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).
			dir_len = wcslen(dir_path);
data/rhash-1.4.0/file.c:130:8:  [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).
	len = wcslen(sub_path);
data/rhash-1.4.0/file.c:387: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).
		char* p = (char*)path - 1 + strlen(path);
data/rhash-1.4.0/file.c:538: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).
			end_pos = strlen(path);
data/rhash-1.4.0/file.c:575:14:  [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).
			end_pos = wcslen(path);
data/rhash-1.4.0/file.c:917: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(dir_path);
data/rhash-1.4.0/file_mask.c:79: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).
	namelen = strlen(buf);
data/rhash-1.4.0/file_mask.c:81: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).
		len = strlen((char*)vect->array[i]);
data/rhash-1.4.0/file_set.c:24:37:  [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 (rhash_msg(RHASH_CRC32, string, strlen(string), (unsigned char*)&hash) < 0)
data/rhash-1.4.0/find_file.c:60: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).
		file.size = strlen(ext_data);
data/rhash-1.4.0/hash_check.c:319: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).
		return (length == strlen(hash_info_table[i].name) ? hash_mask : 0);
data/rhash-1.4.0/hash_check.c:327: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).
		assert(length > 4 && strlen(hash_info_table[i].name) > 4);
data/rhash-1.4.0/hash_print.c:133: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).
	buf = p = (char*)rsh_malloc( strlen(format) + 1 );
data/rhash-1.4.0/hash_print.c:340: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).
	dst += strlen(dst);
data/rhash-1.4.0/hash_print.c:554: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).
		assert(strlen(info->name) < 19);
data/rhash-1.4.0/hash_print.c:695: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).
					i = (int)strlen(info->bsd_name);
data/rhash-1.4.0/hash_update.c:152:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ch = fgetc(ctx->fd);
data/rhash-1.4.0/librhash/rhash.c:472:47:  [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 += 4 + rhash_urlencode(NULL, filepath, strlen(filepath), 0);
data/rhash-1.4.0/librhash/rhash.c:481: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).
		size += (7 + 2) + strlen(name);
data/rhash-1.4.0/librhash/rhash.c:515:47:  [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).
		output += rhash_urlencode(output, filepath, strlen(filepath), flags);
data/rhash-1.4.0/librhash/rhash.c:535: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).
			output += strlen(name);
data/rhash-1.4.0/librhash/test_hashes.c:620: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).
	size_t msg_size = strlen(msg);
data/rhash-1.4.0/librhash/test_hashes.c:635: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).
	size_t msg_size = strlen(msg);
data/rhash-1.4.0/librhash/test_hashes.c:793: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).
	size_t msg_size = strlen(msg);
data/rhash-1.4.0/librhash/test_hashes.c:914:18:  [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 size2 = strlen(out) + 1;
data/rhash-1.4.0/librhash/test_hashes.c:961: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).
	if (strlen(name) > (sizeof(buf) - 1)) return 0;
data/rhash-1.4.0/librhash/torrent.c:176: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(path);
data/rhash-1.4.0/librhash/torrent.c:284:18:  [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 length = strlen(text);
data/rhash-1.4.0/librhash/torrent.c:323: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(str);
data/rhash-1.4.0/librhash/torrent.c:536: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(str);
data/rhash-1.4.0/output.c:43:61:  [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).
		format_length = (IS_UTF8() ? count_utf8_symbols(format) : strlen(format)) - 2;
data/rhash-1.4.0/output.c:46:98:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return format_length + (IS_UTF8() || (output_flags & OutForceUtf8) ? count_utf8_symbols(path) : strlen(path));
data/rhash-1.4.0/parse_cmdline.c:30: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).
	assert(strlen(version_buffer) < sizeof(version_buffer));
data/rhash-1.4.0/parse_cmdline.c:221:54:  [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).
			length = (next != NULL ? (size_t)(next++ - cur) : strlen(cur));
data/rhash-1.4.0/parse_cmdline.c:272:37:  [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 (strspn(number, "0123456789") < strlen(number)) {
data/rhash-1.4.0/parse_cmdline.c:289:37:  [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 (strspn(number, "0123456789") < strlen(number)) {
data/rhash-1.4.0/parse_cmdline.c:737:74:  [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).
	length = ((eq_sign = wcschr(wname, L'=')) ? (size_t)(eq_sign - wname) : wcslen(wname));
data/rhash-1.4.0/parse_cmdline.c:760:71:  [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).
	length = ((eq_sign = strchr(name, '=')) ? (size_t)(eq_sign - name) : strlen(name));
data/rhash-1.4.0/parse_cmdline.c:765:3:  [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(t->long_name) != length); t++) {
data/rhash-1.4.0/win_utils.c:201:31:  [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).
	if (!IS_UNC_PREFIX(wpath) && wcslen(wpath) > 200) {

ANALYSIS SUMMARY:

Hits = 260
Lines analyzed = 24808 in approximately 0.86 seconds (28738 lines/second)
Physical Source Lines of Code (SLOC) = 17358
Hits@level = [0]  24 [1]  53 [2] 184 [3]   7 [4]  16 [5]   0
Hits@level+ = [0+] 284 [1+] 260 [2+] 207 [3+]  23 [4+]  16 [5+]   0
Hits/KSLOC@level+ = [0+] 16.3613 [1+] 14.9787 [2+] 11.9253 [3+] 1.32504 [4+] 0.921765 [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.