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/ifhp-3.5.20/src/debug.h
Examining data/ifhp-3.5.20/src/debug.c
Examining data/ifhp-3.5.20/src/stty.c
Examining data/ifhp-3.5.20/src/vars.c
Examining data/ifhp-3.5.20/src/stty.h
Examining data/ifhp-3.5.20/src/textps.c
Examining data/ifhp-3.5.20/src/portable.h
Parsing failed to find end of parameter list in (
# define VSNPRINTF(X,Y) vprintf(
# define SETSTATUS(X) printf(
#else
# define FPRINTF safefprintf
# define PRINTF safeprintf
# define STDOUT 1
# define STDERR 2
# define SNPRINTF(X,Y) plp_snprintf(X
Parsing failed to find end of parameter list in (
# define SETSTATUS(X) printf(
#else
# define FPRINTF safefprintf
# define PRINTF safeprintf
# define STDOUT 1
# define STDERR 2
# define SNPRINTF(X,Y) plp_snprintf(X,Y,
# define VSNPRINTF(X,Y) plp_v
Parsing failed to find end of parameter list in (
#else
# define FPRINTF safefprintf
# define PRINTF safeprintf
# define STDOUT 1
# define STDERR 2
# define SNPRINTF(X,Y) plp_snprintf(X,Y,
# define VSNPRINTF(X,Y) plp_vsnprintf(X,Y,
# define SETSTAT
Examining data/ifhp-3.5.20/src/perlobj.h
Examining data/ifhp-3.5.20/src/monitor.c
Examining data/ifhp-3.5.20/src/safemalloc.h
Examining data/ifhp-3.5.20/src/plp_snprintf.h
Examining data/ifhp-3.5.20/src/safemalloc.c
Examining data/ifhp-3.5.20/src/safestrutil.c
Examining data/ifhp-3.5.20/src/linelist.c
Examining data/ifhp-3.5.20/src/safestrutil.h
Examining data/ifhp-3.5.20/src/lpbanner_fnt.c
Examining data/ifhp-3.5.20/src/globmatch.h
Examining data/ifhp-3.5.20/src/globmatch.c
Examining data/ifhp-3.5.20/src/errormsg.h
Parsing failed to find end of parameter list; semicolon terminated it in (
#define FATAL(X) printf(
#define LOGERR(X) printf(
#define LOGERR_DIE(X) printf(
#define LOGDEBUG printf
#define DIEMSG printf
#define WARNMSG printf
#define MESSAGE printf
#else
#define LOGMSG(X) l
Parsing failed to find end of parameter list; semicolon terminated it in (
#define LOGERR(X) printf(
#define LOGERR_DIE(X) printf(
#define LOGDEBUG printf
#define DIEMSG printf
#define WARNMSG printf
#define MESSAGE printf
#else
#define LOGMSG(X) logmsg(
#define FATAL(X) f
Parsing failed to find end of parameter list; semicolon terminated it in (
#define LOGERR_DIE(X) printf(
#define LOGDEBUG printf
#define DIEMSG printf
#define WARNMSG printf
#define MESSAGE printf
#else
#define LOGMSG(X) logmsg(
#define FATAL(X) fatal(
#define LOGERR(X) lo
Parsing failed to find end of parameter list; semicolon terminated it in (
#define LOGDEBUG printf
#define DIEMSG printf
#define WARNMSG printf
#define MESSAGE printf
#else
#define LOGMSG(X) logmsg(
#define FATAL(X) fatal(
#define LOGERR(X) logerr(
#define LOGERR_DIE(X) lo
Examining data/ifhp-3.5.20/src/checkcode.h
Examining data/ifhp-3.5.20/src/checkcode.c
Examining data/ifhp-3.5.20/src/open_device.h
Examining data/ifhp-3.5.20/src/accounting.h
Examining data/ifhp-3.5.20/src/patchlevel.h
Examining data/ifhp-3.5.20/src/plp_snprintf.c
Examining data/ifhp-3.5.20/src/errormsg.c
Examining data/ifhp-3.5.20/src/accounting.c
Examining data/ifhp-3.5.20/src/open_device.c
Examining data/ifhp-3.5.20/src/perlobj.c
Examining data/ifhp-3.5.20/src/ifhp.c
Examining data/ifhp-3.5.20/src/ifhp.h
Examining data/ifhp-3.5.20/UTILS/stopstr.c

FINAL RESULTS:

data/ifhp-3.5.20/src/debug.h:144:16:  [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 DEBUG1 printf
data/ifhp-3.5.20/src/debug.h:145:16:  [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 DEBUG2 printf
data/ifhp-3.5.20/src/debug.h:146:16:  [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 DEBUG3 printf
data/ifhp-3.5.20/src/debug.h:147:16:  [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 DEBUG4 printf
data/ifhp-3.5.20/src/debug.h:148:16:  [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 DEBUG5 printf
data/ifhp-3.5.20/src/debug.h:149:16:  [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 DEBUG6 printf
data/ifhp-3.5.20/src/debug.h:150:16:  [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 DEBUG7 printf
data/ifhp-3.5.20/src/errormsg.h:13:19:  [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 LOGMSG(X) printf(
data/ifhp-3.5.20/src/errormsg.h:14:18:  [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 FATAL(X) printf(
data/ifhp-3.5.20/src/errormsg.h:15:19:  [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 LOGERR(X) printf(
data/ifhp-3.5.20/src/errormsg.h:16:23:  [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 LOGERR_DIE(X) printf(
data/ifhp-3.5.20/src/errormsg.h:17:18:  [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 LOGDEBUG printf
data/ifhp-3.5.20/src/errormsg.h:18:16:  [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 DIEMSG printf
data/ifhp-3.5.20/src/errormsg.h:19: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 WARNMSG printf
data/ifhp-3.5.20/src/errormsg.h:20: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 MESSAGE printf
data/ifhp-3.5.20/src/ifhp.c:3785: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(endname, Jobname);
data/ifhp-3.5.20/src/linelist.c:174: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( new, p );
data/ifhp-3.5.20/src/linelist.c:189:11:  [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).
	if( s1 ) strcat(s,s1);
data/ifhp-3.5.20/src/linelist.c:190:11:  [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).
	if( s2 ) strcat(s,s2);
data/ifhp-3.5.20/src/linelist.c:206:11:  [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).
	if( s1 ) strcat(s,s1);
data/ifhp-3.5.20/src/linelist.c:207:11:  [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).
	if( s2 ) strcat(s,s2);
data/ifhp-3.5.20/src/linelist.c:208:11:  [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).
	if( s3 ) strcat(s,s3);
data/ifhp-3.5.20/src/linelist.c:227:11:  [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).
	if( s1 ) strcat(s,s1);
data/ifhp-3.5.20/src/linelist.c:228:11:  [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).
	if( s2 ) strcat(s,s2);
data/ifhp-3.5.20/src/linelist.c:229:11:  [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).
	if( s3 ) strcat(s,s3);
data/ifhp-3.5.20/src/linelist.c:230:11:  [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).
	if( s4 ) strcat(s,s4);
data/ifhp-3.5.20/src/linelist.c:1096:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy( t, s );
data/ifhp-3.5.20/src/linelist.c:1099: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).
					strcpy(t,sep);
data/ifhp-3.5.20/src/linelist.c:1167:11:  [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).
	if( s2 ) strcat(s,s2);
data/ifhp-3.5.20/src/linelist.c:1184:11:  [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).
	if( s2 ) strcat(s,s2);
data/ifhp-3.5.20/src/linelist.c:1185:11:  [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).
	if( s3 ) strcat(s,s3);
data/ifhp-3.5.20/src/plp_snprintf.c:961: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(dest,src);
data/ifhp-3.5.20/src/plp_snprintf.c:993:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf( convert, formatstr, value );
data/ifhp-3.5.20/src/portable.h:726:12:  [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.
extern int fprintf(FILE *, const char *, ...);
data/ifhp-3.5.20/src/portable.h:747:12:  [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.
extern int printf( const char *, ...);
data/ifhp-3.5.20/src/portable.h:756:12:  [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.
extern int sscanf( char *s, char *format, ... );
data/ifhp-3.5.20/src/portable.h:769:13:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
extern void syslog(int, const char *, ...);
data/ifhp-3.5.20/src/portable.h:770:12:  [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.
extern int system( const char *str );
data/ifhp-3.5.20/src/portable.h:775:12:  [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.
extern int vfprintf(FILE *, const char *, ...);
data/ifhp-3.5.20/src/portable.h:776:12:  [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.
extern int vprintf(FILE *, const char *, va_list ap);
data/ifhp-3.5.20/src/portable.h:789:13:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
extern void syslog(int, const char *, ...);
data/ifhp-3.5.20/src/portable.h:831:18:  [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 FPRINTF fprintf
data/ifhp-3.5.20/src/portable.h:832: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 PRINTF printf
data/ifhp-3.5.20/src/portable.h:835:24:  [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 SNPRINTF(X,Y) printf(
data/ifhp-3.5.20/src/portable.h:836:25:  [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 VSNPRINTF(X,Y) vprintf(
data/ifhp-3.5.20/src/portable.h:837:23:  [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 SETSTATUS(X) printf(
data/ifhp-3.5.20/src/safemalloc.c:89: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( new, p );
data/ifhp-3.5.20/src/safemalloc.c:104:11:  [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).
	if( s1 ) strcat(s,s1);
data/ifhp-3.5.20/src/safemalloc.c:105:11:  [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).
	if( s2 ) strcat(s,s2);
data/ifhp-3.5.20/src/safemalloc.c:121:11:  [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).
	if( s2 ) strcat(s,s2);
data/ifhp-3.5.20/src/safemalloc.c:137:11:  [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).
	if( s1 ) strcat(s,s1);
data/ifhp-3.5.20/src/safemalloc.c:138:11:  [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).
	if( s2 ) strcat(s,s2);
data/ifhp-3.5.20/src/safemalloc.c:139:11:  [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).
	if( s3 ) strcat(s,s3);
data/ifhp-3.5.20/src/safemalloc.c:157:11:  [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).
	if( s2 ) strcat(s,s2);
data/ifhp-3.5.20/src/safemalloc.c:158:11:  [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).
	if( s3 ) strcat(s,s3);
data/ifhp-3.5.20/src/safemalloc.c:179:11:  [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).
	if( s2 ) strcat(s,s2);
data/ifhp-3.5.20/src/safemalloc.c:180:11:  [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).
	if( s3 ) strcat(s,s3);
data/ifhp-3.5.20/src/safemalloc.c:181:11:  [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).
	if( s4 ) strcat(s,s4);
data/ifhp-3.5.20/src/safemalloc.c:199:11:  [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).
	if( s1 ) strcat(s,s1);
data/ifhp-3.5.20/src/safemalloc.c:200:11:  [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).
	if( s2 ) strcat(s,s2);
data/ifhp-3.5.20/src/safemalloc.c:201:11:  [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).
	if( s3 ) strcat(s,s3);
data/ifhp-3.5.20/src/safemalloc.c:202:11:  [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).
	if( s4 ) strcat(s,s4);
data/ifhp-3.5.20/src/safemalloc.c:223:11:  [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).
	if( s2 ) strcat(s,s2);
data/ifhp-3.5.20/src/safemalloc.c:224:11:  [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).
	if( s3 ) strcat(s,s3);
data/ifhp-3.5.20/src/safemalloc.c:225:11:  [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).
	if( s4 ) strcat(s,s4);
data/ifhp-3.5.20/src/safemalloc.c:226:11:  [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).
	if( s5 ) strcat(s,s5);
data/ifhp-3.5.20/src/safemalloc.c:245:11:  [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).
	if( s1 ) strcat(s,s1);
data/ifhp-3.5.20/src/safemalloc.c:246:11:  [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).
	if( s2 ) strcat(s,s2);
data/ifhp-3.5.20/src/safemalloc.c:247:11:  [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).
	if( s3 ) strcat(s,s3);
data/ifhp-3.5.20/src/safemalloc.c:248:11:  [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).
	if( s4 ) strcat(s,s4);
data/ifhp-3.5.20/src/safemalloc.c:249:11:  [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).
	if( s5 ) strcat(s,s5);
data/ifhp-3.5.20/src/textps.c:363:13:  [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.
    outfp = popen( cmd, "w" );
data/ifhp-3.5.20/src/ifhp.c:105:46:  [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.
    if( (getuid() == 0 || geteuid() == 0) && getenv("NLSPATH") ){
data/ifhp-3.5.20/src/ifhp.c:157:13:  [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.
	pc_entry = getenv("PRINTCAP_ENTRY");
data/ifhp-3.5.20/src/ifhp.c:228:3:  [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.
		getenv("LANG"), _("TRANSLATE TEST"));
data/ifhp-3.5.20/src/ifhp.c:5047:36:  [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.
	if( ISNULL(tempfile) ) tempfile = getenv("TMP");
data/ifhp-3.5.20/src/monitor.c:157:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while( (n = getopt(argc, argv, "dut")) != EOF ){
data/ifhp-3.5.20/src/portable.h:273:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  char *getenv( char * );
data/ifhp-3.5.20/src/textps.c:130:20:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int optind, getopt();
data/ifhp-3.5.20/src/textps.c:264:46:  [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.
    if( (getuid() == 0 || geteuid() == 0) && getenv("NLSPATH") ){
data/ifhp-3.5.20/src/textps.c:326:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while( (c = getopt( argc, argv, "12GrL:p:P:t:" )) != EOF ){
data/ifhp-3.5.20/src/accounting.c:34: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 working[SMALLBUFFER];
data/ifhp-3.5.20/src/accounting.c:72:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			accounting_fd = open(Accountfile, O_WRONLY|O_APPEND );
data/ifhp-3.5.20/src/checkcode.c:424:13:  [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 code = atoi(code_str);
data/ifhp-3.5.20/src/errormsg.c:63:11:  [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 msgbuf[32];     /* holds "errno=%d". */
data/ifhp-3.5.20/src/errormsg.c:72: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.
 static char log_buf[LARGEBUFFER];
data/ifhp-3.5.20/src/errormsg.c:270:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buffer[99];
data/ifhp-3.5.20/src/errormsg.c:458:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buf[40];
data/ifhp-3.5.20/src/errormsg.c:496: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 path[MAXPATHLEN];
data/ifhp-3.5.20/src/errormsg.c:497: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 buffer[SMALLBUFFER];
data/ifhp-3.5.20/src/errormsg.c:527:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			Status_fd = open( Statusfile, O_RDWR );
data/ifhp-3.5.20/src/errormsg.c:531:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			temp_fd = open( path, O_RDWR );
data/ifhp-3.5.20/src/errormsg.c:553:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		Status_fd = open( Statusfile, O_WRONLY|O_APPEND, 0600 );
data/ifhp-3.5.20/src/errormsg.c:608:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	port = atoi( s+1 );
data/ifhp-3.5.20/src/errormsg.c:675: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[1024];
data/ifhp-3.5.20/src/ifhp.c:56: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 Jobname[SMALLBUFFER];
data/ifhp-3.5.20/src/ifhp.c:57: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 Job_ready_msg[SMALLBUFFER];
data/ifhp-3.5.20/src/ifhp.c:58: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 End_ready_msg[SMALLBUFFER];
data/ifhp-3.5.20/src/ifhp.c:64: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 errmsg[SMALLBUFFER];
data/ifhp-3.5.20/src/ifhp.c:137:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if( (fd = open( "/dev/null", O_WRONLY )) != 2 ){
data/ifhp-3.5.20/src/ifhp.c:415: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[64];
data/ifhp-3.5.20/src/ifhp.c:616: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 *arg, *s, m[2];
data/ifhp-3.5.20/src/ifhp.c:732: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 msg[128];
data/ifhp-3.5.20/src/ifhp.c:991: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 value[SMALLBUFFER];
data/ifhp-3.5.20/src/ifhp.c:1066: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 fixed_value[SMALLBUFFER];
data/ifhp-3.5.20/src/ifhp.c:1137: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 msg[SMALLBUFFER];
data/ifhp-3.5.20/src/ifhp.c:2245: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 monitorbuff[SMALLBUFFER];
data/ifhp-3.5.20/src/ifhp.c:2554: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 num[LARGEBUFFER];
data/ifhp-3.5.20/src/ifhp.c:2555: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 fmt[127];
data/ifhp-3.5.20/src/ifhp.c:2799: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.
	static char retval[128];
data/ifhp-3.5.20/src/ifhp.c:2803: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 copy[128];
data/ifhp-3.5.20/src/ifhp.c:2942:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char msg[128];
data/ifhp-3.5.20/src/ifhp.c:2952: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.
		(void) strcpy(msg, "stopped");
data/ifhp-3.5.20/src/ifhp.c:3001: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 buffer[LARGEBUFFER];
data/ifhp-3.5.20/src/ifhp.c:3047:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if( (fd = open( filename, O_RDONLY )) >= 0 ){
data/ifhp-3.5.20/src/ifhp.c:3076: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 msg[64];
data/ifhp-3.5.20/src/ifhp.c:3134: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 *s, buffer[SMALLBUFFER];
data/ifhp-3.5.20/src/ifhp.c:3159:7:  [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).
		n = atoi( s );
data/ifhp-3.5.20/src/ifhp.c:3167:7:  [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).
		n = atoi( s );
data/ifhp-3.5.20/src/ifhp.c:3184: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 buffer[SMALLBUFFER];
data/ifhp-3.5.20/src/ifhp.c:3213: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 buffer[SMALLBUFFER], *name;
data/ifhp-3.5.20/src/ifhp.c:3249: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 buffer[SMALLBUFFER], *s;
data/ifhp-3.5.20/src/ifhp.c:3471: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 buffer[SMALLBUFFER], name[SMALLBUFFER], *s, *sync_str;
data/ifhp-3.5.20/src/ifhp.c:3696: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 *sync_str, *opt_str, buffer[SMALLBUFFER], endname[SMALLBUFFER];
data/ifhp-3.5.20/src/ifhp.c:4102: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).
		pagecounter = atoi( s );
data/ifhp-3.5.20/src/ifhp.c:4234: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).
				pagecounter = atoi( s );
data/ifhp-3.5.20/src/ifhp.c:4325: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 file_result[SMALLBUFFER];
data/ifhp-3.5.20/src/ifhp.c:4326: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 errmsg[SMALLBUFFER];
data/ifhp-3.5.20/src/ifhp.c:4703: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).
		progress_pc = atoi(s);
data/ifhp-3.5.20/src/ifhp.c:4706:16:  [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).
		progress_k = atoi(s);
data/ifhp-3.5.20/src/ifhp.c:4760:30:  [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.
					switch( (c = ((unsigned char *)Outbuf)[i]) ){
data/ifhp-3.5.20/src/ifhp.c:4775:6:  [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 b[2];
data/ifhp-3.5.20/src/ifhp.c:4803:30:  [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.
					switch( (c = ((unsigned char *)Outbuf)[i]) ){
data/ifhp-3.5.20/src/ifhp.c:4927: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 inbuf[2];
data/ifhp-3.5.20/src/ifhp.c:5043: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 buffer[MAXPATHLEN];
data/ifhp-3.5.20/src/ifhp.c:5051:12:  [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).
	if( (fd = mkstemp(buffer)) == -1 ){
data/ifhp-3.5.20/src/ifhp.c:5139: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 buffer[1];
data/ifhp-3.5.20/src/ifhp.c:5182: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 buffer[SMALLBUFFER];
data/ifhp-3.5.20/src/ifhp.c:5326: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 buffer[SMALLBUFFER];
data/ifhp-3.5.20/src/ifhp.c:5368:35:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if( fd_stdin < 0 && (fd_stdin = open("/dev/null", O_RDWR)) < 0 ){
data/ifhp-3.5.20/src/ifhp.c:5372:37:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if( fd_stdout < 0 && (fd_stdout = open("/dev/null", O_RDWR)) < 0 ){
data/ifhp-3.5.20/src/ifhp.c:5464: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 name[SMALLBUFFER];
data/ifhp-3.5.20/src/ifhp.c:5678: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 msg[SMALLBUFFER];
data/ifhp-3.5.20/src/ifhp.c:5767: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 msg[SMALLBUFFER];
data/ifhp-3.5.20/src/ifhp.c:5786: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 buffer[SMALLBUFFER];
data/ifhp-3.5.20/src/ifhp.h:124: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 bits[GLYPHSIZE];
data/ifhp-3.5.20/src/ifhp.h:165:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
EXTERN char *Loweropts[26];	/* lower case options */
data/ifhp-3.5.20/src/ifhp.h:166:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
EXTERN char *Upperopts[26];	/* upper case options */
data/ifhp-3.5.20/src/ifhp.h:171:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
EXTERN char RemoteIPAddr[256];
data/ifhp-3.5.20/src/linelist.c:378: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 b[40];
data/ifhp-3.5.20/src/linelist.c:381:40:  [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.
		if( (n = strlen(b)) > sizeof(b)-10 ) strcpy( b+n," ..." );
data/ifhp-3.5.20/src/linelist.c:422: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 b[40];
data/ifhp-3.5.20/src/linelist.c:425:40:  [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.
		if( (n = strlen(b)) > sizeof(b)-10 ) strcpy( b+n," ..." );
data/ifhp-3.5.20/src/linelist.c:827: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 buffer[LARGEBUFFER];
data/ifhp-3.5.20/src/linelist.c:853:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if( (fd = open( file, O_RDONLY )) < 0 ){
data/ifhp-3.5.20/src/linelist.c:888: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 keybuf[64];
data/ifhp-3.5.20/src/linelist.c:1136: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 buffer[LARGEBUFFER];
data/ifhp-3.5.20/src/linelist.c:1141:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if( (fd = open( file, O_RDONLY )) >= 0 ){
data/ifhp-3.5.20/src/linelist.c:1205: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[1024];
data/ifhp-3.5.20/src/monitor.c:33: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 buffer[1024*64];
data/ifhp-3.5.20/src/monitor.c:118:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(in->buffer+in->len, str, len+1 );
data/ifhp-3.5.20/src/monitor.c:169:7:  [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).
		n = atoi( portname );
data/ifhp-3.5.20/src/monitor.c:289: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 val[3];
data/ifhp-3.5.20/src/open_device.c:19: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 msg[32];
data/ifhp-3.5.20/src/open_device.c:31:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			fd = open( device, (Status?O_RDWR:O_WRONLY)|O_APPEND|O_CREAT|O_NONBLOCK, 0600 );
data/ifhp-3.5.20/src/perlobj.c:82: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.
	static char msg[32];
data/ifhp-3.5.20/src/perlobj.c:1315: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 buffer[SMALLBUFFER];
data/ifhp-3.5.20/src/perlobj.c:1596:18:  [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 *t = ((char **)s)[0];
data/ifhp-3.5.20/src/perlobj.c:1644: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 buffer[SMALLBUFFER];
data/ifhp-3.5.20/src/perlobj.c:1699: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 buffer[LARGEBUFFER], *s;
data/ifhp-3.5.20/src/perlobj.c:1700: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 newindent[SMALLBUFFER];
data/ifhp-3.5.20/src/perlobj.c:1889: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 buffer[LARGEBUFFER];
data/ifhp-3.5.20/src/perlobj.c:1912:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int n, fd = open( filename, O_RDONLY, 0 );
data/ifhp-3.5.20/src/perlobj.c:2021: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 b[256];
data/ifhp-3.5.20/src/perlobj.c:2103: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 m[2];
data/ifhp-3.5.20/src/perlobj.c:2208: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 val[3];
data/ifhp-3.5.20/src/perlobj.c:2446: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 path[MAXPATHLEN];
data/ifhp-3.5.20/src/perlobj.c:2817: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.
	static char msg[32];
data/ifhp-3.5.20/src/perlobj.c:2848: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 bm[32];
data/ifhp-3.5.20/src/perlobj.c:3002: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 mb[32];
data/ifhp-3.5.20/src/perlobj.c:3003: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.
	static char msg[64];
data/ifhp-3.5.20/src/perlobj.h:76: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 strval[SHORT_STR_LEN];
data/ifhp-3.5.20/src/plp_snprintf.c:753: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 b[2];
data/ifhp-3.5.20/src/plp_snprintf.c:763: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 shortbuffer[32];
data/ifhp-3.5.20/src/plp_snprintf.c:838: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 convert[sizeof( union value) * 8 + 16];
data/ifhp-3.5.20/src/plp_snprintf.c:905:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char qconvert[sizeof(quad_t)];
data/ifhp-3.5.20/src/plp_snprintf.c:907: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 convert[2*sizeof(quad_t)+1];
data/ifhp-3.5.20/src/plp_snprintf.c:969: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 convert[sizeof( union value) * 8 + 512];
data/ifhp-3.5.20/src/plp_snprintf.c:970: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 formatstr[128];
data/ifhp-3.5.20/src/plp_snprintf.c:984: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( formatstr+strlen(formatstr), "%d", len ); /* 3 */
data/ifhp-3.5.20/src/plp_snprintf.c:987: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( formatstr+strlen(formatstr), ".%d", precision ); /* 3 */
data/ifhp-3.5.20/src/plp_snprintf.c:990:2:  [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( formatstr+strlen(formatstr), "%c", fmt );
data/ifhp-3.5.20/src/plp_snprintf.c:1051:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		(void) sprintf (buffer, "errno=%d", err);
data/ifhp-3.5.20/src/plp_snprintf.c:1062: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 buffer[128];
data/ifhp-3.5.20/src/portable.h:742:31:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define memmove(dest,src,len) bcopy(src,dest,len)
data/ifhp-3.5.20/src/portable.h:743:13:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
extern void bcopy(const void *src,void *dest,size_t len);
data/ifhp-3.5.20/src/portable.h:744:12:  [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).
extern int mkstemp(char *s );
data/ifhp-3.5.20/src/portable.h:782:12:  [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).
extern int mkstemp(char *s );
data/ifhp-3.5.20/src/textps.c:208: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 outbuffer[256];
data/ifhp-3.5.20/src/textps.c:294: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).
	case 'D': debug = atoi(optarg); break;
data/ifhp-3.5.20/src/textps.c:331:38:  [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).
          case 'L': lines_per_page = atoi( optarg ); break;
data/ifhp-3.5.20/src/textps.c:334: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).
          case 't': tab_width = atoi(optarg);
data/ifhp-3.5.20/src/textps.c:343: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).
		outfp = fopen( outputfile, "w" );
data/ifhp-3.5.20/src/textps.c:357: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 cmd[128];
data/ifhp-3.5.20/src/textps.c:525:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		static char timestr[64];
data/ifhp-3.5.20/src/textps.c:1130: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[1024];
data/ifhp-3.5.20/src/accounting.c:88: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).
		n = strlen(list);
data/ifhp-3.5.20/src/errormsg.c:81: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).
	n = strlen(log_buf); s = log_buf+n; n = sizeof(log_buf)-n;
data/ifhp-3.5.20/src/errormsg.c:84: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).
		n = strlen(log_buf); s = log_buf+n; n = sizeof(log_buf)-n;
data/ifhp-3.5.20/src/errormsg.c:87: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).
	n = strlen(log_buf); s = log_buf+n; n = sizeof(log_buf)-n;
data/ifhp-3.5.20/src/errormsg.c:89: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).
	n = strlen(log_buf); s = log_buf+n; n = sizeof(log_buf)-n;
data/ifhp-3.5.20/src/errormsg.c:98: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).
	n = strlen(log_buf); s = log_buf+n; n = sizeof(log_buf)-n;
data/ifhp-3.5.20/src/errormsg.c:102: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).
		n = strlen(log_buf); s = log_buf+n; n = sizeof(log_buf)-n;
data/ifhp-3.5.20/src/errormsg.c:127: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).
		n = strlen(log_buf); s = log_buf+n; n = sizeof(log_buf)-n;
data/ifhp-3.5.20/src/errormsg.c:156: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).
		n = strlen(log_buf); s = log_buf+n; n = sizeof(log_buf)-n;
data/ifhp-3.5.20/src/errormsg.c:183: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).
		n = strlen(log_buf); s = log_buf+n; n = sizeof(log_buf)-n;
data/ifhp-3.5.20/src/errormsg.c:215: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).
		n = strlen(log_buf); s = log_buf+n; n = sizeof(log_buf)-n;
data/ifhp-3.5.20/src/errormsg.c:217: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).
		n = strlen(log_buf); s = log_buf+n; n = sizeof(log_buf)-n;
data/ifhp-3.5.20/src/errormsg.c:246: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).
		n = strlen(log_buf); s = log_buf+n; n = sizeof(log_buf)-n;
data/ifhp-3.5.20/src/errormsg.c:248: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).
		n = strlen(log_buf); s = log_buf+n; n = sizeof(log_buf)-n;
data/ifhp-3.5.20/src/errormsg.c:306:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		return (Write_fd_len( fd, str, strlen(str) ) );
data/ifhp-3.5.20/src/errormsg.c:538:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				while( s == 0 && (n = read(Status_fd, buffer,sizeof(buffer)-1)) > 0 ){
data/ifhp-3.5.20/src/errormsg.c:545:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				while( (n = read(Status_fd, buffer,sizeof(buffer)-1)) > 0 ){
data/ifhp-3.5.20/src/errormsg.c:574: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).
	n = strlen(log_buf); s = log_buf+n; n = sizeof(log_buf)-n;
data/ifhp-3.5.20/src/ifhp.c:1009: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).
					int n = strlen(value);
data/ifhp-3.5.20/src/ifhp.c:1029:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			int n = strlen(value);
data/ifhp-3.5.20/src/ifhp.c:2266:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		count = read( fd, monitorbuff, sizeof(monitorbuff) - 1 );
data/ifhp-3.5.20/src/ifhp.c:2324:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					count = read( Snmp_fd, monitorbuff, sizeof(monitorbuff) - 1 );
data/ifhp-3.5.20/src/ifhp.c:2336:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					count = read( fd, monitorbuff, sizeof(monitorbuff) - 1 );
data/ifhp-3.5.20/src/ifhp.c:2343:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			count = read( fd, monitorbuff, sizeof(monitorbuff) - 1 );
data/ifhp-3.5.20/src/ifhp.c:2585: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).
				memmove(s,s+1,strlen(s));
data/ifhp-3.5.20/src/ifhp.c:3049:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			while( (n = read(fd, buffer,sizeof(buffer))) >0 ){
data/ifhp-3.5.20/src/ifhp.c:3101: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 len = strlen(Jobname), i;
data/ifhp-3.5.20/src/ifhp.c:3401: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).
				if(strlen(buffer) < sizeof(buffer)-2 ){
data/ifhp-3.5.20/src/ifhp.c:4360:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	Outlen = read( 0, Outbuf, cnt);
data/ifhp-3.5.20/src/ifhp.c:4615:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			len = read( 0, Outbuf+Outlen, Outmax - Outlen);
data/ifhp-3.5.20/src/ifhp.c:4654:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			Outlen = read( 0, Outbuf, Outmax );
data/ifhp-3.5.20/src/ifhp.c:4727:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	Outlen = read( 0, Outbuf, 8);
data/ifhp-3.5.20/src/ifhp.c:4857:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					&& (len = read( 0, Outbuf+Outlen, Outmax - Outlen )) > 0 ){
data/ifhp-3.5.20/src/ifhp.c:4934:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while( (n = read(0,inbuf,1)) > 0 ){
data/ifhp-3.5.20/src/ifhp.c:5011:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if( (n = read(fd,value,value_len-1)) < 0){
data/ifhp-3.5.20/src/ifhp.c:5090:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					&& (n = read(0,Outbuf+Outlen,Outmax-Outlen)) > 0;
data/ifhp-3.5.20/src/ifhp.c:5152:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = read( fd, buffer, 1 );
data/ifhp-3.5.20/src/ifhp.c:5408:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		&& (n = read(error_fd[0],buffer+len,sizeof(buffer)-1-len)) > 0 ){
data/ifhp-3.5.20/src/ifhp.c:5852:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		&& (n = read(error_fd[0],buffer,sizeof(buffer)-1)) > 0 ){
data/ifhp-3.5.20/src/linelist.c:40:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		for( t=s+strlen(s); t > s && isspace(cval(t-1)); --t );
data/ifhp-3.5.20/src/linelist.c:173:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	new = malloc_or_die( strlen (p) + 1, file, line );
data/ifhp-3.5.20/src/linelist.c:186:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int n = 1 + (s1?strlen(s1):0) + (s2?strlen(s2):0);
data/ifhp-3.5.20/src/linelist.c:186: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).
	int n = 1 + (s1?strlen(s1):0) + (s2?strlen(s2):0);
data/ifhp-3.5.20/src/linelist.c:203:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int n = 1 + (s1?strlen(s1):0) + (s2?strlen(s2):0) + (s3?strlen(s3):0);
data/ifhp-3.5.20/src/linelist.c:203: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).
	int n = 1 + (s1?strlen(s1):0) + (s2?strlen(s2):0) + (s3?strlen(s3):0);
data/ifhp-3.5.20/src/linelist.c:203:58:  [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 n = 1 + (s1?strlen(s1):0) + (s2?strlen(s2):0) + (s3?strlen(s3):0);
data/ifhp-3.5.20/src/linelist.c:223:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int n = 1 + (s1?strlen(s1):0) + (s2?strlen(s2):0)
data/ifhp-3.5.20/src/linelist.c:223: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).
	int n = 1 + (s1?strlen(s1):0) + (s2?strlen(s2):0)
data/ifhp-3.5.20/src/linelist.c:224: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).
		+ (s3?strlen(s3):0) + (s4?strlen(s4):0);
data/ifhp-3.5.20/src/linelist.c:224:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		+ (s3?strlen(s3):0) + (s4?strlen(s4):0);
data/ifhp-3.5.20/src/linelist.c:381:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if( (n = strlen(b)) > sizeof(b)-10 ) strcpy( b+n," ..." );
data/ifhp-3.5.20/src/linelist.c:395:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			for( t = str+strlen(str)-1;
data/ifhp-3.5.20/src/linelist.c:425:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if( (n = strlen(b)) > sizeof(b)-10 ) strcpy( b+n," ..." );
data/ifhp-3.5.20/src/linelist.c:439:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			for( t = str+strlen(str)-1;
data/ifhp-3.5.20/src/linelist.c:456:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			for( t = str+strlen(str)-1;
data/ifhp-3.5.20/src/linelist.c:497: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).
				t = s+strlen(s);
data/ifhp-3.5.20/src/linelist.c:830:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while( (count = read(fd, buffer, sizeof(buffer)-1)) > 0 ){
data/ifhp-3.5.20/src/linelist.c:905: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).
		t = s + strlen(s);
data/ifhp-3.5.20/src/linelist.c:961: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).
			memmove(t, t+1, strlen(t)+1 );
data/ifhp-3.5.20/src/linelist.c:969:34:  [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( u != t ) memmove(t+1, u+1, strlen(u+1)+1 );
data/ifhp-3.5.20/src/linelist.c:988:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			memmove(t,t+1,strlen(t+1)+1);
data/ifhp-3.5.20/src/linelist.c:993:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy( keybuf, s, sizeof(keybuf));
data/ifhp-3.5.20/src/linelist.c:994:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if( strlen(s) != strlen(keybuf) ){
data/ifhp-3.5.20/src/linelist.c:994: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).
		if( strlen(s) != strlen(keybuf) ){
data/ifhp-3.5.20/src/linelist.c:1085: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).
	if( sep ) n = strlen(sep);
data/ifhp-3.5.20/src/linelist.c:1088:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if( s && *s ) len += strlen(s) + n;
data/ifhp-3.5.20/src/linelist.c:1097: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).
				t += strlen(t);
data/ifhp-3.5.20/src/linelist.c:1121:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if( sep ) len = strlen(sep);
data/ifhp-3.5.20/src/linelist.c:1123: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).
		*(s+strlen(s)-len) = 0;;
data/ifhp-3.5.20/src/linelist.c:1144:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while( (n = read(fd,buffer,sizeof(buffer))) > 0 ){
data/ifhp-3.5.20/src/linelist.c:1164:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int n = 1 + (s1?strlen(s1):0) + (s2?strlen(s2):0);
data/ifhp-3.5.20/src/linelist.c:1164: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).
	int n = 1 + (s1?strlen(s1):0) + (s2?strlen(s2):0);
data/ifhp-3.5.20/src/linelist.c:1181:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int n = 1 + (s1?strlen(s1):0) + (s2?strlen(s2):0) + (s3?strlen(s3):0);
data/ifhp-3.5.20/src/linelist.c:1181: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).
	int n = 1 + (s1?strlen(s1):0) + (s2?strlen(s2):0) + (s3?strlen(s3):0);
data/ifhp-3.5.20/src/linelist.c:1181:58:  [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 n = 1 + (s1?strlen(s1):0) + (s2?strlen(s2):0) + (s3?strlen(s3):0);
data/ifhp-3.5.20/src/monitor.c:247:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					c = read( i, buffer, sizeof(buffer)-1 );
data/ifhp-3.5.20/src/open_device.c:22:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while( read(1,msg,sizeof(msg)) > 0 );
data/ifhp-3.5.20/src/open_device.c:185:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy( str, s, len );
data/ifhp-3.5.20/src/perlobj.c:1720: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).
	len = strlen(buffer);
data/ifhp-3.5.20/src/perlobj.c:1788: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).
								len = strlen(buffer);
data/ifhp-3.5.20/src/perlobj.c:1791:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
							len = strlen(buffer);
data/ifhp-3.5.20/src/perlobj.c:1795:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						len = strlen(buffer);
data/ifhp-3.5.20/src/perlobj.c:1824:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					len = strlen(buffer);
data/ifhp-3.5.20/src/perlobj.c:1837: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).
					int len = strlen(buffer);
data/ifhp-3.5.20/src/perlobj.c:1891:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while( (n = read( fd, buffer,sizeof(buffer)-1)) > 0 ){
data/ifhp-3.5.20/src/perlobj.c:2046:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			memmove(end-1,end,strlen(end)+1);
data/ifhp-3.5.20/src/perlobj.c:2053: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).
			for( len = strlen(s); len > 0 && isspace(cval(s+len-1)); --len );
data/ifhp-3.5.20/src/perlobj.c:2074:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					len = strlen( s );
data/ifhp-3.5.20/src/perlobj.c:2081: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).
				for( len = strlen( s ); len > 0 && isspace(cval(s+len-1)); --len);
data/ifhp-3.5.20/src/perlobj.c:2086:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					len = strlen( s );
data/ifhp-3.5.20/src/perlobj.c:2177:55:  [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).
		DEBUGF(DUTILS4)("URLEsc: extra %d, len %d" , extra, strlen(instr) );
data/ifhp-3.5.20/src/perlobj.c:2179: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).
			SET_MAXLEN_STR_OBJ( p, extra + strlen(instr), MEMPASSED );
data/ifhp-3.5.20/src/perlobj.c:2186:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				str += strlen(str);
data/ifhp-3.5.20/src/perlobj.c:2270:61:  [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).
		DEBUGF(DUTILS4)("BackslashEsc: extra %d, len %d" , extra, strlen(instr) );
data/ifhp-3.5.20/src/perlobj.c:2272: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).
			SET_MAXLEN_STR_OBJ( p, extra + strlen(instr), MEMPASSED );
data/ifhp-3.5.20/src/perlobj.c:2556:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						int len = strlen( errmsg );
data/ifhp-3.5.20/src/plp_snprintf.c:533:28:  [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 safestrlen(s) ((s)?strlen(s):0)
data/ifhp-3.5.20/src/plp_snprintf.c:926: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).
	place = strlen(convert);
data/ifhp-3.5.20/src/plp_snprintf.c:980:2:  [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( formatstr, "%" );		/* 1 */
data/ifhp-3.5.20/src/plp_snprintf.c:984:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		sprintf( formatstr+strlen(formatstr), "%d", len ); /* 3 */
data/ifhp-3.5.20/src/plp_snprintf.c:987:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		sprintf( formatstr+strlen(formatstr), ".%d", precision ); /* 3 */
data/ifhp-3.5.20/src/plp_snprintf.c:990: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).
	sprintf( formatstr+strlen(formatstr), "%c", fmt );
data/ifhp-3.5.20/src/portable.h:334: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).
# define NLENGTH(dirent) strlen((dirent)->d_name)
data/ifhp-3.5.20/src/safemalloc.c:88:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	new = malloc_or_die( strlen (p) + 1, file, line );
data/ifhp-3.5.20/src/safemalloc.c:101:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int n = 1 + (s1?strlen(s1):0) + (s2?strlen(s2):0);
data/ifhp-3.5.20/src/safemalloc.c:101: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).
	int n = 1 + (s1?strlen(s1):0) + (s2?strlen(s2):0);
data/ifhp-3.5.20/src/safemalloc.c:118:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int n = 1 + (s1?strlen(s1):0) + (s2?strlen(s2):0);
data/ifhp-3.5.20/src/safemalloc.c:118: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).
	int n = 1 + (s1?strlen(s1):0) + (s2?strlen(s2):0);
data/ifhp-3.5.20/src/safemalloc.c:134:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int n = 1 + (s1?strlen(s1):0) + (s2?strlen(s2):0) + (s3?strlen(s3):0);
data/ifhp-3.5.20/src/safemalloc.c:134: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).
	int n = 1 + (s1?strlen(s1):0) + (s2?strlen(s2):0) + (s3?strlen(s3):0);
data/ifhp-3.5.20/src/safemalloc.c:134:58:  [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 n = 1 + (s1?strlen(s1):0) + (s2?strlen(s2):0) + (s3?strlen(s3):0);
data/ifhp-3.5.20/src/safemalloc.c:154:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int n = 1 + (s1?strlen(s1):0) + (s2?strlen(s2):0) + (s3?strlen(s3):0);
data/ifhp-3.5.20/src/safemalloc.c:154: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).
	int n = 1 + (s1?strlen(s1):0) + (s2?strlen(s2):0) + (s3?strlen(s3):0);
data/ifhp-3.5.20/src/safemalloc.c:154:58:  [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 n = 1 + (s1?strlen(s1):0) + (s2?strlen(s2):0) + (s3?strlen(s3):0);
data/ifhp-3.5.20/src/safemalloc.c:175:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int n = 1 + (s1?strlen(s1):0) + (s2?strlen(s2):0)
data/ifhp-3.5.20/src/safemalloc.c:175: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).
	int n = 1 + (s1?strlen(s1):0) + (s2?strlen(s2):0)
data/ifhp-3.5.20/src/safemalloc.c:176: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).
		+ (s3?strlen(s3):0) + (s4?strlen(s4):0);
data/ifhp-3.5.20/src/safemalloc.c:176:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		+ (s3?strlen(s3):0) + (s4?strlen(s4):0);
data/ifhp-3.5.20/src/safemalloc.c:195:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int n = 1 + (s1?strlen(s1):0) + (s2?strlen(s2):0)
data/ifhp-3.5.20/src/safemalloc.c:195: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).
	int n = 1 + (s1?strlen(s1):0) + (s2?strlen(s2):0)
data/ifhp-3.5.20/src/safemalloc.c:196: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).
		+ (s3?strlen(s3):0) + (s4?strlen(s4):0);
data/ifhp-3.5.20/src/safemalloc.c:196:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		+ (s3?strlen(s3):0) + (s4?strlen(s4):0);
data/ifhp-3.5.20/src/safemalloc.c:219:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int n = 1 + (s1?strlen(s1):0) + (s2?strlen(s2):0)
data/ifhp-3.5.20/src/safemalloc.c:219: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).
	int n = 1 + (s1?strlen(s1):0) + (s2?strlen(s2):0)
data/ifhp-3.5.20/src/safemalloc.c:220: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).
		+ (s3?strlen(s3):0) + (s4?strlen(s4):0) + (s5?strlen(s5):0);
data/ifhp-3.5.20/src/safemalloc.c:220:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		+ (s3?strlen(s3):0) + (s4?strlen(s4):0) + (s5?strlen(s5):0);
data/ifhp-3.5.20/src/safemalloc.c:220:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		+ (s3?strlen(s3):0) + (s4?strlen(s4):0) + (s5?strlen(s5):0);
data/ifhp-3.5.20/src/safemalloc.c:241:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int n = 1 + (s1?strlen(s1):0) + (s2?strlen(s2):0)
data/ifhp-3.5.20/src/safemalloc.c:241: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).
	int n = 1 + (s1?strlen(s1):0) + (s2?strlen(s2):0)
data/ifhp-3.5.20/src/safemalloc.c:242: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).
		+ (s3?strlen(s3):0) + (s4?strlen(s4):0) + (s5?strlen(s5):0);
data/ifhp-3.5.20/src/safemalloc.c:242:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		+ (s3?strlen(s3):0) + (s4?strlen(s4):0) + (s5?strlen(s5):0);
data/ifhp-3.5.20/src/safemalloc.c:242:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		+ (s3?strlen(s3):0) + (s4?strlen(s4):0) + (s5?strlen(s5):0);
data/ifhp-3.5.20/src/safestrutil.c:23: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).
	return( s1? strlen(s1) : 0 );
data/ifhp-3.5.20/src/safestrutil.c:258:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy( s1+size, s2, len-1 );
data/ifhp-3.5.20/src/safestrutil.c:268:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy( s1, s2, len );
data/ifhp-3.5.20/src/textps.c:493:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if( strlen(outbuffer) == 0 ) strcpy(outbuffer, "0" );
data/ifhp-3.5.20/src/textps.c:493:32:  [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.
  if( strlen(outbuffer) == 0 ) strcpy(outbuffer, "0" );
data/ifhp-3.5.20/src/textps.c:985:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = strlen(latin1[i]) + 2;
data/ifhp-3.5.20/src/textps.c:1048:15:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while ((c = getchar()) != EOF){
data/ifhp-3.5.20/src/textps.c:1105:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	i = len = strlen(msg);
data/ifhp-3.5.20/src/textps.c:1115: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).
	n = strlen(msg);

ANALYSIS SUMMARY:

Hits = 347
Lines analyzed = 19254 in approximately 0.63 seconds (30681 lines/second)
Physical Source Lines of Code (SLOC) = 15044
Hits@level = [0]  75 [1] 141 [2] 125 [3]   9 [4]  72 [5]   0
Hits@level+ = [0+] 422 [1+] 347 [2+] 206 [3+]  81 [4+]  72 [5+]   0
Hits/KSLOC@level+ = [0+] 28.0511 [1+] 23.0657 [2+] 13.6932 [3+] 5.38421 [4+] 4.78596 [5+]   0
Symlinks skipped = 1 (--allowlink overrides but see doc for security issue)
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.