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/slony1-2-2.2.8/config_msvc.h
Examining data/slony1-2-2.2.8/src/backend/slony1_funcs.c
Examining data/slony1-2-2.2.8/src/misc/avl_tree.c
Examining data/slony1-2-2.2.8/src/misc/avl_tree.h
Examining data/slony1-2-2.2.8/src/parsestatements/scanner.c
Examining data/slony1-2-2.2.8/src/parsestatements/scanner.h
Examining data/slony1-2-2.2.8/src/parsestatements/test-scanner.c
Examining data/slony1-2-2.2.8/src/slevent/slevent.c
Examining data/slony1-2-2.2.8/src/slon/cleanup_thread.c
Examining data/slony1-2-2.2.8/src/slon/conf-file.h
Examining data/slony1-2-2.2.8/src/slon/dbutils.c
Examining data/slony1-2-2.2.8/src/slon/local_listen.c
Examining data/slony1-2-2.2.8/src/slon/misc.c
Examining data/slony1-2-2.2.8/src/slon/misc.h
Examining data/slony1-2-2.2.8/src/slon/monitor_thread.c
Examining data/slony1-2-2.2.8/src/slon/port/pipe.c
Examining data/slony1-2-2.2.8/src/slon/port/win32service.c
Examining data/slony1-2-2.2.8/src/slon/port/win32service.h
Examining data/slony1-2-2.2.8/src/slon/remote_listen.c
Examining data/slony1-2-2.2.8/src/slon/remote_worker.c
Examining data/slony1-2-2.2.8/src/slon/runtime_config.c
Examining data/slony1-2-2.2.8/src/slon/scheduler.c
Examining data/slony1-2-2.2.8/src/slon/slon.c
Examining data/slony1-2-2.2.8/src/slon/slon.h
Examining data/slony1-2-2.2.8/src/slon/sync_thread.c
Examining data/slony1-2-2.2.8/src/slon/types.h
Examining data/slony1-2-2.2.8/src/slon/conf-file.c
Examining data/slony1-2-2.2.8/src/slon/confoptions.c
Examining data/slony1-2-2.2.8/src/slon/confoptions.h
Examining data/slony1-2-2.2.8/src/slonik/dbutil.c
Examining data/slony1-2-2.2.8/src/slonik/slonik.c
Examining data/slony1-2-2.2.8/src/slonik/slonik.h
Examining data/slony1-2-2.2.8/src/slonik/types.h
Examining data/slony1-2-2.2.8/src/slonik/y.tab.h
Examining data/slony1-2-2.2.8/src/slonik/parser.c
Examining data/slony1-2-2.2.8/src/slonik/scan.c
Examining data/slony1-2-2.2.8/src/slonik/scan.h
Examining data/slony1-2-2.2.8/src/slony_logshipper/dbutil.c
Examining data/slony1-2-2.2.8/src/slony_logshipper/ipcutil.c
Examining data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c
Examining data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.h
Examining data/slony1-2-2.2.8/src/slony_logshipper/y.tab.h
Examining data/slony1-2-2.2.8/src/slony_logshipper/parser.c
Examining data/slony1-2-2.2.8/src/slony_logshipper/scan.c
Examining data/slony1-2-2.2.8/src/slony_logshipper/scan.h
Examining data/slony1-2-2.2.8/tests/random_number.c
Examining data/slony1-2-2.2.8/tests/random_string.c

FINAL RESULTS:

data/slony1-2-2.2.8/src/backend/slony1_funcs.c:1572:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(applyQueryPos, "INSERT INTO %s.%s (",
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:1597:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
					strcpy(applyQueryPos, colname);
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:1639:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					sprintf(applyQueryPos, "%s$%d", (i == 0) ? "" : ", ",
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:1663:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(applyQueryPos, "UPDATE ONLY %s.%s SET ",
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:1709:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
						sprintf(applyQueryPos, "%s = %s",
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:1731:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
						sprintf(applyQueryPos, "%s%s = $%d",
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:1742:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
						sprintf(applyQueryPos, "%s%s = $%d",
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:1766:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(applyQueryPos, "DELETE FROM ONLY %s.%s WHERE ",
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:1800:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					sprintf(applyQueryPos, "%s%s = $%d",
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:1824:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(applyQueryPos, "TRUNCATE ONLY %s.%s CASCADE ;",
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:2546:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(query,
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:2576:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(query,
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:2621:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(query, "SELECT last_value::int4 FROM %s.sl_log_status",
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:2641:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(query, "insert into %s.sl_log_script "
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:2659:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(query,
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:2678:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(query,
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:2717:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(query,
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:2774:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(query, "INSERT INTO %s.sl_log_1 "
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:2796:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(query, "INSERT INTO %s.sl_log_2 "
data/slony1-2-2.2.8/src/slon/dbutils.c:582:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
						sprintf(buf, INT64_FORMAT, va_arg(ap, int64));
data/slony1-2-2.2.8/src/slon/local_listen.c:70:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(restart_notify, "_%s_Restart", rtcfg_cluster_name);
data/slony1-2-2.2.8/src/slon/local_listen.c:236: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(rtcfg_lastevent, PQgetvalue(res, tupno, 0));
data/slony1-2-2.2.8/src/slon/misc.c:192:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(outbuf, "%s%s%-6.6s ", time_buf, ps_buf, level_c);
data/slony1-2-2.2.8/src/slon/misc.c:196:9:  [4] (format) vsnprintf:
  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.
	while (vsnprintf(&outbuf[off], (size_t) (outsize - off), fmt, apcopy) >= outsize - off - 1)
data/slony1-2-2.2.8/src/slon/port/win32service.c:88: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(running_servicename, argv[0]);
data/slony1-2-2.2.8/src/slon/port/win32service.c:233:22:  [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.
OpenEnginesKey(DWORD access)
data/slony1-2-2.2.8/src/slon/port/win32service.c:239:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(rootkey, "SYSTEM\\CurrentControlSet\\Services\\%s\\Parameters\\Engines", running_servicename);
data/slony1-2-2.2.8/src/slon/port/win32service.c:241:89:  [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 ((r = RegCreateKeyEx(HKEY_LOCAL_MACHINE, rootkey, 0, NULL, REG_OPTION_NON_VOLATILE, access, NULL, &key, NULL)) != ERROR_SUCCESS)
data/slony1-2-2.2.8/src/slon/port/win32service.c:575: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(running_servicename, servicename);
data/slony1-2-2.2.8/src/slon/port/win32service.c:623: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(running_servicename, servicename);
data/slony1-2-2.2.8/src/slon/port/win32service.c:655: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(running_servicename, servicename);
data/slony1-2-2.2.8/src/slon/remote_listen.c:300:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(buf, "SET SESSION CHARACTERISTICS AS TRANSACTION read only isolation level %s",
data/slony1-2-2.2.8/src/slon/remote_listen.c:669:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		sprintf(seqno_buf, INT64_FORMAT, origin->last_event);
data/slony1-2-2.2.8/src/slon/remote_worker.c:444:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
							strcpy(pset->ssy_seqno, PQgetvalue(res, 0, 0));
data/slony1-2-2.2.8/src/slon/remote_worker.c:518:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		sprintf(seqbuf, INT64_FORMAT, event->ev_seqno);
data/slony1-2-2.2.8/src/slon/remote_worker.c:714:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(buf, "-- %s", event->ev_type);
data/slony1-2-2.2.8/src/slon/remote_worker.c:1952: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(cp, ev_timestamp);
data/slony1-2-2.2.8/src/slon/remote_worker.c:1955: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(cp, ev_snapshot);
data/slony1-2-2.2.8/src/slon/remote_worker.c:1958: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(cp, ev_mintxid);
data/slony1-2-2.2.8/src/slon/remote_worker.c:1961: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(cp, ev_maxtxid);
data/slony1-2-2.2.8/src/slon/remote_worker.c:1964: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(cp, ev_type);
data/slony1-2-2.2.8/src/slon/remote_worker.c:1969: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(cp, ev_data1);
data/slony1-2-2.2.8/src/slon/remote_worker.c:1975: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(cp, ev_data2);
data/slony1-2-2.2.8/src/slon/remote_worker.c:1981: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(cp, ev_data3);
data/slony1-2-2.2.8/src/slon/remote_worker.c:1987: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(cp, ev_data4);
data/slony1-2-2.2.8/src/slon/remote_worker.c:1993: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(cp, ev_data5);
data/slony1-2-2.2.8/src/slon/remote_worker.c:1999: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(cp, ev_data6);
data/slony1-2-2.2.8/src/slon/remote_worker.c:2005: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(cp, ev_data7);
data/slony1-2-2.2.8/src/slon/remote_worker.c:2011: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(cp, ev_data8);
data/slony1-2-2.2.8/src/slon/remote_worker.c:2146:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
					strcpy(oldmsg->con_timestamp_c, con_timestamp_c);
data/slony1-2-2.2.8/src/slon/remote_worker.c:2175: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->con_timestamp_c, con_timestamp_c);
data/slony1-2-2.2.8/src/slon/remote_worker.c:2232:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(seqbuf, INT64_FORMAT, event->ev_seqno);
data/slony1-2-2.2.8/src/slon/remote_worker.c:2351:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(seqbuf, INT64_FORMAT, confirm->con_seqno);
data/slony1-2-2.2.8/src/slon/remote_worker.c:2570:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(seqbuf, INT64_FORMAT, event->ev_seqno);
data/slony1-2-2.2.8/src/slon/remote_worker.c:3667:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(seqbuf, INT64_FORMAT, event->ev_seqno);
data/slony1-2-2.2.8/src/slon/remote_worker.c:4380:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		sprintf(min_ssy_seqno_buf, INT64_FORMAT, min_ssy_seqno);
data/slony1-2-2.2.8/src/slon/remote_worker.c:4994: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(node->archive_counter, PQgetvalue(res, 0, 0));
data/slony1-2-2.2.8/src/slon/remote_worker.c:4995: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(node->archive_timestamp, PQgetvalue(res, 0, 1));
data/slony1-2-2.2.8/src/slon/remote_worker.c:4999:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(node->archive_name, "%s/slony1_log_%d_", archive_dir,
data/slony1-2-2.2.8/src/slon/remote_worker.c:5003:2:  [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(node->archive_name, node->archive_counter);
data/slony1-2-2.2.8/src/slon/remote_worker.c:5005: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(node->archive_temp, node->archive_name);
data/slony1-2-2.2.8/src/slon/remote_worker.c:5108:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(command, "%s %s", command_on_logarchive, node->archive_name);
data/slony1-2-2.2.8/src/slon/remote_worker.c:5111:3:  [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(command);
data/slony1-2-2.2.8/src/slon/slon.c:735: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(rtcfg_lastevent, PQgetvalue(res, 0, 0));
data/slony1-2-2.2.8/src/slon/slon.h:635:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf pg_snprintf
data/slony1-2-2.2.8/src/slon/sync_thread.c:128: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(last_actseq_buf, PQgetvalue(res, 0, 0));
data/slony1-2-2.2.8/src/slonik/parser.c:1082:21:  [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 YYFPRINTF fprintf
data/slony1-2-2.2.8/src/slonik/scan.c:2785: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( sym->name+1, name );
data/slony1-2-2.2.8/src/slonik/slonik.c:225: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(share_path, PGSHARE);
data/slony1-2-2.2.8/src/slonik/slonik.c:232: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(share_path, PGSHARE);
data/slony1-2-2.2.8/src/slonik/slonik.c:1956:2:  [4] (format) vsnprintf:
  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.
	vsnprintf(fnamebuf, sizeof(fnamebuf), fname, ap);
data/slony1-2-2.2.8/src/slonik/slonik.c:1996:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(replacements[2].new_str, "\"_%s\"", stmt->script->clustername);
data/slony1-2-2.2.8/src/slonik/slonik.c:3475:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(ev_seqno_c, INT64_FORMAT, max_seqno);
data/slony1-2-2.2.8/src/slonik/slonik.c:4994:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(replacements[2].new_str, "\"_%s\"", stmt->hdr.script->clustername);
data/slony1-2-2.2.8/src/slonik/slonik.c:5283:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
				sprintf(seqbuf, INT64_FORMAT, adminfo->last_event);
data/slony1-2-2.2.8/src/slonik/slonik.c:5319:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
				sprintf(seqbuf, INT64_FORMAT, adminfo->last_event);
data/slony1-2-2.2.8/src/slonik/slonik.c:5383:4:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			sprintf(seqbuf, INT64_FORMAT, adminfo->last_event);
data/slony1-2-2.2.8/src/slonik/slonik.c:5392:4:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			sprintf(seqbuf, INT64_FORMAT, adminfo->last_event);
data/slony1-2-2.2.8/src/slonik/slonik.c:5851:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(comment, "sequence for %s", table_name);
data/slony1-2-2.2.8/src/slonik/slonik.c:6160:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		sprintf(seqno, INT64_FORMAT, curAdmInfo->last_event);
data/slony1-2-2.2.8/src/slonik/slonik.h:716:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/slony1-2-2.2.8/src/slonik/slonik.h:716:18:  [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.
#define snprintf _snprintf
data/slony1-2-2.2.8/src/slony_logshipper/ipcutil.c:371: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.mtext, logfname);
data/slony1-2-2.2.8/src/slony_logshipper/ipcutil.c:444: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(buf, elem->archive_path);
data/slony1-2-2.2.8/src/slony_logshipper/parser.c:935:21:  [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 YYFPRINTF fprintf
data/slony1-2-2.2.8/src/slony_logshipper/scan.c:2945: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( sym->name+1, name );
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:32:9:  [4] (format) vsnprintf:
  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.
#define vsnprintf _vsnprintf
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:408:5:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
				system(dstring_data(&cmd));
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:650: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(&buf1[i], current_at_counter);
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:653: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(&buf2[i], at_counter);
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:1037:11:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	status = system(dstring_data(&cmd));
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:1092:2:  [4] (format) vsnprintf:
  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.
	vsnprintf(pos, sizeof(errbuf) - (pos - errbuf), fmt, ap);
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:1250:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(namespace, "\"_%s\"", cluster_name);
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:1314: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(current_at_counter, s);
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:1337: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(counter_done_buf, current_at_counter);
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:1459:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(buf, archive_dir);
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:1461:2:  [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(buf, ent->fname);
data/slony1-2-2.2.8/src/slon/confoptions.c:652:8:  [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.
	env = getenv("CLUSTER");
data/slony1-2-2.2.8/src/slon/port/win32service.c:348:7:  [3] (shell) CreateProcess:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Specify the application path in the first argument, NOT as part
  of the second, or embedded spaces could allow an attacker to force a
  different program to run.
	if (!CreateProcess(NULL, cmdline, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi))
data/slony1-2-2.2.8/src/slon/port/win32service.c:348:7:  [3] (shell) CreateProcess:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Specify the application path in the first argument, NOT as part
  of the second, or embedded spaces could allow an attacker to force a
  different program to run.
	if (!CreateProcess(NULL, cmdline, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi))
data/slony1-2-2.2.8/src/slon/slon.c:194:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt(argc, argv, "f:a:d:s:t:g:c:p:o:q:r:l:x:hv?")) != EOF)
data/slony1-2-2.2.8/src/slonik/slonik.c:193:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(argc, (char **) argv, "hvw")) != EOF)
data/slony1-2-2.2.8/src/slonik/slonik.c:235:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *slonyShare = getenv("SLONY_SHARE_DIR");
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:140:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(argc, (char **) argv, "hvqcflrtTws:")) != EOF)
data/slony1-2-2.2.8/tests/random_number.c:22:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(time(0));
data/slony1-2-2.2.8/tests/random_string.c:21:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(time(0));
data/slony1-2-2.2.8/src/backend/slony1_funcs.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		nulls[10];
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:407: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(VARDATA(retval), SLONY_I_VERSION_STRING, len);
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:1182: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		query[1024];
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:1207: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 	call_nulls[3];
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:1231: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(query, "set session_replication_role to local;");
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:1245: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(query, "set session_replication_role to replica;");
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:1329: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		query[1024];
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:1414: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(applyQueryPos, "%c,%d", cmdtype, tableid);
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:1588:7:  [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(applyQueryPos, ", ");
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:1596:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
					colname = (char *) slon_quote_identifier(querycolnames[i / 2]);
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:1604: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(applyQueryPos, ") VALUES (");
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:1649: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(applyQueryPos, ");");
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:1721:7:  [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(applyQueryPos, " WHERE ");
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:2434: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(str, VARDATA(t), len);
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:2442: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(VARDATA(result), qstr, len);
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:2454: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[1024];
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:2764: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[1024];
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:2892: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(VARDATA(one_arg), arg, elem_size);
data/slony1-2-2.2.8/src/parsestatements/test-scanner.c:5: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		foo[65536];
data/slony1-2-2.2.8/src/slevent/slevent.c: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		buffer[_MAX_PATH];
data/slony1-2-2.2.8/src/slon/cleanup_thread.c:108:43:  [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).
                cleanup_interval_second = atoi(PQgetvalue(res3, 0, 0));
data/slony1-2-2.2.8/src/slon/conf-file.c:1890: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).
		fp = fopen(CONFIG_FILENAME, "r");
data/slony1-2-2.2.8/src/slon/conf-file.c:1894: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).
		fp = fopen(filename, "r");
data/slony1-2-2.2.8/src/slon/dbutils.c:343: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[1024];
data/slony1-2-2.2.8/src/slon/dbutils.c:389: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[1024];
data/slony1-2-2.2.8/src/slon/dbutils.c:538: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[64];
data/slony1-2-2.2.8/src/slon/dbutils.c:576:7:  [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, "%d", va_arg(ap, int));
data/slony1-2-2.2.8/src/slon/dbutils.c:618: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		versionstr[7];
data/slony1-2-2.2.8/src/slon/dbutils.c:646: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).
	version = atoi(versionstr);
data/slony1-2-2.2.8/src/slon/local_listen.c:50: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		restart_notify[256];
data/slony1-2-2.2.8/src/slon/local_listen.c:292:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char		notify_query[256];
data/slony1-2-2.2.8/src/slon/misc.c:81: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		time_buf[128];	/* Buffer to hold timestamp */
data/slony1-2-2.2.8/src/slon/misc.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		ps_buf[20];		/* Buffer to hold PID */
data/slony1-2-2.2.8/src/slon/misc.c:185: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(ps_buf, "[%d] ", slon_pid);
data/slony1-2-2.2.8/src/slon/misc.c:357: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		buf[SLON_SYSLOG_LIMIT + 1];
data/slony1-2-2.2.8/src/slon/port/win32service.c:48: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 running_servicename[256];
data/slony1-2-2.2.8/src/slon/port/win32service.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		rootkey[1024];
data/slony1-2-2.2.8/src/slon/port/win32service.c:255: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		rootkey[1024];
data/slony1-2-2.2.8/src/slon/port/win32service.c:257:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		valname[256];
data/slony1-2-2.2.8/src/slon/port/win32service.c:258: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		valval[256];
data/slony1-2-2.2.8/src/slon/port/win32service.c:330: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		cmdline[512];
data/slony1-2-2.2.8/src/slon/port/win32service.c:331: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 self_process[512] = {0};
data/slony1-2-2.2.8/src/slon/port/win32service.c:491: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		self[1024];
data/slony1-2-2.2.8/src/slon/port/win32service.c:492: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		execpath[1200];
data/slony1-2-2.2.8/src/slon/port/win32service.c:591: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 _vfe_buf[MAXPGPATH];
data/slony1-2-2.2.8/src/slon/remote_listen.c:81: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		conn_symname[64];
data/slony1-2-2.2.8/src/slon/remote_listen.c:106: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(conn_symname, "node_%d_listen", node->no_id);
data/slony1-2-2.2.8/src/slon/remote_listen.c:299:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char buf[200];
data/slony1-2-2.2.8/src/slon/remote_listen.c:616:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		seqno_buf[64];
data/slony1-2-2.2.8/src/slon/remote_worker.c:79: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		raw_data[1];
data/slony1-2-2.2.8/src/slon/remote_worker.c:96: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		con_timestamp_c[64];
data/slony1-2-2.2.8/src/slon/remote_worker.c:120: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		ssy_seqno[64];
data/slony1-2-2.2.8/src/slon/remote_worker.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		duration_buf[64];
data/slony1-2-2.2.8/src/slon/remote_worker.c:301: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		seqbuf[64];
data/slony1-2-2.2.8/src/slon/remote_worker.c:306: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		conn_symname[32];
data/slony1-2-2.2.8/src/slon/remote_worker.c:330: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(wd->duration_buf, "0 s");
data/slony1-2-2.2.8/src/slon/remote_worker.c:344: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(conn_symname, "remoteWorkerThread_%d", node->no_id);
data/slony1-2-2.2.8/src/slon/remote_worker.c:679: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(wd->duration_buf, "0 s");
data/slony1-2-2.2.8/src/slon/remote_worker.c:710:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char		buf[256];
data/slony1-2-2.2.8/src/slon/remote_worker.c:2230: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		seqbuf[64];
data/slony1-2-2.2.8/src/slon/remote_worker.c:2297: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		seqbuf[64];
data/slony1-2-2.2.8/src/slon/remote_worker.c:2428: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		conn_symname[64];
data/slony1-2-2.2.8/src/slon/remote_worker.c:2446:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		seqbuf[64];
data/slony1-2-2.2.8/src/slon/remote_worker.c:2548: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(conn_symname, "copy_set_%d", set_id);
data/slony1-2-2.2.8/src/slon/remote_worker.c:3637: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		conn_symname[64];
data/slony1-2-2.2.8/src/slon/remote_worker.c:3648: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		seqbuf[64];
data/slony1-2-2.2.8/src/slon/remote_worker.c:3727: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(conn_symname, "origin_%d_provider_%d",
data/slony1-2-2.2.8/src/slon/remote_worker.c:4372: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		min_ssy_seqno_buf[64];
data/slony1-2-2.2.8/src/slon/remote_worker.c:4528: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(wd->duration_buf, "%.3f s", TIMEVAL_DIFF(&tv_start, &tv_now));
data/slony1-2-2.2.8/src/slon/remote_worker.c:5004:2:  [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(node->archive_name, ".sql");
data/slony1-2-2.2.8/src/slon/remote_worker.c:5006:2:  [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(node->archive_temp, ".tmp");
data/slony1-2-2.2.8/src/slon/remote_worker.c:5007:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	node->archive_fp = fopen(node->archive_temp, "w");
data/slony1-2-2.2.8/src/slon/remote_worker.c:5106: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		command[1024];
data/slony1-2-2.2.8/src/slon/runtime_config.c:48: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		rtcfg_lastevent[64];
data/slony1-2-2.2.8/src/slon/scheduler.c:300: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		dummyconn_name[64];
data/slony1-2-2.2.8/src/slon/scheduler.c:561: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		buf[1];
data/slony1-2-2.2.8/src/slon/slon.c:291:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	if ((char *) argv[optind])
data/slony1-2-2.2.8/src/slon/slon.c:293:38:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		set_config_option("cluster_name", (char *) argv[optind]);
data/slony1-2-2.2.8/src/slon/slon.c:294:35:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		set_config_option("conn_info", (char *) argv[++optind]);
data/slony1-2-2.2.8/src/slon/slon.c:350: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).
		pidfile = fopen(pid_file, "w");
data/slony1-2-2.2.8/src/slon/slon.c:731: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(rtcfg_lastevent, "-1");
data/slony1-2-2.2.8/src/slon/slon.c:733: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(rtcfg_lastevent, "-1");
data/slony1-2-2.2.8/src/slon/slon.h:251: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(&((__ds)->data[(__ds)->n_used]), (__s), (__n)); \
data/slony1-2-2.2.8/src/slon/sync_thread.c:49: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		last_actseq_buf[64];
data/slony1-2-2.2.8/src/slonik/dbutil.c:439: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		versionstr[7];
data/slony1-2-2.2.8/src/slonik/dbutil.c:471: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).
	version = atoi(versionstr);
data/slony1-2-2.2.8/src/slonik/dbutil.c:748: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[64];
data/slony1-2-2.2.8/src/slonik/dbutil.c:786:7:  [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, "%d", va_arg(ap, int));
data/slony1-2-2.2.8/src/slonik/parser.c:1328: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 const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/slony1-2-2.2.8/src/slonik/parser.c:1515: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 yymsgbuf[128];
data/slony1-2-2.2.8/src/slonik/parser.c:2410:33:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
									new->no_id_list[cnt++]=atoi(token);
data/slony1-2-2.2.8/src/slonik/parser.c:3894:7:  [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(ret, yytext, toklen);
data/slony1-2-2.2.8/src/slonik/parser.c:3908:7:  [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(ret, yytext, toklen);
data/slony1-2-2.2.8/src/slonik/scan.c:1696:33:  [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(( yyin = fopen( fileName, "r" )) == NULL )
data/slony1-2-2.2.8/src/slonik/scan.c:2706: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[8192];
data/slony1-2-2.2.8/src/slonik/slonik.c:66: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 share_path[MAXPGPATH];
data/slony1-2-2.2.8/src/slonik/slonik.c:68: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 myfull_path[MAXPGPATH];
data/slony1-2-2.2.8/src/slonik/slonik.c:248:9:  [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).
			fp = fopen(argv[optind], "r");
data/slony1-2-2.2.8/src/slonik/slonik.c:255:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			current_file = (char *) argv[optind++];
data/slony1-2-2.2.8/src/slonik/slonik.c:1174:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
					stmt->ddl_fd = fopen(stmt->ddl_fname, "r");
data/slony1-2-2.2.8/src/slonik/slonik.c:1404: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		outstr[200];
data/slony1-2-2.2.8/src/slonik/slonik.c:1943: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		fnamebuf[1024];
data/slony1-2-2.2.8/src/slonik/slonik.c:1944: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/slony1-2-2.2.8/src/slonik/slonik.c:1959: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).
	stmtp = fopen(fnamebuf, "r");
data/slony1-2-2.2.8/src/slonik/slonik.c:3394: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		ev_seqno_c[64];
data/slony1-2-2.2.8/src/slonik/slonik.c:4688:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	origin_id = atoi(PQgetvalue(res1, 0, 0));
data/slony1-2-2.2.8/src/slonik/slonik.c:4943: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/slony1-2-2.2.8/src/slonik/slonik.c:4948: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.
	const char *params[PARMCOUNT];
data/slony1-2-2.2.8/src/slonik/slonik.c:5234: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		seqbuf[NAMEDATALEN];
data/slony1-2-2.2.8/src/slonik/slonik.c:6153: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		seqno[NAMEDATALEN];
data/slony1-2-2.2.8/src/slonik/slonik.c:6219:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			int			n_id = atoi(n_id_c);
data/slony1-2-2.2.8/src/slonik/slonik.c:6276:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
						char		tmpbuf[96];
data/slony1-2-2.2.8/src/slonik/slonik.c:6278:7:  [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(tmpbuf, "(" INT64_FORMAT "," INT64_FORMAT
data/slony1-2-2.2.8/src/slonik/slonik.h:529: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(&((__ds)->data[(__ds)->n_used]), (__s), (__n)); \
data/slony1-2-2.2.8/src/slony_logshipper/dbutil.c: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		buf[64];
data/slony1-2-2.2.8/src/slony_logshipper/dbutil.c:151:7:  [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, "%d", va_arg(ap, int));
data/slony1-2-2.2.8/src/slony_logshipper/ipcutil.c:254: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		mtext[MSGMAX];
data/slony1-2-2.2.8/src/slony_logshipper/ipcutil.c:354: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		mtext[MSGMAX];
data/slony1-2-2.2.8/src/slony_logshipper/ipcutil.c:396: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		mtext[MSGMAX];
data/slony1-2-2.2.8/src/slony_logshipper/ipcutil.c:537: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		mtext[1];
data/slony1-2-2.2.8/src/slony_logshipper/ipcutil.c:767: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		mtext[1];
data/slony1-2-2.2.8/src/slony_logshipper/parser.c:1181: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 const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/slony1-2-2.2.8/src/slony_logshipper/parser.c:1368: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 yymsgbuf[128];
data/slony1-2-2.2.8/src/slony_logshipper/parser.c:1805:7:  [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(ret, yytext, toklen);
data/slony1-2-2.2.8/src/slony_logshipper/parser.c:2327:7:  [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(ret, yytext, toklen);
data/slony1-2-2.2.8/src/slony_logshipper/parser.c:2362:7:  [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(ret, yytext, toklen);
data/slony1-2-2.2.8/src/slony_logshipper/parser.c:2398:7:  [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(ret, yytext, toklen);
data/slony1-2-2.2.8/src/slony_logshipper/parser.c:2462:7:  [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(str, yytext, toklen);
data/slony1-2-2.2.8/src/slony_logshipper/parser.c:2490:7:  [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(ret, yytext, toklen);
data/slony1-2-2.2.8/src/slony_logshipper/parser.c:2504:7:  [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(ret, yytext, toklen);
data/slony1-2-2.2.8/src/slony_logshipper/scan.c:882: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 yychunk[YY_BUF_SIZE / 2];
data/slony1-2-2.2.8/src/slony_logshipper/scan.c:1797:33:  [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(( yyin = fopen( fileName, "r" )) == NULL )
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:95: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 current_at_counter[64];
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:130: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		archive_path[MSGMAX];
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:186: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).
				rescan_interval = atoi(optarg);
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:202: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).
	fp = fopen(argv[optind], "r");
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:209:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	current_file = (char *) argv[optind++];
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:248: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).
		logfile_fp = fopen(logfile_path, "a");
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:277:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		if (ipc_send_path((char *) (argv[optind])) < 0)
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:488: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).
	fp = fopen(fname, "r");
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:534:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		destinationfp = fopen(destinationfname, "w");
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:631: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		buf1[64];
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:632: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[64];
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:1064: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 errbuf[256 * 1024];
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:1077: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).
		logfile_fp = fopen(logfile_path, "a");
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:1327: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		counter_done_buf[64];
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:1338: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(counter_done_buf, ".sql");
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.h:62: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(&((__ds)->data[(__ds)->n_used]), (__s), (__n)); \
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:403:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(SLONY_I_VERSION_STRING);
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:1415: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).
	applyQueryPos += strlen(applyQueryPos);
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:1429:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			applyQueryPos += strlen(applyQueryPos);
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:1575: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).
				applyQueryPos += strlen(applyQueryPos);
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:1598: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).
					applyQueryPos += strlen(applyQueryPos);
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:1605: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).
				applyQueryPos += strlen(applyQueryPos);
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:1641: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).
					applyQueryPos += strlen(applyQueryPos);
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:1666: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).
				applyQueryPos += strlen(applyQueryPos);
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:1712: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).
						applyQueryPos += strlen(applyQueryPos);
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:1747: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).
					applyQueryPos += strlen(applyQueryPos);
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:1752:5:  [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(applyQueryPos, ";");
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:1769: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).
				applyQueryPos += strlen(applyQueryPos);
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:1805: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).
					applyQueryPos += strlen(applyQueryPos);
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:1810:5:  [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(applyQueryPos, ";");
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:2150: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).
	return hash_any((void *) key, strlen(key));
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:2396: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).
	result = (char *) palloc(strlen(ident) + nquotes + 2 + 1);
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:2439:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(qstr);
data/slony1-2-2.2.8/src/backend/slony1_funcs.c:2492:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(NameStr(cs->clustername), NameStr(*cluster_name), NAMEDATALEN);
data/slony1-2-2.2.8/src/slevent/slevent.c:63: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(buffer) + 1))
data/slony1-2-2.2.8/src/slon/conf-file.c:655:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
data/slony1-2-2.2.8/src/slon/conf-file.c:1598: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).
	return yy_scan_bytes(yystr,strlen(yystr) );
data/slony1-2-2.2.8/src/slon/conf-file.c:1945: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).
					memmove(opt_value,opt_value+1,strlen(opt_value)-1);
data/slony1-2-2.2.8/src/slon/conf-file.c:1946: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).
					opt_value[strlen(opt_value)-2]='\0';
data/slony1-2-2.2.8/src/slon/conf-file.c:2068:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(s);
data/slony1-2-2.2.8/src/slon/confoptions.c:662: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).
	int			len = (int) strlen(value);
data/slony1-2-2.2.8/src/slon/misc.c:194: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).
	off = (int) strlen(outbuf);
data/slony1-2-2.2.8/src/slon/misc.c:224: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).
		(void) fwrite(outbuf, strlen(outbuf), 1, stdout);
data/slony1-2-2.2.8/src/slon/misc.c:228: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).
	(void) fwrite(outbuf, strlen(outbuf), 1, stdout);
data/slony1-2-2.2.8/src/slon/misc.c:316: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).
	int			len = (int) strlen(line);
data/slony1-2-2.2.8/src/slon/misc.c:369:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(buf, line, SLON_SYSLOG_LIMIT);
data/slony1-2-2.2.8/src/slon/misc.c:374: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).
			buflen = (int) strlen(buf);
data/slony1-2-2.2.8/src/slon/monitor_thread.c:162: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).
					if ((state.activity != 0) && strlen(state.activity) > 0)
data/slony1-2-2.2.8/src/slon/monitor_thread.c:179:37:  [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 ((state.event_type != 0) && strlen(state.event_type) > 0)
data/slony1-2-2.2.8/src/slon/monitor_thread.c:294:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(actor);
data/slony1-2-2.2.8/src/slon/monitor_thread.c:337:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(actor);
data/slony1-2-2.2.8/src/slon/monitor_thread.c:341:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(ns, actor, len);
data/slony1-2-2.2.8/src/slon/monitor_thread.c:358:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(activity);
data/slony1-2-2.2.8/src/slon/monitor_thread.c:362:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(ns, activity, len);
data/slony1-2-2.2.8/src/slon/monitor_thread.c:379:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(event_type);
data/slony1-2-2.2.8/src/slon/monitor_thread.c:383:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(ns, event_type, len);
data/slony1-2-2.2.8/src/slon/port/win32service.c:635:70:  [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).
	r = RegSetValueEx(key, full_configfile, 0, REG_SZ, full_configfile, strlen(full_configfile) + 1);
data/slony1-2-2.2.8/src/slon/remote_worker.c:1921: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).
		+ (len_timestamp = strlen(ev_timestamp) + 1)
data/slony1-2-2.2.8/src/slon/remote_worker.c:1922:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		+ (len_snapshot = strlen(ev_snapshot) + 1)
data/slony1-2-2.2.8/src/slon/remote_worker.c:1923: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).
		+ (len_mintxid = strlen(ev_mintxid) + 1)
data/slony1-2-2.2.8/src/slon/remote_worker.c:1924: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).
		+ (len_maxtxid = strlen(ev_maxtxid) + 1)
data/slony1-2-2.2.8/src/slon/remote_worker.c:1925: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).
		+ (len_type = strlen(ev_type) + 1)
data/slony1-2-2.2.8/src/slon/remote_worker.c:1926:44:  [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).
		+ ((ev_data1 == NULL) ? 0 : (len_data1 = strlen(ev_data1) + 1))
data/slony1-2-2.2.8/src/slon/remote_worker.c:1927:44:  [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).
		+ ((ev_data2 == NULL) ? 0 : (len_data2 = strlen(ev_data2) + 1))
data/slony1-2-2.2.8/src/slon/remote_worker.c:1928:44:  [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).
		+ ((ev_data3 == NULL) ? 0 : (len_data3 = strlen(ev_data3) + 1))
data/slony1-2-2.2.8/src/slon/remote_worker.c:1929:44:  [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).
		+ ((ev_data4 == NULL) ? 0 : (len_data4 = strlen(ev_data4) + 1))
data/slony1-2-2.2.8/src/slon/remote_worker.c:1930:44:  [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).
		+ ((ev_data5 == NULL) ? 0 : (len_data5 = strlen(ev_data5) + 1))
data/slony1-2-2.2.8/src/slon/remote_worker.c:1931:44:  [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).
		+ ((ev_data6 == NULL) ? 0 : (len_data6 = strlen(ev_data6) + 1))
data/slony1-2-2.2.8/src/slon/remote_worker.c:1932:44:  [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).
		+ ((ev_data7 == NULL) ? 0 : (len_data7 = strlen(ev_data7) + 1))
data/slony1-2-2.2.8/src/slon/remote_worker.c:1933:44:  [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).
		+ ((ev_data8 == NULL) ? 0 : (len_data8 = strlen(ev_data8) + 1));
data/slony1-2-2.2.8/src/slon/remote_worker.c:3032:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				int			len = strlen(copydata);
data/slony1-2-2.2.8/src/slon/remote_worker.c:4166: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).
					actionlist_len = strlen(ssy_action_list);
data/slony1-2-2.2.8/src/slon/remote_worker.c:4231: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).
					actionlist_len = strlen(ssy_action_list);
data/slony1-2-2.2.8/src/slon/remote_worker.c:4963:57:  [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 (strncmp(CONCUPDATEMSG, PQresultErrorMessage(res), strlen(CONCUPDATEMSG)) == 0)
data/slony1-2-2.2.8/src/slon/remote_worker.c:5001: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).
	for (i = strlen(node->archive_counter); i < 20; i++)
data/slony1-2-2.2.8/src/slon/remote_worker.c:5002:3:  [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(node->archive_name, "0");
data/slony1-2-2.2.8/src/slon/slon.c:299: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).
		rtcfg_namespace = malloc(strlen(rtcfg_cluster_name) * 2 + 4);
data/slony1-2-2.2.8/src/slon/slon.h:256: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).
	register int ___n = strlen((___s)); \
data/slony1-2-2.2.8/src/slon/slon.h:630:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define piperead(a,b,c)		read(a,b,c)
data/slony1-2-2.2.8/src/slonik/parser.c:1228:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#   define yystrlen strlen
data/slony1-2-2.2.8/src/slonik/scan.c:986:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
data/slony1-2-2.2.8/src/slonik/scan.c:1647:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(instring_buffer+instring_length,yytext,yyleng);
data/slony1-2-2.2.8/src/slonik/scan.c:2450: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).
	return yy_scan_bytes(yystr,strlen(yystr) );
data/slony1-2-2.2.8/src/slonik/scan.c:2774: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).
	value[strlen(value) - 1 ] = '\0';
data/slony1-2-2.2.8/src/slonik/scan.c:2782: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).
	sym->name  = malloc( strlen( name ) + 1 + 1 );
data/slony1-2-2.2.8/src/slonik/slonik.c:1988: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).
	replacements[0].old_len = strlen(replacements[0].old_str);
data/slony1-2-2.2.8/src/slonik/slonik.c:1991: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).
	replacements[1].old_len = strlen(replacements[1].old_str);
data/slony1-2-2.2.8/src/slonik/slonik.c:1994: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).
	replacements[2].old_len = strlen(replacements[2].old_str);
data/slony1-2-2.2.8/src/slonik/slonik.c:1995: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).
	replacements[2].new_str = alloca(strlen(stmt->script->clustername) + 4);
data/slony1-2-2.2.8/src/slonik/slonik.c:1998: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).
	replacements[3].old_len = strlen(replacements[3].old_str);
data/slony1-2-2.2.8/src/slonik/slonik.c:4986: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).
	replacements[0].old_len = strlen(replacements[0].old_str);
data/slony1-2-2.2.8/src/slonik/slonik.c:4989: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).
	replacements[1].old_len = strlen(replacements[1].old_str);
data/slony1-2-2.2.8/src/slonik/slonik.c:4992: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).
	replacements[2].old_len = strlen(replacements[2].old_str);
data/slony1-2-2.2.8/src/slonik/slonik.c:4993: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).
	replacements[2].new_str = alloca(strlen(stmt->hdr.script->clustername) + 4);
data/slony1-2-2.2.8/src/slonik/slonik.c:5060:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(dest, dstring_data(&script_rewritten) + startpos, endpos - startpos);
data/slony1-2-2.2.8/src/slonik/slonik.c:5850:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			comment = malloc(strlen(table_name) + strlen("sequence for ") + 1);
data/slony1-2-2.2.8/src/slonik/slonik.c:5850:42:  [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).
			comment = malloc(strlen(table_name) + strlen("sequence for ") + 1);
data/slony1-2-2.2.8/src/slonik/slonik.h:534: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).
	register int ___n = strlen((___s)); \
data/slony1-2-2.2.8/src/slony_logshipper/ipcutil.c:357: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(logfname) > (MSGMAX - 1))
data/slony1-2-2.2.8/src/slony_logshipper/ipcutil.c:372: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).
	if (msgsnd(msgid, &msg, strlen(logfname) + 1, 0) < 0)
data/slony1-2-2.2.8/src/slony_logshipper/parser.c:1081:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#   define yystrlen strlen
data/slony1-2-2.2.8/src/slony_logshipper/scan.c:1019:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
data/slony1-2-2.2.8/src/slony_logshipper/scan.c:2599: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).
	return yy_scan_bytes(yystr,strlen(yystr) );
data/slony1-2-2.2.8/src/slony_logshipper/scan.c:2934: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).
	value[strlen(value) - 1 ] = '\0';
data/slony1-2-2.2.8/src/slony_logshipper/scan.c:2942: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).
	sym->name  = malloc( strlen( name ) + 1 + 1 );
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:638: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(at_counter) > 20)
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:648: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).
	for (i = 0; i < (20 - strlen(current_at_counter)); i++)
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:651: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).
	for (i = 0; i < (20 - strlen(at_counter)); i++)
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:907: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).
		if (PQputCopyData(dbconn, line, strlen(line)) != 1)
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:1090: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).
	pos = errbuf + strlen(errbuf);
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:1243: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).
		namespace = malloc(strlen(cluster_name) + 4);
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:1302: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(s) > 20)
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:1335: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).
		while (strlen(counter_done_buf) + strlen(current_at_counter) < 20)
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:1335:37:  [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).
		while (strlen(counter_done_buf) + strlen(current_at_counter) < 20)
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:1336:4:  [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(counter_done_buf, "0");
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:1359: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(dp->d_name) > 24 &&
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:1360: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).
			strcmp(dp->d_name + strlen(dp->d_name) - 24,
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:1366: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(dp->d_name) > 15 &&
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:1368: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).
			strcmp(dp->d_name + strlen(dp->d_name) - 4, ".sql") == 0)
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:1453: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).
	buf = (char *) malloc(strlen(archive_dir) + strlen(ent->fname) + 2);
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:1453:46:  [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).
	buf = (char *) malloc(strlen(archive_dir) + strlen(ent->fname) + 2);
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.c:1460: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, "/");
data/slony1-2-2.2.8/src/slony_logshipper/slony_logshipper.h:67: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).
	register int ___n = strlen((___s)); \

ANALYSIS SUMMARY:

Hits = 361
Lines analyzed = 46156 in approximately 1.05 seconds (43772 lines/second)
Physical Source Lines of Code (SLOC) = 33267
Hits@level = [0] 296 [1] 107 [2] 148 [3]   9 [4]  97 [5]   0
Hits@level+ = [0+] 657 [1+] 361 [2+] 254 [3+] 106 [4+]  97 [5+]   0
Hits/KSLOC@level+ = [0+] 19.7493 [1+] 10.8516 [2+] 7.63519 [3+] 3.18634 [4+] 2.9158 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.