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/lrslib-0.71a/2nash.c
Examining data/lrslib-0.71a/buffer.c
Examining data/lrslib-0.71a/chdemo.c
Examining data/lrslib-0.71a/float2rat.c
Examining data/lrslib-0.71a/fourier.c
Examining data/lrslib-0.71a/hvref.c
Examining data/lrslib-0.71a/lpdemo.c
Examining data/lrslib-0.71a/lpdemo1.c
Examining data/lrslib-0.71a/lpdemo2.c
Examining data/lrslib-0.71a/lrs.c
Examining data/lrslib-0.71a/lrsdriver.c
Examining data/lrslib-0.71a/lrsdriver.h
Examining data/lrslib-0.71a/lrsgmp.c
Examining data/lrslib-0.71a/lrsgmp.h
Examining data/lrslib-0.71a/lrslib.c
Examining data/lrslib-0.71a/lrslib.h
Examining data/lrslib-0.71a/lrslong.c
Examining data/lrslib-0.71a/lrslong.h
Examining data/lrslib-0.71a/lrsmp.c
Examining data/lrslib-0.71a/lrsmp.h
Examining data/lrslib-0.71a/lrsnash.c
Examining data/lrslib-0.71a/lrsnashlib.c
Examining data/lrslib-0.71a/lrsnashlib.h
Examining data/lrslib-0.71a/lrsrestart.h
Examining data/lrslib-0.71a/mplrs.c
Examining data/lrslib-0.71a/mplrs.h
Examining data/lrslib-0.71a/nashdemo.c
Examining data/lrslib-0.71a/rat2float.c
Examining data/lrslib-0.71a/setupnash.c
Examining data/lrslib-0.71a/setupnash2.c
Examining data/lrslib-0.71a/vedemo.c

FINAL RESULTS:

data/lrslib-0.71a/2nash.c:32:38:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                              int n= sprintf(buffer, "lrsnash %s %s > out%i", argv[1], argv[2], l);
data/lrslib-0.71a/2nash.c:35:38:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                              int n= sprintf(buffer, "lrsnash %s %s > out%i", argv[2], argv[1], l);
data/lrslib-0.71a/2nash.c:38:11:  [4] (shell) system:
  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.
			 int i=system(buffer);
data/lrslib-0.71a/2nash.c:55:19:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			       int n = sprintf(buffer, "/bin/mv -f out%i %s", j, argv[3]);
data/lrslib-0.71a/2nash.c:61:14:  [4] (shell) system:
  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.
			  int i = system(buffer);
data/lrslib-0.71a/2nash.c:64:14:  [4] (shell) system:
  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.
			  int i = system(buffer);
data/lrslib-0.71a/buffer.c:54:6:  [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).
			c=strcpy(buffer[next],line);
data/lrslib-0.71a/float2rat.c:36:45:  [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.
int usage(){ fprintf(stderr,"\n%s\n",rcsid);fprintf(stderr,DOCSTRING);  exit(1);        }
data/lrslib-0.71a/float2rat.c:73:7:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  if (fscanf(lrs_ifp,"%ld %ld %s",&m,&n,buf)==EOF){
data/lrslib-0.71a/float2rat.c:87:7:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
      fscanf(lrs_ifp,"%s",buf);
data/lrslib-0.71a/fourier.c:51:8:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    if(fscanf(lrs_ifp, "%s", line)==EOF)
data/lrslib-0.71a/fourier.c:78:6:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	if (fscanf(lrs_ifp, "%s", line) == EOF)
data/lrslib-0.71a/fourier.c:85:9:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    if (fscanf(lrs_ifp, "%ld %ld %s", &Q->m, &Q->n, line) == EOF)
data/lrslib-0.71a/fourier.c:121:14:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
      while (fscanf(lrs_ifp, "%s", line) != EOF)
data/lrslib-0.71a/hvref.c:53:5:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  x=fscanf(lrs_ifp,"%s", s);
data/lrslib-0.71a/hvref.c:81:11:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
        x=fscanf(lrs_ifp,"%s", s);
data/lrslib-0.71a/hvref.c:86:9:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
      x=fscanf(lrs_ifp,"%s", s);
data/lrslib-0.71a/hvref.c:107:14:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
           x=fscanf(lrs_ifp,"%s", s);
data/lrslib-0.71a/lrsgmp.c:212: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(in, rat);
data/lrslib-0.71a/lrsgmp.c:230:6:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  if(fscanf (lrs_ifp, "%s", in)==EOF)
data/lrslib-0.71a/lrsgmp.c:271:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf(ret, "%s %s", name, num);
data/lrslib-0.71a/lrsgmp.c:273:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf(ret, "%s%s", name, num);
data/lrslib-0.71a/lrsgmp.c:278:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf(ret, " %s %s/%s", name, num, den);
data/lrslib-0.71a/lrsgmp.c:280:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf(ret, "%s%s/%s", name, num, den);
data/lrslib-0.71a/lrsgmp.c:297:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf(ret, "%s %s", name, num);
data/lrslib-0.71a/lrsgmp.c:299:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf(ret, "%s%s", name, num);
data/lrslib-0.71a/lrsgmp.c:440:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf (buf, "\n\nFatal error on line %ld of %s", l, f);
data/lrslib-0.71a/lrslib.c:472:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        len=len+sprintf(sss+len,"%s ",ss[i]);
data/lrslib-0.71a/lrslib.c:480:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        len=len+sprintf(sss+len, "%s ", ss[i] );
data/lrslib-0.71a/lrslib.c:631: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 (lrs_ofp,TITLE);
data/lrslib-0.71a/lrslib.c:632: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 (lrs_ofp,VERSION);
data/lrslib-0.71a/lrslib.c:634: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 (lrs_ofp,BIT);
data/lrslib-0.71a/lrslib.c:636: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 (lrs_ofp,ARITH);
data/lrslib-0.71a/lrslib.c:705: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 (lrs_ofp, TITLE);
data/lrslib-0.71a/lrslib.c:706: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 (lrs_ofp, VERSION);
data/lrslib-0.71a/lrslib.c:708: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 (lrs_ofp, BIT);
data/lrslib-0.71a/lrslib.c:710: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 (lrs_ofp, ARITH);
data/lrslib-0.71a/lrslib.c:757: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(Q->name,name); 
data/lrslib-0.71a/lrslib.c:871:16:  [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(outfilename,argv[3]);
data/lrslib-0.71a/lrslib.c:882: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(infilename,argv[1]);
data/lrslib-0.71a/lrslib.c:895:10:  [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(infilename,tmpfilename);
data/lrslib-0.71a/lrslib.c:915:13:  [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(outfilename,argv[i++]);
data/lrslib-0.71a/lrslib.c:941:9:  [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(name,Q->fname);
data/lrslib-0.71a/lrslib.c:948:7:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  if( fscanf (lrs_ifp, "%s", name) == EOF)
data/lrslib-0.71a/lrslib.c:1000:11:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
      if (fscanf (lrs_ifp, "%s", name) == EOF)
data/lrslib-0.71a/lrslib.c:1009:7:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  if (fscanf (lrs_ifp, "%ld %ld %s", &Q->m, &Q->n, name) == EOF)
data/lrslib-0.71a/lrslib.c:1120:10:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  while (fscanf (lrs_ifp, "%s", name) != EOF)
data/lrslib-0.71a/lrslib.c:1398:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(mess,"*%s %ld",name, Q->frequency);
data/lrslib-0.71a/lrslib.c:1400:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(mess,"%s",name);
data/lrslib-0.71a/lrslib.c:1425:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
              sprintf(mess,"*%s %ld",name, dict_limit);
data/lrslib-0.71a/lrslib.c:1514:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf (mess, "%s  %ld %ld", name, redundstart, redundend);
data/lrslib-0.71a/lrslib.c:2553:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (ss+len,"%s %s %s ",sdet,sin_det,sz);
data/lrslib-0.71a/lrslib.c:4199:6:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  if(fscanf (lrs_ifp, "%s", in) == EOF)
data/lrslib-0.71a/lrslib.c:5945: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).
        strcpy(tmpfilename,infilename);
data/lrslib-0.71a/lrslib.c:5967:14:  [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(restart,part);
data/lrslib-0.71a/lrslib.c:5970:9:  [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(restart,part);
data/lrslib-0.71a/lrslib.c:6397:12:  [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(tmp,tmpfilename);
data/lrslib-0.71a/lrslong.c:264:6:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  if(fscanf (lrs_ifp, "%s", in)==EOF)
data/lrslib-0.71a/lrslong.c:291: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(in, rat);
data/lrslib-0.71a/lrslong.c:336:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf(ret, "%s %s", name, num);
data/lrslib-0.71a/lrslong.c:338:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf(ret, "%s%s", name, num);
data/lrslib-0.71a/lrslong.c:343:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf(ret, "%s %s/%s", name, num, den);
data/lrslib-0.71a/lrslong.c:345:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf(ret, "%s%s/%s", name, num, den);
data/lrslib-0.71a/lrslong.c:362:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf(ret, "%s %s", name, num);
data/lrslib-0.71a/lrslong.c:364:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf(ret, "%s%s", name, num);
data/lrslib-0.71a/lrslong.c:531:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf (buf, "\n\nFatal error on line %ld of %s", l, f);
data/lrslib-0.71a/lrsmp.c:624:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		len +=snprintf(buf, 0, FORMAT, a[i]);
data/lrslib-0.71a/lrsmp.c:635:10:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		len += sprintf(buf+len, FORMAT, a[i]);
data/lrslib-0.71a/lrsmp.c:658:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf(ret, "%s %s", name, num);
data/lrslib-0.71a/lrsmp.c:660:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf(ret, "%s%s", name, num);
data/lrslib-0.71a/lrsmp.c:665:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf(ret, " %s %s/%s", name, num, den);
data/lrslib-0.71a/lrsmp.c:667:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf(ret, "%s%s/%s", name, num, den);
data/lrslib-0.71a/lrsmp.c:684:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf(ret, "%s %s", name, num);
data/lrslib-0.71a/lrsmp.c:686:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf(ret, "%s%s", name, num);
data/lrslib-0.71a/lrsmp.c:724:2:  [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 (lrs_ofp, FORMAT, Nt[i]);
data/lrslib-0.71a/lrsmp.c:730:2:  [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 (lrs_ofp, FORMAT, Dt[i]);
data/lrslib-0.71a/lrsmp.c:747:2:  [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 (lrs_ofp, FORMAT, a[i]);
data/lrslib-0.71a/lrsmp.c:760:6:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  if(fscanf (lrs_ifp, "%s", in)==EOF)
data/lrslib-0.71a/lrsmp.c:1064:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf (buf, "\n\nFatal error on line %ld of %s", l, f);
data/lrslib-0.71a/lrsmp.c:1097: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).
        strcpy(in, rat);
data/lrslib-0.71a/lrsnash.c:125: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(((gInfo *)g->aux)->name, filename);
data/lrslib-0.71a/lrsnash.c:139:13:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
        if (fscanf(IN, "%s", in) < 1) 
data/lrslib-0.71a/lrsnash.c:147:6:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	if (fscanf(IN, "%s", in) == 1)  // Too many payoff entries
data/lrslib-0.71a/lrsnash.c:165:2:  [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, Usage, progname, progname, progname);
data/lrslib-0.71a/lrsnash.c:169:2:  [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, Helptext, progname, progname);
data/lrslib-0.71a/mplrs.c:170:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(mplrs.tfn, "%smplrs_%s%s_%d.ine", 
data/lrslib-0.71a/mplrs.c:2293: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(cobases+start, (char *)list->data);
data/lrslib-0.71a/mplrs.c:3217: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(buf,str);
data/lrslib-0.71a/mplrs.h:264:20:  [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 mprintf(a) printf a
data/lrslib-0.71a/mplrs.h:270:21:  [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 mprintf2(a) printf a
data/lrslib-0.71a/mplrs.h:276:21:  [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 mprintf3(a) printf a
data/lrslib-0.71a/rat2float.c:37:45:  [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.
int usage(){ fprintf(stderr,"\n%s\n",rcsid);fprintf(stderr,DOCSTRING);  exit(1);        }
data/lrslib-0.71a/rat2float.c:56:3:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  fscanf(lrs_ifp,"%s",buf);
data/lrslib-0.71a/rat2float.c:122:7:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  if (fscanf(lrs_ifp,"%s %ld %s",inputm,&n,buf)==EOF){
data/lrslib-0.71a/rat2float.c:161:20:  [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(format, out);
data/lrslib-0.71a/rat2float.c:167:8:  [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(format, out);
data/lrslib-0.71a/lrslib.c:1580:11:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
          srandom(Q->seed);
data/lrslib-0.71a/lrslib.c:5674:6:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	j = random() % (d-i) + i;
data/lrslib-0.71a/lrsnash.c:198: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.
    c = getopt_long(argc, argv, shortOptions, long_options, &option_index);
data/lrslib-0.71a/2nash.c:16: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 buffer [250];	
data/lrslib-0.71a/2nash.c:59:20:  [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.
			        int n = sprintf(buffer, "/bin/mv -f out%i out", j);
data/lrslib-0.71a/2nash.c:63: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.
			  int n = sprintf(buffer, "/bin/rm -f out%i", j);
data/lrslib-0.71a/buffer.c:26: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 *buffer [MAXBUFFER];
data/lrslib-0.71a/buffer.c:32:33:  [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).
        if (argc >= 2 ) maxline=atoi(argv[1])+2;   /* allow for \n and \0 */
data/lrslib-0.71a/buffer.c:34:35:  [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).
        if (argc >= 3 ) maxbuffer=atoi(argv[2]);
data/lrslib-0.71a/float2rat.c:47:8:  [2] (integer) atol:
  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).
  long atol();
data/lrslib-0.71a/float2rat.c:49: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  buf[BUFSIZ];
data/lrslib-0.71a/float2rat.c:56:22:  [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 ((lrs_ifp = fopen (argv[1], "r")) == NULL)
data/lrslib-0.71a/fourier.c:47: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 line[100];
data/lrslib-0.71a/fourier.c:109: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 line[100];
data/lrslib-0.71a/fourier.c:988: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).
     if ((infile = fopen(argv[1], "r")) == NULL)
data/lrslib-0.71a/fourier.c:993:26:  [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 ((outfile = fopen(argv[2], "a")) == NULL)
data/lrslib-0.71a/fourier.c:1009:6:  [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(Q->fname,"fourier");   /* program name */
data/lrslib-0.71a/hvref.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 s[10000];
data/lrslib-0.71a/hvref.c:44: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).
     if((lrs_ifp = fopen (argv[1], "r")) == NULL)
data/lrslib-0.71a/hvref.c:89: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).
           i=atoi(s);
data/lrslib-0.71a/lpdemo.c:50:5:  [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(Q->fname,"lpdemo");
data/lrslib-0.71a/lpdemo1.c:48:5:  [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(Q->fname,"lpdemo1");
data/lrslib-0.71a/lpdemo2.c:122:3:  [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(Q->fname,"lpdemo2");
data/lrslib-0.71a/lrsgmp.c:211: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 in[MAXINPUT], num[MAXINPUT], den[MAXINPUT];
data/lrslib-0.71a/lrsgmp.c:229: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 in[MAXINPUT], num[MAXINPUT], den[MAXINPUT];
data/lrslib-0.71a/lrsgmp.c:438: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[200];
data/lrslib-0.71a/lrslib.c:43: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 infilename[PATH_MAX];
data/lrslib-0.71a/lrslib.c:44: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 outfilename[PATH_MAX];
data/lrslib-0.71a/lrslib.c:45: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 tmpfilename[PATH_MAX];
data/lrslib-0.71a/lrslib.c:330:20:  [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.
           len=len+sprintf(ss+len," %ld",i);
data/lrslib-0.71a/lrslib.c:477: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.
      len=sprintf (sss, " 1 ");
data/lrslib-0.71a/lrslib.c:850: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[1000];
data/lrslib-0.71a/lrslib.c:851: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 writemode[2]="w";           /* will be set to "a" (append) for overflow or newstart */
data/lrslib-0.71a/lrslib.c:874:35:  [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 (infilenum > 0 && (lrs_ifp = fopen (argv[infilenum], "r")) == NULL)  /* command line overides stdin   */
data/lrslib-0.71a/lrslib.c:891:10:  [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(tmpfilename,"/tmp/lrs_stdinXXXXXX");
data/lrslib-0.71a/lrslib.c:892:10:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
         mkstemp(tmpfilename);
data/lrslib-0.71a/lrslib.c:894:18:  [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).
         lrs_ifp=fopen (tmpfilename, "r");
data/lrslib-0.71a/lrslib.c:920:24:  [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 ((lrs_ofp = fopen (outfilename, writemode)) == NULL)
data/lrslib-0.71a/lrslib.c:1044: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[100];
data/lrslib-0.71a/lrslib.c:1045: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 mess[100];
data/lrslib-0.71a/lrslib.c:1495:9:  [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(Q->fname,"redund");
data/lrslib-0.71a/lrslib.c:1522:12:  [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(Q->fname,"redund");
data/lrslib-0.71a/lrslib.c:1577: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.
          sprintf(mess,"*seed=%ld",Q->seed);
data/lrslib-0.71a/lrslib.c:1869: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.
	  len=sprintf (header, "*Voronoi Diagram: Voronoi vertices and rays are output");
data/lrslib-0.71a/lrslib.c:1873: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.
	  len=sprintf (header, "H-representation");
data/lrslib-0.71a/lrslib.c:1875: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.
	  len=sprintf (header, "V-representation");
data/lrslib-0.71a/lrslib.c:1888:13:  [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.
	  	len=len+sprintf (header+len, "\nlinearity %ld ", nredundcol - k);	/*adjust nredundcol for homog. */
data/lrslib-0.71a/lrslib.c:1890:16:  [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.
	    		len=len+sprintf (header+len, " %ld", i);
data/lrslib-0.71a/lrslib.c:1893:16:  [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.
      	len=len+sprintf (header+len, "\nbegin");
data/lrslib-0.71a/lrslib.c:1894:16:  [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.
      	len=len+sprintf (header+len, "\n***** %ld rational", Q->n);
data/lrslib-0.71a/lrslib.c:2505: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.
	len=len+sprintf (ss+len, "F#%ld B#%ld h=%ld vertices/rays ", count[0], count[2], P->depth);
data/lrslib-0.71a/lrslib.c:2507: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.
	len=len+sprintf (ss+len, "V#%ld R#%ld B#%ld h=%ld data points ", count[1], count[0], count[2], P->depth);
data/lrslib-0.71a/lrslib.c:2509: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.
	len=len+sprintf (ss+len, "V#%ld R#%ld B#%ld h=%ld facets ", count[1], count[0], count[2], P->depth);
data/lrslib-0.71a/lrslib.c:2522: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.
	len=len+sprintf (ss+len, " %ld", temparray[i]);
data/lrslib-0.71a/lrslib.c:2544:15:  [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.
		    len=len+sprintf (ss+len," :");
data/lrslib-0.71a/lrslib.c:2547: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.
		len=len+sprintf(ss+len," %ld",inequality[B[i] - lastdv ] );
data/lrslib-0.71a/lrslib.c:2551: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.
	len=len+sprintf(ss+len," I#%ld",nincidence);
data/lrslib-0.71a/lrslib.c:3295: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 mess[100];
data/lrslib-0.71a/lrslib.c:3337:35:  [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 (mess,"*Input linearity in row %ld is redundant--converted to inequality", order[j]);
data/lrslib-0.71a/lrslib.c:4198: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 in[MAXINPUT], num[MAXINPUT], den[MAXINPUT];
data/lrslib-0.71a/lrslib.c:4202:10:  [2] (integer) atol:
  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 = atol (num);
data/lrslib-0.71a/lrslib.c:4208:10:  [2] (integer) atol:
  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).
  *Den = atol (den);
data/lrslib-0.71a/lrslib.c:4324: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.
      len=sprintf(mess,"redund_list %ld ",k);
data/lrslib-0.71a/lrslib.c:4327:15:  [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.
      len=len+sprintf(mess+len," %ld",i);
data/lrslib-0.71a/lrslib.c:4342: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 str[1000000],*p,*e;
data/lrslib-0.71a/lrslib.c:4763: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 (dest->A[0][0], (global->Qtail->prev)->A[0][0],
data/lrslib-0.71a/lrslib.c:4766: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 (dest->A[0][0], (global->Qtail->prev)->A[0][0],
data/lrslib-0.71a/lrslib.c:4789: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 (dest->B, src->B, (m + 1) * sizeof (long));
data/lrslib-0.71a/lrslib.c:4790: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 (dest->C, src->C, (d + 1) * sizeof (long));
data/lrslib-0.71a/lrslib.c:4791: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 (dest->Row, src->Row, (m + 1) * sizeof (long));
data/lrslib-0.71a/lrslib.c:4792: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 (dest->Col, src->Col, (d + 1) * sizeof (long));
data/lrslib-0.71a/lrslib.c:5942:17:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
        tmpfd = mkstemp(tmpfilename);
data/lrslib-0.71a/lrslib.c:5958: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.
          sprintf (restart," %ld %ld %ld ",
data/lrslib-0.71a/lrslib.c:5961: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.
          sprintf (restart," %ld %ld %ld %ld ",
data/lrslib-0.71a/lrslib.c:5966: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.
             sprintf (part,"%ld ", Q->inequality[Q->saved_C[i] - Q->lastdv]);
data/lrslib-0.71a/lrslib.c:5969: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(part,"\nintegervertices %ld",Q->saved_count[4]);
data/lrslib-0.71a/lrslib.c:6028:13:  [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).
    fptr2 = fopen(filename, "w");
data/lrslib-0.71a/lrslib.c:6084:13:  [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 *ofp = fopen(name, "wb");
data/lrslib-0.71a/lrslib.c:6150:3:  [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((*Q)->fname,"lrs");
data/lrslib-0.71a/lrslib.c:6153:6:  [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((*Q)->fname,"redund");
data/lrslib-0.71a/lrslib.h: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 fname[4096];	/* program name: lrs redund fourier nash        */
data/lrslib-0.71a/lrslong.c:222:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(buf, "%lld", *a);
data/lrslib-0.71a/lrslong.c:239: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.
    len=sprintf(buf, "%lld", upper);
data/lrslib-0.71a/lrslong.c:242: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.
  len+=sprintf(buf+len, "%lld", abs128(lower));
data/lrslib-0.71a/lrslong.c:263: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 in[MAXINPUT], num[MAXINPUT], den[MAXINPUT];
data/lrslib-0.71a/lrslong.c:290: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 in[MAXINPUT], num[MAXINPUT], den[MAXINPUT];
data/lrslib-0.71a/lrslong.c:529: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[200];
data/lrslib-0.71a/lrsmp.c:633: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.
	len += sprintf(buf+len, "%llu", a[length (a) -1]);
data/lrslib-0.71a/lrsmp.c:759: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 in[MAXINPUT], num[MAXINPUT], den[MAXINPUT];
data/lrslib-0.71a/lrsmp.c:1062: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[200];
data/lrslib-0.71a/lrsmp.c:1096: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 in[MAXINPUT], num[MAXINPUT], den[MAXINPUT];
data/lrslib-0.71a/lrsnash.c:75: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 ((lrs_ofp = fopen(Outfile, "w")) == NULL) {
data/lrslib-0.71a/lrsnash.c:104:10:  [2] (integer) atol:
  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 = atol(str);
data/lrslib-0.71a/lrsnash.c:112:10:  [2] (integer) atol:
  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 = atol(str);
data/lrslib-0.71a/lrsnash.c:113:10:  [2] (integer) atol:
  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).
		*den = atol(div+1);
data/lrslib-0.71a/lrsnash.c:124: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 in[MAXINPUT];
data/lrslib-0.71a/lrsnash.c:126:13:  [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 ((IN = fopen(filename, "r")) == NULL) 
data/lrslib-0.71a/lrsnash.c:257: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 buf[100];
data/lrslib-0.71a/lrsnash.c:259:11:  [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) FILEERROR(filename);
data/lrslib-0.71a/lrsnashlib.c:818:3:  [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(Q1->fname,"nash");     /* program name */
data/lrslib-0.71a/lrsnashlib.c:837:3:  [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(Q2->fname,"nash");     /* program name */
data/lrslib-0.71a/lrsnashlib.c:1077: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 out[2][MAXINPUT];
data/lrslib-0.71a/lrsnashlib.c:1083:33:  [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(out[ROW], "%ld,", g->payoff[s][t][ROW].num);
data/lrslib-0.71a/lrsnashlib.c:1085:33:  [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(out[ROW], "%ld/%ld,", g->payoff[s][t][ROW].num, g->payoff[s][t][ROW].den);
data/lrslib-0.71a/lrsnashlib.c:1087:33:  [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(out[COL], "%ld", g->payoff[s][t][COL].num);
data/lrslib-0.71a/lrsnashlib.c:1089:33:  [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(out[COL], "%ld/%ld", g->payoff[s][t][COL].num, g->payoff[s][t][COL].den);
data/lrslib-0.71a/lrsnashlib.h:38: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 name[100];
data/lrslib-0.71a/mplrs.c:155:13:  [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.
				offs += sprintf(offs, "\nredund_list %d",header[1]);
data/lrslib-0.71a/mplrs.c:157: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.
					offs += sprintf(offs, " %ld", wred[i]);
data/lrslib-0.71a/mplrs.c:358:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf+i, "\ncountonly");
data/lrslib-0.71a/mplrs.c:517:10:  [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).
			arg = atoi(argv[i+1]);
data/lrslib-0.71a/mplrs.c:528:10:  [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).
			arg = atoi(argv[i+1]);
data/lrslib-0.71a/mplrs.c:540:10:  [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).
			arg = atoi(argv[i+1]);
data/lrslib-0.71a/mplrs.c:561:10:  [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).
			arg = atoi(argv[i+1]);
data/lrslib-0.71a/mplrs.c:575:10:  [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).
			arg = atoi(argv[i+1]);
data/lrslib-0.71a/mplrs.c:584:10:  [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).
			arg = atoi(argv[i+1]);
data/lrslib-0.71a/mplrs.c:593:10:  [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).
			arg = atoi(argv[i+1]);
data/lrslib-0.71a/mplrs.c:602:10:  [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).
			arg = atoi(argv[i+1]);
data/lrslib-0.71a/mplrs.c:633:10:  [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).
			arg = atoi(argv[i+1]);
data/lrslib-0.71a/mplrs.c:681:18:  [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).
		master.input = fopen(mplrs.input_filename, "r");
data/lrslib-0.71a/mplrs.c:691:18:  [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).
			master.hist = fopen(master.hist_filename, "w");
data/lrslib-0.71a/mplrs.c:704:18:  [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).
			master.freq = fopen(master.freq_filename, "w");
data/lrslib-0.71a/mplrs.c:716: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).
			master.checkp = fopen(master.checkp_filename, "w");
data/lrslib-0.71a/mplrs.c:729:21:  [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).
			master.restart = fopen(master.restart_filename, "r");
data/lrslib-0.71a/mplrs.c:745:21:  [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).
		consumer.output = fopen(consumer.output_filename, "w");
data/lrslib-0.71a/mplrs.c:1187:17:  [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).
		master.stop = fopen(master.stop_filename, "r");
data/lrslib-0.71a/mplrs.c:1648:17:  [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).
		mplrs.tfile = fopen(mplrs.tfn, "w");
data/lrslib-0.71a/mplrs.c:1847:19:  [2] (integer) atol:
  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).
				R->facet[j] = atol(starting_cobasis+i);
data/lrslib-0.71a/mplrs.c:1983:20:  [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).
			mplrs.facets += atoi(data);
data/lrslib-0.71a/mplrs.c:1985: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).
			mplrs.rays += atoi(data);
data/lrslib-0.71a/mplrs.c:1987:19:  [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).
			mplrs.bases += atoi(data);
data/lrslib-0.71a/mplrs.c:1989:22:  [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).
			mplrs.vertices += atoi(data);
data/lrslib-0.71a/mplrs.c:1991:25:  [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).
			mplrs.intvertices += atoi(data);
data/lrslib-0.71a/mplrs.h:143: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 host[MPI_MAX_PROCESSOR_NAME]; /* name of this host */
data/lrslib-0.71a/rat2float.c:53: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[BUFSIZ];
data/lrslib-0.71a/rat2float.c:60:14:  [2] (integer) atol:
  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).
    *denom_p=atol(&p[1]);
data/lrslib-0.71a/rat2float.c:65:10:  [2] (integer) atol:
  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_p=atol(buf);
data/lrslib-0.71a/rat2float.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 format[BUFSIZ];
data/lrslib-0.71a/rat2float.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  buf[BUFSIZ];
data/lrslib-0.71a/rat2float.c:93: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  inputm[BUFSIZ];
data/lrslib-0.71a/rat2float.c:100:22:  [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 ((lrs_ifp = fopen (argv[1], "r")) == NULL)
data/lrslib-0.71a/rat2float.c:113: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(format,"%%.%dlf ",DBL_DIG);
data/lrslib-0.71a/setupnash.c:30:18:  [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 ((lrs_ifp = fopen (argv[1], "r")) == NULL)
data/lrslib-0.71a/setupnash.c:67:18:  [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 ((lrs_ofp = fopen (argv[2], "w")) == NULL)
data/lrslib-0.71a/setupnash.c:111:18:  [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 ((lrs_ofp = fopen (argv[3], "w")) == NULL)
data/lrslib-0.71a/setupnash2.c:34:18:  [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 ((lrs_ifp = fopen (argv[1], "r")) == NULL)
data/lrslib-0.71a/setupnash2.c:72:18:  [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 ((lrs_ofp = fopen (argv[2], "w")) == NULL)
data/lrslib-0.71a/setupnash2.c:109:18:  [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 ((lrs_ofp = fopen (argv[3], "w")) == NULL)
data/lrslib-0.71a/buffer.c:78:21:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              && (c=getchar()) != EOF && c != '\n'; ++i)
data/lrslib-0.71a/float2rat.c:93: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).
        for (k=0; k<strlen(frac); k++)
data/lrslib-0.71a/fourier.c:60:13:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	      ch = fgetc(lrs_ifp);
data/lrslib-0.71a/fourier.c:127:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ch = fgetc(lrs_ifp);
data/lrslib-0.71a/lrsdriver.c:27: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 length = strlen(argv[i])+1;
data/lrslib-0.71a/lrsdriver.c:29:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(newargv[i], argv[i], length);
data/lrslib-0.71a/lrsdriver.c:33: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 length = strlen(tmp)+1;
data/lrslib-0.71a/lrsdriver.c:35:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy(newargv[1], tmp, length);
data/lrslib-0.71a/lrslib.c:756: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).
  Q->name=(char *) CALLOC ((unsigned) strlen(name)+1, sizeof (char));
data/lrslib-0.71a/lrslib.c:768:3:  [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(Q->fname,""); /* name of program, filled in later */ 
data/lrslib-0.71a/lrslib.c:861:6:  [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(writemode,"a");
data/lrslib-0.71a/lrslib.c:863:3:  [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(outfilename, "\0");
data/lrslib-0.71a/lrslib.c:911:12:  [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(writemode,"a");
data/lrslib-0.71a/lrslib.c:939: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).
        name=(char *) malloc(strlen(Q->fname)+5);
data/lrslib-0.71a/lrslib.c:940:9:  [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(name,"*");
data/lrslib-0.71a/lrslib.c:942:9:  [1] (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). Risk is low because the
  source is a constant character.
        strcat(name,":");
data/lrslib-0.71a/lrslib.c:960:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    c = fgetc (lrs_ifp);
data/lrslib-0.71a/lrslib.c:1126:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    c = fgetc (lrs_ifp);
data/lrslib-0.71a/lrslib.c:2525:13:  [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.
	   len=len+sprintf (ss+len, "*");
data/lrslib-0.71a/lrslib.c:5940:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(tmpfilename,"/tmp/lrs_restartXXXXXX",PATH_MAX);
data/lrslib-0.71a/lrslib.c:6035:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    c = fgetc(fptr1);
data/lrslib-0.71a/lrslib.c:6039:13:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        c = fgetc(fptr1);
data/lrslib-0.71a/lrslong.c:241:10:  [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.
    len+=sprintf(buf+len, "-"); /* - */
data/lrslib-0.71a/lrsmp.c:632:9:  [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.
		len++,sprintf(buf, "-");
data/lrslib-0.71a/lrsnashlib.c:1114: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).
        int len = strlen(str);
data/lrslib-0.71a/mplrs.c:166: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).
		i += 6+strlen(tim1); /* mplrs_TIMESTAMP */
data/lrslib-0.71a/mplrs.c:167: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).
		i += strlen(mplrs.tfn_prefix) + strlen(mplrs.input_filename) + 
data/lrslib-0.71a/mplrs.c:167: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).
		i += strlen(mplrs.tfn_prefix) + strlen(mplrs.input_filename) + 
data/lrslib-0.71a/mplrs.c:178: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).
		i = strlen(mplrs.tfn_prefix) + 6 + strlen(tim1);
data/lrslib-0.71a/mplrs.c:178: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).
		i = strlen(mplrs.tfn_prefix) + 6 + strlen(tim1);
data/lrslib-0.71a/mplrs.c:179: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).
		j = strlen(mplrs.tfn);
data/lrslib-0.71a/mplrs.c:337:6:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	c = fgetc(master.input);
data/lrslib-0.71a/mplrs.c:342:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		c = fgetc(master.input);
data/lrslib-0.71a/mplrs.c:354:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		c = fgetc(master.input);
data/lrslib-0.71a/mplrs.c:1074:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(cob, str, lengths[i]);
data/lrslib-0.71a/mplrs.c:1109: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).
		header[0] = strlen((char *)cob->data);
data/lrslib-0.71a/mplrs.c:1332: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(str)+1; /* include \0 */
data/lrslib-0.71a/mplrs.c:1427: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).
		line[strlen(line)-1]='\0'; /* replace \n by \0 */
data/lrslib-0.71a/mplrs.c:1824: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(starting_cobasis);
data/lrslib-0.71a/mplrs.c:2053: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).
	if (strlen(out_string)>0 && strcmp(out_string, "\n"))
data/lrslib-0.71a/mplrs.c:2057: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).
	if (strlen(serr_string)>0 && strcmp(serr_string, "\n"))
data/lrslib-0.71a/mplrs.c:2061: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).
	if (strlen(redund_string)>0 && strcmp(redund_string, "\n"))
data/lrslib-0.71a/mplrs.c:2072: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).
	if (strlen(mplrs.curwarn)>0)
data/lrslib-0.71a/mplrs.c:2097: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).
	header[1] = strlen(str);
data/lrslib-0.71a/mplrs.c:2176: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).
	int nlen = strlen(newcob);
data/lrslib-0.71a/mplrs.c:2182: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).
	int num_ignore = strlen(ignore_chars);
data/lrslib-0.71a/mplrs.c:2263: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).
		size += strlen((char *)list->data);
data/lrslib-0.71a/mplrs.c:2294: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).
		lengths[i] = strlen((char *)list->data);
data/lrslib-0.71a/mplrs.c:2337: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).
	int len1 = strlen(dest);
data/lrslib-0.71a/mplrs.c:2338: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).
	int len2 = strlen(src);
data/lrslib-0.71a/mplrs.c:2370:2:  [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(newp, src, len2);
data/lrslib-0.71a/mplrs.c:2619: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((char *)msg->buf[0])-5;
data/lrslib-0.71a/mplrs.c:2812: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).
				  strlen(vol)+1, mplrs.deepest, mplrs.overflow,
data/lrslib-0.71a/mplrs.c:2813: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).
				  mplrs.linearities, strlen(mplrs.finalwarn)+1};
data/lrslib-0.71a/mplrs.c:3035: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).
	if (strlen(mplrs.finalwarn)>1) /*avoid spurious newline from append_out*/
data/lrslib-0.71a/mplrs.c:3206: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 (okay_to_flush() && data[strlen(data)-1]=='\n')
data/lrslib-0.71a/mplrs.c:3216: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 *buf = malloc(sizeof(char)*(strlen(str)+1));

ANALYSIS SUMMARY:

Hits = 301
Lines analyzed = 18096 in approximately 0.60 seconds (30230 lines/second)
Physical Source Lines of Code (SLOC) = 13086
Hits@level = [0] 712 [1]  57 [2] 145 [3]   3 [4]  96 [5]   0
Hits@level+ = [0+] 1013 [1+] 301 [2+] 244 [3+]  99 [4+]  96 [5+]   0
Hits/KSLOC@level+ = [0+] 77.411 [1+] 23.0017 [2+] 18.6459 [3+] 7.56534 [4+] 7.33608 [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.