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/rpcsvc-proto-1.4.2/rpcgen/proto.h
Examining data/rpcsvc-proto-1.4.2/rpcgen/rpc_parse.h
Examining data/rpcsvc-proto-1.4.2/rpcgen/rpc_scan.h
Examining data/rpcsvc-proto-1.4.2/rpcgen/rpc_util.h
Examining data/rpcsvc-proto-1.4.2/rpcgen/rpc_clntout.c
Examining data/rpcsvc-proto-1.4.2/rpcgen/rpc_cout.c
Examining data/rpcsvc-proto-1.4.2/rpcgen/rpc_hout.c
Examining data/rpcsvc-proto-1.4.2/rpcgen/rpc_main.c
Examining data/rpcsvc-proto-1.4.2/rpcgen/rpc_parse.c
Examining data/rpcsvc-proto-1.4.2/rpcgen/rpc_sample.c
Examining data/rpcsvc-proto-1.4.2/rpcgen/rpc_scan.c
Examining data/rpcsvc-proto-1.4.2/rpcgen/rpc_svcout.c
Examining data/rpcsvc-proto-1.4.2/rpcgen/rpc_tblout.c
Examining data/rpcsvc-proto-1.4.2/rpcgen/rpc_util.c

FINAL RESULTS:

data/rpcsvc-proto-1.4.2/rpcgen/rpc_cout.c:497:15:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		  sizestr = strcat (sizestr, ptemp);
data/rpcsvc-proto-1.4.2/rpcgen/rpc_main.c:267: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 (res, file);
data/rpcsvc-proto-1.4.2/rpcgen/rpc_main.c:268: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 (res + (p - file), ext);
data/rpcsvc-proto-1.4.2/rpcgen/rpc_main.c:377:7:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      execvp (arglist[0], (char **) arglist);
data/rpcsvc-proto-1.4.2/rpcgen/rpc_main.c:925:7:  [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 (temp, F_OK) != -1)
data/rpcsvc-proto-1.4.2/rpcgen/rpc_main.c:1136:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	  fprintf (stderr,
data/rpcsvc-proto-1.4.2/rpcgen/rpc_parse.c:417:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  sprintf (tmp,
data/rpcsvc-proto-1.4.2/rpcgen/rpc_parse.c:428:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	      sprintf (tmp,
data/rpcsvc-proto-1.4.2/rpcgen/rpc_parse.c:540:5:  [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 (name, tok.str);
data/rpcsvc-proto-1.4.2/rpcgen/rpc_parse.c:542:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (name, "%s%d", ARGNAME, num);	/* default name of argument */
data/rpcsvc-proto-1.4.2/rpcgen/rpc_svcout.c:197:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  (void) sprintf (_errbuf, "cannot find %s netid.", transp);
data/rpcsvc-proto-1.4.2/rpcgen/rpc_svcout.c:198:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf (tmpbuf, "%s\t\t", sp);
data/rpcsvc-proto-1.4.2/rpcgen/rpc_svcout.c:205:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf (_errbuf, "cannot create %s service.", transp);
data/rpcsvc-proto-1.4.2/rpcgen/rpc_svcout.c:225:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  (void) sprintf (_errbuf, "unable to register (%s, %s, %s).",
data/rpcsvc-proto-1.4.2/rpcgen/rpc_svcout.c:258:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  (void) sprintf (_errbuf,
data/rpcsvc-proto-1.4.2/rpcgen/rpc_svcout.c:932:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  (void) sprintf (_errbuf, "unable to register (%s, %s).",
data/rpcsvc-proto-1.4.2/rpcgen/rpc_svcout.c:1055:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  (void) sprintf (_errbuf, "cannot create %s service.", transp);
data/rpcsvc-proto-1.4.2/rpcgen/rpc_svcout.c:1056:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  (void) sprintf (tmpbuf, "%s\t\t", sp);
data/rpcsvc-proto-1.4.2/rpcgen/rpc_svcout.c:1084:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  (void) sprintf (_errbuf, "unable to register (%s, %s, %s).",
data/rpcsvc-proto-1.4.2/rpcgen/rpc_util.c:471:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf (name, "%s_%s_%s", locase (pname), vname, ARGEXT);
data/rpcsvc-proto-1.4.2/rpcgen/rpc_util.h:40:24:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#define s_print	(void) sprintf
data/rpcsvc-proto-1.4.2/rpcgen/rpc_util.h:41:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define f_print (void) fprintf
data/rpcsvc-proto-1.4.2/rpcgen/rpc_cout.c:446: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 ptemp[256];
data/rpcsvc-proto-1.4.2/rpcgen/rpc_cout.c:700: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 name[256];
data/rpcsvc-proto-1.4.2/rpcgen/rpc_hout.c:468: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 prefix[8];	  /* enough to contain "struct ", including NUL */
data/rpcsvc-proto-1.4.2/rpcgen/rpc_hout.c:522: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[8];			/* enough to hold "struct ", include NUL */
data/rpcsvc-proto-1.4.2/rpcgen/rpc_main.c:149:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *arglist[ARGLISTLEN];
data/rpcsvc-proto-1.4.2/rpcgen/rpc_main.c:290:10:  [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).
  fout = fopen (outfile, "w");
data/rpcsvc-proto-1.4.2/rpcgen/rpc_main.c:1155: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 flag[(1 << 8 * sizeof (char))];
data/rpcsvc-proto-1.4.2/rpcgen/rpc_main.c:1277:18:  [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).
		  inlineflag = atoi (argv[i]);
data/rpcsvc-proto-1.4.2/rpcgen/rpc_parse.c:411: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 tmp[100];
data/rpcsvc-proto-1.4.2/rpcgen/rpc_parse.c:523: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 name[MAXLINESIZE];		/* argument name */
data/rpcsvc-proto-1.4.2/rpcgen/rpc_scan.c:309: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[100];
data/rpcsvc-proto-1.4.2/rpcgen/rpc_scan.c:514:9:  [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).
  num = atoi (line);
data/rpcsvc-proto-1.4.2/rpcgen/rpc_svcout.c:49:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char _errbuf[256];		/* For all messages */
data/rpcsvc-proto-1.4.2/rpcgen/rpc_svcout.c:191: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 tmpbuf[32];
data/rpcsvc-proto-1.4.2/rpcgen/rpc_svcout.c:278:14:  [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.
      (void) sprintf (_errbuf, "could not create a handle");
data/rpcsvc-proto-1.4.2/rpcgen/rpc_svcout.c:293:10:  [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.
  (void) sprintf (_errbuf, "svc_run returned");
data/rpcsvc-proto-1.4.2/rpcgen/rpc_svcout.c:618: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 (_errbuf, "unable to free arguments");
data/rpcsvc-proto-1.4.2/rpcgen/rpc_svcout.c:629:11:  [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.
	  (void) sprintf(_errbuf, "unable to free results");
data/rpcsvc-proto-1.4.2/rpcgen/rpc_svcout.c:891: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 (_errbuf, "cannot get transport name");
data/rpcsvc-proto-1.4.2/rpcgen/rpc_svcout.c:894: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 (_errbuf, "cannot get transport info");
data/rpcsvc-proto-1.4.2/rpcgen/rpc_svcout.c:903: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 (_errbuf, "could not get the right module");
data/rpcsvc-proto-1.4.2/rpcgen/rpc_svcout.c:912: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 (_errbuf, "cannot create server handle");
data/rpcsvc-proto-1.4.2/rpcgen/rpc_svcout.c:1033: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 tmpbuf[32];
data/rpcsvc-proto-1.4.2/rpcgen/rpc_tblout.c:46:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char tabstr[TABCOUNT + 1] = "\t\t\t\t\t";
data/rpcsvc-proto-1.4.2/rpcgen/rpc_tblout.c:85: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 progvers[100];
data/rpcsvc-proto-1.4.2/rpcgen/rpc_tblout.c:107: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).
	  current = atoi (proc->proc_num);
data/rpcsvc-proto-1.4.2/rpcgen/rpc_util.c:47:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char curline[MAXLINESIZE];	/* current read line */
data/rpcsvc-proto-1.4.2/rpcgen/rpc_util.c:54: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.
const char *outfiles[NFILES];	/* output file names */
data/rpcsvc-proto-1.4.2/rpcgen/rpc_util.c:246: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[100];
data/rpcsvc-proto-1.4.2/rpcgen/rpc_util.c:311: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 expectbuf[100];
data/rpcsvc-proto-1.4.2/rpcgen/rpc_util.h:63: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.
extern char curline[MAXLINESIZE];
data/rpcsvc-proto-1.4.2/rpcgen/rpc_cout.c:378: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).
	  object = alloc (strlen (def->def_name) + strlen (format) +
data/rpcsvc-proto-1.4.2/rpcgen/rpc_cout.c:378:45:  [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).
	  object = alloc (strlen (def->def_name) + strlen (format) +
data/rpcsvc-proto-1.4.2/rpcgen/rpc_cout.c:379:6:  [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 (cs->name) + 1);
data/rpcsvc-proto-1.4.2/rpcgen/rpc_cout.c:402: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).
	  object = alloc (strlen (def->def_name) + strlen (format) +
data/rpcsvc-proto-1.4.2/rpcgen/rpc_cout.c:402:45:  [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).
	  object = alloc (strlen (def->def_name) + strlen (format) +
data/rpcsvc-proto-1.4.2/rpcgen/rpc_cout.c:403:6:  [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 (dflt->name) + 1);
data/rpcsvc-proto-1.4.2/rpcgen/rpc_cout.c:490:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		  sizestr = realloc (sizestr, strlen (sizestr) +
data/rpcsvc-proto-1.4.2/rpcgen/rpc_cout.c:491: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 (ptemp) + 1);
data/rpcsvc-proto-1.4.2/rpcgen/rpc_cout.c:801:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  ptr = malloc (strlen (str) + 1);
data/rpcsvc-proto-1.4.2/rpcgen/rpc_main.c:261: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).
  res = alloc (strlen (file) + strlen (ext) + 1);
data/rpcsvc-proto-1.4.2/rpcgen/rpc_main.c:261: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).
  res = alloc (strlen (file) + strlen (ext) + 1);
data/rpcsvc-proto-1.4.2/rpcgen/rpc_main.c:266: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 = file + strlen (file);
data/rpcsvc-proto-1.4.2/rpcgen/rpc_main.c:961: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).
      mkfilename = alloc (strlen ("Makefile.") + strlen (cmd->infile) + 1);
data/rpcsvc-proto-1.4.2/rpcgen/rpc_main.c:961:50:  [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).
      mkfilename = alloc (strlen ("Makefile.") + strlen (cmd->infile) + 1);
data/rpcsvc-proto-1.4.2/rpcgen/rpc_main.c:1314: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 (argv[i]);
data/rpcsvc-proto-1.4.2/rpcgen/rpc_scan.c:313: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).
	  p = buf + strlen (buf);
data/rpcsvc-proto-1.4.2/rpcgen/rpc_scan.c:356:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (tmp, *str, size);
data/rpcsvc-proto-1.4.2/rpcgen/rpc_scan.c:386:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (tmp, *str, size);
data/rpcsvc-proto-1.4.2/rpcgen/rpc_scan.c:419:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (tmp, *str, size);
data/rpcsvc-proto-1.4.2/rpcgen/rpc_scan.c:463: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).
      len = strlen (s->str);
data/rpcsvc-proto-1.4.2/rpcgen/rpc_scan.c:478:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (tmp, str, len);
data/rpcsvc-proto-1.4.2/rpcgen/rpc_scan.c:528: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).
  p = file = alloc (strlen (line) + 1);
data/rpcsvc-proto-1.4.2/rpcgen/rpc_util.c:465: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).
  name = malloc (strlen (pname) + strlen (vname) + strlen (ARGEXT) + 3);
data/rpcsvc-proto-1.4.2/rpcgen/rpc_util.c:465: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).
  name = malloc (strlen (pname) + strlen (vname) + strlen (ARGEXT) + 3);
data/rpcsvc-proto-1.4.2/rpcgen/rpc_util.c:465: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).
  name = malloc (strlen (pname) + strlen (vname) + strlen (ARGEXT) + 3);

ANALYSIS SUMMARY:

Hits = 78
Lines analyzed = 7060 in approximately 0.19 seconds (37364 lines/second)
Physical Source Lines of Code (SLOC) = 5695
Hits@level = [0] 145 [1]  25 [2]  31 [3]   0 [4]  22 [5]   0
Hits@level+ = [0+] 223 [1+]  78 [2+]  53 [3+]  22 [4+]  22 [5+]   0
Hits/KSLOC@level+ = [0+] 39.1572 [1+] 13.6962 [2+] 9.30641 [3+] 3.86304 [4+] 3.86304 [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.