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/fweb-1.62/Boot/misc/custom.h
Examining data/fweb-1.62/Boot/ibm/mvs/custom.h
Examining data/fweb-1.62/Boot/ibm/pc/microsoft/custom.h
Examining data/fweb-1.62/Boot/ibm/pc/gnu/custom.h
Examining data/fweb-1.62/Boot/vax/custom.h
Examining data/fweb-1.62/Boot/unix/ansi/custom.h
Examining data/fweb-1.62/Boot/unix/dsu/custom.h
Examining data/fweb-1.62/Boot/unix/sgi/custom.h
Examining data/fweb-1.62/Boot/unix/sun/cc/custom.h
Examining data/fweb-1.62/Boot/unix/sun/cc/READ_ME.CC
Examining data/fweb-1.62/Boot/unix/sun/gcc/custom.h
Examining data/fweb-1.62/Web/stdlib0.h
Examining data/fweb-1.62/Web/os.h
Examining data/fweb-1.62/Web/strmac.h
Examining data/fweb-1.62/Web/a_type.h
Examining data/fweb-1.62/Web/c_type.h
Examining data/fweb-1.62/Web/d_type.h
Examining data/fweb-1.62/Web/e_type.h
Examining data/fweb-1.62/Web/m_type.h
Examining data/fweb-1.62/Web/p_type.h
Examining data/fweb-1.62/Web/r_type.h
Examining data/fweb-1.62/Web/s_type.h
Examining data/fweb-1.62/Web/t_type.h
Examining data/fweb-1.62/Web/w_type.h
Examining data/fweb-1.62/Web/y_type.h
Examining data/fweb-1.62/Web/eval.c
Examining data/fweb-1.62/Web/ftangle.c
Examining data/fweb-1.62/Web/macs.c
Examining data/fweb-1.62/Web/prod.c
Examining data/fweb-1.62/Web/ratfor0.c
Examining data/fweb-1.62/Web/reserved.c
Examining data/fweb-1.62/Web/termcap0.c
Examining data/fweb-1.62/Web/map.h
Examining data/fweb-1.62/Web/fweave.c
Examining data/fweb-1.62/Web/ratfor.c
Examining data/fweb-1.62/Web/style.c
Examining data/fweb-1.62/Web/common.c
Examining data/fweb-1.62/Web/typedefs.h

FINAL RESULTS:

data/fweb-1.62/Web/common.c:5733:1:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
gets((char*)buf);
data/fweb-1.62/Web/common.c:8355:1:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
gets((char*)buf);
data/fweb-1.62/Web/stdlib0.h:24:8:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
char*  gets(char*);
data/fweb-1.62/Web/common.c:4609:1:  [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(ptr_string,p,(char HUGE*)p+nbytes);
data/fweb-1.62/Web/common.c:5021:1:  [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(_Xx("Id %ld (0x%lx):"),n,n);
data/fweb-1.62/Web/common.c:5284:1:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
sprintf(temp,":  %s",(char*)fmt);
data/fweb-1.62/Web/common.c:5285:1:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
vprintf(temp,arg_ptr);
data/fweb-1.62/Web/common.c:5288:1:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
vprintf((char*)fmt,arg_ptr);
data/fweb-1.62/Web/common.c:5457:1:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
vsprintf((char*)temp,(CONST char*)fmt,arg_ptr);
data/fweb-1.62/Web/common.c:5496:1:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
vsprintf((char*)temp,(CONST char*)fmt,arg_ptr);
data/fweb-1.62/Web/common.c:5544:1:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
sprintf(temp,"Please increase style-file parameter `%s' from current value \
data/fweb-1.62/Web/common.c:5717:1:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
vprintf(out,fmt0,arg_ptr);
data/fweb-1.62/Web/common.c:5720:1:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
vprintf((CONST char*)fmt,arg_ptr);
data/fweb-1.62/Web/common.c:8365:1:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
sprintf((char*)temp,"info -f FWEB %s",pmenus);
data/fweb-1.62/Web/common.c:8366:1:  [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.
system((char*)temp);
data/fweb-1.62/Web/common.c:9632:1:  [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,cpu);
data/fweb-1.62/Web/common.c:9636:1:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
sprintf(format,"; REAL %%s %%.%df sec.",TIMING_WIDTH);
data/fweb-1.62/Web/common.c:9637:1:  [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,less_than?"<=":"=",wall);
data/fweb-1.62/Web/common.c:9809:1:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
vsprintf((char*)s,(CONST char*)fmt,arg_ptr);
data/fweb-1.62/Web/ftangle.c:60:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
if(fprintf(out_file,c,a)<0)out_error(OC("fprintf")); \
data/fweb-1.62/Web/ftangle.c:1429:1:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
vsprintf((char*)(char*)temp,fmt0,arg_ptr);
data/fweb-1.62/Web/ftangle.c:1432:1:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
vsprintf((char*)temp,(CONST char*)fmt,arg_ptr);
data/fweb-1.62/Web/ftangle.c:2927:1:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
sprintf(temp,len?"%u":"*",len);
data/fweb-1.62/Web/ftangle.c:3487:5:  [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.
if(!system(NULL))
data/fweb-1.62/Web/ftangle.c:3507:1:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
sprintf(temp,"%s %s %s",MV,(char*)f->tmp_name,
data/fweb-1.62/Web/ftangle.c:3509:1:  [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.
system(temp);
data/fweb-1.62/Web/ftangle.c:3540:5:  [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.
if(!system(NULL))
data/fweb-1.62/Web/ftangle.c:3560:1:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
sprintf(temp,"%s %s %s",MV,(char*)f->tmp_name,
data/fweb-1.62/Web/ftangle.c:3562:1:  [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.
system(temp);
data/fweb-1.62/Web/ftangle.c:3870:1:  [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(_Xx("Id %d (0x%x): \"%s\"\n"),n,n,(char*)name_of((sixteen_bits)n));
data/fweb-1.62/Web/fweave.c:350:22:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define TEX_PRINTF(s)fprintf(tex_file,s) \
data/fweb-1.62/Web/fweave.c:5171:1:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
sprintf((char*)temp_I," -I%s",wbprefix);
data/fweb-1.62/Web/fweave.c:5193:1:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
sprintf((char*)temp,"\n%s -P%s %s -o %s %s",
data/fweb-1.62/Web/fweave.c:5206:1:  [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.
system((CONST char*)temp);
data/fweb-1.62/Web/fweave.c:5870:1:  [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((char*)msg);
data/fweb-1.62/Web/fweave.c:6186:1:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
sprintf(s,"%s%s%u%s",
data/fweb-1.62/Web/fweave.c:8264:1:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
sprintf(language_line,"\\LANGUAGE{%s}",
data/fweb-1.62/Web/fweave.c:8878:1:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
vsprintf((char*)temp0,(CONST char*)fmt,arg_ptr);
data/fweb-1.62/Web/fweave.c:10031:1:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
sprintf(temp,"\\W%s{%s}",(char*)letter,(char*)arg);
data/fweb-1.62/Web/fweave.c:10496:1:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
sprintf((char*)t_loc," \\Wunnamed{%s}{%s}%%\n",
data/fweb-1.62/Web/fweave.c:10833:1:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
sprintf(temp,"}{%s}",lang_codes[ln]);
data/fweb-1.62/Web/fweave.c:11823:1:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
sprintf((char*)m_temp0,
data/fweb-1.62/Web/fweave.c:12300:1:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
sprintf(temp,"%s%s%s",
data/fweb-1.62/Web/macs.c:894:1:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
sprintf(temp,"arguments to macro \"%s\"",(char*)name_of(id_token));
data/fweb-1.62/Web/macs.c:1328:1:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
vsprintf((char*)(char*)temp1,fmt0,arg_ptr);
data/fweb-1.62/Web/macs.c:1331:1:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
vsprintf((char*)temp1,(CONST char*)s,arg_ptr);
data/fweb-1.62/Web/macs.c:1385:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
i++,sprintf((char*)(*pt),"%s",i==level?". ":", "),(*pt)+= 2)
data/fweb-1.62/Web/macs.c:3453:1:  [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(_Xx("%x "),tokens[l]);
data/fweb-1.62/Web/os.h:75:9:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define vprintf printf
data/fweb-1.62/Web/os.h:75:17:  [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 vprintf printf
data/fweb-1.62/Web/os.h:76:9:  [4] (buffer) vsprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#define vsprintf sprintf
data/fweb-1.62/Web/os.h:76:18:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#define vsprintf sprintf
data/fweb-1.62/Web/ratfor.c:994:1:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
vsprintf((char*)temp1,(CONST char*)msg,arg_ptr);
data/fweb-1.62/Web/ratfor.c:1040:1:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
vsprintf((char*)temp,fmt0,arg_ptr);
data/fweb-1.62/Web/ratfor.c:1043:1:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
vsprintf(temp,(CONST char*)msg,arg_ptr);
data/fweb-1.62/Web/ratfor.c:1955:1:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
sprintf((char*)q0,delim?"'%c'":"?",XCHR(delim));
data/fweb-1.62/Web/stdlib0.h:15:8:  [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    fprintf(FILE*, const char*, ...);
data/fweb-1.62/Web/stdlib0.h:20: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 the scanf format is influenceable by an
  attacker, it's exploitable.
int    fscanf(FILE*, const char*,...);
data/fweb-1.62/Web/stdlib0.h:27:8:  [4] (shell) popen:
  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.
FILE*  popen(const char*, const char*);
data/fweb-1.62/Web/stdlib0.h:28: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.
int    printf(const char*,...);
data/fweb-1.62/Web/stdlib0.h:34:8:  [4] (buffer) scanf:
  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 the scanf format is influenceable by an
  attacker, it's exploitable.
int    scanf(const char*, ...);
data/fweb-1.62/Web/stdlib0.h:39:8:  [4] (buffer) sscanf:
  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 the scanf format is influenceable by an
  attacker, it's exploitable.
int    sscanf(const char*, const char*, ...); /* Check first const. */
data/fweb-1.62/Web/stdlib0.h:40:8:  [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    system(const char *);
data/fweb-1.62/Web/stdlib0.h:43:8:  [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.
int    vfprintf(FILE*, const char*, ...);
data/fweb-1.62/Web/stdlib0.h:55:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
int sprintf(char *,const char *,...);
data/fweb-1.62/Web/stdlib0.h:58:5:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
int vprintf(const char *,va_list);
data/fweb-1.62/Web/stdlib0.h:59:5:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
int vsprintf(char *,const char *,va_list);
data/fweb-1.62/Web/strmac.h:27:26:  [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).
#define STRCAT(dest,src) strcat((char *)(dest),(CONST char *)(src))
data/fweb-1.62/Web/strmac.h:36:26:  [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).
#define STRCPY(dest,src) strcpy((char *)(dest),(CONST char *)(src))
data/fweb-1.62/Web/style.c:1166:1:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
sprintf(&cc_buf[*pk][0][n]," --- %s",(char*)cname[c]);
data/fweb-1.62/Web/typedefs.h:382:3:  [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 args; fflush(stdout); \
data/fweb-1.62/Web/ftangle.c:3344:13:  [3] (tmpfile) tempnam:
  Temporary file race condition (CWE-377).
extern char*tempnam();
data/fweb-1.62/Web/ftangle.c:3349:9:  [3] (tmpfile) tempnam:
  Temporary file race condition (CWE-377).
buffer= tempnam((char*)wbprefix,"FTMP");
data/fweb-1.62/Web/ftangle.c:3352:9:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
buffer= tmpnam(NULL);
data/fweb-1.62/Web/fweave.c:5487:13:  [3] (tmpfile) tempnam:
  Temporary file race condition (CWE-377).
extern char*tempnam();
data/fweb-1.62/Web/fweave.c:5492:22:  [3] (tmpfile) tempnam:
  Temporary file race condition (CWE-377).
buffer= (outer_char*)tempnam((char*)wbprefix,"FTMP");
data/fweb-1.62/Web/fweave.c:5495:22:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
buffer= (outer_char*)tmpnam(NULL);
data/fweb-1.62/Web/strmac.h:20:24:  [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.
#define GETENV(env) OC(getenv((char *)(env)))
data/fweb-1.62/Web/common.c:4758:1:  [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(new_ptr,old_ptr,ncopied);
data/fweb-1.62/Web/common.c:5248:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char temp[500];
data/fweb-1.62/Web/common.c:5542:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char temp[100];
data/fweb-1.62/Web/common.c:8862:1:  [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((char*)temp,"%lu",l);
data/fweb-1.62/Web/common.c:9380:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char ext_delimiter[2];
data/fweb-1.62/Web/common.c:9520: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 temp[50];
data/fweb-1.62/Web/common.c:9522:1:  [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(temp,"(strerror() is not available; errno = %d).",errnum);
data/fweb-1.62/Web/common.c:9615:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char format[100];
data/fweb-1.62/Web/common.c:9631:1:  [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,"\nCPU = %%.%df sec.",TIMING_WIDTH);
data/fweb-1.62/Web/eval.c:1338:1:  [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((char*)mp,"%#.*g",DBL_DIG,y);
data/fweb-1.62/Web/eval.c:1431:1:  [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((char*)mp,"%ld",l);
data/fweb-1.62/Web/eval.c:1433:1:  [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((char*)mp,"%#.*g",DBL_DIG,z);
data/fweb-1.62/Web/ftangle.c:1012:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char temp[3];
data/fweb-1.62/Web/ftangle.c:1014:1:  [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(temp,";%c",XCHR(interior_semi));
data/fweb-1.62/Web/ftangle.c:1705:1:  [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((char*)(do_pos+= 3),"%lu ",
data/fweb-1.62/Web/ftangle.c:1723:1:  [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((char*)outp_buf,"%-5lu CONTINUE",
data/fweb-1.62/Web/ftangle.c:2924:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char temp[10];
data/fweb-1.62/Web/ftangle.c:3496:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char temp[256];
data/fweb-1.62/Web/ftangle.c:3549:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char temp[256];
data/fweb-1.62/Web/ftangle.c:8092:1:  [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(mp,tok_ptr0,len);
data/fweb-1.62/Web/ftangle.c:9000:1:  [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(p,cur_text->tok_start,cur_text->nbytes);
data/fweb-1.62/Web/fweave.c:1368:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char temp[3];
data/fweb-1.62/Web/fweave.c:1370:1:  [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(temp,";%c",XCHR(interior_semi));
data/fweb-1.62/Web/fweave.c:2077:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char terminator[2];
data/fweb-1.62/Web/fweave.c:6183:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char s[100];
data/fweb-1.62/Web/fweave.c:6192:1:  [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(s,"%u",n);
data/fweb-1.62/Web/fweave.c:6307:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char temp[100];
data/fweb-1.62/Web/fweave.c:6312:1:  [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(temp,"\\WIN%d{%d}",DEFINED_TYPE(p),
data/fweb-1.62/Web/fweave.c:6831:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char terminator[2];
data/fweb-1.62/Web/fweave.c:8255:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char language_line[50];
data/fweb-1.62/Web/fweave.c:8890:1:  [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((char*)temp1,"  %% #%i --- ",n);
data/fweb-1.62/Web/fweave.c:10029:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char temp[50];
data/fweb-1.62/Web/fweave.c:10815:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char temp[10];
data/fweb-1.62/Web/fweave.c:12298:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char temp[50];
data/fweb-1.62/Web/macs.c:892:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char temp[200];
data/fweb-1.62/Web/macs.c:1439:1:  [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((char*)mp,"%d",num);
data/fweb-1.62/Web/macs.c:1963:1:  [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(mp,p0,4);
data/fweb-1.62/Web/prod.c:8031:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char loop_id[100];
data/fweb-1.62/Web/prod.c:8035:1:  [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(loop_id,"\\Wblock{%d}",n);
data/fweb-1.62/Web/ratfor.c:3835:1:  [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((char*)(temp+2),"%c%d%c",XCHR(constant),i,XCHR(constant));
data/fweb-1.62/Web/stdlib0.h:14:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
FILE*  fopen(const char*, const char*);
data/fweb-1.62/Web/stdlib0.h:41:8:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
FILE*  tmpfile();
data/fweb-1.62/Web/stdlib0.h:45:5:  [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).
int atoi(const char *);
data/fweb-1.62/Web/stdlib0.h:46:6:  [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(const char *);
data/fweb-1.62/Web/strmac.h:16:17:  [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).
#define ATOI(s) atoi((CONST char *)(s))
data/fweb-1.62/Web/strmac.h:17:17:  [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).
#define ATOL(s) atol((CONST char *)(s))
data/fweb-1.62/Web/strmac.h:19:28:  [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).
#define FOPEN(name,iomode) fopen((char *)(name),(char *)(iomode))
data/fweb-1.62/Web/style.c:365:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
if((sty_file= fopen((char*)full_sty_name,"r"))==NULL)
data/fweb-1.62/Web/typedefs.h:688:17:  [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.
IN_COMMON CONST char HUGE *languages[NUM_LANGUAGES]
data/fweb-1.62/Web/typedefs.h:698:17:  [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.
IN_COMMON CONST char HUGE *Xlanguages[NUM_LANGUAGES]
data/fweb-1.62/Web/typedefs.h:709:17:  [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.
IN_COMMON CONST char HUGE *lang_codes[NUM_LANGUAGES]
data/fweb-1.62/Web/typedefs.h:1196:17:  [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.
IN_COMMON CONST char HUGE *filter_char[NUM_LANGUAGES]
data/fweb-1.62/Web/typedefs.h:1701: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.
typedef char CC_BUF[2][40]; /*  One line of output for the control codes. */
data/fweb-1.62/Web/common.c:93:32:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
(c=='!'&&(point_comments||(c1= getc(cur0_prms->File),ungetc(c1,cur0_prms->File),c1=='!'))) \
data/fweb-1.62/Web/common.c:2233:26:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
while(k<=buffer_end&&(c= getc(cur0_prms->File))!=EOF&&c!='\n')
data/fweb-1.62/Web/common.c:2239:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
if((c= getc(cur0_prms->File))!=EOF&&c!='\n')
data/fweb-1.62/Web/common.c:2314:4:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
c= getc(cur0_prms->File);
data/fweb-1.62/Web/common.c:2328:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
while((c= getc(cur0_prms->File))!=EOF&&c!='\n')
data/fweb-1.62/Web/common.c:2343:26:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
while(k<=buffer_end&&(c= getc(cur0_prms->File))!=EOF&&c!='\n')
data/fweb-1.62/Web/common.c:2358:4:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
c= getc(cur0_prms->File);
data/fweb-1.62/Web/common.c:2375:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
if((c= getc(cur0_prms->File))!=EOF&&c!='\n')
data/fweb-1.62/Web/common.c:2989:26:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
while(k<=buffer_end&&(c= getc(cur0_prms->File))!=EOF&&c!='\n')
data/fweb-1.62/Web/common.c:2995:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
if((c= getc(cur0_prms->File))!=EOF&&c!='\n')
data/fweb-1.62/Web/ftangle.c:3463:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
c_old= getc(old_ptr);
data/fweb-1.62/Web/ftangle.c:3464:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
c_new= getc(new_ptr);
data/fweb-1.62/Web/stdlib0.h:12:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
int    fgetc(FILE*);
data/fweb-1.62/Web/strmac.h:28:29:  [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.
#define STRNCAT(dest,src,n) strncat((char *)(dest),(CONST char *)(src),\
data/fweb-1.62/Web/strmac.h:37:29:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
#define STRNCPY(dest,src,n) strncpy((char *)(dest),(CONST char *)(src),\
data/fweb-1.62/Web/strmac.h:40: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).
#define STRLEN(s) strlen((CONST char *)(s))
data/fweb-1.62/Web/style.c:387:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
while((c= getc(sty_file))!=EOF&&c!='\n')

ANALYSIS SUMMARY:

Hits = 148
Lines analyzed = 63700 in approximately 1.14 seconds (55975 lines/second)
Physical Source Lines of Code (SLOC) = 41931
Hits@level = [0] 342 [1]  17 [2]  53 [3]   7 [4]  68 [5]   3
Hits@level+ = [0+] 490 [1+] 148 [2+] 131 [3+]  78 [4+]  71 [5+]   3
Hits/KSLOC@level+ = [0+] 11.6859 [1+] 3.52961 [2+] 3.12418 [3+] 1.8602 [4+] 1.69326 [5+] 0.0715461
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.