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/ulogd2-2.0.7/util/db.c
Examining data/ulogd2-2.0.7/util/printflow.c
Examining data/ulogd2-2.0.7/util/printpkt.c
Examining data/ulogd2-2.0.7/input/sum/ulogd_inpflow_NFACCT.c
Examining data/ulogd2-2.0.7/input/packet/ulogd_inppkt_NFLOG.c
Examining data/ulogd2-2.0.7/input/packet/ulogd_inppkt_UNIXSOCK.c
Examining data/ulogd2-2.0.7/input/packet/ulogd_inppkt_ULOG.c
Examining data/ulogd2-2.0.7/input/flow/ulogd_inpflow_NFCT.c
Examining data/ulogd2-2.0.7/libipulog/libipulog.c
Examining data/ulogd2-2.0.7/filter/ulogd_filter_HWHDR.c
Examining data/ulogd2-2.0.7/filter/raw2packet/ulogd_raw2packet_BASE.c
Examining data/ulogd2-2.0.7/filter/ulogd_filter_IP2HBIN.c
Examining data/ulogd2-2.0.7/filter/ulogd_filter_IP2BIN.c
Examining data/ulogd2-2.0.7/filter/ulogd_filter_MARK.c
Examining data/ulogd2-2.0.7/filter/ulogd_filter_PRINTPKT.c
Examining data/ulogd2-2.0.7/filter/ulogd_filter_PWSNIFF.c
Examining data/ulogd2-2.0.7/filter/ulogd_filter_IP2STR.c
Examining data/ulogd2-2.0.7/filter/ulogd_filter_IFINDEX.c
Examining data/ulogd2-2.0.7/filter/ulogd_filter_PRINTFLOW.c
Examining data/ulogd2-2.0.7/include/libipulog/libipulog.h
Examining data/ulogd2-2.0.7/include/ulogd/timer.h
Examining data/ulogd2-2.0.7/include/ulogd/linuxlist.h
Examining data/ulogd2-2.0.7/include/ulogd/jhash.h
Examining data/ulogd2-2.0.7/include/ulogd/printpkt.h
Examining data/ulogd2-2.0.7/include/ulogd/addr.h
Examining data/ulogd2-2.0.7/include/ulogd/conffile.h
Examining data/ulogd2-2.0.7/include/ulogd/hash.h
Examining data/ulogd2-2.0.7/include/ulogd/common.h
Examining data/ulogd2-2.0.7/include/ulogd/ulogd.h
Examining data/ulogd2-2.0.7/include/ulogd/printflow.h
Examining data/ulogd2-2.0.7/include/ulogd/ipfix_protocol.h
Examining data/ulogd2-2.0.7/include/ulogd/linux_rbtree.h
Examining data/ulogd2-2.0.7/include/ulogd/slist.h
Examining data/ulogd2-2.0.7/include/ulogd/db.h
Examining data/ulogd2-2.0.7/include/linux/netfilter/nfnetlink_acct.h
Examining data/ulogd2-2.0.7/include/linux/netfilter_ipv4/ipt_ULOG.h
Examining data/ulogd2-2.0.7/output/ulogd_output_GRAPHITE.c
Examining data/ulogd2-2.0.7/output/ulogd_output_JSON.c
Examining data/ulogd2-2.0.7/output/ulogd_output_XML.c
Examining data/ulogd2-2.0.7/output/ulogd_output_GPRINT.c
Examining data/ulogd2-2.0.7/output/ulogd_output_SYSLOG.c
Examining data/ulogd2-2.0.7/output/mysql/ulogd_output_MYSQL.c
Examining data/ulogd2-2.0.7/output/ulogd_output_LOGEMU.c
Examining data/ulogd2-2.0.7/output/dbi/ulogd_output_DBI.c
Examining data/ulogd2-2.0.7/output/pgsql/ulogd_output_PGSQL.c
Examining data/ulogd2-2.0.7/output/ulogd_output_NACCT.c
Examining data/ulogd2-2.0.7/output/ulogd_output_OPRINT.c
Examining data/ulogd2-2.0.7/output/pcap/ulogd_output_PCAP.c
Examining data/ulogd2-2.0.7/output/sqlite3/ulogd_output_SQLITE3.c
Examining data/ulogd2-2.0.7/src/rbtree.c
Examining data/ulogd2-2.0.7/src/hash.c
Examining data/ulogd2-2.0.7/src/select.c
Examining data/ulogd2-2.0.7/src/timer.c
Examining data/ulogd2-2.0.7/src/addr.c
Examining data/ulogd2-2.0.7/src/ulogd.c
Examining data/ulogd2-2.0.7/src/conffile.c

FINAL RESULTS:

data/ulogd2-2.0.7/input/packet/ulogd_inppkt_UNIXSOCK.c:531:6:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	if (chmod(socket_path, perms_ce(upi->config_kset).u.value) < 0) {
data/ulogd2-2.0.7/input/packet/ulogd_inppkt_UNIXSOCK.c:558:6:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
	if (chown(socket_path, uid, gid) < 0) {
data/ulogd2-2.0.7/output/dbi/ulogd_output_DBI.c:27:28:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define DEBUGP(x, args...)	fprintf(stderr, x, ## args)
data/ulogd2-2.0.7/output/mysql/ulogd_output_MYSQL.c:51:28:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define DEBUGP(x, args...)	fprintf(stderr, x, ## args)
data/ulogd2-2.0.7/output/pgsql/ulogd_output_PGSQL.c:25:28:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define DEBUGP(x, args...)	fprintf(stderr, x, ## args)
data/ulogd2-2.0.7/output/pgsql/ulogd_output_PGSQL.c:103:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(pgbuf, PGSQL_HAVE_NAMESPACE_TEMPLATE,
data/ulogd2-2.0.7/output/pgsql/ulogd_output_PGSQL.c:154:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(pgbuf, sizeof(pgbuf)-1,
data/ulogd2-2.0.7/output/pgsql/ulogd_output_PGSQL.c:159:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(pgbuf, sizeof(pgbuf)-1, PGSQL_GETCOLUMN_TEMPLATE,
data/ulogd2-2.0.7/output/pgsql/ulogd_output_PGSQL.c:263:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat(connstr, server);
data/ulogd2-2.0.7/output/pgsql/ulogd_output_PGSQL.c:269:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat(connstr, portbuf);
data/ulogd2-2.0.7/output/pgsql/ulogd_output_PGSQL.c:273:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(connstr, db);
data/ulogd2-2.0.7/output/pgsql/ulogd_output_PGSQL.c:275:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(connstr, user);
data/ulogd2-2.0.7/output/pgsql/ulogd_output_PGSQL.c:279:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat(connstr, pass);
data/ulogd2-2.0.7/output/sqlite3/ulogd_output_SQLITE3.c:44:28:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define DEBUGP(x, args...)	fprintf(stderr, x, ## args)
data/ulogd2-2.0.7/output/sqlite3/ulogd_output_SQLITE3.c:230:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(priv->stmt, "insert into %s (", table_ce(pi));
data/ulogd2-2.0.7/output/sqlite3/ulogd_output_SQLITE3.c:239:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(stmt_pos, "%s,", buf);
data/ulogd2-2.0.7/output/ulogd_output_NACCT.c:129:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(buf, sizeof(buf),
data/ulogd2-2.0.7/output/ulogd_output_NACCT.c:140:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(buf, sizeof(buf),
data/ulogd2-2.0.7/src/conffile.c:97:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access(file, R_OK) != 0) {
data/ulogd2-2.0.7/src/conffile.c:111: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(fname, file);
data/ulogd2-2.0.7/src/conffile.c:214:7:  [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(ce->u.string, args);
data/ulogd2-2.0.7/src/ulogd.c:71:33:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define DEBUGP(format, args...) fprintf(stderr, format, ## args)
data/ulogd2-2.0.7/src/ulogd.c:549:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vfprintf(outfd, format, ap);
data/ulogd2-2.0.7/src/ulogd.c:556:4:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			vfprintf(stderr, format, ap);
data/ulogd2-2.0.7/src/ulogd.c:1453: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(COPYRIGHT);
data/ulogd2-2.0.7/src/ulogd.c:1516: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(COPYRIGHT);
data/ulogd2-2.0.7/util/db.c:105:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(mi->stmt, "insert into %s.%s (", mi->schema, table);
data/ulogd2-2.0.7/util/db.c:107:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(mi->stmt, "insert into %s (", table);
data/ulogd2-2.0.7/util/db.c:110:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(mi->stmt, "%s (", procedure);
data/ulogd2-2.0.7/util/db.c:121:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(stmt_val, "%s,", buf);
data/ulogd2-2.0.7/util/db.c:128:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(mi->stmt, "CALL %s(", procedure);
data/ulogd2-2.0.7/util/db.c:130:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(mi->stmt, "SELECT %s(", procedure);
data/ulogd2-2.0.7/util/db.c:386:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(stmt_ins, "%s,", (char *) res->u.value.ptr);
data/ulogd2-2.0.7/util/printflow.c:141:14:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		buf_cur += sprintf(buf_cur, label"=%" pp_pri(type) " ", ikey_get_##type(&res[x]));
data/ulogd2-2.0.7/util/printflow.c:164:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		buf_cur += sprintf(buf_cur,
data/ulogd2-2.0.7/util/printflow.c:169:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		buf_cur += sprintf(buf_cur,
data/ulogd2-2.0.7/util/printflow.c:215:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		buf_cur += sprintf(buf_cur,
data/ulogd2-2.0.7/util/printflow.c:220:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		buf_cur += sprintf(buf_cur,
data/ulogd2-2.0.7/util/printpkt.c:182:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		buf_cur += sprintf(buf_cur, "PROTO=%s ",
data/ulogd2-2.0.7/util/printpkt.c:205:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		buf_cur += sprintf(buf_cur, "SRC=%s ",
data/ulogd2-2.0.7/util/printpkt.c:209:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		buf_cur += sprintf(buf_cur, "DST=%s ",
data/ulogd2-2.0.7/util/printpkt.c:268:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			buf_cur += sprintf(buf_cur, "GATEWAY=%s ",
data/ulogd2-2.0.7/util/printpkt.c:293:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		buf_cur += sprintf(buf_cur, "SRC=%s ",
data/ulogd2-2.0.7/util/printpkt.c:297:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		buf_cur += sprintf(buf_cur, "DST=%s ",
data/ulogd2-2.0.7/util/printpkt.c:370:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		buf_cur += sprintf(buf_cur, "SRC=%s ",
data/ulogd2-2.0.7/util/printpkt.c:374:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		buf_cur += sprintf(buf_cur, "DST=%s ",
data/ulogd2-2.0.7/util/printpkt.c:435:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		buf_cur += sprintf(buf_cur, "%s ",
data/ulogd2-2.0.7/util/printpkt.c:439:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		buf_cur += sprintf(buf_cur, "IN=%s OUT=%s ", 
data/ulogd2-2.0.7/src/ulogd.c:1493:18:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((argch = getopt_long(argc, argv, "c:p:dvl:h::Vu:i:", opts, NULL)) != -1) {
data/ulogd2-2.0.7/filter/ulogd_filter_HWHDR.c:112:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char hwmac_str[MAX_KEY - START_KEY][HWADDR_LENGTH];
data/ulogd2-2.0.7/filter/ulogd_filter_HWHDR.c:128:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		buf_cur += sprintf(buf_cur, "%02x%c", mac[i],
data/ulogd2-2.0.7/filter/ulogd_filter_IFINDEX.c:65: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 indev[IFNAMSIZ];
data/ulogd2-2.0.7/filter/ulogd_filter_IFINDEX.c:66: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 outdev[IFNAMSIZ];
data/ulogd2-2.0.7/filter/ulogd_filter_IP2BIN.c:117:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char ipbin_array[MAX_KEY-START_KEY][IPADDR_LENGTH];
data/ulogd2-2.0.7/filter/ulogd_filter_IP2BIN.c:186:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		written = sprintf(buffer, "%02x%02x%02x%02x",
data/ulogd2-2.0.7/filter/ulogd_filter_IP2STR.c:140:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char ipstr_array[MAX_KEY-START_KEY][IPADDR_LENGTH];
data/ulogd2-2.0.7/filter/ulogd_filter_PRINTFLOW.c:37: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[4096];
data/ulogd2-2.0.7/filter/ulogd_filter_PRINTPKT.c:37: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[4096];
data/ulogd2-2.0.7/include/linux/netfilter_ipv4/ipt_ULOG.h:31: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 prefix[ULOG_PREFIX_LEN];
data/ulogd2-2.0.7/include/linux/netfilter_ipv4/ipt_ULOG.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 indev_name[IFNAMSIZ];
data/ulogd2-2.0.7/include/linux/netfilter_ipv4/ipt_ULOG.h:41: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 outdev_name[IFNAMSIZ];
data/ulogd2-2.0.7/include/linux/netfilter_ipv4/ipt_ULOG.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 prefix[ULOG_PREFIX_LEN];
data/ulogd2-2.0.7/include/linux/netfilter_ipv4/ipt_ULOG.h:45:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char mac[ULOG_MAC_LEN];
data/ulogd2-2.0.7/include/linux/netfilter_ipv4/ipt_ULOG.h:46:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char payload[0];
data/ulogd2-2.0.7/include/ulogd/conffile.h:47: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 key[CONFIG_KEY_LEN];	/* name of config directive */
data/ulogd2-2.0.7/include/ulogd/conffile.h:53:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char string[CONFIG_VAL_STRING_LEN];
data/ulogd2-2.0.7/include/ulogd/ulogd.h:94:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[ULOGD_MAX_KEYLEN+1];
data/ulogd2-2.0.7/include/ulogd/ulogd.h:165: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(key->u.value.ui128, value, 16);
data/ulogd2-2.0.7/include/ulogd/ulogd.h:221:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[ULOGD_MAX_KEYLEN+1];
data/ulogd2-2.0.7/include/ulogd/ulogd.h: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 id[ULOGD_MAX_KEYLEN+1];
data/ulogd2-2.0.7/include/ulogd/ulogd.h:274: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 private[0];
data/ulogd2-2.0.7/input/packet/ulogd_inppkt_UNIXSOCK.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     option_value[0];
data/ulogd2-2.0.7/input/packet/ulogd_inppkt_UNIXSOCK.c:602: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[4096];
data/ulogd2-2.0.7/input/packet/ulogd_inppkt_UNIXSOCK.c:627: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(ui->unixsock_buf + ui->unixsock_buf_avail, buf, len);
data/ulogd2-2.0.7/input/sum/ulogd_inpflow_NFACCT.c:165: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[MNL_SOCKET_BUFFER_SIZE];
data/ulogd2-2.0.7/input/sum/ulogd_inpflow_NFACCT.c:186: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[MNL_SOCKET_BUFFER_SIZE];
data/ulogd2-2.0.7/output/dbi/ulogd_output_DBI.c:106: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 query[256];
data/ulogd2-2.0.7/output/dbi/ulogd_output_DBI.c:145:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[ULOGD_MAX_KEYLEN+1];
data/ulogd2-2.0.7/output/mysql/ulogd_output_MYSQL.c:142:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[ULOGD_MAX_KEYLEN+1];
data/ulogd2-2.0.7/output/pcap/ulogd_output_PCAP.c:230:12:  [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).
		pi->of = fopen(filename, "w");
data/ulogd2-2.0.7/output/pcap/ulogd_output_PCAP.c:243:12:  [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).
		pi->of = fopen(filename, "a");
data/ulogd2-2.0.7/output/pgsql/ulogd_output_PGSQL.c:97: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 pgbuf[strlen(PGSQL_HAVE_NAMESPACE_TEMPLATE) + 
data/ulogd2-2.0.7/output/pgsql/ulogd_output_PGSQL.c:143:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char pgbuf[strlen(PGSQL_GETCOLUMN_TEMPLATE_SCHEMA)
data/ulogd2-2.0.7/output/pgsql/ulogd_output_PGSQL.c:197:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[ULOGD_MAX_KEYLEN+1];
data/ulogd2-2.0.7/output/pgsql/ulogd_output_PGSQL.c:237: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 pgbuf[128];
data/ulogd2-2.0.7/output/pgsql/ulogd_output_PGSQL.c:262: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(connstr, " host=");
data/ulogd2-2.0.7/output/pgsql/ulogd_output_PGSQL.c:267:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char portbuf[20];
data/ulogd2-2.0.7/output/pgsql/ulogd_output_PGSQL.c:272:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(connstr, " dbname=");
data/ulogd2-2.0.7/output/pgsql/ulogd_output_PGSQL.c:274:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(connstr, " user=");
data/ulogd2-2.0.7/output/pgsql/ulogd_output_PGSQL.c:278:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(connstr, " password=");
data/ulogd2-2.0.7/output/sqlite3/ulogd_output_SQLITE3.c:51:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[ULOGD_MAX_KEYLEN];
data/ulogd2-2.0.7/output/sqlite3/ulogd_output_SQLITE3.c:217: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[ULOGD_MAX_KEYLEN];
data/ulogd2-2.0.7/output/sqlite3/ulogd_output_SQLITE3.c:247: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(stmt_pos, " values (");
data/ulogd2-2.0.7/output/sqlite3/ulogd_output_SQLITE3.c:251:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(stmt_pos,"?,");
data/ulogd2-2.0.7/output/sqlite3/ulogd_output_SQLITE3.c:255: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(stmt_pos, "?)");
data/ulogd2-2.0.7/output/sqlite3/ulogd_output_SQLITE3.c:293: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 query[SELECT_ALL_LEN + CONFIG_VAL_STRING_LEN] = SELECT_ALL_STR;
data/ulogd2-2.0.7/output/sqlite3/ulogd_output_SQLITE3.c:308: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[ULOGD_MAX_KEYLEN];
data/ulogd2-2.0.7/output/ulogd_output_GPRINT.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[4096];
data/ulogd2-2.0.7/output/ulogd_output_GPRINT.c:195:12:  [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).
		oi->of = fopen(upi->config_kset->ces[0].u.string, "a");
data/ulogd2-2.0.7/output/ulogd_output_GPRINT.c:230:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	op->of = fopen(upi->config_kset->ces[0].u.string, "a");
data/ulogd2-2.0.7/output/ulogd_output_GRAPHITE.c:151: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[256];
data/ulogd2-2.0.7/output/ulogd_output_JSON.c:46: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 cached_tz[6];	/* eg +0200 */
data/ulogd2-2.0.7/output/ulogd_output_JSON.c:120:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char timestr[MAX_LOCAL_TIME_STRING];
data/ulogd2-2.0.7/output/ulogd_output_JSON.c:240:12:  [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).
		oi->of = fopen(upi->config_kset->ces[0].u.string, "a");
data/ulogd2-2.0.7/output/ulogd_output_JSON.c:276:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	op->of = fopen(upi->config_kset->ces[0].u.string, "a");
data/ulogd2-2.0.7/output/ulogd_output_LOGEMU.c:47:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char hostname[HOST_NAME_MAX+1];
data/ulogd2-2.0.7/output/ulogd_output_LOGEMU.c:103:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				(char *) res[0].u.source->u.value.ptr);
data/ulogd2-2.0.7/output/ulogd_output_LOGEMU.c:120:12:  [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).
		li->of = fopen(pi->config_kset->ces[0].u.string, "a");
data/ulogd2-2.0.7/output/ulogd_output_LOGEMU.c:147:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	li->of = fopen(pi->config_kset->ces[0].u.string, "a");
data/ulogd2-2.0.7/output/ulogd_output_NACCT.c:124: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[256];
data/ulogd2-2.0.7/output/ulogd_output_NACCT.c:188:12:  [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).
		oi->of = fopen(NACCT_CFG_FILE(pi), "a");
data/ulogd2-2.0.7/output/ulogd_output_NACCT.c:217:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((op->of = fopen(NACCT_CFG_FILE(pi), "a")) == NULL) {
data/ulogd2-2.0.7/output/ulogd_output_OPRINT.c:128:12:  [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).
		oi->of = fopen(upi->config_kset->ces[0].u.string, "a");
data/ulogd2-2.0.7/output/ulogd_output_OPRINT.c:162:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	op->of = fopen(upi->config_kset->ces[0].u.string, "a");
data/ulogd2-2.0.7/output/ulogd_output_SYSLOG.c:78:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				(char *) res[0].u.source->u.value.ptr);
data/ulogd2-2.0.7/output/ulogd_output_XML.c:157: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[4096];
data/ulogd2-2.0.7/output/ulogd_output_XML.c:215: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[PATH_MAX], filename[FILENAME_MAX];
data/ulogd2-2.0.7/output/ulogd_output_XML.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 file_infix[strlen("flow")+1];
data/ulogd2-2.0.7/output/ulogd_output_XML.c:225: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(file_infix, "flow");
data/ulogd2-2.0.7/output/ulogd_output_XML.c:227: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(file_infix, "pkt");
data/ulogd2-2.0.7/output/ulogd_output_XML.c:229: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(file_infix, "sum");
data/ulogd2-2.0.7/output/ulogd_output_XML.c:248:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	op->of = fopen(buf, "a");
data/ulogd2-2.0.7/src/addr.c:66: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 filter_addr[128];
data/ulogd2-2.0.7/src/addr.c:90:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		addr->netmask = atoi(slash + 1);
data/ulogd2-2.0.7/src/addr.c:105:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		addr->netmask = atoi(slash + 1);
data/ulogd2-2.0.7/src/conffile.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 linebuf[LINE_LEN+1];
data/ulogd2-2.0.7/src/conffile.c:130:10:  [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).
	cfile = fopen(fname, "r");
data/ulogd2-2.0.7/src/conffile.c:136:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char wordbuf[LINE_LEN];
data/ulogd2-2.0.7/src/conffile.c:167:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char wordbuf[LINE_LEN];
data/ulogd2-2.0.7/src/ulogd.c:686:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(pi->config_kset->ces, pl->config_kset->ces, 
data/ulogd2-2.0.7/src/ulogd.c:697: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(pi->input.keys, pl->input.keys, 
data/ulogd2-2.0.7/src/ulogd.c:706: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(pi->output.keys, pl->output.keys, 
data/ulogd2-2.0.7/src/ulogd.c:735: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[PATH_MAX];
data/ulogd2-2.0.7/src/ulogd.c:985:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char pi_id[ULOGD_MAX_KEYLEN];
data/ulogd2-2.0.7/src/ulogd.c:1089:28:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		logfile = syslog_dummy = fopen("/dev/null", "w");
data/ulogd2-2.0.7/src/ulogd.c:1091:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		logfile = fopen(ulogd_logfile, "a");
data/ulogd2-2.0.7/src/ulogd.c:1188:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(ulogd_pidfile, O_RDWR | O_CREAT | O_EXCL, 0644);
data/ulogd2-2.0.7/src/ulogd.c:1196:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open(ulogd_pidfile, O_RDWR);
data/ulogd2-2.0.7/src/ulogd.c:1234:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open(ulogd_pidfile, O_RDWR | O_CREAT | O_EXCL, 0644);
data/ulogd2-2.0.7/src/ulogd.c:1420:14:  [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).
			logfile = fopen(ulogd_logfile, "a");
data/ulogd2-2.0.7/src/ulogd.c:1546:15:  [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).
			loglevel = atoi(optarg);
data/ulogd2-2.0.7/util/db.c:99:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[ULOGD_MAX_KEYLEN];
data/ulogd2-2.0.7/util/db.c:126:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(stmt_val, " values (");
data/ulogd2-2.0.7/util/db.c:341:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			stmt_ins += sprintf(stmt_ins, "NULL,");
data/ulogd2-2.0.7/util/db.c:347: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(stmt_ins, "%d,", res->u.value.i8);
data/ulogd2-2.0.7/util/db.c:350: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(stmt_ins, "%d,", res->u.value.i16);
data/ulogd2-2.0.7/util/db.c:353: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(stmt_ins, "%d,", res->u.value.i32);
data/ulogd2-2.0.7/util/db.c:356: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(stmt_ins, "%" PRId64 ",", res->u.value.i64);
data/ulogd2-2.0.7/util/db.c:359: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(stmt_ins, "%u,", res->u.value.ui8);
data/ulogd2-2.0.7/util/db.c:362: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(stmt_ins, "%u,", res->u.value.ui16);
data/ulogd2-2.0.7/util/db.c:367: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(stmt_ins, "%u,", res->u.value.ui32);
data/ulogd2-2.0.7/util/db.c:370: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(stmt_ins, "%" PRIu64 ",", res->u.value.ui64);
data/ulogd2-2.0.7/util/db.c:373: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(stmt_ins, "'%d',", res->u.value.b);
data/ulogd2-2.0.7/util/db.c:383: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(stmt_ins, "',");
data/ulogd2-2.0.7/util/printflow.c:150:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				buf_cur += sprintf(buf_cur, "[NEW] ");
data/ulogd2-2.0.7/util/printflow.c:153:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				buf_cur += sprintf(buf_cur, "[UPDATE] ");
data/ulogd2-2.0.7/util/printflow.c:156:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				buf_cur += sprintf(buf_cur, "[DESTROY] ");
data/ulogd2-2.0.7/util/printflow.c:161:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	buf_cur += sprintf(buf_cur, "ORIG: ");
data/ulogd2-2.0.7/util/printflow.c:178:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		buf_cur += sprintf(buf_cur, "PROTO=TCP ");
data/ulogd2-2.0.7/util/printflow.c:184:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		buf_cur += sprintf(buf_cur, "PROTO=UDP ");
data/ulogd2-2.0.7/util/printflow.c:190:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		buf_cur += sprintf(buf_cur, "PROTO=ICMP ");
data/ulogd2-2.0.7/util/printflow.c:196:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		buf_cur += sprintf(buf_cur, "PROTO=ESP ");
data/ulogd2-2.0.7/util/printflow.c:200:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		buf_cur += sprintf(buf_cur, "PROTO=AH ");
data/ulogd2-2.0.7/util/printflow.c:212:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	buf_cur += sprintf(buf_cur, ", REPLY: ");
data/ulogd2-2.0.7/util/printflow.c:229:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		buf_cur += sprintf(buf_cur, "PROTO=TCP ");
data/ulogd2-2.0.7/util/printflow.c:235:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		buf_cur += sprintf(buf_cur, "PROTO=UDP ");
data/ulogd2-2.0.7/util/printflow.c:241:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		buf_cur += sprintf(buf_cur, "PROTO=ICMP ");
data/ulogd2-2.0.7/util/printflow.c:247:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		buf_cur += sprintf(buf_cur, "PROTO=ESP ");
data/ulogd2-2.0.7/util/printflow.c:251:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		buf_cur += sprintf(buf_cur, "PROTO=AH ");
data/ulogd2-2.0.7/util/printpkt.c:112:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		buf_cur += sprintf(buf_cur, "PROTO=TCP ");
data/ulogd2-2.0.7/util/printpkt.c:115:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			buf_cur += sprintf(buf_cur, "INCOMPLETE");
data/ulogd2-2.0.7/util/printpkt.c:119:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		buf_cur += sprintf(buf_cur, "SPT=%u DPT=%u ",
data/ulogd2-2.0.7/util/printpkt.c:123:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		buf_cur += sprintf(buf_cur, "SEQ=%u ACK=%u ",
data/ulogd2-2.0.7/util/printpkt.c:127:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		buf_cur += sprintf(buf_cur, "WINDOW=%u ",
data/ulogd2-2.0.7/util/printpkt.c:133:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			buf_cur += sprintf(buf_cur, "URG ");
data/ulogd2-2.0.7/util/printpkt.c:136:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			buf_cur += sprintf(buf_cur, "ACK ");
data/ulogd2-2.0.7/util/printpkt.c:139:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			buf_cur += sprintf(buf_cur, "PSH ");
data/ulogd2-2.0.7/util/printpkt.c:142:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			buf_cur += sprintf(buf_cur, "RST ");
data/ulogd2-2.0.7/util/printpkt.c:145:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			buf_cur += sprintf(buf_cur, "SYN ");
data/ulogd2-2.0.7/util/printpkt.c:148:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			buf_cur += sprintf(buf_cur, "FIN ");
data/ulogd2-2.0.7/util/printpkt.c:150:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		buf_cur += sprintf(buf_cur, "URGP=%u ",
data/ulogd2-2.0.7/util/printpkt.c:156:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		buf_cur += sprintf(buf_cur, "PROTO=UDP ");
data/ulogd2-2.0.7/util/printpkt.c:159:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			buf_cur += sprintf(buf_cur, "INCOMPLETE");
data/ulogd2-2.0.7/util/printpkt.c:163:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		buf_cur += sprintf(buf_cur, "SPT=%u DPT=%u LEN=%u ", 
data/ulogd2-2.0.7/util/printpkt.c:169:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		buf_cur += sprintf(buf_cur, "PROTO=SCTP ");
data/ulogd2-2.0.7/util/printpkt.c:172:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			buf_cur += sprintf(buf_cur, "INCOMPLETE");
data/ulogd2-2.0.7/util/printpkt.c:176:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		buf_cur += sprintf(buf_cur, "SPT=%u DPT=%u ", 
data/ulogd2-2.0.7/util/printpkt.c:186:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			buf_cur += sprintf(buf_cur, "INCOMPLETE");
data/ulogd2-2.0.7/util/printpkt.c:190:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		buf_cur += sprintf(buf_cur, "SPI=0x%x ",
data/ulogd2-2.0.7/util/printpkt.c:201: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 tmp[INET_ADDRSTRLEN];
data/ulogd2-2.0.7/util/printpkt.c:213:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	buf_cur += sprintf(buf_cur,"LEN=%u TOS=%02X PREC=0x%02X TTL=%u ID=%u ", 
data/ulogd2-2.0.7/util/printpkt.c:221:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		buf_cur += sprintf(buf_cur, "CE ");
data/ulogd2-2.0.7/util/printpkt.c:224:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		buf_cur += sprintf(buf_cur, "DF ");
data/ulogd2-2.0.7/util/printpkt.c:227:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		buf_cur += sprintf(buf_cur, "MF ");
data/ulogd2-2.0.7/util/printpkt.c:230:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		buf_cur += sprintf(buf_cur, "FRAG:%u ", 
data/ulogd2-2.0.7/util/printpkt.c:244:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		buf_cur += sprintf(buf_cur, "PROTO=ICMP ");
data/ulogd2-2.0.7/util/printpkt.c:247:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			buf_cur += sprintf(buf_cur, "INCOMPLETE");
data/ulogd2-2.0.7/util/printpkt.c:251:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		buf_cur += sprintf(buf_cur, "TYPE=%u CODE=%u ",
data/ulogd2-2.0.7/util/printpkt.c:258:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			buf_cur += sprintf(buf_cur, "ID=%u SEQ=%u ", 
data/ulogd2-2.0.7/util/printpkt.c:263:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			buf_cur += sprintf(buf_cur, "PARAMETER=%u ",
data/ulogd2-2.0.7/util/printpkt.c:275:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				buf_cur += sprintf(buf_cur, "MTU=%u ", 
data/ulogd2-2.0.7/util/printpkt.c:281:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		buf_cur += sprintf(buf_cur, "PROTO=%u ",
data/ulogd2-2.0.7/util/printpkt.c:301:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		buf_cur += sprintf(buf_cur, "LEN=%zu ",
data/ulogd2-2.0.7/util/printpkt.c:306:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		buf_cur += sprintf(buf_cur, "TC=%u ",
data/ulogd2-2.0.7/util/printpkt.c:310:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		buf_cur += sprintf(buf_cur, "HOPLIMIT=%u ",
data/ulogd2-2.0.7/util/printpkt.c:314:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		buf_cur += sprintf(buf_cur, "FLOWLBL=%u ",
data/ulogd2-2.0.7/util/printpkt.c:318:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		buf_cur += sprintf(buf_cur, "FRAG: %u ID: %08x ",
data/ulogd2-2.0.7/util/printpkt.c:332:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		buf_cur += sprintf(buf_cur, "PROTO=ICMPv6 ");
data/ulogd2-2.0.7/util/printpkt.c:335:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			buf_cur += sprintf(buf_cur, "INCOMPLETE");
data/ulogd2-2.0.7/util/printpkt.c:341:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			buf_cur += sprintf(buf_cur, "TRUNCATED");
data/ulogd2-2.0.7/util/printpkt.c:345:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		buf_cur += sprintf(buf_cur, "TYPE=%u CODE=%u ",
data/ulogd2-2.0.7/util/printpkt.c:352:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			buf_cur += sprintf(buf_cur, "ID=%u SEQ=%u ", 
data/ulogd2-2.0.7/util/printpkt.c:377:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	buf_cur += sprintf(buf_cur, "PROTO=ARP ");
data/ulogd2-2.0.7/util/printpkt.c:383:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			buf_cur += sprintf(buf_cur, "REQUEST ");
data/ulogd2-2.0.7/util/printpkt.c:386:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			buf_cur += sprintf(buf_cur, "REPLY ");
data/ulogd2-2.0.7/util/printpkt.c:389:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			buf_cur += sprintf(buf_cur, "NAK ");
data/ulogd2-2.0.7/util/printpkt.c:392:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			buf_cur += sprintf(buf_cur, "CODE=%u ", code);
data/ulogd2-2.0.7/util/printpkt.c:397:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			buf_cur += sprintf(buf_cur, "REPLY_MAC="
data/ulogd2-2.0.7/util/printpkt.c:423:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		buf_cur += sprintf(buf_cur, "PROTO=%u ",
data/ulogd2-2.0.7/util/printpkt.c:448:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		buf_cur += sprintf(buf_cur, "MAC=");
data/ulogd2-2.0.7/util/printpkt.c:450:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			buf_cur += sprintf(buf_cur, "%02x%c", mac[i],
data/ulogd2-2.0.7/util/printpkt.c:453:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		buf_cur += sprintf(buf_cur, "MAC= ");
data/ulogd2-2.0.7/util/printpkt.c:468:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		buf_cur += sprintf(buf_cur, "UID=%u ",
data/ulogd2-2.0.7/util/printpkt.c:471:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		buf_cur += sprintf(buf_cur, "GID=%u ",
data/ulogd2-2.0.7/util/printpkt.c:474:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		buf_cur += sprintf(buf_cur, "MARK=%x ",
data/ulogd2-2.0.7/filter/ulogd_filter_PWSNIFF.c:122:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(ptr, (char *)begp, len);
data/ulogd2-2.0.7/filter/ulogd_filter_PWSNIFF.c:131:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(ptr, (char *)pw_begp, pw_len);
data/ulogd2-2.0.7/input/flow/ulogd_inpflow_NFCT.c:1144: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).
	switch(ulogd_parse_addr(from, strlen(from), &addr)) {
data/ulogd2-2.0.7/input/flow/ulogd_inpflow_NFCT.c:1242:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(src_filter_ce(upi->config_kset).u.string) != 0) {
data/ulogd2-2.0.7/input/flow/ulogd_inpflow_NFCT.c:1250:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(dst_filter_ce(upi->config_kset).u.string) != 0) {
data/ulogd2-2.0.7/input/flow/ulogd_inpflow_NFCT.c:1258:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(proto_filter_ce(upi->config_kset).u.string) != 0) {
data/ulogd2-2.0.7/input/flow/ulogd_inpflow_NFCT.c:1297: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(src_filter_ce(upi->config_kset).u.string) != 0) ||
data/ulogd2-2.0.7/input/flow/ulogd_inpflow_NFCT.c:1298:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		(strlen(dst_filter_ce(upi->config_kset).u.string) != 0) ||
data/ulogd2-2.0.7/input/flow/ulogd_inpflow_NFCT.c:1299:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		(strlen(proto_filter_ce(upi->config_kset).u.string) != 0)
data/ulogd2-2.0.7/input/packet/ulogd_inppkt_UNIXSOCK.c:489:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(server_sock.sun_path, unix_path, sizeof(server_sock.sun_path));
data/ulogd2-2.0.7/input/packet/ulogd_inppkt_UNIXSOCK.c:536:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (owner && strlen(owner)>0) {
data/ulogd2-2.0.7/input/packet/ulogd_inppkt_UNIXSOCK.c:547:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (group && strlen(group)>0) {
data/ulogd2-2.0.7/input/packet/ulogd_inppkt_UNIXSOCK.c:607:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	len = read(fd, buf, sizeof(buf));
data/ulogd2-2.0.7/output/dbi/ulogd_output_DBI.c:153:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(buf, field_name, ULOGD_MAX_KEYLEN);
data/ulogd2-2.0.7/output/dbi/ulogd_output_DBI.c:162:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(upi->input.keys[ui-1].name, buf, ULOGD_MAX_KEYLEN);
data/ulogd2-2.0.7/output/dbi/ulogd_output_DBI.c:257:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(dst,newstr+1,ret-2);
data/ulogd2-2.0.7/output/mysql/ulogd_output_MYSQL.c:146:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(buf, field->name, ULOGD_MAX_KEYLEN);
data/ulogd2-2.0.7/output/mysql/ulogd_output_MYSQL.c:153:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(upi->input.keys[i].name, buf, ULOGD_MAX_KEYLEN);
data/ulogd2-2.0.7/output/pgsql/ulogd_output_PGSQL.c:97:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	char pgbuf[strlen(PGSQL_HAVE_NAMESPACE_TEMPLATE) + 
data/ulogd2-2.0.7/output/pgsql/ulogd_output_PGSQL.c:98:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		   strlen(schema_ce(upi->config_kset).u.string) + 1];
data/ulogd2-2.0.7/output/pgsql/ulogd_output_PGSQL.c:143:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	char pgbuf[strlen(PGSQL_GETCOLUMN_TEMPLATE_SCHEMA)
data/ulogd2-2.0.7/output/pgsql/ulogd_output_PGSQL.c:144: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).
		   + strlen(table_ce(upi->config_kset).u.string) 
data/ulogd2-2.0.7/output/pgsql/ulogd_output_PGSQL.c:145: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).
		   + strlen(pi->db_inst.schema) + 2];
data/ulogd2-2.0.7/output/pgsql/ulogd_output_PGSQL.c:201:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(buf, PQgetvalue(pi->pgres, i, 0), ULOGD_MAX_KEYLEN);
data/ulogd2-2.0.7/output/pgsql/ulogd_output_PGSQL.c:208:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(upi->input.keys[i].name, buf, ULOGD_MAX_KEYLEN);
data/ulogd2-2.0.7/output/pgsql/ulogd_output_PGSQL.c:246:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = 80 + strlen(user) + strlen(db);
data/ulogd2-2.0.7/output/pgsql/ulogd_output_PGSQL.c:246:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = 80 + strlen(user) + strlen(db);
data/ulogd2-2.0.7/output/pgsql/ulogd_output_PGSQL.c:250:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len += strlen(server);
data/ulogd2-2.0.7/output/pgsql/ulogd_output_PGSQL.c:252:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len += strlen(pass);
data/ulogd2-2.0.7/output/pgsql/ulogd_output_PGSQL.c:261: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).
		if (server && strlen(server) > 0) {
data/ulogd2-2.0.7/output/pgsql/ulogd_output_PGSQL.c:320:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return PQescapeString(dst, src, strlen(src)); 
data/ulogd2-2.0.7/output/sqlite3/ulogd_output_SQLITE3.c:184:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
									strlen(k_ret->u.value.ptr), SQLITE_STATIC);
data/ulogd2-2.0.7/output/sqlite3/ulogd_output_SQLITE3.c:231:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	stmt_pos = priv->stmt + strlen(priv->stmt);
data/ulogd2-2.0.7/output/sqlite3/ulogd_output_SQLITE3.c:234:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(buf, f->name, ULOGD_MAX_KEYLEN);
data/ulogd2-2.0.7/output/sqlite3/ulogd_output_SQLITE3.c:240:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		stmt_pos = priv->stmt + strlen(priv->stmt);
data/ulogd2-2.0.7/output/sqlite3/ulogd_output_SQLITE3.c:248:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	stmt_pos = priv->stmt + strlen(priv->stmt);
data/ulogd2-2.0.7/output/sqlite3/ulogd_output_SQLITE3.c:295:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(query, table_ce(pi), sizeof(query) - strlen(query) - 1);
data/ulogd2-2.0.7/output/sqlite3/ulogd_output_SQLITE3.c:295:47:  [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).
	strncat(query, table_ce(pi), sizeof(query) - strlen(query) - 1);
data/ulogd2-2.0.7/output/sqlite3/ulogd_output_SQLITE3.c:330:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(buf, sqlite3_column_name(schema_stmt, col), ULOGD_MAX_KEYLEN);
data/ulogd2-2.0.7/output/sqlite3/ulogd_output_SQLITE3.c:343:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(f->name, buf, ULOGD_MAX_KEYLEN);
data/ulogd2-2.0.7/output/ulogd_output_XML.c:222: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).
	char file_infix[strlen("flow")+1];
data/ulogd2-2.0.7/src/addr.c:79:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(filter_addr, string,
data/ulogd2-2.0.7/src/addr.c:101:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(filter_addr, string,
data/ulogd2-2.0.7/src/conffile.c:75:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, start, (size_t) (stop-start));
data/ulogd2-2.0.7/src/conffile.c:107:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	fname = (char *) malloc(strlen(file)+1);
data/ulogd2-2.0.7/src/conffile.c:212: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(args) < 
data/ulogd2-2.0.7/src/ulogd.c:195: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).
		ret = strlen(key->u.value.ptr);
data/ulogd2-2.0.7/src/ulogd.c:441:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((ret = read(fd, &c, 1)) > 0) {
data/ulogd2-2.0.7/src/ulogd.c:542:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		timestr[strlen(timestr)-1] = '\0';
data/ulogd2-2.0.7/src/ulogd.c:673:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(pi->id, pi_id, ULOGD_MAX_KEYLEN);
data/ulogd2-2.0.7/src/ulogd.c:751:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int len = strlen(dent->d_name);
data/ulogd2-2.0.7/src/ulogd.c:999:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(pi_id, tok, ULOGD_MAX_KEYLEN-1);
data/ulogd2-2.0.7/util/db.c:76: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).
	size = strlen(SQL_INSERTTEMPL) + strlen(table);
data/ulogd2-2.0.7/util/db.c:76:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size = strlen(SQL_INSERTTEMPL) + strlen(table);
data/ulogd2-2.0.7/util/db.c:83:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size += strlen(upi->input.keys[i].name) + 1 + SQL_VALSIZE;
data/ulogd2-2.0.7/util/db.c:85: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).
	size += strlen(procedure);
data/ulogd2-2.0.7/util/db.c:96: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 (strncasecmp(procedure,"INSERT", strlen("INSERT")) == 0 &&
data/ulogd2-2.0.7/util/db.c:97: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).
	    (procedure[strlen("INSERT")] == '\0' ||
data/ulogd2-2.0.7/util/db.c:98:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			procedure[strlen("INSERT")] == ' ')) {
data/ulogd2-2.0.7/util/db.c:112: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).
		stmt_val = mi->stmt + strlen(mi->stmt);
data/ulogd2-2.0.7/util/db.c:118:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(buf, upi->input.keys[i].name, ULOGD_MAX_KEYLEN);	
data/ulogd2-2.0.7/util/db.c:122:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			stmt_val = mi->stmt + strlen(mi->stmt);
data/ulogd2-2.0.7/util/db.c:127:43:  [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).
	} else if (strncasecmp(procedure,"CALL", strlen("CALL")) == 0) {
data/ulogd2-2.0.7/util/db.c:134: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).
	mi->stmt_offset = strlen(mi->stmt);
data/ulogd2-2.0.7/util/db.c:229:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(di->ring.ring + di->ring.length * i + 1,
data/ulogd2-2.0.7/util/db.c:231:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strlen(di->stmt));
data/ulogd2-2.0.7/util/db.c:381: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).
							strlen(res->u.value.ptr));
data/ulogd2-2.0.7/util/db.c:397:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		stmt_ins = start + strlen(start);
data/ulogd2-2.0.7/util/db.c:449:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						strlen(di->stmt));
data/ulogd2-2.0.7/util/db.c:458:36:  [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).
			__add_to_backlog(upi, di->stmt, strlen(di->stmt));
data/ulogd2-2.0.7/util/db.c:537:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int ret = __add_to_backlog(upi, di->stmt, strlen(di->stmt));
data/ulogd2-2.0.7/util/db.c:545:43:  [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 __add_to_backlog(upi, di->stmt, strlen(di->stmt));
data/ulogd2-2.0.7/util/db.c:549:41:  [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 (di->driver->execute(upi, di->stmt, strlen(di->stmt)) < 0) {
data/ulogd2-2.0.7/util/db.c:550:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		__add_to_backlog(upi, di->stmt, strlen(di->stmt));
data/ulogd2-2.0.7/util/db.c:586:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						strlen(wr_place + 1)) < 0) {
data/ulogd2-2.0.7/util/printflow.c:263:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(buf_cur, "\n");
data/ulogd2-2.0.7/util/printpkt.c:477:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(buf_cur, "\n");

ANALYSIS SUMMARY:

Hits = 302
Lines analyzed = 16390 in approximately 0.39 seconds (41607 lines/second)
Physical Source Lines of Code (SLOC) = 12567
Hits@level = [0]  91 [1]  77 [2] 176 [3]   1 [4]  46 [5]   2
Hits@level+ = [0+] 393 [1+] 302 [2+] 225 [3+]  49 [4+]  48 [5+]   2
Hits/KSLOC@level+ = [0+] 31.2724 [1+] 24.0312 [2+] 17.904 [3+] 3.8991 [4+] 3.81953 [5+] 0.159147
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.