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/libnsl-1.3.0/src/nisplus/nis_intern.h
Examining data/libnsl-1.3.0/src/nisplus/nis_xdr.h
Examining data/libnsl-1.3.0/src/nisplus/nis_add.c
Examining data/libnsl-1.3.0/src/nisplus/nis_addmember.c
Examining data/libnsl-1.3.0/src/nisplus/nis_callback.c
Examining data/libnsl-1.3.0/src/nisplus/nis_call.c
Examining data/libnsl-1.3.0/src/nisplus/nis_checkpoint.c
Examining data/libnsl-1.3.0/src/nisplus/nis_clone_dir.c
Examining data/libnsl-1.3.0/src/nisplus/nis_clone_obj.c
Examining data/libnsl-1.3.0/src/nisplus/nis_clone_res.c
Examining data/libnsl-1.3.0/src/nisplus/nis_creategroup.c
Examining data/libnsl-1.3.0/src/nisplus/nis_defaults.c
Examining data/libnsl-1.3.0/src/nisplus/nis_destroygroup.c
Examining data/libnsl-1.3.0/src/nisplus/nis_domain_of.c
Examining data/libnsl-1.3.0/src/nisplus/nis_domain_of_r.c
Examining data/libnsl-1.3.0/src/nisplus/nis_error.c
Examining data/libnsl-1.3.0/src/nisplus/nis_file.c
Examining data/libnsl-1.3.0/src/nisplus/nis_findserv.c
Examining data/libnsl-1.3.0/src/nisplus/nis_free.c
Examining data/libnsl-1.3.0/src/nisplus/nis_getservlist.c
Examining data/libnsl-1.3.0/src/nisplus/nis_ismember.c
Examining data/libnsl-1.3.0/src/nisplus/nis_local_names.c
Examining data/libnsl-1.3.0/src/nisplus/nis_lookup.c
Examining data/libnsl-1.3.0/src/nisplus/nis_mkdir.c
Examining data/libnsl-1.3.0/src/nisplus/nis_modify.c
Examining data/libnsl-1.3.0/src/nisplus/nis_ping.c
Examining data/libnsl-1.3.0/src/nisplus/nis_print.c
Examining data/libnsl-1.3.0/src/nisplus/nis_print_group_entry.c
Examining data/libnsl-1.3.0/src/nisplus/nis_remove.c
Examining data/libnsl-1.3.0/src/nisplus/nis_removemember.c
Examining data/libnsl-1.3.0/src/nisplus/nis_rmdir.c
Examining data/libnsl-1.3.0/src/nisplus/nis_server.c
Examining data/libnsl-1.3.0/src/nisplus/nis_subr.c
Examining data/libnsl-1.3.0/src/nisplus/nis_table.c
Examining data/libnsl-1.3.0/src/nisplus/nis_util.c
Examining data/libnsl-1.3.0/src/nisplus/nis_verifygroup.c
Examining data/libnsl-1.3.0/src/nisplus/nis_xdr.c
Examining data/libnsl-1.3.0/src/rpcsvc/ypclnt.h
Examining data/libnsl-1.3.0/src/rpcsvc/ypupd.h
Examining data/libnsl-1.3.0/src/rpcsvc/yp_prot.h
Examining data/libnsl-1.3.0/src/rpcsvc/yp.h
Examining data/libnsl-1.3.0/src/rpcsvc/nis_callback.h
Examining data/libnsl-1.3.0/src/rpcsvc/nis.h
Examining data/libnsl-1.3.0/src/rpcsvc/nislib.h
Examining data/libnsl-1.3.0/src/rpcsvc/nis_tags.h
Examining data/libnsl-1.3.0/src/rpcsvc/yppasswd.h
Examining data/libnsl-1.3.0/src/internal.h
Examining data/libnsl-1.3.0/src/libc-lock.h
Examining data/libnsl-1.3.0/src/yp_xdr.c
Examining data/libnsl-1.3.0/src/do_ypcall.c
Examining data/libnsl-1.3.0/src/ypprot_err.c
Examining data/libnsl-1.3.0/src/yp_master.c
Examining data/libnsl-1.3.0/src/yp_maplist.c
Examining data/libnsl-1.3.0/src/yp_order.c
Examining data/libnsl-1.3.0/src/yp_first.c
Examining data/libnsl-1.3.0/src/yp_next.c
Examining data/libnsl-1.3.0/src/yp_match.c
Examining data/libnsl-1.3.0/src/yperr_string.c
Examining data/libnsl-1.3.0/src/ypbinderr_string.c
Examining data/libnsl-1.3.0/src/yp_get_default_domain.c
Examining data/libnsl-1.3.0/src/taddr2host.c
Examining data/libnsl-1.3.0/src/taddr2ipstr.c
Examining data/libnsl-1.3.0/src/taddr2port.c

FINAL RESULTS:

data/libnsl-1.3.0/src/nisplus/nis_call.c:470:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy (domain, name);
data/libnsl-1.3.0/src/nisplus/nis_call.c:487:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy (cp, domain);
data/libnsl-1.3.0/src/nisplus/nis_defaults.c:132:39:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
searchaccess (char *str, unsigned int access)
data/libnsl-1.3.0/src/nisplus/nis_defaults.c:136:25:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  unsigned int result = access;
data/libnsl-1.3.0/src/nisplus/nis_ismember.c:47:7:  [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 (cp, cp2);
data/libnsl-1.3.0/src/nisplus/nis_local_names.c:52: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 (cp, cptr);
data/libnsl-1.3.0/src/nisplus/nis_local_names.c:134: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 (__principal, ENTRY_VAL (res->objects.objects_val, 0));
data/libnsl-1.3.0/src/nisplus/nis_local_names.c:145:9:  [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).
	return strcpy (__principal, nis_local_host ());
data/libnsl-1.3.0/src/nisplus/nis_print.c:150:38:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
nis_print_rights (const unsigned int access)
data/libnsl-1.3.0/src/nisplus/nis_print.c:156:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  acc = access;			/* Parameter is const ! */
data/libnsl-1.3.0/src/nisplus/nis_defaults.c:368: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.
    cptr = getenv ("NIS_DEFAULTS");
data/libnsl-1.3.0/src/nisplus/nis_defaults.c:394: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.
    cptr = getenv ("NIS_DEFAULTS");
data/libnsl-1.3.0/src/nisplus/nis_defaults.c:425:10:  [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.
  cptr = getenv ("NIS_DEFAULTS");
data/libnsl-1.3.0/src/nisplus/nis_defaults.c:453: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.
      cptr = getenv ("NIS_DEFAULTS");
data/libnsl-1.3.0/src/nisplus/nis_local_names.c:41:18:  [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.
      && (cptr = getenv ("NIS_GROUP")) != NULL
data/libnsl-1.3.0/src/nisplus/nis_subr.c:186:10:  [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.
  path = getenv ("NIS_PATH");
data/libnsl-1.3.0/src/do_ypcall.c:40: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 dom_domain[YPMAXDOMAIN + 1];
data/libnsl-1.3.0/src/do_ypcall.c:67: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[INET6_ADDRSTRLEN];
data/libnsl-1.3.0/src/do_ypcall.c:97: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 path[sizeof (BINDINGDIR) + strlen (domain) + 3 * sizeof (unsigned) + 3];
data/libnsl-1.3.0/src/do_ypcall.c:102:14:  [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).
  FILE *in = fopen (path, "rce");
data/libnsl-1.3.0/src/do_ypcall.c:132: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).
      fd = open (path, O_RDONLY);
data/libnsl-1.3.0/src/do_ypcall.c:514:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char key[resp.ypresp_all_u.val.keydat.keydat_len + 1];
data/libnsl-1.3.0/src/do_ypcall.c:515:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char val[resp.ypresp_all_u.val.valdat.valdat_len + 1];
data/libnsl-1.3.0/src/do_ypcall.c:524: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 (key, resp.ypresp_all_u.val.keydat.keydat_val,
data/libnsl-1.3.0/src/do_ypcall.c:527: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 (val, resp.ypresp_all_u.val.valdat.valdat_val,
data/libnsl-1.3.0/src/nisplus/nis_add.c:36: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 buf1 [namelen + 20];
data/libnsl-1.3.0/src/nisplus/nis_add.c:37: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 buf4 [namelen + 20];
data/libnsl-1.3.0/src/nisplus/nis_add.c:45: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 (&obj, obj2, sizeof (nis_object));
data/libnsl-1.3.0/src/nisplus/nis_addmember.c:33: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[grouplen + 14 + NIS_MAXNAMELEN];
data/libnsl-1.3.0/src/nisplus/nis_addmember.c:34: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 domainbuf[grouplen + 2];
data/libnsl-1.3.0/src/nisplus/nis_call.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 buffer[i + 1];
data/libnsl-1.3.0/src/nisplus/nis_call.c:56: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.
	return inet_addr (memcpy (buffer, str, i));
data/libnsl-1.3.0/src/nisplus/nis_call.c:232: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 netname[MAXNETNAMELEN + 1];
data/libnsl-1.3.0/src/nisplus/nis_call.c:465: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 leaf[namelen + 3];
data/libnsl-1.3.0/src/nisplus/nis_call.c:466: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 domain[namelen + 3];
data/libnsl-1.3.0/src/nisplus/nis_callback.c:72: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[(strlen (sname) + 1) * 2 + 40];
data/libnsl-1.3.0/src/nisplus/nis_callback.c:73: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 pkey[HEXKEYBYTES + 1];
data/libnsl-1.3.0/src/nisplus/nis_callback.c:150:6:  [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[strlen (cbproc_entry(i)->zo_name) +
data/libnsl-1.3.0/src/nisplus/nis_creategroup.c:29: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[grouplen + 50];
data/libnsl-1.3.0/src/nisplus/nis_creategroup.c:30: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 leafbuf[grouplen + 2];
data/libnsl-1.3.0/src/nisplus/nis_creategroup.c:31: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 domainbuf[grouplen + 2];
data/libnsl-1.3.0/src/nisplus/nis_defaults.c:74: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[strlen (str) + 1];
data/libnsl-1.3.0/src/nisplus/nis_defaults.c:100:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      time += atoi (dptr) * 60 * 60 * 24;
data/libnsl-1.3.0/src/nisplus/nis_defaults.c:109:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      time += atoi (dptr) * 60 * 60;
data/libnsl-1.3.0/src/nisplus/nis_defaults.c:118:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      time += atoi (dptr) * 60;
data/libnsl-1.3.0/src/nisplus/nis_defaults.c:126:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  time += atoi (dptr);
data/libnsl-1.3.0/src/nisplus/nis_defaults.c:134: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[strlen (str) + 1];
data/libnsl-1.3.0/src/nisplus/nis_destroygroup.c:32: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[grouplen + 50];
data/libnsl-1.3.0/src/nisplus/nis_destroygroup.c:33: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 leafbuf[grouplen + 3];
data/libnsl-1.3.0/src/nisplus/nis_destroygroup.c:34: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 domainbuf[grouplen + 3];
data/libnsl-1.3.0/src/nisplus/nis_domain_of.c:28: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 result[NIS_MAXNAMELEN + 1];
data/libnsl-1.3.0/src/nisplus/nis_domain_of_r.c:65: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.
  return memcpy (buffer, cptr, cptr_len + 1);
data/libnsl-1.3.0/src/nisplus/nis_error.c:123:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buffer[NIS_MAXNAMELEN + 1];
data/libnsl-1.3.0/src/nisplus/nis_file.c:39:14:  [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).
  FILE *in = fopen (name, "rce");
data/libnsl-1.3.0/src/nisplus/nis_file.c:67:15:  [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).
  FILE *out = fopen (name, "wce");
data/libnsl-1.3.0/src/nisplus/nis_findserv.c:50: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 cu_inbuf[1];
data/libnsl-1.3.0/src/nisplus/nis_findserv.c:139: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 ((char *) &pings[pings_count].sin, (char *) &sin,
data/libnsl-1.3.0/src/nisplus/nis_findserv.c:141: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 ((char *)&saved_sin, (char *)&sin, sizeof(sin));
data/libnsl-1.3.0/src/nisplus/nis_findserv.c:173: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 ((char *) &cu->cu_raddr, (char *) &pings[i].sin,
data/libnsl-1.3.0/src/nisplus/nis_findserv.c:189: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 (&val, cu->cu_inbuf, sizeof (u_int32_t));
data/libnsl-1.3.0/src/nisplus/nis_getservlist.c:136:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              memcpy (serv[i]->pkey.n_bytes, server->pkey.n_bytes,
data/libnsl-1.3.0/src/nisplus/nis_getservlist.c:165:46:  [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.
      xdr_free ((xdrproc_t)_xdr_nis_server, (char *)serv[i]);
data/libnsl-1.3.0/src/nisplus/nis_ismember.c:34: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[grouplen + 50];
data/libnsl-1.3.0/src/nisplus/nis_ismember.c:35: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 leafbuf[grouplen + 2];
data/libnsl-1.3.0/src/nisplus/nis_ismember.c:36: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 domainbuf[grouplen + 2];
data/libnsl-1.3.0/src/nisplus/nis_ismember.c:91: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 buf1[strlen (principal) + 2];
data/libnsl-1.3.0/src/nisplus/nis_ismember.c:92: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 buf2[strlen (cp) + 2];
data/libnsl-1.3.0/src/nisplus/nis_ismember.c:129: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 buf1[strlen (principal) + 2];
data/libnsl-1.3.0/src/nisplus/nis_ismember.c:130: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 buf2[strlen (cp) + 2];
data/libnsl-1.3.0/src/nisplus/nis_local_names.c:37: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 __nisgroup[NIS_MAXNAMELEN + 1];
data/libnsl-1.3.0/src/nisplus/nis_local_names.c:66: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 __nisdomainname[NIS_MAXNAMELEN + 1];
data/libnsl-1.3.0/src/nisplus/nis_local_names.c:92: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 __principal[NIS_MAXNAMELEN + 1];
data/libnsl-1.3.0/src/nisplus/nis_local_names.c:96: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[NIS_MAXNAMELEN + 1];
data/libnsl-1.3.0/src/nisplus/nis_local_names.c:109:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	    return strcpy (__principal, "nobody");
data/libnsl-1.3.0/src/nisplus/nis_local_names.c:157: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 __nishostname[NIS_MAXNAMELEN + 1];
data/libnsl-1.3.0/src/nisplus/nis_modify.c:35: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 buf1[namelen + 20];
data/libnsl-1.3.0/src/nisplus/nis_modify.c:36: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 buf4[namelen + 20];
data/libnsl-1.3.0/src/nisplus/nis_modify.c:44: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 (&obj, obj2, sizeof (nis_object));
data/libnsl-1.3.0/src/nisplus/nis_print.c:152: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 result[17];
data/libnsl-1.3.0/src/nisplus/nis_print_group_entry.c:40: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[grouplen + 50];
data/libnsl-1.3.0/src/nisplus/nis_print_group_entry.c:41: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 leafbuf[grouplen + 3];
data/libnsl-1.3.0/src/nisplus/nis_print_group_entry.c:42: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 domainbuf[grouplen + 3];
data/libnsl-1.3.0/src/nisplus/nis_print_group_entry.c:68: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 *mem_exp[NIS_RES_NUMOBJ (res)];
data/libnsl-1.3.0/src/nisplus/nis_print_group_entry.c:69: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 *mem_imp[NIS_RES_NUMOBJ (res)];
data/libnsl-1.3.0/src/nisplus/nis_print_group_entry.c:70: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 *mem_rec[NIS_RES_NUMOBJ (res)];
data/libnsl-1.3.0/src/nisplus/nis_print_group_entry.c:71: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 *nomem_exp[NIS_RES_NUMOBJ (res)];
data/libnsl-1.3.0/src/nisplus/nis_print_group_entry.c:72: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 *nomem_imp[NIS_RES_NUMOBJ (res)];
data/libnsl-1.3.0/src/nisplus/nis_print_group_entry.c:73: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 *nomem_rec[NIS_RES_NUMOBJ (res)];
data/libnsl-1.3.0/src/nisplus/nis_print_group_entry.c:125: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 buf2[strlen (NIS_RES_OBJECT (res)->zo_domain) + 10];
data/libnsl-1.3.0/src/nisplus/nis_removemember.c:33: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[grouplen + 14 + NIS_MAXNAMELEN];
data/libnsl-1.3.0/src/nisplus/nis_removemember.c:34: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 domainbuf[grouplen + 2];
data/libnsl-1.3.0/src/nisplus/nis_subr.c:30: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 result[NIS_MAXNAMELEN + 1];
data/libnsl-1.3.0/src/nisplus/nis_subr.c:60: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 result[NIS_MAXNAMELEN + 1];
data/libnsl-1.3.0/src/nisplus/nis_table.c:425: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 (NIS_RES_OBJECT (allres) + NIS_RES_NUMOBJ (allres),
data/libnsl-1.3.0/src/nisplus/nis_table.c:575: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 (&obj, obj2, sizeof (nis_object));
data/libnsl-1.3.0/src/nisplus/nis_table.c:578: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 buf1[namelen + 20];
data/libnsl-1.3.0/src/nisplus/nis_table.c:579: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 buf4[namelen + 20];
data/libnsl-1.3.0/src/nisplus/nis_table.c:623: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 buf1[namelen + 20];
data/libnsl-1.3.0/src/nisplus/nis_table.c:624: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 buf4[namelen + 20];
data/libnsl-1.3.0/src/nisplus/nis_table.c:637: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 (&obj, obj2, sizeof (nis_object));
data/libnsl-1.3.0/src/nisplus/nis_verifygroup.c:32: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[grouplen + 50];
data/libnsl-1.3.0/src/nisplus/nis_verifygroup.c:33: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 leafbuf[grouplen + 2];
data/libnsl-1.3.0/src/nisplus/nis_verifygroup.c:34: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 domainbuf[grouplen + 2];
data/libnsl-1.3.0/src/rpcsvc/yp.h:178: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 ypbind_binding_addr[4];
data/libnsl-1.3.0/src/rpcsvc/yp.h:179: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 ypbind_binding_port[2];
data/libnsl-1.3.0/src/rpcsvc/yp_prot.h:310: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.
        char ypoldsetdom_domain[YPMAXDOMAIN];
data/libnsl-1.3.0/src/yp_first.c:60: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 (*outkey, resp.keydat.keydat_val, *outkeylen);
data/libnsl-1.3.0/src/yp_first.c:64: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 (*outval, resp.valdat.valdat_val, *outvallen);
data/libnsl-1.3.0/src/yp_get_default_domain.c:29: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 ypdomainname[NIS_MAXNAMELEN + 1];
data/libnsl-1.3.0/src/yp_match.c:60: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 (*outval, resp.valdat.valdat_val, *outvallen);
data/libnsl-1.3.0/src/yp_next.c:62: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 (*outkey, resp.keydat.keydat_val, *outkeylen);
data/libnsl-1.3.0/src/yp_next.c:66: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 (*outval, resp.valdat.valdat_val, *outvallen);
data/libnsl-1.3.0/src/yp_xdr.c:403: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 key[YPMAXRECORD], val[YPMAXRECORD];
data/libnsl-1.3.0/src/do_ypcall.c:72:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (ysd->dom_domain, domain, YPMAXDOMAIN);
data/libnsl-1.3.0/src/do_ypcall.c:86:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (ysd->dom_domain, domain, YPMAXDOMAIN);
data/libnsl-1.3.0/src/do_ypcall.c:97:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  char path[sizeof (BINDINGDIR) + strlen (domain) + 3 * sizeof (unsigned) + 3];
data/libnsl-1.3.0/src/nisplus/nis_add.c:35: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 namelen = strlen (name);
data/libnsl-1.3.0/src/nisplus/nis_addmember.c:32: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 grouplen = strlen (group);
data/libnsl-1.3.0/src/nisplus/nis_addmember.c:40: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).
      cp += strlen (cp);
data/libnsl-1.3.0/src/nisplus/nis_addmember.c:84: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).
      assert (strlen (NIS_RES_OBJECT(res)->zo_name) + 1 < grouplen + 14);
data/libnsl-1.3.0/src/nisplus/nis_addmember.c:87:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (cp, NIS_RES_OBJECT (res)->zo_domain, NIS_MAXNAMELEN);
data/libnsl-1.3.0/src/nisplus/nis_call.c:237:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	  strncpy (p, serv->name, MAXNETNAMELEN - 5);
data/libnsl-1.3.0/src/nisplus/nis_call.c:464: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 namelen = strlen (name);
data/libnsl-1.3.0/src/nisplus/nis_call.c:481: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).
	    memmove (domain, ndomain, strlen (ndomain) + 1);
data/libnsl-1.3.0/src/nisplus/nis_call.c:485: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).
	cp = (char *)leaf + strlen (leaf);
data/libnsl-1.3.0/src/nisplus/nis_call.c:617: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).
	addr += strlen (addr) + 8;
data/libnsl-1.3.0/src/nisplus/nis_call.c:658: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).
  new = calloc (1, sizeof (*new) + strlen (name) + 8 + size);
data/libnsl-1.3.0/src/nisplus/nis_callback.c:72: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).
  char buf[(strlen (sname) + 1) * 2 + 40];
data/libnsl-1.3.0/src/nisplus/nis_callback.c:103:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (pkey, ENTRY_VAL(NIS_RES_OBJECT(res), 3), len);
data/libnsl-1.3.0/src/nisplus/nis_callback.c:150: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).
	    char name[strlen (cbproc_entry(i)->zo_name) +
data/libnsl-1.3.0/src/nisplus/nis_callback.c:151: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 (cbproc_entry(i)->zo_domain) + 3];
data/libnsl-1.3.0/src/nisplus/nis_callback.c:324: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).
	  cb->serv->pkey.n_len = strlen(cb->serv->pkey.n_bytes);
data/libnsl-1.3.0/src/nisplus/nis_creategroup.c:28: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 grouplen = strlen (group);
data/libnsl-1.3.0/src/nisplus/nis_defaults.c:43: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).
  assert (strlen (what) == 6);
data/libnsl-1.3.0/src/nisplus/nis_defaults.c:74: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).
  char buf[strlen (str) + 1];
data/libnsl-1.3.0/src/nisplus/nis_defaults.c:90:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (buf, dptr, i);
data/libnsl-1.3.0/src/nisplus/nis_defaults.c:134: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).
  char buf[strlen (str) + 1];
data/libnsl-1.3.0/src/nisplus/nis_defaults.c:151:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (buf, cptr, i);
data/libnsl-1.3.0/src/nisplus/nis_destroygroup.c:31: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 grouplen = strlen (group);
data/libnsl-1.3.0/src/nisplus/nis_domain_of_r.c:50: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).
  cptr_len = strlen (cptr);
data/libnsl-1.3.0/src/nisplus/nis_domain_of_r.c:56:14:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
      return strcpy (buffer, ".");
data/libnsl-1.3.0/src/nisplus/nis_ismember.c:33: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 grouplen = strlen (group);
data/libnsl-1.3.0/src/nisplus/nis_ismember.c:91: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).
		char buf1[strlen (principal) + 2];
data/libnsl-1.3.0/src/nisplus/nis_ismember.c:92: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).
		char buf2[strlen (cp) + 2];
data/libnsl-1.3.0/src/nisplus/nis_ismember.c:129: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).
		char buf1[strlen (principal) + 2];
data/libnsl-1.3.0/src/nisplus/nis_ismember.c:130: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).
		char buf2[strlen (cp) + 2];
data/libnsl-1.3.0/src/nisplus/nis_local_names.c:42: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).
      && strlen (cptr) < NIS_MAXNAMELEN)
data/libnsl-1.3.0/src/nisplus/nis_local_names.c:49: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).
	  if ((cp - __nisgroup) + strlen (cptr) + 1 < NIS_MAXNAMELEN)
data/libnsl-1.3.0/src/nisplus/nis_local_names.c:74:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  char *cp = (char *)__nisdomainname + strlen (__nisdomainname);
data/libnsl-1.3.0/src/nisplus/nis_local_names.c:165:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  char *cp = (char *)__nishostname + strlen (__nishostname);
data/libnsl-1.3.0/src/nisplus/nis_local_names.c:172: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).
	  if (len + strlen (nis_local_directory ()) + 1 > NIS_MAXNAMELEN)
data/libnsl-1.3.0/src/nisplus/nis_local_names.c:179:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	  strncpy (cp, nis_local_directory (), NIS_MAXNAMELEN - len -1);
data/libnsl-1.3.0/src/nisplus/nis_lookup.c:44: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).
  if ((flags & EXPAND_NAME) && (name[strlen (name) - 1] != '.'))
data/libnsl-1.3.0/src/nisplus/nis_modify.c:34: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 namelen = strlen (name);
data/libnsl-1.3.0/src/nisplus/nis_print_group_entry.c:39: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 grouplen = strlen (group);
data/libnsl-1.3.0/src/nisplus/nis_print_group_entry.c:125: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).
	char buf2[strlen (NIS_RES_OBJECT (res)->zo_domain) + 10];
data/libnsl-1.3.0/src/nisplus/nis_print_group_entry.c:129: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).
				 buf2, strlen (NIS_RES_OBJECT (res)->zo_domain)
data/libnsl-1.3.0/src/nisplus/nis_removemember.c:32: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 grouplen = strlen (group);
data/libnsl-1.3.0/src/nisplus/nis_removemember.c:40: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).
      cp += strlen(cp);
data/libnsl-1.3.0/src/nisplus/nis_removemember.c:86:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (cp, NIS_RES_OBJECT (res)->zo_domain, NIS_MAXNAMELEN);
data/libnsl-1.3.0/src/nisplus/nis_subr.c:74: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).
  diff = strlen (name) - strlen (local_domain);
data/libnsl-1.3.0/src/nisplus/nis_subr.c:74: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).
  diff = strlen (name) - strlen (local_domain);
data/libnsl-1.3.0/src/nisplus/nis_subr.c:116: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).
  size_t local_domain_len = strlen (local_domain);
data/libnsl-1.3.0/src/nisplus/nis_subr.c:117: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 name_len = strlen (name);
data/libnsl-1.3.0/src/nisplus/nis_subr.c:180:4:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	  strcpy (stpcpy (getnames[0], name), ".");
data/libnsl-1.3.0/src/nisplus/nis_subr.c:213: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).
	      tmp = malloc (strlen (cptr) + local_domain_len + name_len + 2);
data/libnsl-1.3.0/src/nisplus/nis_subr.c:237: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 cplen = strlen (cp);
data/libnsl-1.3.0/src/nisplus/nis_subr.c:319: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).
  len1 = strlen (n1);
data/libnsl-1.3.0/src/nisplus/nis_subr.c:320: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).
  len2 = strlen (n2);
data/libnsl-1.3.0/src/nisplus/nis_table.c:121: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).
      search_val[search_len].zattr_val.zattr_val_len = strlen (val) + 1;
data/libnsl-1.3.0/src/nisplus/nis_table.c:246: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).
      && ibreq->ibr_name[strlen (ibreq->ibr_name) - 1] != '.')
data/libnsl-1.3.0/src/nisplus/nis_table.c:577: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 namelen = strlen (name);
data/libnsl-1.3.0/src/nisplus/nis_table.c:581:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (obj.zo_name == NULL || strlen (obj.zo_name) == 0)
data/libnsl-1.3.0/src/nisplus/nis_table.c:584: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).
  if (obj.zo_owner == NULL || strlen (obj.zo_owner) == 0)
data/libnsl-1.3.0/src/nisplus/nis_table.c:587: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).
  if (obj.zo_group == NULL || strlen (obj.zo_group) == 0)
data/libnsl-1.3.0/src/nisplus/nis_table.c:622: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 namelen = strlen (name);
data/libnsl-1.3.0/src/nisplus/nis_table.c:639:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (obj.zo_name == NULL || strlen (obj.zo_name) == 0)
data/libnsl-1.3.0/src/nisplus/nis_table.c:642: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).
  if (obj.zo_owner == NULL || strlen (obj.zo_owner) == 0)
data/libnsl-1.3.0/src/nisplus/nis_table.c:645: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).
  if (obj.zo_group == NULL || strlen (obj.zo_group) == 0)
data/libnsl-1.3.0/src/nisplus/nis_verifygroup.c:31: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 grouplen = strlen (group);

ANALYSIS SUMMARY:

Hits = 180
Lines analyzed = 10712 in approximately 0.37 seconds (29020 lines/second)
Physical Source Lines of Code (SLOC) = 7866
Hits@level = [0]  58 [1]  67 [2]  97 [3]   6 [4]  10 [5]   0
Hits@level+ = [0+] 238 [1+] 180 [2+] 113 [3+]  16 [4+]  10 [5+]   0
Hits/KSLOC@level+ = [0+] 30.2568 [1+] 22.8833 [2+] 14.3656 [3+] 2.03407 [4+] 1.27129 [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.