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/scrypt-1.3.1/main.c
Examining data/scrypt-1.3.1/lib/scryptenc/scryptenc_cpuperf.h
Examining data/scrypt-1.3.1/lib/scryptenc/scryptenc.c
Examining data/scrypt-1.3.1/lib/scryptenc/scryptenc.h
Examining data/scrypt-1.3.1/lib/scryptenc/scryptenc_cpuperf.c
Examining data/scrypt-1.3.1/lib/crypto/crypto_scrypt_smix.h
Examining data/scrypt-1.3.1/lib/crypto/crypto_scrypt_smix_sse2.h
Examining data/scrypt-1.3.1/lib/crypto/crypto_scrypt_smix.c
Examining data/scrypt-1.3.1/lib/crypto/crypto_scrypt_smix_sse2.c
Examining data/scrypt-1.3.1/lib/crypto/crypto_scrypt-ref.c
Examining data/scrypt-1.3.1/libcperciva/crypto/crypto_entropy_rdrand.h
Examining data/scrypt-1.3.1/libcperciva/crypto/crypto_verify_bytes.h
Examining data/scrypt-1.3.1/libcperciva/crypto/crypto_aes_aesni.c
Examining data/scrypt-1.3.1/libcperciva/crypto/crypto_aes.c
Examining data/scrypt-1.3.1/libcperciva/crypto/crypto_aesctr.c
Examining data/scrypt-1.3.1/libcperciva/crypto/crypto_entropy.c
Examining data/scrypt-1.3.1/libcperciva/crypto/crypto_aes_aesni.h
Examining data/scrypt-1.3.1/libcperciva/crypto/crypto_verify_bytes.c
Examining data/scrypt-1.3.1/libcperciva/crypto/crypto_entropy_rdrand.c
Examining data/scrypt-1.3.1/libcperciva/crypto/crypto_entropy.h
Examining data/scrypt-1.3.1/libcperciva/crypto/crypto_aes.h
Examining data/scrypt-1.3.1/libcperciva/crypto/crypto_aesctr.h
Examining data/scrypt-1.3.1/libcperciva/cpusupport/cpusupport_x86_shani.c
Examining data/scrypt-1.3.1/libcperciva/cpusupport/Build/cpusupport-X86-RDRAND.c
Examining data/scrypt-1.3.1/libcperciva/cpusupport/Build/cpusupport-X86-AESNI.c
Examining data/scrypt-1.3.1/libcperciva/cpusupport/Build/cpusupport-X86-SSSE3.c
Examining data/scrypt-1.3.1/libcperciva/cpusupport/Build/cpusupport-X86-CPUID.c
Examining data/scrypt-1.3.1/libcperciva/cpusupport/Build/cpusupport-X86-CPUID_COUNT.c
Examining data/scrypt-1.3.1/libcperciva/cpusupport/Build/cpusupport-X86-SHANI.c
Examining data/scrypt-1.3.1/libcperciva/cpusupport/Build/cpusupport-X86-SSE2.c
Examining data/scrypt-1.3.1/libcperciva/cpusupport/cpusupport_x86_rdrand.c
Examining data/scrypt-1.3.1/libcperciva/cpusupport/cpusupport_x86_sse2.c
Examining data/scrypt-1.3.1/libcperciva/cpusupport/cpusupport_x86_ssse3.c
Examining data/scrypt-1.3.1/libcperciva/cpusupport/cpusupport_x86_aesni.c
Examining data/scrypt-1.3.1/libcperciva/cpusupport/cpusupport.h
Examining data/scrypt-1.3.1/libcperciva/alg/sha256_shani.c
Examining data/scrypt-1.3.1/libcperciva/alg/sha256.h
Examining data/scrypt-1.3.1/libcperciva/alg/sha256.c
Examining data/scrypt-1.3.1/libcperciva/alg/sha256_shani.h
Examining data/scrypt-1.3.1/libcperciva/POSIX/posix-inet-addrstrlen.c
Examining data/scrypt-1.3.1/libcperciva/POSIX/posix-restrict.c
Examining data/scrypt-1.3.1/libcperciva/POSIX/posix-inet6-addrstrlen.c
Examining data/scrypt-1.3.1/libcperciva/POSIX/posix-clock_gettime.c
Examining data/scrypt-1.3.1/libcperciva/POSIX/posix-abstract-declarator.c
Examining data/scrypt-1.3.1/libcperciva/POSIX/posix-l.c
Examining data/scrypt-1.3.1/libcperciva/POSIX/posix-msg_nosignal.c
Examining data/scrypt-1.3.1/libcperciva/POSIX/posix-clock_realtime.c
Examining data/scrypt-1.3.1/libcperciva/util/entropy.h
Examining data/scrypt-1.3.1/libcperciva/util/sysendian.h
Examining data/scrypt-1.3.1/libcperciva/util/asprintf.h
Examining data/scrypt-1.3.1/libcperciva/util/monoclock.c
Examining data/scrypt-1.3.1/libcperciva/util/insecure_memzero.c
Examining data/scrypt-1.3.1/libcperciva/util/warnp.c
Examining data/scrypt-1.3.1/libcperciva/util/getopt.c
Examining data/scrypt-1.3.1/libcperciva/util/readpass.h
Examining data/scrypt-1.3.1/libcperciva/util/humansize.c
Examining data/scrypt-1.3.1/libcperciva/util/entropy.c
Examining data/scrypt-1.3.1/libcperciva/util/asprintf.c
Examining data/scrypt-1.3.1/libcperciva/util/monoclock.h
Examining data/scrypt-1.3.1/libcperciva/util/readpass.c
Examining data/scrypt-1.3.1/libcperciva/util/readpass_file.c
Examining data/scrypt-1.3.1/libcperciva/util/humansize.h
Examining data/scrypt-1.3.1/libcperciva/util/getopt.h
Examining data/scrypt-1.3.1/libcperciva/util/parsenum.h
Examining data/scrypt-1.3.1/libcperciva/util/insecure_memzero.h
Examining data/scrypt-1.3.1/libcperciva/util/warnp.h
Examining data/scrypt-1.3.1/lib-platform/util/memlimit.c
Examining data/scrypt-1.3.1/lib-platform/util/memlimit.h
Examining data/scrypt-1.3.1/lib-platform/platform.h
Examining data/scrypt-1.3.1/lib-platform/crypto/crypto_scrypt.c
Examining data/scrypt-1.3.1/lib-platform/crypto/crypto_scrypt.h
Examining data/scrypt-1.3.1/tests/valgrind/potential-memleaks.c
Examining data/scrypt-1.3.1/tests/libscrypt-kdf/sample-libscrypt-kdf.c
Examining data/scrypt-1.3.1/tests/verify-strings/test_scrypt.c
Examining data/scrypt-1.3.1/libscrypt-kdf/scrypt-kdf.h

FINAL RESULTS:

data/scrypt-1.3.1/libcperciva/util/asprintf.c:20:8:  [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.
	len = vsnprintf(NULL, 0, format, ap);
data/scrypt-1.3.1/libcperciva/util/asprintf.c:34:8:  [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.
	len = vsnprintf(*ret, buflen, format, ap);
data/scrypt-1.3.1/libcperciva/util/getopt.c:44:2:  [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.
	fprintf(stderr, __VA_ARGS__);					\
data/scrypt-1.3.1/libcperciva/util/warnp.c:63:4:  [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.
			vfprintf(stderr, fmt, ap);
data/scrypt-1.3.1/libcperciva/util/warnp.c:70:4:  [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.
			vsnprintf(msgbuf, WARNP_SYSLOG_MAX_LINE + 1, fmt, ap);
data/scrypt-1.3.1/libcperciva/util/warnp.c:91:4:  [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.
			vfprintf(stderr, fmt, ap);
data/scrypt-1.3.1/libcperciva/util/warnp.c:98:4:  [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.
			vsnprintf(msgbuf, WARNP_SYSLOG_MAX_LINE + 1, fmt, ap);
data/scrypt-1.3.1/libcperciva/util/getopt.c:139:1:  [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.
getopt(int argc, char * const argv[])
data/scrypt-1.3.1/libcperciva/util/getopt.h:66:9:  [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.
#define getopt	libcperciva_getopt
data/scrypt-1.3.1/libcperciva/util/getopt.h:86:28:  [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.
#define GETOPT(argc, argv) getopt(argc, argv)
data/scrypt-1.3.1/libcperciva/util/getopt.h:192:14:  [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.
const char * getopt(int, char * const []);
data/scrypt-1.3.1/main.c:327:21:  [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 ((passwd_env = getenv(passphrase_arg)) == NULL) {
data/scrypt-1.3.1/lib-platform/util/memlimit.c:94: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(&sysctlval, sysctlbuf, sizeof(uint64_t));
data/scrypt-1.3.1/lib/scryptenc/scryptenc.c:285: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(header, "scrypt", 6);
data/scrypt-1.3.1/lib/scryptenc/scryptenc.c:290: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(&header[16], salt, 32);
data/scrypt-1.3.1/lib/scryptenc/scryptenc.c:296: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(&header[48], hbuf, 16);
data/scrypt-1.3.1/lib/scryptenc/scryptenc.c:302: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(&header[64], hbuf, 32);
data/scrypt-1.3.1/lib/scryptenc/scryptenc.c:363: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(salt, &header[16], 32);
data/scrypt-1.3.1/lib/scryptenc/scryptenc.c:430: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(outbuf, header, 96);
data/scrypt-1.3.1/lib/scryptenc/scryptenc.c:450: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(&outbuf[96 + inbuflen], hbuf, 32);
data/scrypt-1.3.1/libcperciva/POSIX/posix-restrict.c:11: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 x[10];
data/scrypt-1.3.1/libcperciva/POSIX/posix-restrict.c:12: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 y[10];
data/scrypt-1.3.1/libcperciva/alg/sha256.c:198: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(S, state, 32);
data/scrypt-1.3.1/libcperciva/alg/sha256.c:263: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->buf[r], PAD, 56 - r);
data/scrypt-1.3.1/libcperciva/alg/sha256.c:266: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->buf[r], PAD, 64 - r);
data/scrypt-1.3.1/libcperciva/alg/sha256.c:292: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->state, initial_state, sizeof(initial_state));
data/scrypt-1.3.1/libcperciva/alg/sha256.c:318: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->buf[r], src, len);
data/scrypt-1.3.1/libcperciva/alg/sha256.c:323: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->buf[r], src, 64 - r);
data/scrypt-1.3.1/libcperciva/alg/sha256.c:336: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->buf, src, len);
data/scrypt-1.3.1/libcperciva/alg/sha256.c:573: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(&PShctx, &Phctx, sizeof(HMAC_SHA256_CTX));
data/scrypt-1.3.1/libcperciva/alg/sha256.c:582: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(&hctx, &PShctx, sizeof(HMAC_SHA256_CTX));
data/scrypt-1.3.1/libcperciva/alg/sha256.c:587: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(T, U, 32);
data/scrypt-1.3.1/libcperciva/alg/sha256.c:591: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(&hctx, &Phctx, sizeof(HMAC_SHA256_CTX));
data/scrypt-1.3.1/libcperciva/alg/sha256.c:604:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&buf[i * 32], T, clen);
data/scrypt-1.3.1/libcperciva/cpusupport/Build/cpusupport-X86-SHANI.c:4: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 a[16];
data/scrypt-1.3.1/libcperciva/cpusupport/Build/cpusupport-X86-SSE2.c:3: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 a[16];
data/scrypt-1.3.1/libcperciva/cpusupport/Build/cpusupport-X86-SSSE3.c:4: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 a[16];
data/scrypt-1.3.1/libcperciva/crypto/crypto_entropy.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(K, drbg.Key, 32);
data/scrypt-1.3.1/libcperciva/crypto/crypto_entropy.c:104: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(Vx, drbg.V, 32);
data/scrypt-1.3.1/libcperciva/crypto/crypto_entropy.c:130: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(drbg.Key, K, 32);
data/scrypt-1.3.1/libcperciva/crypto/crypto_entropy.c:131: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(drbg.V, Vx, 32);
data/scrypt-1.3.1/libcperciva/crypto/crypto_entropy.c:189:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&buf[bufpos], drbg.V, 32);
data/scrypt-1.3.1/libcperciva/crypto/crypto_entropy.c:191:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&buf[bufpos], drbg.V, buflen - bufpos);
data/scrypt-1.3.1/libcperciva/util/entropy.c:38:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open("/dev/urandom", O_RDONLY)) == -1) {
data/scrypt-1.3.1/libcperciva/util/getopt.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 popt[3];
data/scrypt-1.3.1/libcperciva/util/readpass.c:73: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 passbuf[MAXPASSLEN];
data/scrypt-1.3.1/libcperciva/util/readpass.c:74: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 confpassbuf[MAXPASSLEN];
data/scrypt-1.3.1/libcperciva/util/readpass.c:88:19:  [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 ((readfrom = fopen("/dev/tty", "r")) == NULL)
data/scrypt-1.3.1/libcperciva/util/readpass.c:93:19:  [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 ((readfrom = fopen("/dev/tty", "r")) == NULL) {
data/scrypt-1.3.1/libcperciva/util/readpass.c:125: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(&term, &term_old, sizeof(struct termios));
data/scrypt-1.3.1/libcperciva/util/readpass_file.c:24: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 passbuf[MAXPASSLEN];
data/scrypt-1.3.1/libcperciva/util/readpass_file.c:27:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((f = fopen(filename, "r")) == NULL) {
data/scrypt-1.3.1/libcperciva/util/warnp.c:55: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 msgbuf[WARNP_SYSLOG_MAX_LINE + 1];
data/scrypt-1.3.1/libcperciva/util/warnp.c:83: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 msgbuf[WARNP_SYSLOG_MAX_LINE + 1];
data/scrypt-1.3.1/main.c:279:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((infile = fopen(infilename, "rb")) == NULL) {
data/scrypt-1.3.1/main.c:366:18:  [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 ((outfile = fopen(outfilename, "wb")) == NULL) {
data/scrypt-1.3.1/tests/valgrind/potential-memleaks.c:11: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[FGETS_BUFSIZE];
data/scrypt-1.3.1/tests/verify-strings/test_scrypt.c:25: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 kbuf[64];
data/scrypt-1.3.1/lib-platform/crypto/crypto_scrypt.c:200:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (const uint8_t *)testcase.passwd, strlen(testcase.passwd),
data/scrypt-1.3.1/lib-platform/crypto/crypto_scrypt.c:201:38:  [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 uint8_t *)testcase.salt, strlen(testcase.salt),
data/scrypt-1.3.1/libcperciva/util/entropy.c:45:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if ((lenread = read(fd, buf, buflen)) == -1) {
data/scrypt-1.3.1/libcperciva/util/getopt.c:320: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).
	opts[ln].olen = strlen(os);
data/scrypt-1.3.1/libcperciva/util/readpass_file.c:44:6:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (fgetc(f) != EOF) {
data/scrypt-1.3.1/main.c:358:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    strlen(passwd), &params, verbose, force_resources,
data/scrypt-1.3.1/main.c:377:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    strlen(passwd), &params, verbose, force_resources);
data/scrypt-1.3.1/main.c:384:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	insecure_memzero(passwd, strlen(passwd));
data/scrypt-1.3.1/main.c:452:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	insecure_memzero(passwd, strlen(passwd));
data/scrypt-1.3.1/tests/libscrypt-kdf/sample-libscrypt-kdf.c:24:49:  [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).
	exitcode = scrypt_kdf((const uint8_t *)passwd, strlen(passwd),
data/scrypt-1.3.1/tests/libscrypt-kdf/sample-libscrypt-kdf.c:25: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).
	    (const uint8_t*)salt, strlen(salt), N, r, p,
data/scrypt-1.3.1/tests/verify-strings/test_scrypt.c:38:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    strlen(test->passwd), (const uint8_t *)test->salt,
data/scrypt-1.3.1/tests/verify-strings/test_scrypt.c:39:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    strlen(test->salt), test->N, test->r, test->p,

ANALYSIS SUMMARY:

Hits = 71
Lines analyzed = 7683 in approximately 0.24 seconds (32621 lines/second)
Physical Source Lines of Code (SLOC) = 4443
Hits@level = [0]  39 [1]  13 [2]  46 [3]   5 [4]   7 [5]   0
Hits@level+ = [0+] 110 [1+]  71 [2+]  58 [3+]  12 [4+]   7 [5+]   0
Hits/KSLOC@level+ = [0+] 24.758 [1+] 15.9802 [2+] 13.0542 [3+] 2.70088 [4+] 1.57551 [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.