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/libnss-db-2.2.3pre1/acconfig.h
Examining data/libnss-db-2.2.3pre1/intl/gettext.h
Examining data/libnss-db-2.2.3pre1/intl/gettextP.h
Examining data/libnss-db-2.2.3pre1/intl/hash-string.h
Examining data/libnss-db-2.2.3pre1/intl/libgnuintl.h
Examining data/libnss-db-2.2.3pre1/intl/libgettext.h
Examining data/libnss-db-2.2.3pre1/intl/loadinfo.h
Examining data/libnss-db-2.2.3pre1/intl/bindtextdom.c
Examining data/libnss-db-2.2.3pre1/intl/dcgettext.c
Examining data/libnss-db-2.2.3pre1/intl/dgettext.c
Examining data/libnss-db-2.2.3pre1/intl/gettext.c
Examining data/libnss-db-2.2.3pre1/intl/finddomain.c
Examining data/libnss-db-2.2.3pre1/intl/loadmsgcat.c
Examining data/libnss-db-2.2.3pre1/intl/localealias.c
Examining data/libnss-db-2.2.3pre1/intl/textdomain.c
Examining data/libnss-db-2.2.3pre1/intl/l10nflist.c
Examining data/libnss-db-2.2.3pre1/intl/explodename.c
Examining data/libnss-db-2.2.3pre1/intl/dcigettext.c
Examining data/libnss-db-2.2.3pre1/intl/dcngettext.c
Examining data/libnss-db-2.2.3pre1/intl/dngettext.c
Examining data/libnss-db-2.2.3pre1/intl/ngettext.c
Examining data/libnss-db-2.2.3pre1/intl/localcharset.c
Examining data/libnss-db-2.2.3pre1/intl/intl-compat.c
Examining data/libnss-db-2.2.3pre1/src/db-ethers.c
Examining data/libnss-db-2.2.3pre1/src/db-grp.c
Examining data/libnss-db-2.2.3pre1/src/db-proto.c
Examining data/libnss-db-2.2.3pre1/src/db-pwd.c
Examining data/libnss-db-2.2.3pre1/src/db-rpc.c
Examining data/libnss-db-2.2.3pre1/src/db-service.c
Examining data/libnss-db-2.2.3pre1/src/db-spwd.c
Examining data/libnss-db-2.2.3pre1/src/files-ethers.c
Examining data/libnss-db-2.2.3pre1/src/files-grp.c
Examining data/libnss-db-2.2.3pre1/src/files-parse.c
Examining data/libnss-db-2.2.3pre1/src/files-proto.c
Examining data/libnss-db-2.2.3pre1/src/files-pwd.c
Examining data/libnss-db-2.2.3pre1/src/files-rpc.c
Examining data/libnss-db-2.2.3pre1/src/files-service.c
Examining data/libnss-db-2.2.3pre1/src/files-spwd.c
Examining data/libnss-db-2.2.3pre1/src/netgroup.h
Examining data/libnss-db-2.2.3pre1/src/makedb.c
Examining data/libnss-db-2.2.3pre1/src/db-XXX.c
Examining data/libnss-db-2.2.3pre1/src/db-alias.c
Examining data/libnss-db-2.2.3pre1/src/db-compat.c
Examining data/libnss-db-2.2.3pre1/src/db-compat.h
Examining data/libnss-db-2.2.3pre1/src/db-netgrp.c
Examining data/libnss-db-2.2.3pre1/src/db-open.c
Examining data/libnss-db-2.2.3pre1/src/nss_db.h

FINAL RESULTS:

data/libnss-db-2.2.3pre1/intl/localcharset.c:161:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	      strcpy (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1);
data/libnss-db-2.2.3pre1/intl/localcharset.c:162:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	      strcpy (res_ptr + res_size - (l2 + 1), buf2);
data/libnss-db-2.2.3pre1/src/db-XXX.c:239:37:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define KEYPRINTF(pattern, args...) snprintf (key.data, size, pattern ,##args)
data/libnss-db-2.2.3pre1/intl/dcigettext.c:133:7:  [3] (buffer) getwd:
  This does not protect against buffer overflows by itself, so use with
  caution (CWE-120, CWE-20). Use getcwd instead.
char *getwd ();
data/libnss-db-2.2.3pre1/intl/dcigettext.c:134:28:  [3] (buffer) getwd:
  This does not protect against buffer overflows by itself, so use with
  caution (CWE-120, CWE-20). Use getcwd instead.
#  define getcwd(buf, max) getwd (buf)
data/libnss-db-2.2.3pre1/intl/dcigettext.c:1148:14:  [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.
  language = getenv ("LANGUAGE");
data/libnss-db-2.2.3pre1/intl/dcigettext.c:1159:12:  [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.
  retval = getenv ("LC_ALL");
data/libnss-db-2.2.3pre1/intl/dcigettext.c:1163:16:  [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.
      retval = getenv (categoryname);
data/libnss-db-2.2.3pre1/intl/dcigettext.c:1167:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	  retval = getenv ("LANG");
data/libnss-db-2.2.3pre1/intl/loadmsgcat.c:266: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.
	      outcharset = getenv ("OUTPUT_CHARSET");
data/libnss-db-2.2.3pre1/intl/localcharset.c:229:16:  [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.
      locale = getenv ("LC_ALL");
data/libnss-db-2.2.3pre1/intl/localcharset.c:232:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	  locale = getenv ("LC_CTYPE");
data/libnss-db-2.2.3pre1/intl/localcharset.c:234:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	    locale = getenv ("LANG");
data/libnss-db-2.2.3pre1/intl/bindtextdom.c:158: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 (result, dirname, len);
data/libnss-db-2.2.3pre1/intl/bindtextdom.c:196:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		    memcpy (result, codeset, len);
data/libnss-db-2.2.3pre1/intl/bindtextdom.c:232:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (new_binding->domainname, domainname, len);
data/libnss-db-2.2.3pre1/intl/bindtextdom.c:257:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		  memcpy (result, dirname, len);
data/libnss-db-2.2.3pre1/intl/bindtextdom.c:288:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	      memcpy (result, codeset, len);
data/libnss-db-2.2.3pre1/intl/dcigettext.c:231: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 msgid[ZERO];
data/libnss-db-2.2.3pre1/intl/dcigettext.c:344: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 data[ZERO];
data/libnss-db-2.2.3pre1/intl/dcigettext.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 (search->msgid, msgid1, msgid_len);
data/libnss-db-2.2.3pre1/intl/dcigettext.c:625:9:  [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 (newp->domainname, domainname, domainname_len + 1);
data/libnss-db-2.2.3pre1/intl/dcigettext.c:1204:29:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  return (void *) ((char *) memcpy (dest, src, n) + n);
data/libnss-db-2.2.3pre1/intl/finddomain.c:132:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (locale, alias_value, len);
data/libnss-db-2.2.3pre1/intl/gettextP.h:161: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 domainname[ZERO];
data/libnss-db-2.2.3pre1/intl/l10nflist.c:218: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 (abs_filename, dirlist, dirlist_len);
data/libnss-db-2.2.3pre1/intl/loadmsgcat.c:86:10:  [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).
# define open   __open
data/libnss-db-2.2.3pre1/intl/loadmsgcat.c:253: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 (charset, charsetstr, len);
data/libnss-db-2.2.3pre1/intl/loadmsgcat.c:295:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy (tmp, outcharset, len);
data/libnss-db-2.2.3pre1/intl/loadmsgcat.c:296:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy (tmp + len, "//TRANSLIT", 10 + 1);
data/libnss-db-2.2.3pre1/intl/loadmsgcat.c:370:8:  [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 (domain_file->filename, O_RDONLY | O_BINARY);
data/libnss-db-2.2.3pre1/intl/localcharset.c:103:6:  [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 (file_name, dir, dir_len);
data/libnss-db-2.2.3pre1/intl/localcharset.c:106:6:  [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 (file_name + dir_len + add_slash, base, base_len + 1);
data/libnss-db-2.2.3pre1/intl/localcharset.c:110:38:  [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 (file_name == NULL || (fp = fopen (file_name, "r")) == NULL)
data/libnss-db-2.2.3pre1/intl/localcharset.c:117:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	  char buf1[50+1];
data/libnss-db-2.2.3pre1/intl/localcharset.c:118:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	  char buf2[50+1];
data/libnss-db-2.2.3pre1/intl/localcharset.c:247:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buf[2 + 10 + 1];
data/libnss-db-2.2.3pre1/intl/localcharset.c:250:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (buf, "CP%u", GetACP ());
data/libnss-db-2.2.3pre1/intl/localealias.c:205: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 (full_fname, fname, fname_len);
data/libnss-db-2.2.3pre1/intl/localealias.c:206: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 (&full_fname[fname_len], aliasfile, sizeof aliasfile);
data/libnss-db-2.2.3pre1/intl/localealias.c:209:8:  [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 (full_fname, "r");
data/libnss-db-2.2.3pre1/intl/localealias.c:222:7:  [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/libnss-db-2.2.3pre1/intl/localealias.c:235:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	  char altbuf[BUFSIZ];
data/libnss-db-2.2.3pre1/intl/localealias.c:315:26:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	      map[nmap].alias = memcpy (&string_space[string_space_act],
data/libnss-db-2.2.3pre1/intl/localealias.c:319:26:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	      map[nmap].value = memcpy (&string_space[string_space_act],
data/libnss-db-2.2.3pre1/intl/textdomain.c:115: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 (new_domain, domainname, len);
data/libnss-db-2.2.3pre1/src/db-XXX.c:163:20:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      p = (char *) memcpy (buffer, value.data, value.size);
data/libnss-db-2.2.3pre1/src/db-XXX.c:251:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[20];
data/libnss-db-2.2.3pre1/src/db-alias.c:180:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[20];
data/libnss-db-2.2.3pre1/src/db-alias.c:207: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 *) key.data)[1], name, key.size - 1);
data/libnss-db-2.2.3pre1/src/db-compat.c:41:13:  [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).
  err = db->open (db, NULL, file, NULL, type, flags, mode);
data/libnss-db-2.2.3pre1/src/db-compat.c:48:15:  [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).
    err = db->open (db, NULL, file, NULL, type, flags, mode);
data/libnss-db-2.2.3pre1/src/db-open.c:67:16:  [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).
  err = dbenv->open(dbenv, home, DB_INIT_MPOOL | DB_CREATE | DB_PRIVATE, 0);
data/libnss-db-2.2.3pre1/src/files-parse.c:64:5:  [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 linebuffer[0];
data/libnss-db-2.2.3pre1/src/makedb.c:181:20:  [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).
      input_file = fopen (input_name, "r");
data/libnss-db-2.2.3pre1/intl/bindtextdom.c:155: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).
		      size_t len = strlen (dirname) + 1;
data/libnss-db-2.2.3pre1/intl/bindtextdom.c:193:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		  size_t len = strlen (codeset) + 1;
data/libnss-db-2.2.3pre1/intl/bindtextdom.c:225:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t len = strlen (domainname) + 1;
data/libnss-db-2.2.3pre1/intl/bindtextdom.c:253:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		  size_t len = strlen (dirname) + 1;
data/libnss-db-2.2.3pre1/intl/bindtextdom.c:284:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      size_t len = strlen (codeset) + 1;
data/libnss-db-2.2.3pre1/intl/dcigettext.c:429:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  msgid_len = strlen (msgid1) + 1;
data/libnss-db-2.2.3pre1/intl/dcigettext.c:482: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).
      size_t dirname_len = strlen (binding->dirname) + 1;
data/libnss-db-2.2.3pre1/intl/dcigettext.c:522:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  domainname_len = strlen (domainname);
data/libnss-db-2.2.3pre1/intl/dcigettext.c:523:34:  [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).
  xdomainname = (char *) alloca (strlen (categoryname)
data/libnss-db-2.2.3pre1/intl/dcigettext.c:532:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  single_locale = (char *) alloca (strlen (categoryvalue) + 1);
data/libnss-db-2.2.3pre1/intl/dcigettext.c:688:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      nls_uint32 len = strlen (msgid);
data/libnss-db-2.2.3pre1/intl/dcigettext.c:1052:13:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	      case equal:
data/libnss-db-2.2.3pre1/intl/finddomain.c:91: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).
			       strlen (dirname) + 1, 0, locale, NULL, NULL,
data/libnss-db-2.2.3pre1/intl/finddomain.c:127:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t len = strlen (alias_value) + 1;
data/libnss-db-2.2.3pre1/intl/finddomain.c:146: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).
			       strlen (dirname) + 1, mask, language, territory,
data/libnss-db-2.2.3pre1/intl/gettextP.h:96:5:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    equal,			/* Comparision for equality.  */
data/libnss-db-2.2.3pre1/intl/l10nflist.c:83: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).
      size_t part_len = strlen (argz);
data/libnss-db-2.2.3pre1/intl/l10nflist.c:107: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).
      size_t part_len = strlen (argz);
data/libnss-db-2.2.3pre1/intl/l10nflist.c:191: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).
				  + strlen (language)
data/libnss-db-2.2.3pre1/intl/l10nflist.c:193:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				     ? strlen (territory) + 1 : 0)
data/libnss-db-2.2.3pre1/intl/l10nflist.c:195:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				     ? strlen (codeset) + 1 : 0)
data/libnss-db-2.2.3pre1/intl/l10nflist.c:197:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				     ? strlen (normalized_codeset) + 1 : 0)
data/libnss-db-2.2.3pre1/intl/l10nflist.c:200:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				     ? strlen (modifier) + 1 : 0)
data/libnss-db-2.2.3pre1/intl/l10nflist.c:202:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				     ? strlen (special) + 1 : 0)
data/libnss-db-2.2.3pre1/intl/l10nflist.c:206: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).
					     ? strlen (sponsor) + 1 : 0)
data/libnss-db-2.2.3pre1/intl/l10nflist.c:208: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).
					   ? strlen (revision) + 1 : 0)) : 0)
data/libnss-db-2.2.3pre1/intl/l10nflist.c:209: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).
				  + 1 + strlen (filename) + 1);
data/libnss-db-2.2.3pre1/intl/l10nflist.c:332:48:  [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).
	    = _nl_make_l10nflist (l10nfile_list, dir, strlen (dir) + 1, cnt,
data/libnss-db-2.2.3pre1/intl/loadmsgcat.c:88:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
# define read   __read
data/libnss-db-2.2.3pre1/intl/loadmsgcat.c:246: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).
	  charsetstr += strlen ("charset=");
data/libnss-db-2.2.3pre1/intl/loadmsgcat.c:292: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 (outcharset);
data/libnss-db-2.2.3pre1/intl/loadmsgcat.c:418:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  long int nb = (long int) read (fd, read_ptr, to_read);
data/libnss-db-2.2.3pre1/intl/localcharset.c:97: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).
	size_t dir_len = strlen (dir);
data/libnss-db-2.2.3pre1/intl/localcharset.c:98:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t base_len = strlen (base);
data/libnss-db-2.2.3pre1/intl/localcharset.c:125:12:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	      c = getc (fp);
data/libnss-db-2.2.3pre1/intl/localcharset.c:134:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		    c = getc (fp);
data/libnss-db-2.2.3pre1/intl/localcharset.c:141:12:  [1] (buffer) fscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	      if (fscanf(fp, "%50s %50s", buf1, buf2) < 2)
data/libnss-db-2.2.3pre1/intl/localcharset.c:143: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).
	      l1 = strlen (buf1);
data/libnss-db-2.2.3pre1/intl/localcharset.c:144: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).
	      l2 = strlen (buf2);
data/libnss-db-2.2.3pre1/intl/localcharset.c:262: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).
       aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1)
data/libnss-db-2.2.3pre1/intl/localcharset.c:262:52:  [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).
       aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1)
data/libnss-db-2.2.3pre1/intl/localcharset.c:266: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).
	codeset = aliases + strlen (aliases) + 1;
data/libnss-db-2.2.3pre1/intl/localealias.c:287:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      alias_len = strlen (alias) + 1;
data/libnss-db-2.2.3pre1/intl/localealias.c:288:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      value_len = strlen (value) + 1;
data/libnss-db-2.2.3pre1/intl/textdomain.c:112:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t len = strlen (domainname) + 1;
data/libnss-db-2.2.3pre1/src/db-alias.c:203: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).
  key.size = 1 + strlen (name);
data/libnss-db-2.2.3pre1/src/db-netgrp.c:54:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      DBT key = { data: (void *) group, size: strlen (group), flags: 0 };
data/libnss-db-2.2.3pre1/src/files-ethers.c:54: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).
DB_LOOKUP (hostton, 1 + strlen (name), (".%s", name),
data/libnss-db-2.2.3pre1/src/files-grp.c:33:23:  [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).
DB_LOOKUP (grnam, 1 + strlen (name), (".%s", name),
data/libnss-db-2.2.3pre1/src/files-proto.c:39:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
DB_LOOKUP (protobyname, 1 + strlen (name), (".%s", name),
data/libnss-db-2.2.3pre1/src/files-pwd.c:33:23:  [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).
DB_LOOKUP (pwnam, 1 + strlen (name), (".%s", name),
data/libnss-db-2.2.3pre1/src/files-rpc.c:39: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).
DB_LOOKUP (rpcbyname, 1 + strlen (name), (".%s", name),
data/libnss-db-2.2.3pre1/src/files-service.c:42: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).
DB_LOOKUP (servbyname, 2 + strlen (name) + (proto ? strlen (proto) : 0),
data/libnss-db-2.2.3pre1/src/files-service.c:42:53:  [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).
DB_LOOKUP (servbyname, 2 + strlen (name) + (proto ? strlen (proto) : 0),
data/libnss-db-2.2.3pre1/src/files-service.c:52: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).
DB_LOOKUP (servbyport, 21 + (proto ? strlen (proto) : 0),
data/libnss-db-2.2.3pre1/src/files-spwd.c:33:23:  [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).
DB_LOOKUP (spnam, 1 + strlen (name), (".%s", name),

ANALYSIS SUMMARY:

Hits = 111
Lines analyzed = 7010 in approximately 0.24 seconds (29183 lines/second)
Physical Source Lines of Code (SLOC) = 4513
Hits@level = [0]   6 [1]  56 [2]  42 [3]  10 [4]   3 [5]   0
Hits@level+ = [0+] 117 [1+] 111 [2+]  55 [3+]  13 [4+]   3 [5+]   0
Hits/KSLOC@level+ = [0+] 25.9251 [1+] 24.5956 [2+] 12.187 [3+] 2.88057 [4+] 0.664746 [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.