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/numdiff-5.9.0/linesplit.h
Examining data/numdiff-5.9.0/linesplit.c
Examining data/numdiff-5.9.0/getopt1.c
Examining data/numdiff-5.9.0/side.c
Examining data/numdiff-5.9.0/xalloc.h
Examining data/numdiff-5.9.0/inout.c
Examining data/numdiff-5.9.0/ndselect.h
Examining data/numdiff-5.9.0/bitvector.c
Examining data/numdiff-5.9.0/setmode.c
Examining data/numdiff-5.9.0/exitfail.h
Examining data/numdiff-5.9.0/getopt.h
Examining data/numdiff-5.9.0/cmpfns.c
Examining data/numdiff-5.9.0/number.h
Examining data/numdiff-5.9.0/numdiff.h
Examining data/numdiff-5.9.0/getopt_int.h
Examining data/numdiff-5.9.0/analyze.c
Examining data/numdiff-5.9.0/error.h
Examining data/numdiff-5.9.0/xalloc-die.c
Examining data/numdiff-5.9.0/number.c
Examining data/numdiff-5.9.0/thrlist.c
Examining data/numdiff-5.9.0/cmpbuf.c
Examining data/numdiff-5.9.0/numutil.c
Examining data/numdiff-5.9.0/read_line.c
Examining data/numdiff-5.9.0/setmode.h
Examining data/numdiff-5.9.0/io.c
Examining data/numdiff-5.9.0/flags.c
Examining data/numdiff-5.9.0/cmpbuf.h
Examining data/numdiff-5.9.0/error.c
Examining data/numdiff-5.9.0/ndselect.c
Examining data/numdiff-5.9.0/exitfail.c
Examining data/numdiff-5.9.0/arith.c
Examining data/numdiff-5.9.0/getopt.c
Examining data/numdiff-5.9.0/main.c
Examining data/numdiff-5.9.0/xmalloc.c
Examining data/numdiff-5.9.0/gettext.h
Examining data/numdiff-5.9.0/errors.c
Examining data/numdiff-5.9.0/util.c
Examining data/numdiff-5.9.0/unlocked-io.h
Examining data/numdiff-5.9.0/bitvector.h
Examining data/numdiff-5.9.0/options.c
Examining data/numdiff-5.9.0/new.c
Examining data/numdiff-5.9.0/system.h

FINAL RESULTS:

data/numdiff-5.9.0/error.c:205:5:  [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, message, args);
data/numdiff-5.9.0/error.c:317:3:  [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, file_name != NULL ? "%s:%d: " : " ",
data/numdiff-5.9.0/error.h:31:22:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define __printf__ printf
data/numdiff-5.9.0/errors.c:73:3:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
  vsprintf (error_mesg, mesg, args);
data/numdiff-5.9.0/errors.c:107:3:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
  vsprintf (error_mesg, mesg, args);
data/numdiff-5.9.0/main.c:379:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(ngettext (
data/numdiff-5.9.0/main.c:386:7:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      printf(ngettext (
data/numdiff-5.9.0/main.c:394:7:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      printf (ngettext (
data/numdiff-5.9.0/main.c:399:7:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      printf (ngettext (
data/numdiff-5.9.0/numutil.c:835:4:  [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).
	  strcat (str, dec_point);
data/numdiff-5.9.0/numutil.c:836:4:  [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).
	  strcat (str, cform.ipart+1);
data/numdiff-5.9.0/numutil.c:837:4:  [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).
	  strcat (str, cform.dpart);
data/numdiff-5.9.0/numutil.c:842:4:  [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).
	  strcat (str, dec_point);
data/numdiff-5.9.0/numutil.c:843:4:  [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).
	  strcat (str, cform.dpart+1);
data/numdiff-5.9.0/read_line.c:86:8:  [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).
	      strcat (line, buffer);
data/numdiff-5.9.0/getopt.c:126:9:  [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.
#ifndef getenv
data/numdiff-5.9.0/getopt.c:127: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.
extern char *getenv ();
data/numdiff-5.9.0/getopt.c:264:47:  [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.
  d->__posixly_correct = posixly_correct || !!getenv ("POSIXLY_CORRECT");
data/numdiff-5.9.0/getopt.c:1166:1:  [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.
getopt (int argc, char *const *argv, const char *optstring)
data/numdiff-5.9.0/getopt.c:1188:11:  [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.
      c = getopt (argc, argv, "abc:d:0123456789");
data/numdiff-5.9.0/getopt.h:41:9:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
# undef getopt
data/numdiff-5.9.0/getopt.h:42:9:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
# undef getopt_long
data/numdiff-5.9.0/getopt.h:51:10:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
# define getopt __GETOPT_ID (getopt)
data/numdiff-5.9.0/getopt.h:51:30:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
# define getopt __GETOPT_ID (getopt)
data/numdiff-5.9.0/getopt.h:52:10:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
# define getopt_long __GETOPT_ID (getopt_long)
data/numdiff-5.9.0/getopt.h:52:35:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
# define getopt_long __GETOPT_ID (getopt_long)
data/numdiff-5.9.0/getopt.h:205:12:  [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.
extern int getopt (int ___argc, char *const *___argv, const char *__shortopts)
data/numdiff-5.9.0/getopt.h:209:12:  [3] (buffer) getopt_long:
  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.
extern int getopt_long (int ___argc, char *__getopt_argv_const *___argv,
data/numdiff-5.9.0/getopt1.c:44:1:  [3] (buffer) getopt_long:
  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.
getopt_long (int argc, char *__getopt_argv_const *argv, const char *options,
data/numdiff-5.9.0/getopt1.c:109:11:  [3] (buffer) getopt_long:
  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.
      c = getopt_long (argc, argv, "abc:d:0123456789",
data/numdiff-5.9.0/ndselect.c:271:20:  [3] (buffer) getopt_long:
  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 ( (optch = getopt_long (argc, argv, optstring, long_options, &option_index)) != -1 )
data/numdiff-5.9.0/options.c:409:20:  [3] (buffer) getopt_long:
  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 ( (optch = getopt_long (argc, argv, optstring, long_options, &option_index)) != -1 )
data/numdiff-5.9.0/system.h:194: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.
# ifndef getenv
data/numdiff-5.9.0/system.h:195: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.
   char *getenv ();
data/numdiff-5.9.0/analyze.c:419: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 *discarded[2];
data/numdiff-5.9.0/arith.c:31: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 tmpbuff[1024];
data/numdiff-5.9.0/arith.c:38: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 (tmpbuff, "1e%ld", LONG_MAX);
data/numdiff-5.9.0/error.c:110: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 errbuf[1024];
data/numdiff-5.9.0/errors.c:66: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 error_mesg [255];
data/numdiff-5.9.0/errors.c:100: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 error_mesg [255];
data/numdiff-5.9.0/linesplit.c:666: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 linebuff[BUFFSIZE] = "";
data/numdiff-5.9.0/main.c:232:23:  [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 ((files[0].desc = open (files[0].name, O_RDONLY, 0)) < 0)
data/numdiff-5.9.0/main.c:241:30:  [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).
	  else if ((files[1].desc = open (files[1].name, O_RDONLY, 0))
data/numdiff-5.9.0/ndselect.c:113:19:  [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 (data->file, "r")) )
data/numdiff-5.9.0/new.c:280: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.
      signed char dig_list[DIM], *buffer, *p;
data/numdiff-5.9.0/number.c:937: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 (result, num, size);
data/numdiff-5.9.0/number.c:989: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 (qval->n_value, n1->n_value,
data/numdiff-5.9.0/number.c:1011: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 (num1+1, n1->n_value, n1->n_len+n1->n_scale);
data/numdiff-5.9.0/number.c:1016: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 (num2, n2->n_value, len2);
data/numdiff-5.9.0/number.c:1474: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 digits[40];
data/numdiff-5.9.0/number.c:1478: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 (digits, "%ld", val);
data/numdiff-5.9.0/number.c:1654: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 buffer[30];
data/numdiff-5.9.0/numdiff.h:169:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char ghostmask1[FIELDMASK_SIZE];
data/numdiff-5.9.0/numdiff.h:173:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char ghostmask2[FIELDMASK_SIZE];
data/numdiff-5.9.0/numdiff.h:178:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char pblurmask1[FIELDMASK_SIZE];
data/numdiff-5.9.0/numdiff.h:183:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char pblurmask2[FIELDMASK_SIZE];
data/numdiff-5.9.0/numdiff.h:188:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char tblurmask1[FIELDMASK_SIZE];
data/numdiff-5.9.0/numdiff.h:193:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char tblurmask2[FIELDMASK_SIZE];
data/numdiff-5.9.0/numutil.c:667: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 *ptr, exp_ch[HNDDULONG+1];
data/numdiff-5.9.0/options.c:326: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 store[NUMFMT_CHARS];
data/numdiff-5.9.0/read_line.c:43: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 buffer[BUFF_SIZE];
data/numdiff-5.9.0/read_line.c:119:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  else if ( !(fp = fopen (argv[1], "r")) )
data/numdiff-5.9.0/system.h:41:47:  [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.
#define verify(name, assertion) struct name { char a[(assertion) ? 1 : -1]; }
data/numdiff-5.9.0/system.h:244:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#  define memcpy(d, s, n) bcopy (s, d, n)
data/numdiff-5.9.0/system.h:244:27:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#  define memcpy(d, s, n) bcopy (s, d, n)
data/numdiff-5.9.0/system.h:348:10:  [2] (race) vfork:
  On some old systems, vfork() permits race conditions, and it's very
  difficult to use correctly (CWE-362). Use fork() instead.
# define vfork fork
data/numdiff-5.9.0/xmalloc.c:114: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 (xmalloc (s), p, s);
data/numdiff-5.9.0/arith.c:249: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).
  length = strlen (abs_mantissa);
data/numdiff-5.9.0/cmpbuf.c:93:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      ssize_t nread = read (fd, bp, bytes_to_read);
data/numdiff-5.9.0/cmpfns.c:605:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  if (getc (pf1) == EOF)
data/numdiff-5.9.0/cmpfns.c:630:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  if (getc (pf2) != EOF)
data/numdiff-5.9.0/error.c:142: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 (message) + 1;
data/numdiff-5.9.0/getopt.c:295:49:  [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).
	      int len = d->__nonoption_flags_max_len = strlen (orig_str);
data/numdiff-5.9.0/getopt.c:522: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).
		== (unsigned int) strlen (p->name))
data/numdiff-5.9.0/getopt.c:574: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).
	  d->__nextchar += strlen (d->__nextchar);
data/numdiff-5.9.0/getopt.c:650: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).
		  d->__nextchar += strlen (d->__nextchar);
data/numdiff-5.9.0/getopt.c:693: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).
		  d->__nextchar += strlen (d->__nextchar);
data/numdiff-5.9.0/getopt.c:698: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).
	  d->__nextchar += strlen (d->__nextchar);
data/numdiff-5.9.0/getopt.c:910:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      if ((unsigned int) (nameend - d->__nextchar) == strlen (p->name))
data/numdiff-5.9.0/getopt.c:958:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    d->__nextchar += strlen (d->__nextchar);
data/numdiff-5.9.0/getopt.c:1005: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).
		    d->__nextchar += strlen (d->__nextchar);
data/numdiff-5.9.0/getopt.c:1046: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).
		    d->__nextchar += strlen (d->__nextchar);
data/numdiff-5.9.0/getopt.c:1050:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    d->__nextchar += strlen (d->__nextchar);
data/numdiff-5.9.0/linesplit.c:336:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t n, ls = strlen(str);
data/numdiff-5.9.0/linesplit.c:369:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return process_substring (istr, istr+strlen(istr));
data/numdiff-5.9.0/linesplit.c:412: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).
	  lmax = strlen(sv[n]);
data/numdiff-5.9.0/linesplit.c:416: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).
	      if ( (l = strlen(sv[m])) > lmax )
data/numdiff-5.9.0/linesplit.c:488: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).
          if ( (strchr (sv[n], ch)) && (l = strlen (sv[n])) > lm)
data/numdiff-5.9.0/new.c:78: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).
  length = strlen(pnf->currency);
data/numdiff-5.9.0/number.c:1479:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen (digits);
data/numdiff-5.9.0/numutil.c:94: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).
  length = strlen(pnf->currency); 
data/numdiff-5.9.0/numutil.c:219: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).
  length = strlen(pnf->currency); 
data/numdiff-5.9.0/numutil.c:421: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).
  if ( (lip = strlen (pnum->ipart)) > ULONG_MAX )
data/numdiff-5.9.0/numutil.c:455: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).
  size_t slen = strlen (str);
data/numdiff-5.9.0/numutil.c:672: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).
  li = (num.ipart) ? strlen(num.ipart) : 0;
data/numdiff-5.9.0/numutil.c:673: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).
  ld = (num.dpart) ? strlen(num.dpart) : 0;
data/numdiff-5.9.0/numutil.c:786: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).
  size_t slen = strlen (q);
data/numdiff-5.9.0/numutil.c:824: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).
      len += strlen (cform.ipart) + strlen (cform.dpart) + strlen(dec_point) + 1;
data/numdiff-5.9.0/numutil.c:824:37:  [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 (cform.ipart) + strlen (cform.dpart) + strlen(dec_point) + 1;
data/numdiff-5.9.0/numutil.c:824:60:  [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 (cform.ipart) + strlen (cform.dpart) + strlen(dec_point) + 1;
data/numdiff-5.9.0/options.c:190:7:  [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(opt_arg) <= 2)
data/numdiff-5.9.0/options.c:750: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).
	  if ( (strlen(list->nf1.currency) == 0 && ((file_id & 0x3) == 0x1))
data/numdiff-5.9.0/options.c:751: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(list->nf2.currency) == 0 && ((file_id & 0x3) == 0x2)) )
data/numdiff-5.9.0/read_line.c:53:44:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      for (n = 0; n < BUFF_SIZE-1 && (ch = getc(pf)) != EOF && ch != '\0' && ch != '\n'; n++)
data/numdiff-5.9.0/system.h:176: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).
# define NAMLEN(dirent) strlen ((dirent)->d_name)
data/numdiff-5.9.0/unlocked-io.h:72:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#   undef getc
data/numdiff-5.9.0/unlocked-io.h:73:12:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#   define getc(x) getc_unlocked (x)
data/numdiff-5.9.0/unlocked-io.h:76:11:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#   undef getchar
data/numdiff-5.9.0/unlocked-io.h:77:12:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#   define getchar() getchar_unlocked ()
data/numdiff-5.9.0/xmalloc.c:122: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).
  return xmemdup (string, strlen (string) + 1);

ANALYSIS SUMMARY:

Hits = 110
Lines analyzed = 15881 in approximately 0.43 seconds (36659 lines/second)
Physical Source Lines of Code (SLOC) = 10814
Hits@level = [0] 321 [1]  43 [2]  33 [3]  19 [4]  15 [5]   0
Hits@level+ = [0+] 431 [1+] 110 [2+]  67 [3+]  34 [4+]  15 [5+]   0
Hits/KSLOC@level+ = [0+] 39.8557 [1+] 10.172 [2+] 6.19567 [3+] 3.14407 [4+] 1.38709 [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.