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/dnssec-trigger-0.17+repack/vendor/ccan/json/json.c
Examining data/dnssec-trigger-0.17+repack/vendor/ccan/json/test/run-construction.c
Examining data/dnssec-trigger-0.17+repack/vendor/ccan/json/test/run-stringify.c
Examining data/dnssec-trigger-0.17+repack/vendor/ccan/json/test/common.h
Examining data/dnssec-trigger-0.17+repack/vendor/ccan/json/test/run-validate.c
Examining data/dnssec-trigger-0.17+repack/vendor/ccan/json/test/run-decode-encode.c
Examining data/dnssec-trigger-0.17+repack/vendor/ccan/json/json.h
Examining data/dnssec-trigger-0.17+repack/osx/RiggerStatusItem/RiggerStatusItemAppDelegate.h
Examining data/dnssec-trigger-0.17+repack/osx/RiggerStatusItem/RiggerApp.h
Examining data/dnssec-trigger-0.17+repack/osx/wakelist.h
Examining data/dnssec-trigger-0.17+repack/osx/wakelist.c
Examining data/dnssec-trigger-0.17+repack/panel/attach.h
Examining data/dnssec-trigger-0.17+repack/panel/attach.c
Examining data/dnssec-trigger-0.17+repack/panel/panel.c
Examining data/dnssec-trigger-0.17+repack/test/json.c
Examining data/dnssec-trigger-0.17+repack/test/other.c
Examining data/dnssec-trigger-0.17+repack/riggerd/store.c
Examining data/dnssec-trigger-0.17+repack/riggerd/net_help.h
Examining data/dnssec-trigger-0.17+repack/riggerd/store.h
Examining data/dnssec-trigger-0.17+repack/riggerd/string_list.h
Examining data/dnssec-trigger-0.17+repack/riggerd/log.c
Examining data/dnssec-trigger-0.17+repack/riggerd/update.c
Examining data/dnssec-trigger-0.17+repack/riggerd/reshook.h
Examining data/dnssec-trigger-0.17+repack/riggerd/connection_list.c
Examining data/dnssec-trigger-0.17+repack/riggerd/probe.c
Examining data/dnssec-trigger-0.17+repack/riggerd/http.c
Examining data/dnssec-trigger-0.17+repack/riggerd/string_list.c
Examining data/dnssec-trigger-0.17+repack/riggerd/ubhook.c
Examining data/dnssec-trigger-0.17+repack/riggerd/update.h
Examining data/dnssec-trigger-0.17+repack/riggerd/fwd_zones.c
Examining data/dnssec-trigger-0.17+repack/riggerd/winsock_event.c
Examining data/dnssec-trigger-0.17+repack/riggerd/mini_event.h
Examining data/dnssec-trigger-0.17+repack/riggerd/svr.h
Examining data/dnssec-trigger-0.17+repack/riggerd/winsock_event.h
Examining data/dnssec-trigger-0.17+repack/riggerd/netevent.h
Examining data/dnssec-trigger-0.17+repack/riggerd/rbtree.h
Examining data/dnssec-trigger-0.17+repack/riggerd/mini_event.c
Examining data/dnssec-trigger-0.17+repack/riggerd/lock.c
Examining data/dnssec-trigger-0.17+repack/riggerd/netevent.c
Examining data/dnssec-trigger-0.17+repack/riggerd/string_buffer.h
Examining data/dnssec-trigger-0.17+repack/riggerd/connection_list.h
Examining data/dnssec-trigger-0.17+repack/riggerd/probe.h
Examining data/dnssec-trigger-0.17+repack/riggerd/log.h
Examining data/dnssec-trigger-0.17+repack/riggerd/cfg.c
Examining data/dnssec-trigger-0.17+repack/riggerd/riggerd.c
Examining data/dnssec-trigger-0.17+repack/riggerd/fptr_wlist.c
Examining data/dnssec-trigger-0.17+repack/riggerd/ubhook.h
Examining data/dnssec-trigger-0.17+repack/riggerd/lock.h
Examining data/dnssec-trigger-0.17+repack/riggerd/fptr_wlist.h
Examining data/dnssec-trigger-0.17+repack/riggerd/http.h
Examining data/dnssec-trigger-0.17+repack/riggerd/fwd_zones.h
Examining data/dnssec-trigger-0.17+repack/riggerd/cfg.h
Examining data/dnssec-trigger-0.17+repack/riggerd/net_help.c
Examining data/dnssec-trigger-0.17+repack/riggerd/rbtree.c
Examining data/dnssec-trigger-0.17+repack/riggerd/svr.c
Examining data/dnssec-trigger-0.17+repack/riggerd/reshook.c
Examining data/dnssec-trigger-0.17+repack/dnssec-trigger-control.c
Examining data/dnssec-trigger-0.17+repack/winrc/dnssec-trigger-keygen.c
Examining data/dnssec-trigger-0.17+repack/winrc/win_svc.h
Examining data/dnssec-trigger-0.17+repack/winrc/trayicon.c
Examining data/dnssec-trigger-0.17+repack/winrc/netlist.c
Examining data/dnssec-trigger-0.17+repack/winrc/w_inst.c
Examining data/dnssec-trigger-0.17+repack/winrc/proc_dll_src/processes.h
Examining data/dnssec-trigger-0.17+repack/winrc/proc_dll_src/exdll.c
Examining data/dnssec-trigger-0.17+repack/winrc/proc_dll_src/exdll.h
Examining data/dnssec-trigger-0.17+repack/winrc/proc_dll_src/stdafx.cpp
Examining data/dnssec-trigger-0.17+repack/winrc/proc_dll_src/stdafx.h
Examining data/dnssec-trigger-0.17+repack/winrc/proc_dll_src/processes.c
Examining data/dnssec-trigger-0.17+repack/winrc/proc_dll_src/stdafx_orig.h
Examining data/dnssec-trigger-0.17+repack/winrc/win_svc.c
Examining data/dnssec-trigger-0.17+repack/winrc/netlist.h
Examining data/dnssec-trigger-0.17+repack/winrc/w_inst.h
Examining data/dnssec-trigger-0.17+repack/compat/malloc.c
Examining data/dnssec-trigger-0.17+repack/compat/strlcpy.c
Examining data/dnssec-trigger-0.17+repack/compat/inet_pton.c
Examining data/dnssec-trigger-0.17+repack/compat/memmove.c
Examining data/dnssec-trigger-0.17+repack/compat/snprintf.c
Examining data/dnssec-trigger-0.17+repack/compat/inet_ntop.c

FINAL RESULTS:

data/dnssec-trigger-0.17+repack/riggerd/reshook.c:137:5:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	if(chmod(cfg->resolvconf, 0644)<0) {
data/dnssec-trigger-0.17+repack/riggerd/reshook.c:163:5:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	if(chmod(cfg->resolvconf, 0444)<0) {
data/dnssec-trigger-0.17+repack/compat/inet_ntop.c:97:6:  [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.
	l = snprintf(tmp, size, fmt, src[0], src[1], src[2], src[3]);
data/dnssec-trigger-0.17+repack/compat/snprintf.c:49: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 my_snprintf
data/dnssec-trigger-0.17+repack/compat/snprintf.c:50: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 my_vsnprintf
data/dnssec-trigger-0.17+repack/compat/snprintf.c:53:5:  [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.
int snprintf(char* str, size_t size, const char* format, ...);
data/dnssec-trigger-0.17+repack/compat/snprintf.c:54:5:  [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.
int vsnprintf(char* str, size_t size, const char* format, va_list arg);
data/dnssec-trigger-0.17+repack/compat/snprintf.c:66:5:  [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.
int snprintf(char* str, size_t size, const char* format, ...)
data/dnssec-trigger-0.17+repack/compat/snprintf.c:71:6:  [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.
	r = vsnprintf(str, size, format, args);
data/dnssec-trigger-0.17+repack/compat/snprintf.c:629:5:  [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.
int vsnprintf(char* str, size_t size, const char* format, va_list arg)
data/dnssec-trigger-0.17+repack/compat/snprintf.c:836:8:  [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.
#undef snprintf
data/dnssec-trigger-0.17+repack/compat/snprintf.c:847:4:  [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.
	r=snprintf(buf, sizeof(buf), __VA_ARGS__); \
data/dnssec-trigger-0.17+repack/osx/wakelist.c:72:6:  [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.
	r = system(s);
data/dnssec-trigger-0.17+repack/panel/attach.c:562:5:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if(execlp(cfg->login_command, cfg->login_command, cfg->login_location,
data/dnssec-trigger-0.17+repack/riggerd/log.c:161: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(message, sizeof(message), format, args);
data/dnssec-trigger-0.17+repack/riggerd/log.h:74:39:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	const char* format, ...) ATTR_FORMAT(printf, 2, 3);
data/dnssec-trigger-0.17+repack/riggerd/log.h:117:52:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void log_info(const char* format, ...) ATTR_FORMAT(printf, 1, 2);
data/dnssec-trigger-0.17+repack/riggerd/log.h:124:51:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void log_err(const char* format, ...) ATTR_FORMAT(printf, 1, 2);
data/dnssec-trigger-0.17+repack/riggerd/log.h:131:52:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void log_warn(const char* format, ...) ATTR_FORMAT(printf, 1, 2);
data/dnssec-trigger-0.17+repack/riggerd/log.h:147:54:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void fatal_exit(const char* format, ...) ATTR_FORMAT(printf, 1, 2);
data/dnssec-trigger-0.17+repack/riggerd/reshook.c:73:2:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	system(cmd);
data/dnssec-trigger-0.17+repack/riggerd/reshook.c:115:5:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if(system(buf) < 0)
data/dnssec-trigger-0.17+repack/riggerd/reshook.c:123:5:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if(system(buf) < 0)
data/dnssec-trigger-0.17+repack/riggerd/reshook.c:259:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system(LIBEXEC_DIR"/dnssec-trigger-script --setup") == 0)
data/dnssec-trigger-0.17+repack/riggerd/reshook.c:290:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system(LIBEXEC_DIR"/dnssec-trigger-script --restore") == 0)
data/dnssec-trigger-0.17+repack/riggerd/reshook.c:334:2:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	system("dscacheutil -flushcache || lookupd -flushcache || discoveryutil udnsflushcaches");
data/dnssec-trigger-0.17+repack/riggerd/reshook.c:335:2:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	system("discoveryutil mdnsflushcache");
data/dnssec-trigger-0.17+repack/riggerd/reshook.c:350:2:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	system(cmd);
data/dnssec-trigger-0.17+repack/riggerd/riggerd.c:163:8:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if((s=system(LIBEXEC_DIR"/dnssec-trigger-osx.sh")) == -1)
data/dnssec-trigger-0.17+repack/riggerd/ubhook.c:124:6:  [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.
	r = system(command);
data/dnssec-trigger-0.17+repack/riggerd/ubhook.c:226:6:  [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.
	r = system(command);
data/dnssec-trigger-0.17+repack/riggerd/ubhook.c:342:7:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	fp = popen("unbound-control list_forwards", "r");
data/dnssec-trigger-0.17+repack/riggerd/ubhook.c:416:7:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	fp = popen("unbound-control list_local_zones", "r");
data/dnssec-trigger-0.17+repack/riggerd/ubhook.c:428:14:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	while ((r = fscanf(fp, "%s %s\n", zone, label)) > 0 ) {
data/dnssec-trigger-0.17+repack/riggerd/ubhook.c:444:7:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	fp = popen(cmd, "r");
data/dnssec-trigger-0.17+repack/riggerd/update.c:810:5:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if(execl(LIBEXEC_DIR "/dnssec-trigger-setdns.sh", 
data/dnssec-trigger-0.17+repack/test/other.c:64:17:  [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.
    assert_true(access(name, F_OK) == 0);
data/dnssec-trigger-0.17+repack/test/other.c:73:17:  [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.
    assert_true(access(name, R_OK) == 0);
data/dnssec-trigger-0.17+repack/test/other.c:74:17:  [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.
    assert_true(access(name, W_OK) == 0);
data/dnssec-trigger-0.17+repack/test/other.c:75:17:  [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.
    assert_true(access(name, X_OK) == -1);
data/dnssec-trigger-0.17+repack/test/other.c:78:17:  [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.
    assert_true(access(name, R_OK) == 0);
data/dnssec-trigger-0.17+repack/test/other.c:79:17:  [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.
    assert_true(access(name, W_OK) == 0);
data/dnssec-trigger-0.17+repack/test/other.c:80:17:  [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.
    assert_true(access(name, X_OK) == -1);
data/dnssec-trigger-0.17+repack/test/other.c:95:17:  [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.
    assert_true(access(file_name, R_OK) == 0);
data/dnssec-trigger-0.17+repack/vendor/ccan/json/json.c:43: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(ret, str);
data/dnssec-trigger-0.17+repack/vendor/ccan/json/json.c:1317:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
				snprintf(errmsg, 256, __VA_ARGS__); \
data/dnssec-trigger-0.17+repack/winrc/proc_dll_src/exdll.h:85:3:  [4] (buffer) lstrcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
  lstrcpy( str, th->text );
data/dnssec-trigger-0.17+repack/winrc/proc_dll_src/exdll.h:131:3:  [4] (buffer) lstrcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
		lstrcpy( g_variables + varnum*g_stringsize, var );
data/dnssec-trigger-0.17+repack/winrc/proc_dll_src/processes.c:108:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf( szProcessName, "%s", szProcess );
data/dnssec-trigger-0.17+repack/winrc/proc_dll_src/processes.c:188:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf( szProcessNameWE, "%s%s", szProcess,".exe" );
data/dnssec-trigger-0.17+repack/winrc/proc_dll_src/processes.c:189:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf( szProcessName, "%s", szProcess );
data/dnssec-trigger-0.17+repack/winrc/proc_dll_src/processes.c:285:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf( szDeviceName, "%s", strlwr( szDriverName ) );
data/dnssec-trigger-0.17+repack/winrc/trayicon.c:319: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(notifydata.szTip, TEXT("dnssec-trigger"));
data/dnssec-trigger-0.17+repack/winrc/trayicon.c:498:11:  [4] (shell) ShellExecute:
  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.
				(void)ShellExecute(NULL,
data/dnssec-trigger-0.17+repack/dnssec-trigger-control.c:264:12:  [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, "c:s:h")) != -1) {
data/dnssec-trigger-0.17+repack/panel/panel.c:806:19:  [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, "c:dh")) != -1) {
data/dnssec-trigger-0.17+repack/riggerd/cfg.c:336:17:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
		str_arg(&cfg->chroot, p+7);
data/dnssec-trigger-0.17+repack/riggerd/cfg.c:471:12:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
	free(cfg->chroot);
data/dnssec-trigger-0.17+repack/riggerd/cfg.h:63:8:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
	char* chroot;
data/dnssec-trigger-0.17+repack/riggerd/riggerd.c:268:47:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
	log_init(cfg->logfile, cfg->use_syslog, cfg->chroot);
data/dnssec-trigger-0.17+repack/riggerd/riggerd.c:299:36:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
				log_init(cfg->logfile, 0, cfg->chroot);
data/dnssec-trigger-0.17+repack/riggerd/riggerd.c:345:12:  [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, "c:dhuvw:")) != -1) {
data/dnssec-trigger-0.17+repack/winrc/dnssec-trigger-keygen.c:361:12:  [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, "d:hu")) != -1) {
data/dnssec-trigger-0.17+repack/winrc/netlist.c:160:13:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
		wlandll = LoadLibrary("Wlanapi.dll");
data/dnssec-trigger-0.17+repack/winrc/trayicon.c:354:6:  [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, 0,
data/dnssec-trigger-0.17+repack/winrc/trayicon.c:354:6:  [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, 0,
data/dnssec-trigger-0.17+repack/winrc/win_svc.c:313:47:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
	log_init(cfg->logfile, cfg->use_syslog, cfg->chroot);
data/dnssec-trigger-0.17+repack/winrc/win_svc.c:522: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, cronaction, NULL, NULL, 0, 
data/dnssec-trigger-0.17+repack/winrc/win_svc.c:522: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, cronaction, NULL, NULL, 0, 
data/dnssec-trigger-0.17+repack/winrc/win_svc.c:605:6:  [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, cmd, NULL, NULL, 0, CREATE_NO_WINDOW,
data/dnssec-trigger-0.17+repack/winrc/win_svc.c:605:6:  [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, cmd, NULL, NULL, 0, CREATE_NO_WINDOW,
data/dnssec-trigger-0.17+repack/compat/inet_ntop.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 tmp[sizeof "255.255.255.255"];
data/dnssec-trigger-0.17+repack/compat/inet_ntop.c:122:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[sizeof "ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255"];
data/dnssec-trigger-0.17+repack/compat/inet_pton.c:130: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(dst, tmp, NS_INADDRSZ);
data/dnssec-trigger-0.17+repack/compat/inet_pton.c:228: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(dst, tmp, NS_IN6ADDRSZ);
data/dnssec-trigger-0.17+repack/compat/memmove.c:41: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(dest, src, n);
data/dnssec-trigger-0.17+repack/compat/snprintf.c:299: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[PRINT_DEC_BUFSZ];
data/dnssec-trigger-0.17+repack/compat/snprintf.c:314: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[PRINT_DEC_BUFSZ];
data/dnssec-trigger-0.17+repack/compat/snprintf.c:329: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[PRINT_DEC_BUFSZ];
data/dnssec-trigger-0.17+repack/compat/snprintf.c:344: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[PRINT_DEC_BUFSZ];
data/dnssec-trigger-0.17+repack/compat/snprintf.c:358: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[PRINT_DEC_BUFSZ];
data/dnssec-trigger-0.17+repack/compat/snprintf.c:372: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[PRINT_DEC_BUFSZ];
data/dnssec-trigger-0.17+repack/compat/snprintf.c:386: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[PRINT_DEC_BUFSZ];
data/dnssec-trigger-0.17+repack/compat/snprintf.c:400: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[PRINT_DEC_BUFSZ];
data/dnssec-trigger-0.17+repack/compat/snprintf.c:414: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[PRINT_DEC_BUFSZ];
data/dnssec-trigger-0.17+repack/compat/snprintf.c:428: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[PRINT_DEC_BUFSZ];
data/dnssec-trigger-0.17+repack/compat/snprintf.c:512: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[PRINT_FLOAT_BUFSZ];
data/dnssec-trigger-0.17+repack/compat/snprintf.c:557: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[PRINT_FLOAT_BUFSZ];
data/dnssec-trigger-0.17+repack/compat/snprintf.c:838:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[bufsz]; \
data/dnssec-trigger-0.17+repack/dnssec-trigger-control.c:123: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 pre[10];
data/dnssec-trigger-0.17+repack/dnssec-trigger-control.c:128:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/dnssec-trigger-0.17+repack/dnssec-trigger-control.c:177: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 err[512];
data/dnssec-trigger-0.17+repack/dnssec-trigger-control.c:251:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                unsigned char buf[256];
data/dnssec-trigger-0.17+repack/osx/wakelist.c:67:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char s[12000];
data/dnssec-trigger-0.17+repack/panel/attach.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 pre[10];
data/dnssec-trigger-0.17+repack/panel/attach.c:222:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line[1024];
data/dnssec-trigger-0.17+repack/panel/attach.h:84:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char connect_reason[512];
data/dnssec-trigger-0.17+repack/panel/panel.c:252: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[102400];
data/dnssec-trigger-0.17+repack/panel/panel.c:434: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 update_text[1024];
data/dnssec-trigger-0.17+repack/panel/panel.c:607:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char file[1024];
data/dnssec-trigger-0.17+repack/panel/panel.c:834: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[1024];
data/dnssec-trigger-0.17+repack/riggerd/cfg.c:235:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char hash[64];
data/dnssec-trigger-0.17+repack/riggerd/cfg.c:327:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		cfg->verbosity = atoi(get_arg(p+10));
data/dnssec-trigger-0.17+repack/riggerd/cfg.c:352: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).
		cfg->control_port = atoi(get_arg(p+5));
data/dnssec-trigger-0.17+repack/riggerd/cfg.c:393: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).
	FILE* in = fopen(file, "r");
data/dnssec-trigger-0.17+repack/riggerd/cfg.c:395:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/dnssec-trigger-0.17+repack/riggerd/cfg.c:522: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 sslerr[512];
data/dnssec-trigger-0.17+repack/riggerd/cfg.h:142:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char hash[64]; /* hash (SHA256) */
data/dnssec-trigger-0.17+repack/riggerd/http.c:221: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 temp[128];
data/dnssec-trigger-0.17+repack/riggerd/http.c:238: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).
			*port = atoi(eb+2);
data/dnssec-trigger-0.17+repack/riggerd/http.c:251: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 temp[128];
data/dnssec-trigger-0.17+repack/riggerd/http.c:259:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		*port = atoi(e+1);
data/dnssec-trigger-0.17+repack/riggerd/http.c:834:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[1024];
data/dnssec-trigger-0.17+repack/riggerd/http.c:1183: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 err[512];
data/dnssec-trigger-0.17+repack/riggerd/http.c:1190: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 err[512];
data/dnssec-trigger-0.17+repack/riggerd/http.c:1202:22:  [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).
		*datalen = (size_t)atoi(line+16);
data/dnssec-trigger-0.17+repack/riggerd/lock.c:28:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(path, O_WRONLY|O_CREAT|O_CLOEXEC, 0600);
data/dnssec-trigger-0.17+repack/riggerd/log.c:117:6:  [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).
	f = fopen(filename, "a");
data/dnssec-trigger-0.17+repack/riggerd/log.c:154: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 message[MAXSYSLOGMSGLEN];
data/dnssec-trigger-0.17+repack/riggerd/log.c:157: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 tmbuf[32];
data/dnssec-trigger-0.17+repack/riggerd/log.c:170: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 m[32768];
data/dnssec-trigger-0.17+repack/riggerd/log.c:295:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024+1]; /* alloc blocksize hex chars + \0 */
data/dnssec-trigger-0.17+repack/riggerd/log.c:327: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 unknown[32];
data/dnssec-trigger-0.17+repack/riggerd/net_help.c:122: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(d, data, len);
data/dnssec-trigger-0.17+repack/riggerd/net_help.c:132: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 dest[100];
data/dnssec-trigger-0.17+repack/riggerd/net_help.c:163:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[MAX_ADDR_STRLEN];
data/dnssec-trigger-0.17+repack/riggerd/net_help.c:169:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		port = atoi(s+1);
data/dnssec-trigger-0.17+repack/riggerd/net_help.c:214:6:  [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).
		if(atoi(s+1) > *net) {
data/dnssec-trigger-0.17+repack/riggerd/net_help.c:218:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		*net = atoi(s+1);
data/dnssec-trigger-0.17+repack/riggerd/net_help.c:432: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[128];
data/dnssec-trigger-0.17+repack/riggerd/netevent.c:360:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[1024];
data/dnssec-trigger-0.17+repack/riggerd/netevent.c:369: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 buf1[1024], buf2[1024];
data/dnssec-trigger-0.17+repack/riggerd/netevent.c:383: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 buf1[1024];
data/dnssec-trigger-0.17+repack/riggerd/netevent.c:404: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 control[256];
data/dnssec-trigger-0.17+repack/riggerd/netevent.c:504: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 ancil[256];
data/dnssec-trigger-0.17+repack/riggerd/probe.c:269:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char hash[EVP_MAX_MD_SIZE];
data/dnssec-trigger-0.17+repack/riggerd/probe.c:277:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[1024];
data/dnssec-trigger-0.17+repack/riggerd/probe.c:434: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 reason[512];
data/dnssec-trigger-0.17+repack/riggerd/probe.c:874: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(&outq->c->repinfo.addr, &outq->addr, outq->addrlen);
data/dnssec-trigger-0.17+repack/riggerd/reshook.c:61:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cmd[10240];
data/dnssec-trigger-0.17+repack/riggerd/reshook.c:62: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 dm[1024];
data/dnssec-trigger-0.17+repack/riggerd/reshook.c:113: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[10240];
data/dnssec-trigger-0.17+repack/riggerd/reshook.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 buf[10240];
data/dnssec-trigger-0.17+repack/riggerd/reshook.c:131: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 line[1024];
data/dnssec-trigger-0.17+repack/riggerd/reshook.c:142: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).
	out = fopen(cfg->resolvconf, "w");
data/dnssec-trigger-0.17+repack/riggerd/reshook.c:194: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).
	FILE* in = fopen(cfg->resolvconf, "r");
data/dnssec-trigger-0.17+repack/riggerd/reshook.c:196: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 line[1024];
data/dnssec-trigger-0.17+repack/riggerd/reshook.c:283: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 line[1024];
data/dnssec-trigger-0.17+repack/riggerd/reshook.c:287: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 iplist[10240];
data/dnssec-trigger-0.17+repack/riggerd/reshook.c:346:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cmd[10240];
data/dnssec-trigger-0.17+repack/riggerd/riggerd.c:178:6:  [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).
	f = fopen(pidfile, "w");
data/dnssec-trigger-0.17+repack/riggerd/riggerd.c:193:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(pidfile, O_WRONLY | O_TRUNC, 0644);
data/dnssec-trigger-0.17+repack/riggerd/riggerd.c:225:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open("/dev/null", O_RDWR, 0)) != -1) {
data/dnssec-trigger-0.17+repack/riggerd/store.c:22: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).
    fp = fopen(full_path, "r");
data/dnssec-trigger-0.17+repack/riggerd/store.c:45: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).
    FILE *fp = fopen(self->path_tmp, "w");
data/dnssec-trigger-0.17+repack/riggerd/svr.c:335: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(&sc->c->repinfo.addr, &addr, addrlen);
data/dnssec-trigger-0.17+repack/riggerd/svr.c:410: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 errbuf[128];
data/dnssec-trigger-0.17+repack/riggerd/svr.c:531: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 errbuf[128];
data/dnssec-trigger-0.17+repack/riggerd/svr.c:597: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 errbuf[128];
data/dnssec-trigger-0.17+repack/riggerd/svr.c:671: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 errbuf[128];
data/dnssec-trigger-0.17+repack/riggerd/svr.c:734: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[10240];
data/dnssec-trigger-0.17+repack/riggerd/svr.c:1053: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 at[32];
data/dnssec-trigger-0.17+repack/riggerd/svr.c:1253: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 header[10];
data/dnssec-trigger-0.17+repack/riggerd/ubhook.c:102:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char command[12000];
data/dnssec-trigger-0.17+repack/riggerd/ubhook.c:177: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[10240];
data/dnssec-trigger-0.17+repack/riggerd/ubhook.c:214:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char command[12000];
data/dnssec-trigger-0.17+repack/riggerd/ubhook.c:264: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[102400];
data/dnssec-trigger-0.17+repack/riggerd/ubhook.c:303: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[102400];
data/dnssec-trigger-0.17+repack/riggerd/ubhook.c:424: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 zone[1024], label[1024];
data/dnssec-trigger-0.17+repack/riggerd/ubhook.c:473:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cmd[4000] = {'\0'};
data/dnssec-trigger-0.17+repack/riggerd/ubhook.c:486:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cmd[4000] = {'\0'};
data/dnssec-trigger-0.17+repack/riggerd/ubhook.c:498:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cmd[1000] = {'\0'};
data/dnssec-trigger-0.17+repack/riggerd/ubhook.c:511:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cmd[1000] = {'\0'};
data/dnssec-trigger-0.17+repack/riggerd/update.c:429: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 url[1024];
data/dnssec-trigger-0.17+repack/riggerd/update.c:430:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char file[256];
data/dnssec-trigger-0.17+repack/riggerd/update.c:517:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char download_hash[LDNS_SHA256_DIGEST_LENGTH];
data/dnssec-trigger-0.17+repack/riggerd/update.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[1024];
data/dnssec-trigger-0.17+repack/riggerd/update.c:566: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).
	out = fopen(se->download_file, "wb");
data/dnssec-trigger-0.17+repack/test/other.c:143: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("test/list_forwards_example", "r");
data/dnssec-trigger-0.17+repack/test/other.c:159: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("test/list_local_zones_example", "r");
data/dnssec-trigger-0.17+repack/test/other.c:196: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("test/list_forwards_example", "r");
data/dnssec-trigger-0.17+repack/vendor/ccan/json/json.c:90: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(sb->cur, bytes, count);
data/dnssec-trigger-0.17+repack/vendor/ccan/json/json.c:797: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 throwaway_buffer[4];
data/dnssec-trigger-0.17+repack/vendor/ccan/json/json.c:1172: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(b, "\\uFFFD");
data/dnssec-trigger-0.17+repack/vendor/ccan/json/json.c:1233: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/dnssec-trigger-0.17+repack/vendor/ccan/json/json.c:1234: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(buf, "%.16g", num);
data/dnssec-trigger-0.17+repack/vendor/ccan/json/json.c:1313:39:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
bool json_check(const JsonNode *node, char errmsg[256])
data/dnssec-trigger-0.17+repack/vendor/ccan/json/json.h:115:39:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
bool json_check(const JsonNode *node, char errmsg[256]);
data/dnssec-trigger-0.17+repack/vendor/ccan/json/test/run-construction.c:9:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char errmsg[256];
data/dnssec-trigger-0.17+repack/vendor/ccan/json/test/run-decode-encode.c:8: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[1024], buffer2[1024];
data/dnssec-trigger-0.17+repack/vendor/ccan/json/test/run-decode-encode.c:12:6:  [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).
	f = fopen(strings_file, "rb");
data/dnssec-trigger-0.17+repack/vendor/ccan/json/test/run-decode-encode.c:17: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).
	f2 = fopen(strings_reencoded_file, "rb");
data/dnssec-trigger-0.17+repack/vendor/ccan/json/test/run-decode-encode.c:41: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 errmsg[256];
data/dnssec-trigger-0.17+repack/vendor/ccan/json/test/run-stringify.c:3: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 buf1[256], buf2[256];
data/dnssec-trigger-0.17+repack/vendor/ccan/json/test/run-stringify.c:6: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 *quote_string(const char *str, char buf[256])
data/dnssec-trigger-0.17+repack/vendor/ccan/json/test/run-stringify.c:6:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *quote_string(const char *str, char buf[256])
data/dnssec-trigger-0.17+repack/vendor/ccan/json/test/run-stringify.c:6:44:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *quote_string(const char *str, char buf[256])
data/dnssec-trigger-0.17+repack/vendor/ccan/json/test/run-validate.c:7: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[1024];
data/dnssec-trigger-0.17+repack/vendor/ccan/json/test/run-validate.c:11:6:  [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).
	f = fopen(strings_file, "rb");
data/dnssec-trigger-0.17+repack/winrc/dnssec-trigger-keygen.c:169:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char filename[FNAMESIZE];
data/dnssec-trigger-0.17+repack/winrc/dnssec-trigger-keygen.c:184:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[32];
data/dnssec-trigger-0.17+repack/winrc/dnssec-trigger-keygen.c:241:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char filename[FNAMESIZE];
data/dnssec-trigger-0.17+repack/winrc/dnssec-trigger-keygen.c:348:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                unsigned char buf[256];
data/dnssec-trigger-0.17+repack/winrc/netlist.c:274:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char key[256];
data/dnssec-trigger-0.17+repack/winrc/netlist.c:310: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 t[128];
data/dnssec-trigger-0.17+repack/winrc/netlist.c:335: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[40960];
data/dnssec-trigger-0.17+repack/winrc/netlist.c:370: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 result[10240];
data/dnssec-trigger-0.17+repack/winrc/netlist.c:371: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 netnames[10240];
data/dnssec-trigger-0.17+repack/winrc/netlist.c:372: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[20480];
data/dnssec-trigger-0.17+repack/winrc/netlist.c:456: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 ssid[10240];
data/dnssec-trigger-0.17+repack/winrc/proc_dll_src/exdll.c:25: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[1024];
data/dnssec-trigger-0.17+repack/winrc/proc_dll_src/exdll.h:30: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				text[1]; // this should be the length of string_size
data/dnssec-trigger-0.17+repack/winrc/proc_dll_src/processes.c:95: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		szProcessName[ 1024 ];
data/dnssec-trigger-0.17+repack/winrc/proc_dll_src/processes.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		szCurrentProcessName[ 1024 ];
data/dnssec-trigger-0.17+repack/winrc/proc_dll_src/processes.c:173: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		szProcessName[ 1024 ];
data/dnssec-trigger-0.17+repack/winrc/proc_dll_src/processes.c:174: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		szProcessNameWE[ 1024 ];
data/dnssec-trigger-0.17+repack/winrc/proc_dll_src/processes.c:175:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		szCurrentProcessName[ 1024 ];
data/dnssec-trigger-0.17+repack/winrc/proc_dll_src/processes.c:272: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		szDeviceName[ 1024 ];
data/dnssec-trigger-0.17+repack/winrc/proc_dll_src/processes.c:273: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		szCurrentDeviceName[ 1024 ];
data/dnssec-trigger-0.17+repack/winrc/proc_dll_src/processes.c:277:2:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	TCHAR		tszCurrentDeviceName[ 1024 ];
data/dnssec-trigger-0.17+repack/winrc/proc_dll_src/processes.c:314: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( szCurrentDeviceName, "%S", tszCurrentDeviceName );
data/dnssec-trigger-0.17+repack/winrc/proc_dll_src/processes.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		szParameter[ 1024 ];
data/dnssec-trigger-0.17+repack/winrc/proc_dll_src/processes.c:372: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		szParameter[ 1024 ];
data/dnssec-trigger-0.17+repack/winrc/proc_dll_src/processes.c:400: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		szParameter[ 1024 ];
data/dnssec-trigger-0.17+repack/winrc/trayicon.c:328: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[102400];
data/dnssec-trigger-0.17+repack/winrc/trayicon.c:338: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[1024];
data/dnssec-trigger-0.17+repack/winrc/trayicon.c:372: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 fname[260];
data/dnssec-trigger-0.17+repack/winrc/trayicon.c:687: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 update_text[1024];
data/dnssec-trigger-0.17+repack/winrc/trayicon.c:726: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 res[1024];
data/dnssec-trigger-0.17+repack/winrc/w_inst.c:64:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char e[256];
data/dnssec-trigger-0.17+repack/winrc/w_inst.c:75:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/dnssec-trigger-0.17+repack/winrc/w_inst.c:133:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/dnssec-trigger-0.17+repack/winrc/w_inst.c:193:9:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        TCHAR path[MAX_PATH+2+256];
data/dnssec-trigger-0.17+repack/winrc/w_inst.c:206:9:  [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(path, " -w service");
data/dnssec-trigger-0.17+repack/winrc/win_svc.c:132:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char b[256];
data/dnssec-trigger-0.17+repack/winrc/win_svc.c:133: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 e[256];
data/dnssec-trigger-0.17+repack/winrc/win_svc.c:228: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).
		result = atoi((char*)buf);
data/dnssec-trigger-0.17+repack/winrc/win_svc.c:413: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).
		fclose(fopen("C:\\dnssectrigger.log", "w"));
data/dnssec-trigger-0.17+repack/winrc/win_svc.c:627: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 subname[1024];
data/dnssec-trigger-0.17+repack/winrc/win_svc.c:793:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/dnssec-trigger-0.17+repack/compat/inet_ntop.c:189: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).
			tp += strlen(tp);
data/dnssec-trigger-0.17+repack/compat/snprintf.c:590: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).
	else	w = (int)strlen(s); /* up to the nul */
data/dnssec-trigger-0.17+repack/dnssec-trigger-control.c:114:31:  [1] (buffer) strlen:
  Does not handle 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(SSL_write(ssl, buf, (int)strlen(buf)) <= 0)
data/dnssec-trigger-0.17+repack/dnssec-trigger-control.c:130:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(SSL_write(ssl, pre, (int)strlen(pre)) <= 0)
data/dnssec-trigger-0.17+repack/dnssec-trigger-control.c:133:33:  [1] (buffer) strlen:
  Does not handle 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(SSL_write(ssl, space, (int)strlen(space)) <= 0)
data/dnssec-trigger-0.17+repack/dnssec-trigger-control.c:135:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if(argv[i] && strlen(argv[i])>0)
data/dnssec-trigger-0.17+repack/dnssec-trigger-control.c:136: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).
			if(SSL_write(ssl, argv[i], (int)strlen(argv[i])) <= 0)
data/dnssec-trigger-0.17+repack/dnssec-trigger-control.c:139:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(SSL_write(ssl, newline, (int)strlen(newline)) <= 0)
data/dnssec-trigger-0.17+repack/panel/attach.c:133:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(SSL_write(ssl, pre, (int)strlen(pre)) <= 0)
data/dnssec-trigger-0.17+repack/panel/attach.c:135:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(SSL_write(ssl, cmd, (int)strlen(cmd)) <= 0)
data/dnssec-trigger-0.17+repack/panel/attach.c:354:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if(SSL_write(feed->ssl_write, cmd, (int)strlen(cmd)) <= 0) {
data/dnssec-trigger-0.17+repack/panel/attach.c:361:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			(void)SSL_write(feed->ssl_write, cmd, (int)strlen(cmd));
data/dnssec-trigger-0.17+repack/panel/attach.c:460:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	n = strlen(pos);
data/dnssec-trigger-0.17+repack/panel/attach.c:467:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		n = strlen(pos);
data/dnssec-trigger-0.17+repack/panel/attach.c:472:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	n = strlen(pos);
data/dnssec-trigger-0.17+repack/panel/attach.c:476:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		n = strlen(pos);
data/dnssec-trigger-0.17+repack/panel/attach.c:481:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		n = strlen(pos);
data/dnssec-trigger-0.17+repack/panel/attach.c:490: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).
			n = strlen(pos);
data/dnssec-trigger-0.17+repack/panel/attach.c:536: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).
			n = strlen(pos);
data/dnssec-trigger-0.17+repack/panel/attach.c:540: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).
			n = strlen(pos);
data/dnssec-trigger-0.17+repack/riggerd/cfg.c:163: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).
	while(strlen(line) > 0 && isspace(line[strlen(line)-1]))
data/dnssec-trigger-0.17+repack/riggerd/cfg.c:163:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	while(strlen(line) > 0 && isspace(line[strlen(line)-1]))
data/dnssec-trigger-0.17+repack/riggerd/cfg.c:164: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).
		line[strlen(line)-1] = 0;
data/dnssec-trigger-0.17+repack/riggerd/cfg.c:165:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(strlen(line) > 1 && line[0]=='"' && line[strlen(line)-1]=='"') {
data/dnssec-trigger-0.17+repack/riggerd/cfg.c:165: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).
	if(strlen(line) > 1 && line[0]=='"' && line[strlen(line)-1]=='"') {
data/dnssec-trigger-0.17+repack/riggerd/cfg.c:167: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).
		line[strlen(line)-1] = 0;
data/dnssec-trigger-0.17+repack/riggerd/cfg.c:168:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	} else if(strlen(line) > 1 && line[0]=='\''
data/dnssec-trigger-0.17+repack/riggerd/cfg.c:169: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).
		&& line[strlen(line)-1]=='\'') {
data/dnssec-trigger-0.17+repack/riggerd/cfg.c:171: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).
		line[strlen(line)-1] = 0;
data/dnssec-trigger-0.17+repack/riggerd/cfg.c:238:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if((int)strlen(arg) != len*3-1) {/* sha256, 32bytes of xx:xx:xx:xx */
data/dnssec-trigger-0.17+repack/riggerd/fwd_zones.c:66:80:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        string_list_push_back(&new_conn->zones, zone->string_, strlen(zone->string_));
data/dnssec-trigger-0.17+repack/riggerd/fwd_zones.c:72:84:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        string_list_push_back(&new_conn->servers, server->string_, strlen(server->string_));
data/dnssec-trigger-0.17+repack/riggerd/http.c:770: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).
	size_t result_len = strlen(result);
data/dnssec-trigger-0.17+repack/riggerd/log.c:115:3:  [1] (buffer) strlen:
  Does not handle 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(chrootdir)) == 0) 
data/dnssec-trigger-0.17+repack/riggerd/log.c:116: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).
		filename += strlen(chrootdir);
data/dnssec-trigger-0.17+repack/riggerd/net_help.c:146:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		strncpy(dest, "(inet_ntop error)", sizeof(dest));
data/dnssec-trigger-0.17+repack/riggerd/net_help.c:167:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(buf, str, MAX_ADDR_STRLEN);
data/dnssec-trigger-0.17+repack/riggerd/netevent.c:363:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			strncpy(buf, "(inet_ntop error)", sizeof(buf));
data/dnssec-trigger-0.17+repack/riggerd/netevent.c:372:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			strncpy(buf1, "(inet_ntop error)", sizeof(buf1));
data/dnssec-trigger-0.17+repack/riggerd/netevent.c:377:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			strncpy(buf2, "(inet_ntop error)", sizeof(buf2));
data/dnssec-trigger-0.17+repack/riggerd/netevent.c:386:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			strncpy(buf1, "(inet_ntop error)", sizeof(buf1));
data/dnssec-trigger-0.17+repack/riggerd/probe.c:284:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			blen -= strlen(at);
data/dnssec-trigger-0.17+repack/riggerd/probe.c:285: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).
			at += strlen(at); 
data/dnssec-trigger-0.17+repack/riggerd/reshook.c:91: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).
	} else if(r != (int)strlen(line)) {
data/dnssec-trigger-0.17+repack/riggerd/reshook.c:182:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(strncmp(line, opt, strlen(opt)) != 0)
data/dnssec-trigger-0.17+repack/riggerd/reshook.c:185:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(strcmp(line+strlen(opt), "\n") != 0)
data/dnssec-trigger-0.17+repack/riggerd/reshook.c:309: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).
			snprintf(iplist+strlen(iplist),
data/dnssec-trigger-0.17+repack/riggerd/reshook.c:310: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).
				sizeof(iplist)-strlen(iplist), "%s%s",
data/dnssec-trigger-0.17+repack/riggerd/svr.c:742: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).
			if(left < strlen(p->name)+3)
data/dnssec-trigger-0.17+repack/riggerd/svr.c:746: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).
			len = strlen(now);
data/dnssec-trigger-0.17+repack/riggerd/svr.c:1233:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if(SSL_write(s->ssl, stopcmd, (int)strlen(stopcmd)) < 0)
data/dnssec-trigger-0.17+repack/riggerd/svr.c:1256: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(strncmp(str, header, strlen(header)) != 0) {
data/dnssec-trigger-0.17+repack/riggerd/svr.c:1261: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).
	str += strlen(header);
data/dnssec-trigger-0.17+repack/riggerd/ubhook.c:187: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).
			if(left < strlen(list->name)+3)
data/dnssec-trigger-0.17+repack/riggerd/ubhook.c:191: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).
			len = strlen(now);
data/dnssec-trigger-0.17+repack/riggerd/ubhook.c:253:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(*left < strlen(str)+3)
data/dnssec-trigger-0.17+repack/riggerd/ubhook.c:256: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(*now);
data/dnssec-trigger-0.17+repack/riggerd/ubhook.c:433:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			string_list_push_back(&ret, zone, strlen(zone));
data/dnssec-trigger-0.17+repack/riggerd/update.c:201: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(str);
data/dnssec-trigger-0.17+repack/riggerd/update.c:246: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).
	se->hashlen = strlen(hashstr)/2;
data/dnssec-trigger-0.17+repack/vendor/ccan/json/json.c:40: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).
	char *ret = (char*) malloc(strlen(str) + 1);
data/dnssec-trigger-0.17+repack/vendor/ccan/json/json.c:102:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	sb_put(sb, str, strlen(str));
data/dnssec-trigger-0.17+repack/vendor/ccan/json/json.c:108:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	assert(sb->start <= sb->cur && strlen(sb->start) == (size_t)(sb->cur - sb->start));
data/dnssec-trigger-0.17+repack/winrc/netlist.c:214: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(res) + attr->wlanAssociationAttributes.dot11Ssid.
data/dnssec-trigger-0.17+repack/winrc/netlist.c:220: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).
		p = res+strlen(res);
data/dnssec-trigger-0.17+repack/winrc/netlist.c:280: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).
	snprintf(netnames+strlen(netnames), netlen-strlen(netnames),
data/dnssec-trigger-0.17+repack/winrc/netlist.c:280:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	snprintf(netnames+strlen(netnames), netlen-strlen(netnames),
data/dnssec-trigger-0.17+repack/winrc/netlist.c:288:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(res && strlen(res)>0) {
data/dnssec-trigger-0.17+repack/winrc/netlist.c:289: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).
		size_t dlen = strlen(dest);
data/dnssec-trigger-0.17+repack/winrc/netlist.c:293:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if(dlen + strlen(res) + 1 < len) {
data/dnssec-trigger-0.17+repack/winrc/netlist.c:295: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).
			memmove(dest+dlen, res, strlen(res)+1);
data/dnssec-trigger-0.17+repack/winrc/netlist.c:309:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			size_t dlen = strlen(dest);
data/dnssec-trigger-0.17+repack/winrc/netlist.c:317: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).
			if(dlen + strlen(t) + 1 + 1 < len) {
data/dnssec-trigger-0.17+repack/winrc/netlist.c:320: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).
				memmove(dest+dlen+1, t, strlen(t)+1);
data/dnssec-trigger-0.17+repack/winrc/netlist.c:411: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).
		snprintf(netnames+strlen(netnames),
data/dnssec-trigger-0.17+repack/winrc/netlist.c:412: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).
			sizeof(netnames)-strlen(netnames), " * %s",
data/dnssec-trigger-0.17+repack/winrc/proc_dll_src/exdll.h:104:3:  [1] (buffer) lstrcpyn:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  lstrcpyn( th->text, str, g_stringsize );
data/dnssec-trigger-0.17+repack/winrc/w_inst.c:96: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).
		(DWORD)strlen(pathname)+1)) /* length of data */
data/dnssec-trigger-0.17+repack/winrc/w_inst.c:113: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).
		(BYTE*)pathname, (DWORD)strlen(pathname)+1)) {
data/dnssec-trigger-0.17+repack/winrc/w_inst.c:164:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if(strlen(str) == maxlen) {
data/dnssec-trigger-0.17+repack/winrc/w_inst.c:169:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        str[strlen(str)+1]=0;
data/dnssec-trigger-0.17+repack/winrc/w_inst.c:170:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        str[strlen(str)]='"';
data/dnssec-trigger-0.17+repack/winrc/w_inst.c:177: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).
        size_t fromlen = strlen(from);
data/dnssec-trigger-0.17+repack/winrc/w_inst.c:178: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).
        size_t tolen = strlen(to);
data/dnssec-trigger-0.17+repack/winrc/w_inst.c:179: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).
        size_t pathlen = strlen(path);
data/dnssec-trigger-0.17+repack/winrc/win_svc.c:515:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(cronaction && strlen(cronaction)>0) {
data/dnssec-trigger-0.17+repack/winrc/win_svc.c:671:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(arg) len = strlen((char*)arg);
data/dnssec-trigger-0.17+repack/winrc/win_svc.c:705: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).
			(BYTE*)ip, (DWORD)strlen(ip)+1)) {
data/dnssec-trigger-0.17+repack/winrc/win_svc.c:729: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).
			(BYTE*)ip, (DWORD)strlen(ip)+1)) {

ANALYSIS SUMMARY:

Hits = 329
Lines analyzed = 26939 in approximately 0.74 seconds (36379 lines/second)
Physical Source Lines of Code (SLOC) = 18774
Hits@level = [0] 217 [1]  89 [2] 169 [3]  17 [4]  52 [5]   2
Hits@level+ = [0+] 546 [1+] 329 [2+] 240 [3+]  71 [4+]  54 [5+]   2
Hits/KSLOC@level+ = [0+] 29.0828 [1+] 17.5242 [2+] 12.7836 [3+] 3.78183 [4+] 2.87632 [5+] 0.10653
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.