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/rpcbind-1.2.5/src/xlog.h
Examining data/rpcbind-1.2.5/src/xlog.c
Examining data/rpcbind-1.2.5/src/warmstart.c
Examining data/rpcbind-1.2.5/src/util.c
Examining data/rpcbind-1.2.5/src/rpcbind.h
Examining data/rpcbind-1.2.5/src/rpcb_svc_com.c
Examining data/rpcbind-1.2.5/src/rpcb_svc_4.c
Examining data/rpcbind-1.2.5/src/rpcb_svc.c
Examining data/rpcbind-1.2.5/src/rpcb_stat.c
Examining data/rpcbind-1.2.5/src/pmap_svc.c
Examining data/rpcbind-1.2.5/src/check_bound.c
Examining data/rpcbind-1.2.5/src/security.c
Examining data/rpcbind-1.2.5/src/rpcbind.c
Examining data/rpcbind-1.2.5/src/rpcinfo.c

FINAL RESULTS:

data/rpcbind-1.2.5/src/rpcbind.c:463:3:  [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(sun.sun_path, _PATH_RPCBINDSOCK);
data/rpcbind-1.2.5/src/rpcinfo.c:354:3:  [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 (sun.sun_path, _PATH_RPCBINDSOCK);
data/rpcbind-1.2.5/src/rpcinfo.c:1130:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  sprintf (buf, "%s/%s/%s ",
data/rpcbind-1.2.5/src/rpcinfo.c:1240:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf (lp, "%s%s", fieldbuf,
data/rpcbind-1.2.5/src/rpcinfo.c:1294:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf (lp, "%s%s", fieldbuf,
data/rpcbind-1.2.5/src/rpcinfo.c:1360:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  sprintf (lp, "%s%s", fieldbuf,
data/rpcbind-1.2.5/src/warmstart.c:149:6:  [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.
	if (access(RPCBIND_STATEDIR, X_OK) == 0)
data/rpcbind-1.2.5/src/xlog.c:182:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vfprintf(stderr, fmt, args2);
data/rpcbind-1.2.5/src/rpcbind.c:892:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt(argc, argv, "adh:ilswfr")) != -1) {
data/rpcbind-1.2.5/src/rpcinfo.c:169:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((c = getopt (argc, argv, "a:bdlmn:pstT:u")) != -1)
data/rpcbind-1.2.5/src/rpcinfo.c:171:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((c = getopt (argc, argv, "a:bdlmn:sT:")) != -1)
data/rpcbind-1.2.5/src/pmap_svc.c:177: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 uidbuf[32];
data/rpcbind-1.2.5/src/pmap_svc.c:218: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[32];
data/rpcbind-1.2.5/src/pmap_svc.c:316: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 serveuaddr[32];
data/rpcbind-1.2.5/src/rpcb_svc_com.c:137: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 owner[64];
data/rpcbind-1.2.5/src/rpcb_svc_com.c:225: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 owner[64];
data/rpcbind-1.2.5/src/rpcb_svc_com.c:415:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open("/dev/null", O_RDONLY)) == -1) {
data/rpcbind-1.2.5/src/rpcb_svc_com.c:615:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char  outbuf[RPC_BUF_MAX];
data/rpcbind-1.2.5/src/rpcb_svc_com.c:1039: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(np->buf, ap->buf, ap->len);
data/rpcbind-1.2.5/src/rpcb_svc_com.c:1143: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(nb->buf, ptr, len);
data/rpcbind-1.2.5/src/rpcb_svc_com.c:1356:14:  [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).
			*p_port = atoi(pt2) * 256 + atoi(pt1);
data/rpcbind-1.2.5/src/rpcb_svc_com.c:1356:32:  [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).
			*p_port = atoi(pt2) * 256 + atoi(pt1);
data/rpcbind-1.2.5/src/rpcbind.c:166:24:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((rpcbindlockfd = (open(RPCBINDDLOCK,
data/rpcbind-1.2.5/src/rpcbind.c:438: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(taddr.addr.buf, &sa, addrlen);
data/rpcbind-1.2.5/src/rpcbind.c:582: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(taddr.addr.buf, sa, addrlen);
data/rpcbind-1.2.5/src/rpcbind.c:668: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(taddr.addr.buf, sa, addrlen);
data/rpcbind-1.2.5/src/rpcinfo.c:689: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 hostbuf[NI_MAXHOST];
data/rpcbind-1.2.5/src/rpcinfo.c:796: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[256];
data/rpcbind-1.2.5/src/rpcinfo.c:903:6:  [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 (list->rpcb_map.r_netid, "%6ld",
data/rpcbind-1.2.5/src/rpcinfo.c:910:9:  [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 (&list->rpcb_map.r_addr[8], "%d.%d", high, low);
data/rpcbind-1.2.5/src/rpcinfo.c:989:8:  [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 (p, "%d", vl->vers);
data/rpcbind-1.2.5/src/rpcinfo.c:1126: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 buf[128];
data/rpcbind-1.2.5/src/rpcinfo.c:1165: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 fieldbuf[MAXFIELD];
data/rpcbind-1.2.5/src/rpcinfo.c:1167: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 linebuf[MAXLINE];
data/rpcbind-1.2.5/src/rpcinfo.c:1214:4:  [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 (fieldbuf, "%d/", inf[RPCBVERS_2_STAT].setinfo);
data/rpcbind-1.2.5/src/rpcinfo.c:1217:4:  [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 (fieldbuf, "%d/", inf[RPCBVERS_2_STAT].unsetinfo);
data/rpcbind-1.2.5/src/rpcinfo.c:1223:4:  [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 (fieldbuf, "%d/", cnt);
data/rpcbind-1.2.5/src/rpcinfo.c:1229:4:  [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 (fieldbuf, "%d/", cnt);
data/rpcbind-1.2.5/src/rpcinfo.c:1235:7:  [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 (cp, "%d", inf[RPCBVERS_2_STAT].info[i]);
data/rpcbind-1.2.5/src/rpcinfo.c:1268:4:  [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 (fieldbuf, "%d/", inf[RPCBVERS_3_STAT].setinfo);
data/rpcbind-1.2.5/src/rpcinfo.c:1271:4:  [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 (fieldbuf, "%d/", inf[RPCBVERS_3_STAT].unsetinfo);
data/rpcbind-1.2.5/src/rpcinfo.c:1277:4:  [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 (fieldbuf, "%d/", cnt);
data/rpcbind-1.2.5/src/rpcinfo.c:1283:4:  [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 (fieldbuf, "%d/", cnt);
data/rpcbind-1.2.5/src/rpcinfo.c:1289:7:  [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 (cp, "%d", inf[RPCBVERS_3_STAT].info[i]);
data/rpcbind-1.2.5/src/rpcinfo.c:1325:8:  [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 (fieldbuf, "%d/", inf[RPCBVERS_4_STAT].setinfo);
data/rpcbind-1.2.5/src/rpcinfo.c:1328:8:  [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 (fieldbuf, "%d/", inf[RPCBVERS_4_STAT].unsetinfo);
data/rpcbind-1.2.5/src/rpcinfo.c:1334:8:  [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 (fieldbuf, "%d/", cnt);
data/rpcbind-1.2.5/src/rpcinfo.c:1340:8:  [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 (fieldbuf, "%d/", cnt);
data/rpcbind-1.2.5/src/rpcinfo.c:1352:6:  [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 (cp, "%d", inf[RPCBVERS_4_STAT].info[i]);
data/rpcbind-1.2.5/src/rpcinfo.c:1354:6:  [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 (cp, "%d", inf[RPCBVERS_4_STAT].info[i] +
data/rpcbind-1.2.5/src/rpcinfo.c:1820: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 *tlist[3] = {
data/rpcbind-1.2.5/src/rpcinfo.c:1885: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 ((*targaddr)->buf, addr.buf, addr.len);
data/rpcbind-1.2.5/src/security.c:230: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	procbuf[32];
data/rpcbind-1.2.5/src/security.c:232: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	progbuf[32];
data/rpcbind-1.2.5/src/security.c:233: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 fromname[NI_MAXHOST];
data/rpcbind-1.2.5/src/security.c:281:4:  [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.
			strcpy(fromname, "local");
data/rpcbind-1.2.5/src/util.c:241: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(&ss, bestif->ifa_addr, size);
data/rpcbind-1.2.5/src/util.c:304: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(local_in4, res->ai_addr, sizeof *local_in4);
data/rpcbind-1.2.5/src/util.c:319: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(local_in6, res->ai_addr, sizeof *local_in6);
data/rpcbind-1.2.5/src/warmstart.c:76:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(filename, "w");
data/rpcbind-1.2.5/src/warmstart.c:82: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(filename, "w");
data/rpcbind-1.2.5/src/warmstart.c:112:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fp = fopen(filename, "r")) == NULL) {
data/rpcbind-1.2.5/src/warmstart.c:153: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).
		int fd = open(RPCBIND_STATEDIR, O_RDONLY | O_DIRECTORY | O_NOFOLLOW);
data/rpcbind-1.2.5/src/xlog.c:39: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 log_name[256];		/* name of this program		*/
data/rpcbind-1.2.5/src/rpcbind.c:559:14:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
			oldmask = umask(S_IXUSR|S_IXGRP|S_IXOTH);
data/rpcbind-1.2.5/src/rpcbind.c:569:11:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
			(void) umask(oldmask);
data/rpcbind-1.2.5/src/rpcbind.c:640:13:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		oldmask = umask(S_IXUSR|S_IXGRP|S_IXOTH);
data/rpcbind-1.2.5/src/rpcbind.c:656:10:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		(void) umask(oldmask);
data/rpcbind-1.2.5/src/rpcinfo.c:900: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).
			    malloc (strlen (MAXLONG_AS_STRING) + 1);
data/rpcbind-1.2.5/src/rpcinfo.c:990: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).
	      p = p + strlen (p);
data/rpcbind-1.2.5/src/rpcinfo.c:992:3:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
		sprintf (p++, ",");
data/rpcbind-1.2.5/src/rpcinfo.c:999:15:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
              strncat (buf, nl->netid, netidmax);
data/rpcbind-1.2.5/src/rpcinfo.c:1000: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).
              if (strlen (nl->netid) < netidmax)
data/rpcbind-1.2.5/src/rpcinfo.c:1001: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).
                netidmax -= strlen(nl->netid);
data/rpcbind-1.2.5/src/rpcinfo.c:1007:19:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
                  strncat (buf, ",", netidmax);
data/rpcbind-1.2.5/src/rpcinfo.c:1234: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).
      cp = &fieldbuf[0] + strlen (fieldbuf);
data/rpcbind-1.2.5/src/rpcinfo.c:1236: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).
      flen = strlen (fieldbuf);
data/rpcbind-1.2.5/src/rpcinfo.c:1239: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 (pmaphdr[i])));
data/rpcbind-1.2.5/src/rpcinfo.c:1288: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).
      cp = &fieldbuf[0] + strlen (fieldbuf);
data/rpcbind-1.2.5/src/rpcinfo.c:1290: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).
      flen = strlen (fieldbuf);
data/rpcbind-1.2.5/src/rpcinfo.c:1293: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 (rpcb3hdr[i])));
data/rpcbind-1.2.5/src/rpcinfo.c:1345: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).
	  cp = &fieldbuf[0] + strlen (fieldbuf);
data/rpcbind-1.2.5/src/rpcinfo.c:1356: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).
	  flen = strlen (fieldbuf);
data/rpcbind-1.2.5/src/rpcinfo.c:1359:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			  - strlen (rpcb4hdr[i])));
data/rpcbind-1.2.5/src/warmstart.c:75:10:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	omask = umask(077);
data/rpcbind-1.2.5/src/warmstart.c:90:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	(void) umask(omask);
data/rpcbind-1.2.5/src/xlog.c:59:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(log_name, progname, sizeof (log_name) - 1);

ANALYSIS SUMMARY:

Hits = 87
Lines analyzed = 7333 in approximately 0.20 seconds (36591 lines/second)
Physical Source Lines of Code (SLOC) = 5607
Hits@level = [0] 169 [1]  23 [2]  53 [3]   3 [4]   8 [5]   0
Hits@level+ = [0+] 256 [1+]  87 [2+]  64 [3+]  11 [4+]   8 [5+]   0
Hits/KSLOC@level+ = [0+] 45.6572 [1+] 15.5163 [2+] 11.4143 [3+] 1.96183 [4+] 1.42679 [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.