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/rpki-client-6.8p1/include/openssl/asn1.h
Examining data/rpki-client-6.8p1/include/sys/_null.h
Examining data/rpki-client-6.8p1/include/sys/queue.h
Examining data/rpki-client-6.8p1/include/sys/tree.h
Examining data/rpki-client-6.8p1/include/sys/types.h
Examining data/rpki-client-6.8p1/include/poll.h
Examining data/rpki-client-6.8p1/include/sha2.h
Examining data/rpki-client-6.8p1/include/sha2_openbsd.h
Examining data/rpki-client-6.8p1/include/stdlib.h
Examining data/rpki-client-6.8p1/include/string.h
Examining data/rpki-client-6.8p1/include/unistd.h
Examining data/rpki-client-6.8p1/compat/reallocarray.c
Examining data/rpki-client-6.8p1/compat/recallocarray.c
Examining data/rpki-client-6.8p1/compat/strlcat.c
Examining data/rpki-client-6.8p1/compat/strlcpy.c
Examining data/rpki-client-6.8p1/compat/strtonum.c
Examining data/rpki-client-6.8p1/compat/bsd-setresgid.c
Examining data/rpki-client-6.8p1/compat/bsd-setresuid.c
Examining data/rpki-client-6.8p1/compat/a_time_tm.c
Examining data/rpki-client-6.8p1/compat/explicit_bzero.c
Examining data/rpki-client-6.8p1/src/extern.h
Examining data/rpki-client-6.8p1/src/as.c
Examining data/rpki-client-6.8p1/src/cert.c
Examining data/rpki-client-6.8p1/src/cms.c
Examining data/rpki-client-6.8p1/src/crl.c
Examining data/rpki-client-6.8p1/src/io.c
Examining data/rpki-client-6.8p1/src/ip.c
Examining data/rpki-client-6.8p1/src/log.c
Examining data/rpki-client-6.8p1/src/main.c
Examining data/rpki-client-6.8p1/src/mft.c
Examining data/rpki-client-6.8p1/src/output.c
Examining data/rpki-client-6.8p1/src/output-bgpd.c
Examining data/rpki-client-6.8p1/src/output-bird.c
Examining data/rpki-client-6.8p1/src/output-csv.c
Examining data/rpki-client-6.8p1/src/output-json.c
Examining data/rpki-client-6.8p1/src/roa.c
Examining data/rpki-client-6.8p1/src/rsync.c
Examining data/rpki-client-6.8p1/src/tal.c
Examining data/rpki-client-6.8p1/src/validate.c
Examining data/rpki-client-6.8p1/src/x509.c

FINAL RESULTS:

data/rpki-client-6.8p1/src/extern.h:365:26:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			__attribute__((format(printf, 1, 2)));
data/rpki-client-6.8p1/src/extern.h:367:26:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			__attribute__((format(printf, 1, 2)))
data/rpki-client-6.8p1/src/extern.h:413:29:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		    __attribute__((format(printf, 1, 2)));
data/rpki-client-6.8p1/src/rsync.c:330:4:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			execvp(args[0], args);
data/rpki-client-6.8p1/src/main.c:1407: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.
	while ((c = getopt(argc, argv, "b:Bcd:e:jnos:t:T:v")) != -1)
data/rpki-client-6.8p1/src/rsync.c:198:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if (getenv("PATH") == NULL)
data/rpki-client-6.8p1/src/rsync.c:200:22:  [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 ((path = strdup(getenv("PATH"))) == NULL)
data/rpki-client-6.8p1/compat/recallocarray.c:71: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(newptr, ptr, oldsize);
data/rpki-client-6.8p1/compat/recallocarray.c:74: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(newptr, ptr, newsize);
data/rpki-client-6.8p1/src/cert.c:213:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char			 buf[128];
data/rpki-client-6.8p1/src/cert.c:971: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		 mdbuf[EVP_MAX_MD_SIZE];
data/rpki-client-6.8p1/src/cert.c:975: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(fn, "rb")) == NULL) {
data/rpki-client-6.8p1/src/cms.c:46:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char			 buf[128], mdbuf[EVP_MAX_MD_SIZE];
data/rpki-client-6.8p1/src/cms.c:59: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(fn, "rb")) == NULL) {
data/rpki-client-6.8p1/src/cms.c:169: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(res, (*os)->data, (*os)->length);
data/rpki-client-6.8p1/src/crl.c:39:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		 mdbuf[EVP_MAX_MD_SIZE];
data/rpki-client-6.8p1/src/crl.c:41: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(fn, "rb")) == NULL) {
data/rpki-client-6.8p1/src/extern.h:67: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	 addr[16]; /* binary address prefix */
data/rpki-client-6.8p1/src/extern.h:95: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		min[16]; /* full range minimum */
data/rpki-client-6.8p1/src/extern.h:96: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		max[16]; /* full range maximum */
data/rpki-client-6.8p1/src/extern.h:143: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	 hash[SHA256_DIGEST_LENGTH]; /* sha256 of body */
data/rpki-client-6.8p1/src/extern.h:168: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	 min[16]; /* full range minimum */
data/rpki-client-6.8p1/src/extern.h:169: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	 max[16]; /* full range maximum */
data/rpki-client-6.8p1/src/io.c:83: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(*b + *bsz, res, sz);
data/rpki-client-6.8p1/src/ip.c:113:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	 buf[64];
data/rpki-client-6.8p1/src/ip.c:227: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(addr->addr, p->data, p->length);
data/rpki-client-6.8p1/src/ip.c:238: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[16];
data/rpki-client-6.8p1/src/ip.c:252: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[44];
data/rpki-client-6.8p1/src/ip.c:344: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->min, p->ip.addr, sz);
data/rpki-client-6.8p1/src/ip.c:346: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->max, p->ip.addr, sz);
data/rpki-client-6.8p1/src/ip.c:353: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->min, p->range.min.addr, sz);
data/rpki-client-6.8p1/src/ip.c:356: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->max, p->range.max.addr, sz);
data/rpki-client-6.8p1/src/ip.c:379: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->min, p->addr.addr, sz);
data/rpki-client-6.8p1/src/ip.c:381: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->max, p->addr.addr, sz);
data/rpki-client-6.8p1/src/log.c:37: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[BUFSIZ];
data/rpki-client-6.8p1/src/log.c:61: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[BUFSIZ];
data/rpki-client-6.8p1/src/main.c:112: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	 dgst[SHA256_DIGEST_LENGTH]; /* optional */
data/rpki-client-6.8p1/src/main.c:421: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->pkey, pkey, pkeysz);
data/rpki-client-6.8p1/src/main.c:825: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			subject[256];
data/rpki-client-6.8p1/src/main.c:1294: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 *argv[2], **del = NULL;
data/rpki-client-6.8p1/src/main.c:1381:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char	*tals[TALSZ_MAX];
data/rpki-client-6.8p1/src/mft.c:42: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	buf[64];
data/rpki-client-6.8p1/src/mft.c:213: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(fent->hash, hash->value.bit_string->data, SHA256_DIGEST_LENGTH);
data/rpki-client-6.8p1/src/mft.c:447: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	filehash[SHA256_DIGEST_LENGTH];
data/rpki-client-6.8p1/src/mft.c:448: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/rpki-client-6.8p1/src/mft.c:460: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(path, O_RDONLY)) == -1) {
data/rpki-client-6.8p1/src/output-bgpd.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		 buf1[64], buf2[32];
data/rpki-client-6.8p1/src/output-bird.c:27:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		 buf[64];
data/rpki-client-6.8p1/src/output-bird.c:54:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		 buf[64];
data/rpki-client-6.8p1/src/output-bird.c:81:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		 buf[64];
data/rpki-client-6.8p1/src/output-csv.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		 buf[64];
data/rpki-client-6.8p1/src/output-json.c:28: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		hn[NI_MAXHOST], tbuf[26];
data/rpki-client-6.8p1/src/output-json.c:78:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		 buf[64];
data/rpki-client-6.8p1/src/output.c:35: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	 output_tmpname[PATH_MAX];
data/rpki-client-6.8p1/src/output.c:36: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	 output_name[PATH_MAX];
data/rpki-client-6.8p1/src/output.c:175: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		hn[NI_MAXHOST], tbuf[80];
data/rpki-client-6.8p1/src/rsync.c:180: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			*args[32];
data/rpki-client-6.8p1/src/tal.c:193: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->descr, d, dlen);
data/rpki-client-6.8p1/src/tal.c:216: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 ((in = fopen(file, "r")) == NULL)
data/rpki-client-6.8p1/src/validate.c:159: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		 buf1[64], buf2[64];
data/rpki-client-6.8p1/src/validate.c:220:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	 buf[64];
data/rpki-client-6.8p1/src/x509.c:67: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/rpki-client-6.8p1/src/x509.c:130: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/rpki-client-6.8p1/compat/strlcat.c:44: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).
		return(dlen + strlen(src));
data/rpki-client-6.8p1/src/io.c:117:33:  [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	 sz = (p == NULL) ? 0 : strlen(p);
data/rpki-client-6.8p1/src/io.c:128:33:  [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	 sz = (p == NULL) ? 0 : strlen(p);
data/rpki-client-6.8p1/src/io.c:148:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((ssz = read(fd, tmp, sz)) == -1)
data/rpki-client-6.8p1/src/main.c:325:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(rt->repos[i].host) != hostsz)
data/rpki-client-6.8p1/src/main.c:327:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(rt->repos[i].module) != modsz)
data/rpki-client-6.8p1/src/main.c:452: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).
	sz = strlen(file->file) + strlen(mft);
data/rpki-client-6.8p1/src/main.c:452: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).
	sz = strlen(file->file) + strlen(mft);
data/rpki-client-6.8p1/src/main.c:490:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		sz = strlen(f->file);
data/rpki-client-6.8p1/src/main.c:499:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		sz = strlen(f->file);
data/rpki-client-6.8p1/src/main.c:508:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		sz = strlen(f->file);
data/rpki-client-6.8p1/src/main.c:564:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	uri += 8 + strlen(repo->host) + 1 + strlen(repo->module) + 1;
data/rpki-client-6.8p1/src/main.c:564: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).
	uri += 8 + strlen(repo->host) + 1 + strlen(repo->module) + 1;
data/rpki-client-6.8p1/src/main.c:592:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	uri += 8 + strlen(repo->host) + 1 + strlen(repo->module) + 1;
data/rpki-client-6.8p1/src/main.c:592: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).
	uri += 8 + strlen(repo->host) + 1 + strlen(repo->module) + 1;
data/rpki-client-6.8p1/src/mft.c:168:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	} else if ((sz = strlen(fn)) <= 4) {
data/rpki-client-6.8p1/src/mft.c:468:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((nr = read(fd, buffer, sizeof(buffer))) > 0) {
data/rpki-client-6.8p1/src/rsync.c:118:16:  [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).
			*modulesz = strlen(module);
data/rpki-client-6.8p1/src/rsync.c:131: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).
	sz = strlen(path);
data/rpki-client-6.8p1/src/rsync.c:285:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if ((ssz = read(fd, &id, sizeof(size_t))) == -1)
data/rpki-client-6.8p1/src/tal.c:135: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).
	sz = strlen(buf);
data/rpki-client-6.8p1/src/tal.c:188: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).
	dlen = strlen(d);

ANALYSIS SUMMARY:

Hits = 85
Lines analyzed = 9939 in approximately 0.28 seconds (35368 lines/second)
Physical Source Lines of Code (SLOC) = 6811
Hits@level = [0]  32 [1]  22 [2]  56 [3]   3 [4]   4 [5]   0
Hits@level+ = [0+] 117 [1+]  85 [2+]  63 [3+]   7 [4+]   4 [5+]   0
Hits/KSLOC@level+ = [0+] 17.1781 [1+] 12.4798 [2+] 9.24974 [3+] 1.02775 [4+] 0.587285 [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.