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/pfqueue-0.5.6/config.h
Examining data/pfqueue-0.5.6/pfqhelp.h
Examining data/pfqueue-0.5.6/fe_ncurses.c
Examining data/pfqueue-0.5.6/fe_ncurses.h
Examining data/pfqueue-0.5.6/pfqmessage.h
Examining data/pfqueue-0.5.6/ncgui.c
Examining data/pfqueue-0.5.6/ncgui.h
Examining data/pfqueue-0.5.6/pfregex.h
Examining data/pfqueue-0.5.6/pfqlib.h
Examining data/pfqueue-0.5.6/pfqconfig.c
Examining data/pfqueue-0.5.6/pfqconfig.h
Examining data/pfqueue-0.5.6/fe_socket.c
Examining data/pfqueue-0.5.6/fe_socket.h
Examining data/pfqueue-0.5.6/pfqtcp.h
Examining data/pfqueue-0.5.6/libpfq/pfqlib.c
Examining data/pfqueue-0.5.6/libpfq/pfqlib_priv.h
Examining data/pfqueue-0.5.6/backends/pfq_exim.c
Examining data/pfqueue-0.5.6/backends/pfq_backend.h
Examining data/pfqueue-0.5.6/backends/pfq_service.c
Examining data/pfqueue-0.5.6/backends/pfq_service.h
Examining data/pfqueue-0.5.6/backends/pfq_postfix1.c
Examining data/pfqueue-0.5.6/backends/pfq_postfix2.c
Examining data/pfqueue-0.5.6/backends/pfq_socket.c

FINAL RESULTS:

data/pfqueue-0.5.6/backends/pfq_exim.c:126:6:  [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.
	p = popen ( buf, "r" );
data/pfqueue-0.5.6/backends/pfq_exim.c:135:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf ( exim_cmd, "%s/exim4", pfb_conf.command_path);
data/pfqueue-0.5.6/backends/pfq_exim.c:141:7:  [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.
		p = popen ( buf, "r" );
data/pfqueue-0.5.6/backends/pfq_exim.c:185:6:  [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.
	p = popen ( buf, "r" );
data/pfqueue-0.5.6/backends/pfq_exim.c:187: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 ( msg->from, PFBE_SERROR );
data/pfqueue-0.5.6/backends/pfq_exim.c:188: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 ( msg->to,   PFBE_SERROR );
data/pfqueue-0.5.6/backends/pfq_exim.c:196: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 ( msg->from, PFBE_SNOTFOUND );
data/pfqueue-0.5.6/backends/pfq_exim.c:197: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 ( msg->to,   PFBE_SNOTFOUND );
data/pfqueue-0.5.6/backends/pfq_exim.c:246:6:  [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.
	p = popen ( buf, "r" );
data/pfqueue-0.5.6/backends/pfq_exim.c:277:6:  [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.
	p = popen ( b, "r" );
data/pfqueue-0.5.6/backends/pfq_exim.c:311:2:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	system ( buf );
data/pfqueue-0.5.6/backends/pfq_postfix1.c:160:6:  [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.
	p = popen ( pconf, "r" );
data/pfqueue-0.5.6/backends/pfq_postfix1.c:210:6:  [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.
	p = popen ( buf, "r" );
data/pfqueue-0.5.6/backends/pfq_postfix1.c:212:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy ( msg->from, PFBE_SERROR );
data/pfqueue-0.5.6/backends/pfq_postfix1.c:213: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 ( msg->to,   PFBE_SERROR );
data/pfqueue-0.5.6/backends/pfq_postfix1.c:221: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 ( msg->from, PFBE_SNOTFOUND );
data/pfqueue-0.5.6/backends/pfq_postfix1.c:222: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 ( msg->to,   PFBE_SNOTFOUND );
data/pfqueue-0.5.6/backends/pfq_postfix1.c:240: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 ( msg->from, ENVELOPE_NULL_SENDER );
data/pfqueue-0.5.6/backends/pfq_postfix1.c:284:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf ( buf2, "%sdefer%s", buf, c+8 );
data/pfqueue-0.5.6/backends/pfq_postfix1.c:323:6:  [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.
	p = popen ( b, "r" );
data/pfqueue-0.5.6/backends/pfq_postfix1.c:358:2:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	system ( b );
data/pfqueue-0.5.6/backends/pfq_postfix2.c:187:7:  [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.
		p = popen ( pconf, "r" );
data/pfqueue-0.5.6/backends/pfq_postfix2.c:211:6:  [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.
	p = popen ( pconf, "r" );
data/pfqueue-0.5.6/backends/pfq_postfix2.c:261:6:  [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.
	p = popen ( buf, "r" );
data/pfqueue-0.5.6/backends/pfq_postfix2.c:263: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 ( msg->from, PFBE_SERROR );
data/pfqueue-0.5.6/backends/pfq_postfix2.c:264: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 ( msg->to,   PFBE_SERROR );
data/pfqueue-0.5.6/backends/pfq_postfix2.c:272: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 ( msg->from, PFBE_SNOTFOUND );
data/pfqueue-0.5.6/backends/pfq_postfix2.c:273: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 ( msg->to,   PFBE_SNOTFOUND );
data/pfqueue-0.5.6/backends/pfq_postfix2.c:291: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 ( msg->from, ENVELOPE_NULL_SENDER );
data/pfqueue-0.5.6/backends/pfq_postfix2.c:336:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf ( buf2, "%sdefer%s", buf, c+8 );
data/pfqueue-0.5.6/backends/pfq_postfix2.c:378:6:  [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.
	p = popen ( b, "r" );
data/pfqueue-0.5.6/backends/pfq_postfix2.c:412:2:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	system ( b );
data/pfqueue-0.5.6/backends/pfq_socket.c:164:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf ( buf, "%s %d\n", CMD_MSGID, n );
data/pfqueue-0.5.6/backends/pfq_socket.c:185:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf ( buf, "%s %s\n", CMD_PATH, msgid );
data/pfqueue-0.5.6/backends/pfq_socket.c:189: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 ( msg->path, PFBE_SERROR );
data/pfqueue-0.5.6/backends/pfq_socket.c:191: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 ( msg->path, buf+CMD_REPLY_LEN );
data/pfqueue-0.5.6/backends/pfq_socket.c:206:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf ( buf, "%s %s\n", CMD_FROM, msgid );
data/pfqueue-0.5.6/backends/pfq_socket.c:210: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 ( msg->from, PFBE_SERROR );
data/pfqueue-0.5.6/backends/pfq_socket.c:212:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy ( msg->from, buf+CMD_REPLY_LEN );
data/pfqueue-0.5.6/backends/pfq_socket.c:227:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf ( buf, "%s %s\n", CMD_TO, msgid );
data/pfqueue-0.5.6/backends/pfq_socket.c:231: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 ( msg->to, PFBE_SERROR );
data/pfqueue-0.5.6/backends/pfq_socket.c:233: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 ( msg->to, buf+CMD_REPLY_LEN );
data/pfqueue-0.5.6/backends/pfq_socket.c:249:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf ( buf, "%s %s\n", CMD_SUBJ, msgid );
data/pfqueue-0.5.6/backends/pfq_socket.c:253: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 ( msg->subj, PFBE_SERROR );
data/pfqueue-0.5.6/backends/pfq_socket.c:255: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 ( msg->subj, buf+CMD_REPLY_LEN );
data/pfqueue-0.5.6/backends/pfq_socket.c:270:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf ( buf, "%s %s\n", CMD_STATUS, msgid );
data/pfqueue-0.5.6/backends/pfq_socket.c:274: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 ( msg->stat, PFBE_SERROR );
data/pfqueue-0.5.6/backends/pfq_socket.c:276: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 ( msg->stat, buf+CMD_REPLY_LEN );
data/pfqueue-0.5.6/backends/pfq_socket.c:293:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf ( buf2, "%s %s\n", CMD_BODY, msgid );
data/pfqueue-0.5.6/backends/pfq_socket.c:296:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf ( buffer, "%s\n", buf2+CMD_REPLY_LEN+7 );
data/pfqueue-0.5.6/backends/pfq_socket.c:308:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf ( buf, "%s\n", CMD_NUMMSG );
data/pfqueue-0.5.6/backends/pfq_socket.c:322:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf ( buf, "%s\n", CMD_NUMQ );
data/pfqueue-0.5.6/backends/pfq_socket.c:337:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf ( buf, "%s %d\n", CMD_QNAME, q );
data/pfqueue-0.5.6/backends/pfq_socket.c:368:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		sprintf ( b, CMD_MSGDEL );
data/pfqueue-0.5.6/backends/pfq_socket.c:371:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		sprintf ( b, CMD_MSGHOLD );
data/pfqueue-0.5.6/backends/pfq_socket.c:374:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		sprintf ( b, CMD_MSGREL );
data/pfqueue-0.5.6/backends/pfq_socket.c:377:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		sprintf ( b, CMD_MSGREQ );
data/pfqueue-0.5.6/backends/pfq_socket.c:382:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf ( b2, "%s %s\n", b, msg );
data/pfqueue-0.5.6/backends/pfq_socket.c:409:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf ( buf, "%s %d\n", CMD_SETQ, q );
data/pfqueue-0.5.6/fe_ncurses.c:175:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf ( help_be,
data/pfqueue-0.5.6/fe_ncurses.c:671:4:  [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 ( msg_list[j].id, msg->id );
data/pfqueue-0.5.6/fe_socket.c:56:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf ( b );
data/pfqueue-0.5.6/fe_socket.c:84:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf ( buf, "%s: OK\n", CMD_REPLY );
data/pfqueue-0.5.6/fe_socket.c:94:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf ( cat_buf2, "%s: NOMSG\n", CMD_ERROR );
data/pfqueue-0.5.6/fe_socket.c:99:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf ( cat_buf2, "%s: %.6d,%s\n", CMD_REPLY, buflen, cat_buf );
data/pfqueue-0.5.6/fe_socket.c:101:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf ( cat_buf2, "%s: ERR\n", CMD_ERROR );
data/pfqueue-0.5.6/fe_socket.c:113:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf ( buf, "%s: NOMSG\n", CMD_ERROR );
data/pfqueue-0.5.6/fe_socket.c:119:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf ( buf, "%s: %s\n", CMD_REPLY, msg->from );
data/pfqueue-0.5.6/fe_socket.c:130:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf ( buf, "%s: NOMSG\n", CMD_ERROR );
data/pfqueue-0.5.6/fe_socket.c:136:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf ( buf, "%s: %s\n", CMD_REPLY, msg->stat );
data/pfqueue-0.5.6/fe_socket.c:147:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf ( buf, "%s: NOMSG\n", CMD_ERROR );
data/pfqueue-0.5.6/fe_socket.c:153:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf ( buf, "%s: %s\n", CMD_REPLY, msg->path );
data/pfqueue-0.5.6/fe_socket.c:164:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf ( buf, "%s: NOMSG\n", CMD_ERROR );
data/pfqueue-0.5.6/fe_socket.c:170:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf ( buf, "%s: %s\n", CMD_REPLY, msg->to );
data/pfqueue-0.5.6/fe_socket.c:181:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf ( buf, "%s: NOMSG\n", CMD_ERROR );
data/pfqueue-0.5.6/fe_socket.c:187:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf ( buf, "%s: %s\n", CMD_REPLY, msg->subj );
data/pfqueue-0.5.6/fe_socket.c:193:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf ( buf, "%s: %.05d\n", CMD_REPLY, pfql_num_msg(pfql_ctx) );
data/pfqueue-0.5.6/fe_socket.c:199:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf ( buf, "%s: %.05d\n", CMD_REPLY, pfql_num_queues(pfql_ctx) );
data/pfqueue-0.5.6/fe_socket.c:205:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf ( buf, "%s: %s\n", CMD_REPLY, pfql_queue_name(pfql_ctx,q) );
data/pfqueue-0.5.6/fe_socket.c:215:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf ( buf, "%s: NOMSG\n", CMD_ERROR );
data/pfqueue-0.5.6/fe_socket.c:217:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf ( buf, "%s: %s\n", CMD_REPLY, msg->id );
data/pfqueue-0.5.6/fe_socket.c:223:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf ( buf, "%s: %d\n", CMD_REPLY, pfql_queue_last_changed(pfql_ctx) );
data/pfqueue-0.5.6/fe_socket.c:231:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf ( buf, "%s: OK\n", CMD_REPLY );
data/pfqueue-0.5.6/fe_socket.c:241:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf ( buf, "%s: EMPTY\n", CMD_REPLY );
data/pfqueue-0.5.6/fe_socket.c:275:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf ( buf );
data/pfqueue-0.5.6/libpfq/pfqlib.c:448:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf ( buf, "%s/libpfq_%s.so.%s", ctx->pfql_conf.backends_path, be, PFQ_SONAME );
data/pfqueue-0.5.6/libpfq/pfqlib.c:450:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf ( buf, "%s/libpfq_%s.so.%s", PFBEDIR, be, PFQ_SONAME );
data/pfqueue-0.5.6/libpfq/pfqlib.c:458:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf ( buf, "%s/pfqueue/libpfq_%s.so", ctx->pfql_conf.backends_path, be );
data/pfqueue-0.5.6/libpfq/pfqlib.c:460:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf ( buf, "pfqueue/libpfq_%s.so", be );
data/pfqueue-0.5.6/libpfq/pfqlib.c:617: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 ( ctx->pfqbe_getconf()->config_path, c );
data/pfqueue-0.5.6/libpfq/pfqlib.c:621: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 ( ctx->pfqbe_getconf()->command_path, c );
data/pfqueue-0.5.6/libpfq/pfqlib.c:684: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 ( ctx->pfqbe_getconf()->host, ctx->pfql_conf.remote_host );
data/pfqueue-0.5.6/libpfq/pfqlib.c:693: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 ( ctx->pfqbe_getconf()->config_path, ctx->pfql_conf.backend_config );
data/pfqueue-0.5.6/libpfq/pfqlib.c:694: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 ( ctx->pfqbe_getconf()->command_path,ctx->pfql_conf.backend_progs );
data/pfqueue-0.5.6/pfqconfig.c:24: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 ( b, b2 );
data/pfqueue-0.5.6/pfqconfig.c:51: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 ( opt, tmp );
data/pfqueue-0.5.6/pfqconfig.c:54: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 ( val, tmp );
data/pfqueue-0.5.6/pfqconfig.c:58:4:  [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 ( conf->backends_path, val );
data/pfqueue-0.5.6/pfqconfig.c:60:4:  [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 ( conf->backend_name, val );
data/pfqueue-0.5.6/pfqconfig.c:62:4:  [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 ( conf->backend_config, val );
data/pfqueue-0.5.6/pfqconfig.c:64:4:  [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 ( conf->backend_progs, val );
data/pfqueue-0.5.6/pfqconfig.c:98:4:  [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 ( conf->remote_host, val );
data/pfqueue-0.5.6/pfqconfig.c:128:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf ( b, "%s/.pfqueue", getenv("HOME") );
data/pfqueue-0.5.6/fe_ncurses.c:1024:9:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		opt = getopt ( argc, argv, "p:c:r:B:b:q:s:m:l:ehvn" );
data/pfqueue-0.5.6/fe_socket.c:468:9:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		opt = getopt ( argc, argv, "B:b:q:s:m:l:ehvn" );
data/pfqueue-0.5.6/pfqconfig.c:128:30:  [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.
	sprintf ( b, "%s/.pfqueue", getenv("HOME") );
data/pfqueue-0.5.6/backends/pfq_backend.h:39: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	command_path[200];	/* path to executables */
data/pfqueue-0.5.6/backends/pfq_backend.h:40: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	config_path[200];	/* path to config */
data/pfqueue-0.5.6/backends/pfq_backend.h:43: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	version[200];		/* version of mta to use */
data/pfqueue-0.5.6/backends/pfq_backend.h:44:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	host[200];		/* remote host (only for socket backend) */
data/pfqueue-0.5.6/backends/pfq_exim.c:15: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 spool_dir[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_exim.c:16: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 exim_cmd[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_exim.c:17: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 exim_conf[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_exim.c:59: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 full_path[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_exim.c:81:5:  [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 ( msg->id, dir->d_name, l-2 );
data/pfqueue-0.5.6/backends/pfq_exim.c:104: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[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_exim.c:111:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy ( exim_cmd, "exim");
data/pfqueue-0.5.6/backends/pfq_exim.c:137:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy ( exim_cmd, "exim4");
data/pfqueue-0.5.6/backends/pfq_exim.c:160: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 pbuf[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_exim.c:169: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[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_exim.c:208:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
				strcpy ( msg->from, "Null sender" );
data/pfqueue-0.5.6/backends/pfq_exim.c:235: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[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_exim.c:248:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy ( msg->stat, "cant popen" );
data/pfqueue-0.5.6/backends/pfq_exim.c:254:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy ( msg->stat, "Active" );
data/pfqueue-0.5.6/backends/pfq_exim.c:257:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy ( msg->stat, "Frozen" );
data/pfqueue-0.5.6/backends/pfq_exim.c:265: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 b[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_exim.c:289: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 b[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_exim.c:290: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 buf[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_exim.c:294:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy ( b, "-Mrm" );
data/pfqueue-0.5.6/backends/pfq_exim.c:297:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy ( b, "-Mf" );
data/pfqueue-0.5.6/backends/pfq_exim.c:300:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy ( b, "-Mt" );
data/pfqueue-0.5.6/backends/pfq_exim.c:303:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy ( b, "-M" );
data/pfqueue-0.5.6/backends/pfq_postfix1.c:19: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 queue_path[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_postfix1.c:20: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 config_path[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_postfix1.c:21: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 pftools_path[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_postfix1.c:22: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 postconf_path[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_postfix1.c:23: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 postsuper_path[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_postfix1.c:24: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 postcat_path[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_postfix1.c: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 full_path[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_postfix1.c:118: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 pconf[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_postfix1.c:181: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[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_postfix1.c:190: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[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_postfix1.c:266: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[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_postfix1.c:267: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 buf2[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_postfix1.c:286:7:  [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).
		p = fopen ( buf2, "r" );
data/pfqueue-0.5.6/backends/pfq_postfix1.c:288:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy ( msg->stat, "Deferred, no reason" );
data/pfqueue-0.5.6/backends/pfq_postfix1.c:296:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy ( msg->stat, "Active" );
data/pfqueue-0.5.6/backends/pfq_postfix1.c:298:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy ( msg->stat, "Held" );
data/pfqueue-0.5.6/backends/pfq_postfix1.c:300:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy ( msg->stat, "Incoming" );
data/pfqueue-0.5.6/backends/pfq_postfix1.c:307: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 b[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_postfix1.c:333: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 b[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_postfix2.c:26: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 queue_path[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_postfix2.c:27: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 config_path[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_postfix2.c:28: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 pftools_path[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_postfix2.c:29: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 postconf_path[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_postfix2.c:30: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 postsuper_path[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_postfix2.c:31: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 postcat_path[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_postfix2.c:84: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 full_path[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_postfix2.c:125: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 pconf[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_postfix2.c:126: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[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_postfix2.c:190:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf ( buf, "2.2" );
data/pfqueue-0.5.6/backends/pfq_postfix2.c:232:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_postfix2.c:241: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[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_postfix2.c:318: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[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_postfix2.c:319: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 buf2[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_postfix2.c:338:7:  [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).
		p = fopen ( buf2, "r" );
data/pfqueue-0.5.6/backends/pfq_postfix2.c:340:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy ( msg->stat, "Deferred, no reason" );
data/pfqueue-0.5.6/backends/pfq_postfix2.c:351:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy ( msg->stat, "Active" );
data/pfqueue-0.5.6/backends/pfq_postfix2.c:353:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy ( msg->stat, "Held" );
data/pfqueue-0.5.6/backends/pfq_postfix2.c:355:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy ( msg->stat, "Incoming" );
data/pfqueue-0.5.6/backends/pfq_postfix2.c:362: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 b[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_postfix2.c:387: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 b[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_service.c:73: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 b2[PRIV_BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_service.c:81:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy ( b2, buf, bufsize );
data/pfqueue-0.5.6/backends/pfq_service.c:82:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy ( buf, b2+wlen, bufsize-wlen );
data/pfqueue-0.5.6/backends/pfq_socket.c:116: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 ( (struct sockaddr*)&svra.sin_addr.s_addr, 
data/pfqueue-0.5.6/backends/pfq_socket.c:160: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[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_socket.c:176: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[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_socket.c:197: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[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_socket.c:218: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[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_socket.c:240: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[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_socket.c:261: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[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_socket.c:304: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[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_socket.c:314:12:  [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).
		return ( atoi(buf+CMD_REPLY_LEN) );
data/pfqueue-0.5.6/backends/pfq_socket.c:318: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[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_socket.c:329:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		return atoi(buf+CMD_REPLY_LEN);
data/pfqueue-0.5.6/backends/pfq_socket.c:333: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 buf[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_socket.c:347: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[255];
data/pfqueue-0.5.6/backends/pfq_socket.c:363: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 b[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_socket.c:364: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 b2[BUF_SIZE];
data/pfqueue-0.5.6/backends/pfq_socket.c:405: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[BUF_SIZE];
data/pfqueue-0.5.6/fe_ncurses.c:514: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 lines[MSG_MAX_ROWS][MSG_MAX_COLS];
data/pfqueue-0.5.6/fe_ncurses.c:1042:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				mm = atoi ( optarg );
data/pfqueue-0.5.6/fe_ncurses.c:1070:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				mm = atoi (optarg);
data/pfqueue-0.5.6/fe_ncurses.c:1076:23:  [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).
				half_delay_time = atoi ( optarg );
data/pfqueue-0.5.6/fe_ncurses.c:1083:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				mm = atoi ( optarg );
data/pfqueue-0.5.6/fe_ncurses.c:1097:42:  [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).
				pfql_getconf(pfql_ctx)->scan_delay = atoi(optarg);
data/pfqueue-0.5.6/fe_ncurses.h:48: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 id[20];
data/pfqueue-0.5.6/fe_socket.c:82: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[BUF_SIZE];
data/pfqueue-0.5.6/fe_socket.c:90: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 cat_buf2[CAT_BUF_SIZE];
data/pfqueue-0.5.6/fe_socket.c:107: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[BUF_SIZE];
data/pfqueue-0.5.6/fe_socket.c:124: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[BUF_SIZE];
data/pfqueue-0.5.6/fe_socket.c:141: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[BUF_SIZE];
data/pfqueue-0.5.6/fe_socket.c:158: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[BUF_SIZE];
data/pfqueue-0.5.6/fe_socket.c:175: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[BUF_SIZE];
data/pfqueue-0.5.6/fe_socket.c:192: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[BUF_SIZE];
data/pfqueue-0.5.6/fe_socket.c:198: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[BUF_SIZE];
data/pfqueue-0.5.6/fe_socket.c:204: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[BUF_SIZE];
data/pfqueue-0.5.6/fe_socket.c:211: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[BUF_SIZE];
data/pfqueue-0.5.6/fe_socket.c:222: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[BUF_SIZE];
data/pfqueue-0.5.6/fe_socket.c:229: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[BUF_SIZE];
data/pfqueue-0.5.6/fe_socket.c:236: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[2048];
data/pfqueue-0.5.6/fe_socket.c:262: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[BUF_SIZE];
data/pfqueue-0.5.6/fe_socket.c:291:8:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			i = atoi(buf+strlen(CMD_QNAME)+1 );
data/pfqueue-0.5.6/fe_socket.c:297:8:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			i = atoi(buf+strlen(CMD_SETQ)+1 );
data/pfqueue-0.5.6/fe_socket.c:303:8:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			i = atoi(buf+strlen(CMD_MSGID)+1 );
data/pfqueue-0.5.6/fe_socket.c:477:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				mm = atoi ( optarg );
data/pfqueue-0.5.6/fe_socket.c:505:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				mm = atoi (optarg);
data/pfqueue-0.5.6/fe_socket.c:511:23:  [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).
				half_delay_time = atoi ( optarg );
data/pfqueue-0.5.6/fe_socket.c:518:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				mm = atoi ( optarg );
data/pfqueue-0.5.6/fe_socket.c:532:42:  [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).
				pfql_getconf(pfql_ctx)->scan_delay = atoi(optarg);
data/pfqueue-0.5.6/libpfq/pfqlib.c:445: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[BUF_SIZE];
data/pfqueue-0.5.6/libpfq/pfqlib.c:588: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 ( ctx->pfql_conf.backends_path, "%c", 0 );
data/pfqueue-0.5.6/libpfq/pfqlib.c:589: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 ( ctx->pfql_conf.backend_name, "autodetect" );
data/pfqueue-0.5.6/libpfq/pfqlib.c:593: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 ( ctx->pfql_conf.remote_host, "%c", 0 );
data/pfqueue-0.5.6/libpfq/pfqlib.c:656:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy ( ctx->pfql_conf.backend_name, "exim" );
data/pfqueue-0.5.6/libpfq/pfqlib.c:659:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy ( ctx->pfql_conf.backend_name, "postfix2" );
data/pfqueue-0.5.6/libpfq/pfqlib.c:663:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy ( ctx->pfql_conf.backend_name, "postfix1" );
data/pfqueue-0.5.6/pfqconfig.c:66:8:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			l = atol(val);
data/pfqueue-0.5.6/pfqconfig.c:71:8:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			l = atol(val);
data/pfqueue-0.5.6/pfqconfig.c:76:8:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			l = atol(val);
data/pfqueue-0.5.6/pfqconfig.c:87:8:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			l = atol(val);
data/pfqueue-0.5.6/pfqconfig.c:110:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	cfg = fopen ( fname, "r" );
data/pfqueue-0.5.6/pfqlib.h:27: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  backends_path[200];	/* Path to backends 					*/
data/pfqueue-0.5.6/pfqlib.h:28: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  backend_name[200];	/* Backend to use 					*/
data/pfqueue-0.5.6/pfqlib.h:29: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  backend_config[200];	/* Backend configuration path 				*/
data/pfqueue-0.5.6/pfqlib.h:30: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  backend_progs[200];	/* Backend bin bath 					*/
data/pfqueue-0.5.6/pfqlib.h: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  remote_host[200];		/* Remote host (for socket backend only) 		*/
data/pfqueue-0.5.6/pfqmessage.h:24: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  id   [20];
data/pfqueue-0.5.6/pfqmessage.h:25: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  from [100];
data/pfqueue-0.5.6/pfqmessage.h:26: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  to   [100];
data/pfqueue-0.5.6/pfqmessage.h:27: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  subj [100];
data/pfqueue-0.5.6/pfqmessage.h:28: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 [200];
data/pfqueue-0.5.6/pfqmessage.h:29: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  stat [200];
data/pfqueue-0.5.6/pfqmessage.h:37: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  id   [20];
data/pfqueue-0.5.6/pfqmessage.h:38: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 [200];
data/pfqueue-0.5.6/backends/pfq_exim.c:78: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).
			l = strlen(dir->d_name);
data/pfqueue-0.5.6/backends/pfq_exim.c:84:71:  [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).
				msg->changed = strncmp (dir->d_name, ext_queue[NUMMSG_THREAD].id, strlen(dir->d_name)-2 );
data/pfqueue-0.5.6/backends/pfq_exim.c:97: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 ( pfb_conf.command_path, "" );
data/pfqueue-0.5.6/backends/pfq_exim.c:98: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 ( pfb_conf.config_path, "" );
data/pfqueue-0.5.6/backends/pfq_exim.c:112: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 ( exim_conf, "" );
data/pfqueue-0.5.6/backends/pfq_exim.c:113: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 ( spool_dir, "" );
data/pfqueue-0.5.6/backends/pfq_exim.c:118: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(pfb_conf.command_path ) )
data/pfqueue-0.5.6/backends/pfq_exim.c:120: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(pfb_conf.config_path) )
data/pfqueue-0.5.6/backends/pfq_exim.c:133: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(spool_dir) ) {
data/pfqueue-0.5.6/backends/pfq_exim.c:134: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(pfb_conf.command_path) )
data/pfqueue-0.5.6/backends/pfq_exim.c:147: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(spool_dir) ) {
data/pfqueue-0.5.6/backends/pfq_exim.c:199: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).
	l1 = strlen(HEADER_FROM);
data/pfqueue-0.5.6/backends/pfq_exim.c:200: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).
	l2 = strlen(HEADER_TO);
data/pfqueue-0.5.6/backends/pfq_exim.c:207:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if ( !strlen(msg->from) )
data/pfqueue-0.5.6/backends/pfq_exim.c:215: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).
		if ( !f3 && !strncmp ( buf+5, HEADER_SUBJECT, strlen(HEADER_SUBJECT) ) ) {
data/pfqueue-0.5.6/backends/pfq_exim.c:216: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).
			memcpy ( msg->subj, buf+strlen(HEADER_SUBJECT)+5, sizeof(msg->subj) );
data/pfqueue-0.5.6/backends/pfq_exim.c:225: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).
	if ( (!dirty) && strlen(msg->to) && strlen(msg->from) )
data/pfqueue-0.5.6/backends/pfq_exim.c:225: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).
	if ( (!dirty) && strlen(msg->to) && strlen(msg->from) )
data/pfqueue-0.5.6/backends/pfq_postfix1.c:112: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 ( pfb_conf.command_path, "" );
data/pfqueue-0.5.6/backends/pfq_postfix1.c:113: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 ( pfb_conf.config_path, "" );
data/pfqueue-0.5.6/backends/pfq_postfix1.c:136: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(pfb_conf.command_path) )
data/pfqueue-0.5.6/backends/pfq_postfix1.c:139: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(pfb_conf.config_path) ) {
data/pfqueue-0.5.6/backends/pfq_postfix1.c:145: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 ( pftools_path ) ) {
data/pfqueue-0.5.6/backends/pfq_postfix1.c:239:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if ( !strlen(msg->from) )
data/pfqueue-0.5.6/backends/pfq_postfix1.c:257: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).
	if ( (!dirty) && strlen(msg->to) && strlen(msg->from) )
data/pfqueue-0.5.6/backends/pfq_postfix1.c:257: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).
	if ( (!dirty) && strlen(msg->to) && strlen(msg->from) )
data/pfqueue-0.5.6/backends/pfq_postfix1.c:283:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy ( buf, msg->path, c - msg->path );
data/pfqueue-0.5.6/backends/pfq_postfix2.c:119: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 ( pfb_conf.command_path, "" );
data/pfqueue-0.5.6/backends/pfq_postfix2.c:120: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 ( pfb_conf.config_path, "" );
data/pfqueue-0.5.6/backends/pfq_postfix2.c:145: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(pfb_conf.command_path) )
data/pfqueue-0.5.6/backends/pfq_postfix2.c:148: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(pfb_conf.config_path) ) {
data/pfqueue-0.5.6/backends/pfq_postfix2.c:152: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(pfb_conf.version) ) {
data/pfqueue-0.5.6/backends/pfq_postfix2.c:167: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 ( pftools_path ) ) {
data/pfqueue-0.5.6/backends/pfq_postfix2.c:181: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).
		has_configpath = strlen(config_path);
data/pfqueue-0.5.6/backends/pfq_postfix2.c:290:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if ( !strlen(msg->from) )
data/pfqueue-0.5.6/backends/pfq_postfix2.c:308: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).
	if ( (!dirty) && strlen(msg->to) && strlen(msg->from) )
data/pfqueue-0.5.6/backends/pfq_postfix2.c:308: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).
	if ( (!dirty) && strlen(msg->to) && strlen(msg->from) )
data/pfqueue-0.5.6/backends/pfq_postfix2.c:335:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy ( buf, msg->path, c - msg->path );
data/pfqueue-0.5.6/backends/pfq_service.c:24: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 ( ent->d_type==DT_UNKNOWN && strlen(path) ) {
data/pfqueue-0.5.6/backends/pfq_service.c:43: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 ( ent->d_type==DT_UNKNOWN && strlen(path) ) {
data/pfqueue-0.5.6/backends/pfq_service.c:63:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		i = strlen ( buf );
data/pfqueue-0.5.6/backends/pfq_service.c:75: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).
	wlen = strlen ( w );
data/pfqueue-0.5.6/backends/pfq_socket.c:46: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).
	write ( s, b, strlen(b) );
data/pfqueue-0.5.6/backends/pfq_socket.c:53:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rd = read ( s, b, l );
data/pfqueue-0.5.6/backends/pfq_socket.c:99: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 ( pfb_conf.command_path, "" );
data/pfqueue-0.5.6/backends/pfq_socket.c:100: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 ( pfb_conf.config_path, "" );
data/pfqueue-0.5.6/backends/pfq_socket.c:168:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy ( b, PFBE_SERROR, len );
data/pfqueue-0.5.6/backends/pfq_socket.c:170:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy ( b, buf+CMD_REPLY_LEN, len );
data/pfqueue-0.5.6/backends/pfq_socket.c:300: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).
	return strlen(buf2);
data/pfqueue-0.5.6/backends/pfq_socket.c:356:53:  [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).
		msg->changed = strncmp( msg->id, ext_queue[i].id, strlen(msg->id) );
data/pfqueue-0.5.6/fe_ncurses.c:148:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy ( tmp, regexps+2, REGEXP_LEN );
data/pfqueue-0.5.6/fe_ncurses.c:149:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy ( regexps, tmp, REGEXP_LEN );
data/pfqueue-0.5.6/fe_ncurses.c:662:63:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		while ( pfql_ctx->pfql_status.queue_status!=PFQL_Q_IDLE ) { usleep(5000); }
data/pfqueue-0.5.6/fe_socket.c:55: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).
	write ( s, b, strlen(b) );
data/pfqueue-0.5.6/fe_socket.c:214: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 ( (!msg) || !strlen(msg->id) )
data/pfqueue-0.5.6/fe_socket.c:247:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	write ( cs, CMD_REPLY, strlen(CMD_REPLY) );
data/pfqueue-0.5.6/fe_socket.c:250: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).
		write ( cs, msg->id, strlen(msg->id) );
data/pfqueue-0.5.6/fe_socket.c:258: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).
	return (!strncmp(b,c,strlen(c)));
data/pfqueue-0.5.6/fe_socket.c:271:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		bl = read ( cs, buf, sizeof(buf) );
data/pfqueue-0.5.6/fe_socket.c:291: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).
			i = atoi(buf+strlen(CMD_QNAME)+1 );
data/pfqueue-0.5.6/fe_socket.c:297: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).
			i = atoi(buf+strlen(CMD_SETQ)+1 );
data/pfqueue-0.5.6/fe_socket.c:303: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).
			i = atoi(buf+strlen(CMD_MSGID)+1 );
data/pfqueue-0.5.6/fe_socket.c:314:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			client_send_status( cs, buf+strlen(CMD_STATUS)+1 );
data/pfqueue-0.5.6/fe_socket.c:319:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			client_send_path( cs, buf+strlen(CMD_PATH)+1 );
data/pfqueue-0.5.6/fe_socket.c:324:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			client_send_from( cs, buf+strlen(CMD_FROM)+1 );
data/pfqueue-0.5.6/fe_socket.c:329: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).
			client_send_to( cs, buf+strlen(CMD_TO)+1 );
data/pfqueue-0.5.6/fe_socket.c:334:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			client_send_subj( cs, buf+strlen(CMD_SUBJ)+1 );
data/pfqueue-0.5.6/fe_socket.c:339:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			client_send_body( cs, buf+strlen(CMD_BODY)+1 );
data/pfqueue-0.5.6/fe_socket.c:348:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			msg_action ( cs, buf+strlen(CMD_MSGDEL)+1, MSG_DELETE );
data/pfqueue-0.5.6/fe_socket.c:353:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			msg_action ( cs, buf+strlen(CMD_MSGREL)+1, MSG_RELEASE );
data/pfqueue-0.5.6/fe_socket.c:358:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			msg_action ( cs, buf+strlen(CMD_MSGREQ)+1, MSG_REQUEUE );
data/pfqueue-0.5.6/fe_socket.c:363:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			msg_action ( cs, buf+strlen(CMD_MSGHOLD)+1, MSG_HOLD );
data/pfqueue-0.5.6/libpfq/pfqlib.c:254:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep ( 200000 );
data/pfqueue-0.5.6/libpfq/pfqlib.c:348:63:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	while ( ctx->dig_lastqueue != ctx->pfql_status.cur_queue ) { usleep ( 200000 ); };
data/pfqueue-0.5.6/libpfq/pfqlib.c:447: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(ctx->pfql_conf.backends_path) )
data/pfqueue-0.5.6/libpfq/pfqlib.c:457: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(ctx->pfql_conf.backends_path) )

ANALYSIS SUMMARY:

Hits = 322
Lines analyzed = 5032 in approximately 0.15 seconds (32954 lines/second)
Physical Source Lines of Code (SLOC) = 3905
Hits@level = [0]  97 [1]  76 [2] 140 [3]   3 [4] 103 [5]   0
Hits@level+ = [0+] 419 [1+] 322 [2+] 246 [3+] 106 [4+] 103 [5+]   0
Hits/KSLOC@level+ = [0+] 107.298 [1+] 82.4584 [2+] 62.9962 [3+] 27.1447 [4+] 26.3764 [5+]   0
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.