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/libbsd-0.10.0/src/arc4random_win.h
Examining data/libbsd-0.10.0/src/getentropy_linux.c
Examining data/libbsd-0.10.0/src/arc4random_unix.h
Examining data/libbsd-0.10.0/src/fgetln.c
Examining data/libbsd-0.10.0/src/getpeereid.c
Examining data/libbsd-0.10.0/src/getentropy_osx.c
Examining data/libbsd-0.10.0/src/strlcpy.c
Examining data/libbsd-0.10.0/src/fgetwln.c
Examining data/libbsd-0.10.0/src/flopen.c
Examining data/libbsd-0.10.0/src/radixsort.c
Examining data/libbsd-0.10.0/src/reallocf.c
Examining data/libbsd-0.10.0/src/unvis.c
Examining data/libbsd-0.10.0/src/hash/md5.c
Examining data/libbsd-0.10.0/src/hash/helper.c
Examining data/libbsd-0.10.0/src/hash/sha512c.c
Examining data/libbsd-0.10.0/src/hash/md5hl.c
Examining data/libbsd-0.10.0/src/hash/sha512.h
Examining data/libbsd-0.10.0/src/pidfile.c
Examining data/libbsd-0.10.0/src/progname.c
Examining data/libbsd-0.10.0/src/closefrom.c
Examining data/libbsd-0.10.0/src/bsd_getopt.c
Examining data/libbsd-0.10.0/src/arc4random.h
Examining data/libbsd-0.10.0/src/wcslcat.c
Examining data/libbsd-0.10.0/src/setproctitle_ctor.c
Examining data/libbsd-0.10.0/src/heapsort.c
Examining data/libbsd-0.10.0/src/chacha_private.h
Examining data/libbsd-0.10.0/src/getentropy_win.c
Examining data/libbsd-0.10.0/src/reallocarray.c
Examining data/libbsd-0.10.0/src/setmode.c
Examining data/libbsd-0.10.0/src/fparseln.c
Examining data/libbsd-0.10.0/src/strtou.c
Examining data/libbsd-0.10.0/src/arc4random_linux.h
Examining data/libbsd-0.10.0/src/stringlist.c
Examining data/libbsd-0.10.0/src/getentropy_solaris.c
Examining data/libbsd-0.10.0/src/fpurge.c
Examining data/libbsd-0.10.0/src/inet_net_pton.c
Examining data/libbsd-0.10.0/src/getbsize.c
Examining data/libbsd-0.10.0/src/strnstr.c
Examining data/libbsd-0.10.0/src/nlist.c
Examining data/libbsd-0.10.0/src/strtoi.c
Examining data/libbsd-0.10.0/src/strtonum.c
Examining data/libbsd-0.10.0/src/merge.c
Examining data/libbsd-0.10.0/src/wcslcpy.c
Examining data/libbsd-0.10.0/src/local-elf.h
Examining data/libbsd-0.10.0/src/strmode.c
Examining data/libbsd-0.10.0/src/local-link.h
Examining data/libbsd-0.10.0/src/getentropy.c
Examining data/libbsd-0.10.0/src/fmtcheck.c
Examining data/libbsd-0.10.0/src/humanize_number.c
Examining data/libbsd-0.10.0/src/arc4random_openbsd.h
Examining data/libbsd-0.10.0/src/arc4random.c
Examining data/libbsd-0.10.0/src/arc4random_uniform.c
Examining data/libbsd-0.10.0/src/dehumanize_number.c
Examining data/libbsd-0.10.0/src/err.c
Examining data/libbsd-0.10.0/src/vis.c
Examining data/libbsd-0.10.0/src/getentropy_aix.c
Examining data/libbsd-0.10.0/src/setproctitle.c
Examining data/libbsd-0.10.0/src/getentropy_hurd.c
Examining data/libbsd-0.10.0/src/strlcat.c
Examining data/libbsd-0.10.0/src/getentropy_bsd.c
Examining data/libbsd-0.10.0/src/funopen.c
Examining data/libbsd-0.10.0/src/timeconv.c
Examining data/libbsd-0.10.0/src/expand_number.c
Examining data/libbsd-0.10.0/src/explicit_bzero.c
Examining data/libbsd-0.10.0/src/getentropy_hpux.c
Examining data/libbsd-0.10.0/src/readpassphrase.c
Examining data/libbsd-0.10.0/test/fgetln.c
Examining data/libbsd-0.10.0/test/test-stream.c
Examining data/libbsd-0.10.0/test/progname.c
Examining data/libbsd-0.10.0/test/closefrom.c
Examining data/libbsd-0.10.0/test/md5.c
Examining data/libbsd-0.10.0/test/bzero.c
Examining data/libbsd-0.10.0/test/setmode.c
Examining data/libbsd-0.10.0/test/overlay.c
Examining data/libbsd-0.10.0/test/fparseln.c
Examining data/libbsd-0.10.0/test/humanize.c
Examining data/libbsd-0.10.0/test/proctitle.c
Examining data/libbsd-0.10.0/test/strl.c
Examining data/libbsd-0.10.0/test/fpurge.c
Examining data/libbsd-0.10.0/test/strnstr.c
Examining data/libbsd-0.10.0/test/nlist.c
Examining data/libbsd-0.10.0/test/strmode.c
Examining data/libbsd-0.10.0/test/arc4random.c
Examining data/libbsd-0.10.0/test/vis.c
Examining data/libbsd-0.10.0/test/endian.c
Examining data/libbsd-0.10.0/test/test-stream.h
Examining data/libbsd-0.10.0/test/funopen.c
Examining data/libbsd-0.10.0/test/vis-openbsd.c
Examining data/libbsd-0.10.0/include/bsd/readpassphrase.h
Examining data/libbsd-0.10.0/include/bsd/timeconv.h
Examining data/libbsd-0.10.0/include/bsd/stdio.h
Examining data/libbsd-0.10.0/include/bsd/getopt.h
Examining data/libbsd-0.10.0/include/bsd/nlist.h
Examining data/libbsd-0.10.0/include/bsd/stringlist.h
Examining data/libbsd-0.10.0/include/bsd/err.h
Examining data/libbsd-0.10.0/include/bsd/bsd.h
Examining data/libbsd-0.10.0/include/bsd/sys/param.h
Examining data/libbsd-0.10.0/include/bsd/sys/tree.h
Examining data/libbsd-0.10.0/include/bsd/sys/time.h
Examining data/libbsd-0.10.0/include/bsd/sys/endian.h
Examining data/libbsd-0.10.0/include/bsd/sys/queue.h
Examining data/libbsd-0.10.0/include/bsd/sys/bitstring.h
Examining data/libbsd-0.10.0/include/bsd/sys/cdefs.h
Examining data/libbsd-0.10.0/include/bsd/sys/poll.h
Examining data/libbsd-0.10.0/include/bsd/string.h
Examining data/libbsd-0.10.0/include/bsd/unistd.h
Examining data/libbsd-0.10.0/include/bsd/inttypes.h
Examining data/libbsd-0.10.0/include/bsd/vis.h
Examining data/libbsd-0.10.0/include/bsd/wchar.h
Examining data/libbsd-0.10.0/include/bsd/bitstring.h
Examining data/libbsd-0.10.0/include/bsd/netinet/ip_icmp.h
Examining data/libbsd-0.10.0/include/bsd/stdlib.h
Examining data/libbsd-0.10.0/include/bsd/libutil.h
Examining data/libbsd-0.10.0/include/bsd/md5.h

FINAL RESULTS:

data/libbsd-0.10.0/src/err.c:42:3:  [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, format, ap);
data/libbsd-0.10.0/src/err.c:63:3:  [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, format, ap);
data/libbsd-0.10.0/src/err.c:102:3:  [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, format, ap);
data/libbsd-0.10.0/src/err.c:137:3:  [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, format, ap);
data/libbsd-0.10.0/src/getentropy_aix.c:296:7:  [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.
			HF(printf);		/* an addr in libc */
data/libbsd-0.10.0/src/getentropy_hpux.c:291:7:  [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.
			HF(printf);		/* an addr in libc */
data/libbsd-0.10.0/src/getentropy_hurd.c:293:7:  [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.
			HF(printf);		/* an addr in libc */
data/libbsd-0.10.0/src/getentropy_linux.c:398:7:  [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.
			HF(printf);		/* an addr in libc */
data/libbsd-0.10.0/src/getentropy_osx.c:309:7:  [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.
			HF(printf);		/* an addr in libc */
data/libbsd-0.10.0/src/getentropy_solaris.c:316:7:  [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.
			HF(printf);		/* an addr in libc */
data/libbsd-0.10.0/src/inet_net_pton.c:39:28:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
# define SPRINTF(x) strlen(sprintf/**/x)
data/libbsd-0.10.0/src/inet_net_pton.c:41:30:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
# define SPRINTF(x) ((size_t)sprintf x)
data/libbsd-0.10.0/src/readpassphrase.c:187:1:  [4] (misc) getpass:
  This function is obsolete and not portable. It was in SUSv2 but removed by
  POSIX.2. What it does exactly varies considerably between systems,
  particularly in where its prompt is displayed and where it gets its data
  (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations
  overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do
  exactly what you want. If you continue to use it, or write your own, be
  sure to zero the password as soon as possible to avoid leaving the
  cleartext password visible in the process' address space.
getpass(const char *prompt)
data/libbsd-0.10.0/src/setproctitle.c:255:10:  [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(buf + len, sizeof(buf) - len, fmt, ap);
data/libbsd-0.10.0/test/test-stream.c:59:9:  [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.
			rc = fprintf(fp, fmt, buf[line]);
data/libbsd-0.10.0/include/bsd/getopt.h:29:25:  [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.
#if __has_include_next(<getopt.h>)
data/libbsd-0.10.0/include/bsd/getopt.h:30:16:  [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.
#include_next <getopt.h>
data/libbsd-0.10.0/include/bsd/getopt.h:35:20:  [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.
#if __has_include(<getopt.h>)
data/libbsd-0.10.0/include/bsd/unistd.h:53:8:  [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.
#undef getopt
data/libbsd-0.10.0/include/bsd/unistd.h:54: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(argc, argv, optstr) bsd_getopt(argc, argv, optstr)
data/libbsd-0.10.0/src/bsd_getopt.c:43:10:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	return (getopt)(argc, argv, shortopts);
data/libbsd-0.10.0/src/getbsize.c:52:11:  [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 ((p = getenv("BLOCKSIZE")) != NULL && *p != '\0') {
data/libbsd-0.10.0/test/proctitle.c:55:11:  [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.
	envvar = getenv("LIBBSD_TEST");
data/libbsd-0.10.0/include/bsd/libutil.h:67:1:  [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   *fparseln(FILE *, size_t *, size_t *, const char[3], int);
data/libbsd-0.10.0/include/bsd/netinet/ip_icmp.h:104: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	id_data[1];
data/libbsd-0.10.0/src/arc4random.c:62: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	rs_buf[RSBUFSZ];	/* keystream blocks */
data/libbsd-0.10.0/src/arc4random.c:110: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 rnd[KEYSZ + IVSZ];
data/libbsd-0.10.0/src/arc4random.c:153: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, keystream, m);
data/libbsd-0.10.0/src/arc4random.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(val, keystream, sizeof(*val));
data/libbsd-0.10.0/src/chacha_private.h:51:14:  [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 sigma[16] = "expand 32-byte k";
data/libbsd-0.10.0/src/chacha_private.h:52:14:  [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 tau[16] = "expand 16-byte k";
data/libbsd-0.10.0/src/fparseln.c:70:1:  [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/libbsd-0.10.0/src/fparseln.c:71:56:  [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.
fparseln(FILE *fp, size_t *size, size_t *lineno, const char str[3], int flags)
data/libbsd-0.10.0/src/fparseln.c:73: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 dstr[3] = { '\\', '\\', '#' };
data/libbsd-0.10.0/src/fparseln.c:156:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		(void) memcpy(buf + len, ptr, s);
data/libbsd-0.10.0/src/getbsize.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 header[20];
data/libbsd-0.10.0/src/getentropy_aix.c:154:7:  [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).
	fd = open(path, flags, 0);
data/libbsd-0.10.0/src/getentropy_aix.c:414: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 *)buf + i, results, min(sizeof(results), len - i));
data/libbsd-0.10.0/src/getentropy_hpux.c:159:7:  [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).
	fd = open(path, flags, 0);
data/libbsd-0.10.0/src/getentropy_hpux.c:409: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 *)buf + i, results, min(sizeof(results), len - i));
data/libbsd-0.10.0/src/getentropy_hurd.c:164:7:  [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).
	fd = open("/dev/urandom", flags, 0);
data/libbsd-0.10.0/src/getentropy_hurd.c:435: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 *)buf + i, results, min(sizeof(results), len - i));
data/libbsd-0.10.0/src/getentropy_linux.c:233:7:  [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).
	fd = open("/dev/urandom", flags, 0);
data/libbsd-0.10.0/src/getentropy_linux.c:540: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 *)buf + i, results, min(sizeof(results), len - i));
data/libbsd-0.10.0/src/getentropy_osx.c:178:7:  [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).
	fd = open("/dev/urandom", flags, 0);
data/libbsd-0.10.0/src/getentropy_osx.c:429: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 *)buf + i, results, min(sizeof(results), len - i));
data/libbsd-0.10.0/src/getentropy_solaris.c:184:7:  [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).
	fd = open(path, flags, 0);
data/libbsd-0.10.0/src/getentropy_solaris.c:434: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 *)buf + i, results, min(sizeof(results), len - i));
data/libbsd-0.10.0/src/hash/helper.c:57: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[BUFSIZ];
data/libbsd-0.10.0/src/hash/helper.c:64: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(filename, O_RDONLY)) < 0)
data/libbsd-0.10.0/src/hash/md5.c:78: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 + have, input, need);
data/libbsd-0.10.0/src/hash/md5.c:95: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 + have, input, len);
data/libbsd-0.10.0/src/hash/md5.c:124:19:  [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.
MD5Final(unsigned char digest[MD5_DIGEST_LENGTH], MD5_CTX *ctx)
data/libbsd-0.10.0/src/hash/md5hl.c:57: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[BUFSIZ];
data/libbsd-0.10.0/src/hash/md5hl.c:64: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(filename, O_RDONLY)) < 0)
data/libbsd-0.10.0/src/hash/sha512.h:39: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 buf[128];
data/libbsd-0.10.0/src/hash/sha512c.c:39: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((void *)dst, (const void *)src, (size_t)len)
data/libbsd-0.10.0/src/hash/sha512c.c:43: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((void *)dst, (const void *)src, (size_t)len)
data/libbsd-0.10.0/src/hash/sha512c.c:105: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.
SHA512_Transform(uint64_t * state, const unsigned char block[128])
data/libbsd-0.10.0/src/hash/sha512c.c:118: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, 64);
data/libbsd-0.10.0/src/hash/sha512c.c:207:17:  [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 PAD[128] = {
data/libbsd-0.10.0/src/hash/sha512c.c:222: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 len[16];
data/libbsd-0.10.0/src/hash/sha512c.c:281: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/libbsd-0.10.0/src/hash/sha512c.c:286: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, 128 - r);
data/libbsd-0.10.0/src/hash/sha512c.c:299: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/libbsd-0.10.0/src/hash/sha512c.c:307:23:  [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.
SHA512_Final(unsigned char digest[64], SHA512_CTX * ctx)
data/libbsd-0.10.0/src/nlist.c:276:7:  [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).
	fd = open(name, O_RDONLY, 0);
data/libbsd-0.10.0/src/pidfile.c:71: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], *endptr;
data/libbsd-0.10.0/src/pidfile.c:74:7:  [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).
	fd = open(path, O_RDONLY);
data/libbsd-0.10.0/src/pidfile.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 pidstr[16];
data/libbsd-0.10.0/src/radixsort.c:93: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 tr0[256];
data/libbsd-0.10.0/src/radixsort.c:106: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 tr0[256];
data/libbsd-0.10.0/src/radixsort.c:141:17:  [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 unsigned char **an, *t, **aj, **top[256];
data/libbsd-0.10.0/src/radixsort.c:239:17:  [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 unsigned char **top[256];
data/libbsd-0.10.0/src/readpassphrase.c:70:24:  [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).
	    (input = output = open(_PATH_TTY, O_RDWR)) == -1) {
data/libbsd-0.10.0/src/readpassphrase.c:189: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[_PASSWORD_LEN + 1];
data/libbsd-0.10.0/src/setproctitle.c:100: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(envcopy, envp, envsize);
data/libbsd-0.10.0/src/setproctitle.c:229: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[SPT_MAXTITLE + 1];
data/libbsd-0.10.0/src/setproctitle.c:274: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(SPT.base, buf, len);
data/libbsd-0.10.0/src/unvis.c:82: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 name[7];
data/libbsd-0.10.0/src/vis.c:615: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 cc[2];
data/libbsd-0.10.0/src/vis.c:630: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 cc[2];
data/libbsd-0.10.0/src/vis.c:680: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 cc[2];
data/libbsd-0.10.0/src/vis.c:695: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 cc[2];
data/libbsd-0.10.0/test/bzero.c:33: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 array[40];
data/libbsd-0.10.0/test/closefrom.c:39:7:  [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).
	fd = open("/dev/null", O_RDONLY);
data/libbsd-0.10.0/test/endian.c:38: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 encstream[sizeof(decstream)];
data/libbsd-0.10.0/test/fpurge.c:41:7:  [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).
	fp = fopen("/dev/zero", "r");
data/libbsd-0.10.0/test/funopen.c:36: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 array[ARRAY_SIZE];
data/libbsd-0.10.0/test/funopen.c:52: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, tc->array + tc->index, size);
data/libbsd-0.10.0/test/funopen.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(tc->array + tc->index, buf, size);
data/libbsd-0.10.0/test/funopen.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 data[ARRAY_SIZE];
data/libbsd-0.10.0/test/md5.c:34: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 result[MD5_DIGEST_STRING_LENGTH];
data/libbsd-0.10.0/test/strl.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[256];
data/libbsd-0.10.0/test/strmode.c:34: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 mode_str[12];
data/libbsd-0.10.0/test/vis-openbsd.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 str[200];
data/libbsd-0.10.0/test/vis-openbsd.c:38: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 unstr[200];
data/libbsd-0.10.0/test/vis.c:36: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 str[200];
data/libbsd-0.10.0/test/vis.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 unstr[200];
data/libbsd-0.10.0/src/closefrom.c:39:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#  define NAMLEN(dirent) strlen((dirent)->d_name)
data/libbsd-0.10.0/src/fparseln.c:192: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(buf);
data/libbsd-0.10.0/src/getbsize.c:99: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).
	*headerlenp = strlen(header);
data/libbsd-0.10.0/src/getentropy_aix.c:171:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ssize_t ret = read(fd, (char *)buf + i, wanted);
data/libbsd-0.10.0/src/getentropy_hpux.c:176:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ssize_t ret = read(fd, (char *)buf + i, wanted);
data/libbsd-0.10.0/src/getentropy_hurd.c:181:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ssize_t ret = read(fd, (char *)buf + i, wanted);
data/libbsd-0.10.0/src/getentropy_linux.c:254:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ssize_t ret = read(fd, (char *)buf + i, wanted);
data/libbsd-0.10.0/src/getentropy_osx.c:195:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ssize_t ret = read(fd, (char *)buf + i, wanted);
data/libbsd-0.10.0/src/getentropy_solaris.c:202:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ssize_t ret = read(fd, (char *)buf + i, wanted);
data/libbsd-0.10.0/src/hash/helper.c:78:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((nr = read(fd, buffer,
data/libbsd-0.10.0/src/hash/md5hl.c:78:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((nr = read(fd, buffer,
data/libbsd-0.10.0/src/humanize_number.c:128: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).
	baselen += strlen(suffix);
data/libbsd-0.10.0/src/inet_net_pton.c:39: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).
# define SPRINTF(x) strlen(sprintf/**/x)
data/libbsd-0.10.0/src/nlist.c:139:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    read(fd, &ehdr, sizeof(Elf_Ehdr)) != sizeof(Elf_Ehdr) ||
data/libbsd-0.10.0/src/nlist.c:234:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(fd, sbuf, cc) != cc)
data/libbsd-0.10.0/src/pidfile.c:78:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	i = read(fd, buf, sizeof(buf) - 1);
data/libbsd-0.10.0/src/pidfile.c:202:25:  [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 (pwrite(fd, pidstr, strlen(pidstr), 0) != (ssize_t)strlen(pidstr)) {
data/libbsd-0.10.0/src/pidfile.c:202:56:  [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 (pwrite(fd, pidstr, strlen(pidstr), 0) != (ssize_t)strlen(pidstr)) {
data/libbsd-0.10.0/src/progname.c:69:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	for (i = strlen(progname); i > 0; i--) {
data/libbsd-0.10.0/src/readpassphrase.c:119: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).
		(void)write(output, prompt, strlen(prompt));
data/libbsd-0.10.0/src/readpassphrase.c:122:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((nr = read(input, &ch, 1)) == 1 && ch != '\n' && ch != '\r') {
data/libbsd-0.10.0/src/setmode.c:186:8:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	(void)umask(mask = umask(0));
data/libbsd-0.10.0/src/setmode.c:186:21:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	(void)umask(mask = umask(0));
data/libbsd-0.10.0/src/setproctitle.c:173: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).
	nul = &base[strlen(base)];
data/libbsd-0.10.0/src/setproctitle.c:180: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).
		end = argv[i] + strlen(argv[i]) + 1;
data/libbsd-0.10.0/src/setproctitle.c:187: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).
		end = envp[i] + strlen(envp[i]) + 1;
data/libbsd-0.10.0/src/setproctitle.c:251: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).
			len = strlen(buf);
data/libbsd-0.10.0/src/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/libbsd-0.10.0/src/strnstr.c:49:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(find);
data/libbsd-0.10.0/src/vis.c:349: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).
	len = strlen(src);
data/libbsd-0.10.0/src/vis.c:359:13:  [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).
		d = dst + wcslen(dst);
data/libbsd-0.10.0/src/vis.c:526: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(start);
data/libbsd-0.10.0/src/vis.c:527:28:  [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).
	maxolen = dlen ? *dlen : (wcslen(start) * MB_LEN_MAX + 1);
data/libbsd-0.10.0/src/vis.c:601: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).
	    mbsrc != NULL ? strlen(mbsrc) : 0, flags, mbextra, cerr_ptr);
data/libbsd-0.10.0/src/vis.c:754: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).
	    mbsrc != NULL ? strlen(mbsrc) : 0, flags, "", NULL);
data/libbsd-0.10.0/src/wcslcat.c:57:17:  [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).
		return(dlen + wcslen(s));
data/libbsd-0.10.0/test/md5.c:36:51:  [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(strcmp(digest, MD5Data((uint8_t *)string, strlen(string), result)) == 0);
data/libbsd-0.10.0/test/setmode.c:33:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(0);
data/libbsd-0.10.0/test/strnstr.c:36: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).
	assert(strnstr(large, "", strlen(large)) == large);
data/libbsd-0.10.0/test/strnstr.c:38:32:  [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(strnstr(large, "quux", strlen(large)) == NULL);
data/libbsd-0.10.0/test/strnstr.c:42: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).
	assert(strnstr(large, small, strlen(large)) == (large + 4));

ANALYSIS SUMMARY:

Hits = 140
Lines analyzed = 17338 in approximately 0.58 seconds (29898 lines/second)
Physical Source Lines of Code (SLOC) = 11047
Hits@level = [0]  25 [1]  41 [2]  76 [3]   8 [4]  15 [5]   0
Hits@level+ = [0+] 165 [1+] 140 [2+]  99 [3+]  23 [4+]  15 [5+]   0
Hits/KSLOC@level+ = [0+] 14.9362 [1+] 12.6731 [2+] 8.96171 [3+] 2.08201 [4+] 1.35783 [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.