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/unbound-1.12.0/validator/val_nsec.c
Examining data/unbound-1.12.0/validator/val_nsec3.h
Examining data/unbound-1.12.0/validator/validator.h
Examining data/unbound-1.12.0/validator/val_anchor.h
Examining data/unbound-1.12.0/validator/val_utils.c
Examining data/unbound-1.12.0/validator/validator.c
Examining data/unbound-1.12.0/validator/val_neg.h
Examining data/unbound-1.12.0/validator/autotrust.c
Examining data/unbound-1.12.0/validator/val_kentry.h
Examining data/unbound-1.12.0/validator/val_sigcrypt.c
Examining data/unbound-1.12.0/validator/val_kcache.h
Examining data/unbound-1.12.0/validator/val_nsec.h
Examining data/unbound-1.12.0/validator/val_anchor.c
Examining data/unbound-1.12.0/validator/val_utils.h
Examining data/unbound-1.12.0/validator/val_secalgo.c
Examining data/unbound-1.12.0/validator/val_kcache.c
Examining data/unbound-1.12.0/validator/val_secalgo.h
Examining data/unbound-1.12.0/validator/val_nsec3.c
Examining data/unbound-1.12.0/validator/val_neg.c
Examining data/unbound-1.12.0/validator/autotrust.h
Examining data/unbound-1.12.0/validator/val_kentry.c
Examining data/unbound-1.12.0/validator/val_sigcrypt.h
Examining data/unbound-1.12.0/services/modstack.c
Examining data/unbound-1.12.0/services/view.h
Examining data/unbound-1.12.0/services/localzone.c
Examining data/unbound-1.12.0/services/mesh.h
Examining data/unbound-1.12.0/services/listen_dnsport.c
Examining data/unbound-1.12.0/services/view.c
Examining data/unbound-1.12.0/services/listen_dnsport.h
Examining data/unbound-1.12.0/services/cache/infra.h
Examining data/unbound-1.12.0/services/cache/dns.c
Examining data/unbound-1.12.0/services/cache/dns.h
Examining data/unbound-1.12.0/services/cache/rrset.c
Examining data/unbound-1.12.0/services/cache/infra.c
Examining data/unbound-1.12.0/services/cache/rrset.h
Examining data/unbound-1.12.0/services/outside_network.c
Examining data/unbound-1.12.0/services/authzone.c
Examining data/unbound-1.12.0/services/rpz.h
Examining data/unbound-1.12.0/services/modstack.h
Examining data/unbound-1.12.0/services/outbound_list.c
Examining data/unbound-1.12.0/services/outbound_list.h
Examining data/unbound-1.12.0/services/outside_network.h
Examining data/unbound-1.12.0/services/rpz.c
Examining data/unbound-1.12.0/services/localzone.h
Examining data/unbound-1.12.0/services/mesh.c
Examining data/unbound-1.12.0/services/authzone.h
Examining data/unbound-1.12.0/iterator/iter_resptype.h
Examining data/unbound-1.12.0/iterator/iter_fwd.c
Examining data/unbound-1.12.0/iterator/iter_utils.c
Examining data/unbound-1.12.0/iterator/iterator.c
Examining data/unbound-1.12.0/iterator/iter_scrub.h
Examining data/unbound-1.12.0/iterator/iter_resptype.c
Examining data/unbound-1.12.0/iterator/iter_delegpt.c
Examining data/unbound-1.12.0/iterator/iter_fwd.h
Examining data/unbound-1.12.0/iterator/iter_hints.h
Examining data/unbound-1.12.0/iterator/iter_scrub.c
Examining data/unbound-1.12.0/iterator/iter_donotq.h
Examining data/unbound-1.12.0/iterator/iter_priv.c
Examining data/unbound-1.12.0/iterator/iter_hints.c
Examining data/unbound-1.12.0/iterator/iterator.h
Examining data/unbound-1.12.0/iterator/iter_priv.h
Examining data/unbound-1.12.0/iterator/iter_donotq.c
Examining data/unbound-1.12.0/iterator/iter_utils.h
Examining data/unbound-1.12.0/iterator/iter_delegpt.h
Examining data/unbound-1.12.0/compat/strlcat.c
Examining data/unbound-1.12.0/compat/strsep.c
Examining data/unbound-1.12.0/compat/arc4random_uniform.c
Examining data/unbound-1.12.0/compat/memcmp.c
Examining data/unbound-1.12.0/compat/memcmp.h
Examining data/unbound-1.12.0/compat/getentropy_linux.c
Examining data/unbound-1.12.0/compat/inet_pton.c
Examining data/unbound-1.12.0/compat/gmtime_r.c
Examining data/unbound-1.12.0/compat/chacha_private.h
Examining data/unbound-1.12.0/compat/getentropy_win.c
Examining data/unbound-1.12.0/compat/memmove.c
Examining data/unbound-1.12.0/compat/inet_ntop.c
Examining data/unbound-1.12.0/compat/arc4_lock.c
Examining data/unbound-1.12.0/compat/arc4random.c
Examining data/unbound-1.12.0/compat/fake-rfc2553.h
Examining data/unbound-1.12.0/compat/strptime.c
Examining data/unbound-1.12.0/compat/explicit_bzero.c
Examining data/unbound-1.12.0/compat/strlcpy.c
Examining data/unbound-1.12.0/compat/malloc.c
Examining data/unbound-1.12.0/compat/sha512.c
Examining data/unbound-1.12.0/compat/reallocarray.c
Examining data/unbound-1.12.0/compat/getentropy_freebsd.c
Examining data/unbound-1.12.0/compat/inet_aton.c
Examining data/unbound-1.12.0/compat/getentropy_osx.c
Examining data/unbound-1.12.0/compat/snprintf.c
Examining data/unbound-1.12.0/compat/getentropy_solaris.c
Examining data/unbound-1.12.0/compat/isblank.c
Examining data/unbound-1.12.0/compat/fake-rfc2553.c
Examining data/unbound-1.12.0/compat/ctime_r.c
Examining data/unbound-1.12.0/sldns/parseutil.h
Examining data/unbound-1.12.0/sldns/wire2str.h
Examining data/unbound-1.12.0/sldns/sbuffer.c
Examining data/unbound-1.12.0/sldns/parseutil.c
Examining data/unbound-1.12.0/sldns/keyraw.h
Examining data/unbound-1.12.0/sldns/sbuffer.h
Examining data/unbound-1.12.0/sldns/keyraw.c
Examining data/unbound-1.12.0/sldns/parse.h
Examining data/unbound-1.12.0/sldns/rrdef.h
Examining data/unbound-1.12.0/sldns/parse.c
Examining data/unbound-1.12.0/sldns/str2wire.h
Examining data/unbound-1.12.0/sldns/rrdef.c
Examining data/unbound-1.12.0/sldns/pkthdr.h
Examining data/unbound-1.12.0/sldns/wire2str.c
Examining data/unbound-1.12.0/sldns/str2wire.c
Examining data/unbound-1.12.0/dynlibmod/dynlibmod.c
Examining data/unbound-1.12.0/dynlibmod/examples/helloworld.c
Examining data/unbound-1.12.0/dynlibmod/dynlibmod.h
Examining data/unbound-1.12.0/edns-subnet/subnet-whitelist.c
Examining data/unbound-1.12.0/edns-subnet/subnetmod.c
Examining data/unbound-1.12.0/edns-subnet/subnetmod.h
Examining data/unbound-1.12.0/edns-subnet/addrtree.h
Examining data/unbound-1.12.0/edns-subnet/edns-subnet.c
Examining data/unbound-1.12.0/edns-subnet/edns-subnet.h
Examining data/unbound-1.12.0/edns-subnet/subnet-whitelist.h
Examining data/unbound-1.12.0/edns-subnet/addrtree.c
Examining data/unbound-1.12.0/winrc/unbound-service-install.c
Examining data/unbound-1.12.0/winrc/win_svc.h
Examining data/unbound-1.12.0/winrc/win_svc.c
Examining data/unbound-1.12.0/winrc/w_inst.c
Examining data/unbound-1.12.0/winrc/unbound-service-remove.c
Examining data/unbound-1.12.0/winrc/anchor-update.c
Examining data/unbound-1.12.0/winrc/w_inst.h
Examining data/unbound-1.12.0/smallapp/unbound-control.c
Examining data/unbound-1.12.0/smallapp/unbound-checkconf.c
Examining data/unbound-1.12.0/smallapp/unbound-anchor.c
Examining data/unbound-1.12.0/smallapp/worker_cb.c
Examining data/unbound-1.12.0/smallapp/unbound-host.c
Examining data/unbound-1.12.0/testdata/speed_cache.tdir/makeqs.c
Examining data/unbound-1.12.0/libunbound/libunbound.c
Examining data/unbound-1.12.0/libunbound/unbound.h
Examining data/unbound-1.12.0/libunbound/worker.h
Examining data/unbound-1.12.0/libunbound/libworker.c
Examining data/unbound-1.12.0/libunbound/unbound-event.h
Examining data/unbound-1.12.0/libunbound/context.c
Examining data/unbound-1.12.0/libunbound/context.h
Examining data/unbound-1.12.0/libunbound/libworker.h
Examining data/unbound-1.12.0/pythonmod/pythonmod_utils.c
Examining data/unbound-1.12.0/pythonmod/pythonmod.h
Examining data/unbound-1.12.0/pythonmod/pythonmod.c
Examining data/unbound-1.12.0/pythonmod/pythonmod_utils.h
Examining data/unbound-1.12.0/respip/respip.c
Examining data/unbound-1.12.0/respip/respip.h
Examining data/unbound-1.12.0/testcode/checklocks.c
Examining data/unbound-1.12.0/testcode/unitregional.c
Examining data/unbound-1.12.0/testcode/memstats.c
Examining data/unbound-1.12.0/testcode/perf.c
Examining data/unbound-1.12.0/testcode/testpkts.c
Examining data/unbound-1.12.0/testcode/replay.h
Examining data/unbound-1.12.0/testcode/unitldns.c
Examining data/unbound-1.12.0/testcode/petal.c
Examining data/unbound-1.12.0/testcode/lock_verify.c
Examining data/unbound-1.12.0/testcode/readhex.h
Examining data/unbound-1.12.0/testcode/unitneg.c
Examining data/unbound-1.12.0/testcode/unitauth.c
Examining data/unbound-1.12.0/testcode/streamtcp.c
Examining data/unbound-1.12.0/testcode/unitecs.c
Examining data/unbound-1.12.0/testcode/dohclient.c
Examining data/unbound-1.12.0/testcode/unitanchor.c
Examining data/unbound-1.12.0/testcode/unitmsgparse.c
Examining data/unbound-1.12.0/testcode/delayer.c
Examining data/unbound-1.12.0/testcode/unitmain.h
Examining data/unbound-1.12.0/testcode/readhex.c
Examining data/unbound-1.12.0/testcode/fake_event.h
Examining data/unbound-1.12.0/testcode/checklocks.h
Examining data/unbound-1.12.0/testcode/unitmain.c
Examining data/unbound-1.12.0/testcode/pktview.c
Examining data/unbound-1.12.0/testcode/testpkts.h
Examining data/unbound-1.12.0/testcode/asynclook.c
Examining data/unbound-1.12.0/testcode/unitverify.c
Examining data/unbound-1.12.0/testcode/unitlruhash.c
Examining data/unbound-1.12.0/testcode/unitdname.c
Examining data/unbound-1.12.0/testcode/replay.c
Examining data/unbound-1.12.0/testcode/unitslabhash.c
Examining data/unbound-1.12.0/testcode/fake_event.c
Examining data/unbound-1.12.0/testcode/signit.c
Examining data/unbound-1.12.0/testcode/testbound.c
Examining data/unbound-1.12.0/dnscrypt/dnscrypt.c
Examining data/unbound-1.12.0/dnscrypt/cert.h
Examining data/unbound-1.12.0/dnscrypt/dnscrypt.h
Examining data/unbound-1.12.0/daemon/worker.h
Examining data/unbound-1.12.0/daemon/cachedump.c
Examining data/unbound-1.12.0/daemon/daemon.c
Examining data/unbound-1.12.0/daemon/remote.c
Examining data/unbound-1.12.0/daemon/stats.c
Examining data/unbound-1.12.0/daemon/worker.c
Examining data/unbound-1.12.0/daemon/daemon.h
Examining data/unbound-1.12.0/daemon/remote.h
Examining data/unbound-1.12.0/daemon/unbound.c
Examining data/unbound-1.12.0/daemon/acl_list.h
Examining data/unbound-1.12.0/daemon/cachedump.h
Examining data/unbound-1.12.0/daemon/stats.h
Examining data/unbound-1.12.0/daemon/acl_list.c
Examining data/unbound-1.12.0/dnstap/dnstap_fstrm.h
Examining data/unbound-1.12.0/dnstap/dnstap.h
Examining data/unbound-1.12.0/dnstap/dtstream.h
Examining data/unbound-1.12.0/dnstap/dnstap_fstrm.c
Examining data/unbound-1.12.0/dnstap/unbound-dnstap-socket.c
Examining data/unbound-1.12.0/dnstap/dnstap.c
Examining data/unbound-1.12.0/dnstap/dtstream.c
Examining data/unbound-1.12.0/dns64/dns64.h
Examining data/unbound-1.12.0/dns64/dns64.c
Examining data/unbound-1.12.0/ipsecmod/ipsecmod.h
Examining data/unbound-1.12.0/ipsecmod/ipsecmod.c
Examining data/unbound-1.12.0/ipsecmod/ipsecmod-whitelist.h
Examining data/unbound-1.12.0/ipsecmod/ipsecmod-whitelist.c
Examining data/unbound-1.12.0/util/ub_event.c
Examining data/unbound-1.12.0/util/ub_event_pluggable.c
Examining data/unbound-1.12.0/util/winsock_event.c
Examining data/unbound-1.12.0/util/rbtree.h
Examining data/unbound-1.12.0/util/module.h
Examining data/unbound-1.12.0/util/configyyrename.h
Examining data/unbound-1.12.0/util/configparser.h
Examining data/unbound-1.12.0/util/edns.h
Examining data/unbound-1.12.0/util/storage/lookup3.h
Examining data/unbound-1.12.0/util/storage/dnstree.c
Examining data/unbound-1.12.0/util/storage/lookup3.c
Examining data/unbound-1.12.0/util/storage/lruhash.c
Examining data/unbound-1.12.0/util/storage/lruhash.h
Examining data/unbound-1.12.0/util/storage/dnstree.h
Examining data/unbound-1.12.0/util/storage/slabhash.h
Examining data/unbound-1.12.0/util/storage/slabhash.c
Examining data/unbound-1.12.0/util/timehist.c
Examining data/unbound-1.12.0/util/tcp_conn_limit.c
Examining data/unbound-1.12.0/util/locks.h
Examining data/unbound-1.12.0/util/rtt.c
Examining data/unbound-1.12.0/util/as112.c
Examining data/unbound-1.12.0/util/tube.h
Examining data/unbound-1.12.0/util/ub_event.h
Examining data/unbound-1.12.0/util/net_help.h
Examining data/unbound-1.12.0/util/edns.c
Examining data/unbound-1.12.0/util/log.c
Examining data/unbound-1.12.0/util/rbtree.c
Examining data/unbound-1.12.0/util/regional.h
Examining data/unbound-1.12.0/util/module.c
Examining data/unbound-1.12.0/util/config_file.h
Examining data/unbound-1.12.0/util/alloc.c
Examining data/unbound-1.12.0/util/random.c
Examining data/unbound-1.12.0/util/timehist.h
Examining data/unbound-1.12.0/util/fptr_wlist.c
Examining data/unbound-1.12.0/util/fptr_wlist.h
Examining data/unbound-1.12.0/util/netevent.h
Examining data/unbound-1.12.0/util/alloc.h
Examining data/unbound-1.12.0/util/tube.c
Examining data/unbound-1.12.0/util/tcp_conn_limit.h
Examining data/unbound-1.12.0/util/regional.c
Examining data/unbound-1.12.0/util/mini_event.c
Examining data/unbound-1.12.0/util/net_help.c
Examining data/unbound-1.12.0/util/as112.h
Examining data/unbound-1.12.0/util/rtt.h
Examining data/unbound-1.12.0/util/configparser.c
Examining data/unbound-1.12.0/util/mini_event.h
Examining data/unbound-1.12.0/util/random.h
Examining data/unbound-1.12.0/util/netevent.c
Examining data/unbound-1.12.0/util/configlexer.c
Examining data/unbound-1.12.0/util/log.h
Examining data/unbound-1.12.0/util/locks.c
Examining data/unbound-1.12.0/util/data/packed_rrset.h
Examining data/unbound-1.12.0/util/data/msgencode.h
Examining data/unbound-1.12.0/util/data/msgparse.h
Examining data/unbound-1.12.0/util/data/packed_rrset.c
Examining data/unbound-1.12.0/util/data/msgreply.c
Examining data/unbound-1.12.0/util/data/msgencode.c
Examining data/unbound-1.12.0/util/data/dname.h
Examining data/unbound-1.12.0/util/data/msgreply.h
Examining data/unbound-1.12.0/util/data/msgparse.c
Examining data/unbound-1.12.0/util/data/dname.c
Examining data/unbound-1.12.0/util/shm_side/shm_main.h
Examining data/unbound-1.12.0/util/shm_side/shm_main.c
Examining data/unbound-1.12.0/util/winsock_event.h
Examining data/unbound-1.12.0/util/config_file.c
Examining data/unbound-1.12.0/cachedb/cachedb.h
Examining data/unbound-1.12.0/cachedb/cachedb.c
Examining data/unbound-1.12.0/cachedb/redis.h
Examining data/unbound-1.12.0/cachedb/redis.c
Examining data/unbound-1.12.0/ipset/ipset.c
Examining data/unbound-1.12.0/ipset/ipset.h

FINAL RESULTS:

data/unbound-1.12.0/daemon/remote.c:299:8:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
				if(chown(ip, cfg_uid, cfg_gid) == -1)
data/unbound-1.12.0/daemon/remote.c:304:4:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
			chmod(ip, (mode_t)(S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP));
data/unbound-1.12.0/daemon/unbound.c:513:7:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
			if(chown(daemon->pidfile, cfg_uid, cfg_gid) == -1) {
data/unbound-1.12.0/compat/ctime_r.c:38:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(buf, result);
data/unbound-1.12.0/compat/getentropy_linux.c:390:7:  [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.
			HF(printf);		/* an addr in libc */
data/unbound-1.12.0/compat/getentropy_osx.c:290:7:  [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.
			HF(printf);		/* an addr in libc */
data/unbound-1.12.0/compat/getentropy_solaris.c:313:7:  [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.
			HF(printf);		/* an addr in libc */
data/unbound-1.12.0/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/unbound-1.12.0/compat/snprintf.c:50: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/unbound-1.12.0/compat/snprintf.c:51: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/unbound-1.12.0/compat/snprintf.c:54: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/unbound-1.12.0/compat/snprintf.c:55: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/unbound-1.12.0/compat/snprintf.c:67: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/unbound-1.12.0/compat/snprintf.c:72: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/unbound-1.12.0/compat/snprintf.c:630: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/unbound-1.12.0/compat/snprintf.c:840: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/unbound-1.12.0/compat/snprintf.c:851: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/unbound-1.12.0/daemon/remote.c:585: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(msg, sizeof(msg), format, args);
data/unbound-1.12.0/daemon/remote.c:2328:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(buf, len, ARG_LL "d.%6.6d",
data/unbound-1.12.0/daemon/remote.h:193:21:  [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.
        ATTR_FORMAT(printf, 2, 3);
data/unbound-1.12.0/ipsecmod/ipsecmod.c:212:5:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	if(sscanf(s, "%d %d %d %s ",
data/unbound-1.12.0/ipsecmod/ipsecmod.c:249: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(NULL) == 0) {
data/unbound-1.12.0/ipsecmod/ipsecmod.c:361: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(str) != 0)
data/unbound-1.12.0/sldns/sbuffer.c:125:13:  [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.
		written = vsnprintf((char *) sldns_buffer_current(buffer), remaining,
data/unbound-1.12.0/sldns/sbuffer.h:730:14:  [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.
	ATTR_FORMAT(printf, 2, 3);
data/unbound-1.12.0/sldns/wire2str.c:319:10:  [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 w = vsnprintf(*str, *slen, format, args);
data/unbound-1.12.0/sldns/wire2str.h:108:14:  [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.
	ATTR_FORMAT(printf, 3, 4);
data/unbound-1.12.0/smallapp/unbound-anchor.c:836:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(buf, sizeof(buf), str, sec);
data/unbound-1.12.0/smallapp/unbound-control.c:199:25:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define PR_UL(str, var) printf(str SQ"%lu\n", (unsigned long)(var));
data/unbound-1.12.0/smallapp/unbound-control.c:200:33:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define PR_UL_SUB(str, nm, var) printf(str".%s"SQ"%lu\n", nm, (unsigned long)(var));
data/unbound-1.12.0/smallapp/unbound-control.c:201:30:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define PR_TIMEVAL(str, var) printf(str SQ ARG_LL "d.%6.6d\n", \
data/unbound-1.12.0/smallapp/unbound-control.c:203:32:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define PR_STATSTIME(str, var) printf(str SQ ARG_LL "d.%6.6d\n", \
data/unbound-1.12.0/smallapp/unbound-control.c:205:25:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define PR_LL(str, var) printf(str SQ ARG_LL"d\n", (long long)(var));
data/unbound-1.12.0/smallapp/unbound-control.c:880:6:  [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("unbound", "unbound", "-c", cfgfile, 
data/unbound-1.12.0/testcode/memstats.c:136:5:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	if(sscanf(line, "%s %s %n", codeline, name, &skip) != 2) {
data/unbound-1.12.0/testcode/memstats.c:161:5:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	if(sscanf(line, "%s %s %n", codeline, name, &skip) != 2) {
data/unbound-1.12.0/testcode/replay.c:808: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.
			snprintf(buf, sizeof(buf), ARG_LL "d", (long long)runtime->now_secs);
data/unbound-1.12.0/testcode/replay.c:810: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.
			snprintf(buf, sizeof(buf), ARG_LL "d", (long long)0);
data/unbound-1.12.0/testcode/replay.c:820:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(buf, sizeof(buf), ARG_LL "d", (long long)res);
data/unbound-1.12.0/testcode/signit.c:107:2:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vprintf(format, args);
data/unbound-1.12.0/testcode/testpkts.c:48:74:  [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 verbose(enum verbosity_value lvl, const char* msg, ...) ATTR_FORMAT(printf, 2, 3);
data/unbound-1.12.0/testcode/testpkts.c:57:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, msg, args);
data/unbound-1.12.0/util/config_file.c:1646:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, fmt, args);
data/unbound-1.12.0/util/config_file.h:1252:55:  [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 ub_c_error_msg(const char* fmt, ...) ATTR_FORMAT(printf, 1, 2);
data/unbound-1.12.0/util/configlexer.c:3600:20:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define LEXOUT(s)  printf s /* used ONLY when debugging */
data/unbound-1.12.0/util/configparser.c:92:19:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define OUTYY(s)  printf s /* used ONLY when debugging */
data/unbound-1.12.0/util/configparser.c:2131:21:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define YYFPRINTF fprintf
data/unbound-1.12.0/util/log.c:233: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/unbound-1.12.0/util/log.h:75: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/unbound-1.12.0/util/log.h:149: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/unbound-1.12.0/util/log.h:156: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/unbound-1.12.0/util/log.h:163: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/unbound-1.12.0/util/log.h:179:53:  [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_query(const char* format, ...) ATTR_FORMAT(printf, 1, 2);
data/unbound-1.12.0/util/log.h:186:53:  [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_reply(const char* format, ...) ATTR_FORMAT(printf, 1, 2);
data/unbound-1.12.0/util/log.h:202: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) ATTR_NORETURN;
data/unbound-1.12.0/validator/autotrust.c:131: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, 3, 4);
data/unbound-1.12.0/validator/autotrust.c:152:3:  [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(msg, sizeof(msg), format, args);
data/unbound-1.12.0/winrc/w_inst.c:216:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(path, path_config);
data/unbound-1.12.0/daemon/daemon.c:693:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if(ret <= 0 && getenv("NOTIFY_SOCKET"))
data/unbound-1.12.0/daemon/daemon.c:696:5:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
				getenv("NOTIFY_SOCKET"),
data/unbound-1.12.0/daemon/daemon.c:783:15:  [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(daemon->chroot);
data/unbound-1.12.0/daemon/daemon.h:80: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/unbound-1.12.0/daemon/unbound.c:551:6:  [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.
		if(chroot(cfg->chrootdir))
data/unbound-1.12.0/daemon/unbound.c:573:15:  [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.
		if(!daemon->chroot)
data/unbound-1.12.0/daemon/unbound.c:660:41:  [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.
		if(!config_read(cfg, cfgfile, daemon->chroot)) {
data/unbound-1.12.0/daemon/unbound.c:737: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:dhpvw:V")) != -1) {
data/unbound-1.12.0/dnstap/unbound-dnstap-socket.c:1272: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, "hls:t:u:vx:y:z:")) != -1) {
data/unbound-1.12.0/dynlibmod/dynlibmod.c:41:12:  [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.
    return LoadLibrary(fname);
data/unbound-1.12.0/libunbound/libunbound.c:1193:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		name = getenv("WINDIR");
data/unbound-1.12.0/services/listen_dnsport.c:159:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	listen_pid = getenv("LISTEN_PID");
data/unbound-1.12.0/services/listen_dnsport.c:160:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	listen_fds = getenv("LISTEN_FDS");
data/unbound-1.12.0/services/outside_network.c:1548:8:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				if(random & 0x1) {
data/unbound-1.12.0/services/outside_network.c:1553:5:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				random >>= 1;
data/unbound-1.12.0/smallapp/unbound-anchor.c:2315: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, "46C:FRSP:a:b:c:f:hln:r:s:u:vx:")) != -1) {
data/unbound-1.12.0/smallapp/unbound-checkconf.c:921: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, "fho:")) != -1) {
data/unbound-1.12.0/smallapp/unbound-control.c:854: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:qh")) != -1) {
data/unbound-1.12.0/smallapp/unbound-host.c:442: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, "46DF:c:df:hrt:vy:C:")) != -1) {
data/unbound-1.12.0/testcode/asynclook.c:425: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, "bcdf:hH:r:tx")) != -1) {
data/unbound-1.12.0/testcode/delayer.c:1073: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, "b:d:f:hm:p:")) != -1) {
data/unbound-1.12.0/testcode/dohclient.c:540:11:  [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:e:hs:p:P")) != -1) {
data/unbound-1.12.0/testcode/perf.c:590: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:ha:f:q")) != -1) {
data/unbound-1.12.0/testcode/petal.c:624: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, "a:c:k:hp:v")) != -1) {
data/unbound-1.12.0/testcode/streamtcp.c:448: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, "af:hnsud:")) != -1) {
data/unbound-1.12.0/testcode/testbound.c:371: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, "12egciho:p:s")) != -1) {
data/unbound-1.12.0/testcode/unitecs.c:168:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(9195); /* just some value for reproducibility */
data/unbound-1.12.0/testcode/unitlruhash.c:237:17:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	int numtoadd = random() % HASHTESTMAX;
data/unbound-1.12.0/testcode/unitlruhash.c:249:12:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	int num = random() % HASHTESTMAX;
data/unbound-1.12.0/testcode/unitlruhash.c:260:12:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	int num = random() % HASHTESTMAX;
data/unbound-1.12.0/testcode/unitlruhash.c:315:17:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	int numtoadd = random() % (HASHTESTMAX * 10);
data/unbound-1.12.0/testcode/unitlruhash.c:328:12:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	int num = random() % (HASHTESTMAX*10);
data/unbound-1.12.0/testcode/unitlruhash.c:340:12:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	int num = random() % (HASHTESTMAX*10);
data/unbound-1.12.0/testcode/unitlruhash.c:371:2:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srandom(48);
data/unbound-1.12.0/testcode/unitlruhash.c:379:10:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		switch(random() % 4) {
data/unbound-1.12.0/testcode/unitlruhash.c:401:10:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		switch(random() % 4) {
data/unbound-1.12.0/testcode/unitlruhash.c:438:10:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		switch(random() % 4) {
data/unbound-1.12.0/testcode/unitneg.c:98:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	int labels = random() % 3;
data/unbound-1.12.0/testcode/unitneg.c:104:12:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		labnum = random()%10;
data/unbound-1.12.0/testcode/unitneg.c:126:9:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	type = random()%10;
data/unbound-1.12.0/testcode/unitneg.c:130:10:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		lab1 = random() %3 + 1;
data/unbound-1.12.0/testcode/unitneg.c:131:17:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		lab2 = lab1 + random()%3 + 1;
data/unbound-1.12.0/testcode/unitneg.c:133:17:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			labnum1[i] = random()%100;
data/unbound-1.12.0/testcode/unitneg.c:137:17:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			labnum2[i] = random()%100;
data/unbound-1.12.0/testcode/unitneg.c:142:10:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		lab1 = random()%3 + 1;
data/unbound-1.12.0/testcode/unitneg.c:144:17:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			labnum1[i] = random()%100;
data/unbound-1.12.0/testcode/unitneg.c:149:10:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		lab2 = random()%3 + 1;
data/unbound-1.12.0/testcode/unitneg.c:151:17:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			labnum2[i] = random()%100;
data/unbound-1.12.0/testcode/unitneg.c:155:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		int common = random()%3;
data/unbound-1.12.0/testcode/unitneg.c:156:10:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		lab1 = random() %3 + 1;
data/unbound-1.12.0/testcode/unitneg.c:157:10:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		lab2 = random() %3 + 1;
data/unbound-1.12.0/testcode/unitneg.c:159:17:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			labnum1[i] = random()%100;
data/unbound-1.12.0/testcode/unitneg.c:162:21:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		labnum1[common] = random()%100;
data/unbound-1.12.0/testcode/unitneg.c:163:39:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		labnum2[common] = labnum1[common] + random()%20;
data/unbound-1.12.0/testcode/unitneg.c:165:17:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			labnum1[i] = random()%100;
data/unbound-1.12.0/testcode/unitneg.c:167:17:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			labnum2[i] = random()%100;
data/unbound-1.12.0/testcode/unitneg.c:259:6:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	n = random() % (int)(z->count);
data/unbound-1.12.0/testcode/unitneg.c:285:6:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	n = random() % (int)(d->count);
data/unbound-1.12.0/testcode/unitneg.c:508:6:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		if(random() % 10 < 8)
data/unbound-1.12.0/testcode/unitneg.c:525:6:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		if(random() % 10 < 8)
data/unbound-1.12.0/testcode/unitneg.c:535:2:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srandom(48);
data/unbound-1.12.0/testcode/unitregional.c:224:9:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		get = random() % max;
data/unbound-1.12.0/testcode/unitslabhash.c:111:17:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	int numtoadd = random() % HASHTESTMAX;
data/unbound-1.12.0/testcode/unitslabhash.c:123:12:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	int num = random() % HASHTESTMAX;
data/unbound-1.12.0/testcode/unitslabhash.c:134:12:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	int num = random() % HASHTESTMAX;
data/unbound-1.12.0/testcode/unitslabhash.c:198:17:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	int numtoadd = random() % (HASHTESTMAX * 10);
data/unbound-1.12.0/testcode/unitslabhash.c:211:12:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	int num = random() % (HASHTESTMAX*10);
data/unbound-1.12.0/testcode/unitslabhash.c:223:12:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	int num = random() % (HASHTESTMAX*10);
data/unbound-1.12.0/testcode/unitslabhash.c:251:2:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srandom(48);
data/unbound-1.12.0/testcode/unitslabhash.c:259:10:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		switch(random() % 4) {
data/unbound-1.12.0/testcode/unitslabhash.c:280:10:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		switch(random() % 4) {
data/unbound-1.12.0/testcode/unitslabhash.c:317:10:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		switch(random() % 4) {
data/unbound-1.12.0/util/config_file.c:1190:72:  [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.
create_cfg_parser(struct config_file* cfg, char* filename, const char* chroot)
data/unbound-1.12.0/util/config_file.c:1198:23:  [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.
	cfg_parser->chroot = chroot;
data/unbound-1.12.0/util/config_file.c:1203:72:  [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.
config_read(struct config_file* cfg, const char* filename, const char* chroot)
data/unbound-1.12.0/util/config_file.c:1258:40:  [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.
			if(!config_read(cfg, g.gl_pathv[i], chroot)) {
data/unbound-1.12.0/util/config_file.c:1275:32:  [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.
	create_cfg_parser(cfg, fname, chroot);
data/unbound-1.12.0/util/config_file.h:807:14:  [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.
	const char* chroot);
data/unbound-1.12.0/util/config_file.h:1232:14:  [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.
	const char* chroot;
data/unbound-1.12.0/util/configlexer.c:3656: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.
	if(cfg_parser->chroot && strncmp(filename, cfg_parser->chroot,
data/unbound-1.12.0/util/configlexer.c:3656:57:  [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.
	if(cfg_parser->chroot && strncmp(filename, cfg_parser->chroot,
data/unbound-1.12.0/util/configlexer.c:3657:22:  [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.
		strlen(cfg_parser->chroot)) == 0) {
data/unbound-1.12.0/util/configlexer.c:3658:34:  [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.
		filename += strlen(cfg_parser->chroot);
data/unbound-1.12.0/util/configlexer.c:3711:18:  [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.
		if(cfg_parser->chroot && strncmp(filename, cfg_parser->chroot,
data/unbound-1.12.0/util/configlexer.c:3711:58:  [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.
		if(cfg_parser->chroot && strncmp(filename, cfg_parser->chroot,
data/unbound-1.12.0/util/configlexer.c:3712:23:  [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.
			strlen(cfg_parser->chroot)) == 0) {
data/unbound-1.12.0/util/configlexer.c:3713:35:  [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.
			filename += strlen(cfg_parser->chroot);
data/unbound-1.12.0/util/configparser.c:3842:19:  [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.
			if(cfg_parser->chroot && cfg_parser->chroot[0] &&
data/unbound-1.12.0/util/configparser.c:3842:41:  [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.
			if(cfg_parser->chroot && cfg_parser->chroot[0] &&
data/unbound-1.12.0/util/configparser.c:3843:28:  [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.
				strncmp(d, cfg_parser->chroot, strlen(
data/unbound-1.12.0/util/configparser.c:3844: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.
				cfg_parser->chroot)) == 0)
data/unbound-1.12.0/util/configparser.c:3845:29:  [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.
				d += strlen(cfg_parser->chroot);
data/unbound-1.12.0/winrc/win_svc.c:283: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, rootanchor, NULL, NULL, 0, 
data/unbound-1.12.0/winrc/win_svc.c:283: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, rootanchor, NULL, NULL, 0, 
data/unbound-1.12.0/winrc/win_svc.c:325:48:  [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.
	if(!config_read(cfg, service_cfgfile, daemon->chroot)) {
data/unbound-1.12.0/winrc/win_svc.c:559: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/unbound-1.12.0/winrc/win_svc.c:559: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/unbound-1.12.0/cachedb/cachedb.c:572:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[(CACHEDB_HASHSIZE/8)*2+1];
data/unbound-1.12.0/cachedb/cachedb.c:599:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[(CACHEDB_HASHSIZE/8)*2+1];
data/unbound-1.12.0/cachedb/redis.c:237:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cmdbuf[4+(CACHEDB_HASHSIZE/8)*2+1]; /* "GET " + key */
data/unbound-1.12.0/cachedb/redis.c:292:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cmdbuf[6+(CACHEDB_HASHSIZE/8)*2+11+3+1];
data/unbound-1.12.0/compat/arc4random.c:107: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("/dev/urandom", flags, 0);
data/unbound-1.12.0/compat/arc4random.c:265:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(buf, keystream, m);
data/unbound-1.12.0/compat/arc4random.c:284: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(val, keystream, sizeof(*val));
data/unbound-1.12.0/compat/chacha_private.h:51:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 const char sigma[16] = "expand 32-byte k";
data/unbound-1.12.0/compat/chacha_private.h:52:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 const char tau[16] = "expand 16-byte k";
data/unbound-1.12.0/compat/fake-rfc2553.c:51:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmpserv[16];
data/unbound-1.12.0/compat/fake-rfc2553.h:56:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		__ss_pad2[_SS_PADSIZE];
data/unbound-1.12.0/compat/getentropy_linux.c:229: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("/dev/urandom", flags, 0);
data/unbound-1.12.0/compat/getentropy_linux.c:532:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((char *)buf + i, results, min(sizeof(results), len - i));
data/unbound-1.12.0/compat/getentropy_osx.c:161: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("/dev/urandom", flags, 0);
data/unbound-1.12.0/compat/getentropy_osx.c:410:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((char *)buf + i, results, min(sizeof(results), len - i));
data/unbound-1.12.0/compat/getentropy_solaris.c:189: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(path, flags, 0);
data/unbound-1.12.0/compat/getentropy_solaris.c:431:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((char *)buf + i, results, min(sizeof(results), len - i));
data/unbound-1.12.0/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/unbound-1.12.0/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/unbound-1.12.0/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/unbound-1.12.0/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/unbound-1.12.0/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/unbound-1.12.0/compat/sha512.c:167:29:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define MEMCPY_BCOPY(d,s,l)	memcpy((d), (s), (l))
data/unbound-1.12.0/compat/sha512.c:171:29:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define MEMCPY_BCOPY(d,s,l)	bcopy((s), (d), (l))
data/unbound-1.12.0/compat/snprintf.c:300:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[PRINT_DEC_BUFSZ];
data/unbound-1.12.0/compat/snprintf.c:315:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/compat/snprintf.c:330:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[PRINT_DEC_BUFSZ];
data/unbound-1.12.0/compat/snprintf.c:345:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/compat/snprintf.c:359:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/compat/snprintf.c:373:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/compat/snprintf.c:387:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/compat/snprintf.c:401:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/compat/snprintf.c:415:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/compat/snprintf.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 buf[PRINT_DEC_BUFSZ];
data/unbound-1.12.0/compat/snprintf.c:513:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/compat/snprintf.c:558:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/compat/snprintf.c:842:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/daemon/acl_list.c:234:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[65536];
data/unbound-1.12.0/daemon/cachedump.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[65535];
data/unbound-1.12.0/daemon/cachedump.c:715:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[257];
data/unbound-1.12.0/daemon/cachedump.c:824:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[260];
data/unbound-1.12.0/daemon/remote.c:281:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char port[15];
data/unbound-1.12.0/daemon/remote.c:484: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(&n->c->repinfo.addr, &addr, addrlen);
data/unbound-1.12.0/daemon/remote.c:584:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char msg[1024];
data/unbound-1.12.0/daemon/remote.c:685: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).
	int val = atoi(str);
data/unbound-1.12.0/daemon/remote.c:757:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char nm[32];
data/unbound-1.12.0/daemon/remote.c:913:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char nm[32];
data/unbound-1.12.0/daemon/remote.c:1230:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[2048];
data/unbound-1.12.0/daemon/remote.c:1279:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[2048];
data/unbound-1.12.0/daemon/remote.c:1318:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[2048];
data/unbound-1.12.0/daemon/remote.c:1361:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[2048];
data/unbound-1.12.0/daemon/remote.c:1939:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[257];
data/unbound-1.12.0/daemon/remote.c:2269:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[257];
data/unbound-1.12.0/daemon/remote.c:2366: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 nm[257];
data/unbound-1.12.0/daemon/remote.c:2396:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[257];
data/unbound-1.12.0/daemon/remote.c:2397:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char timebuf[32];
data/unbound-1.12.0/daemon/remote.c:2398:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char statbuf[10240];
data/unbound-1.12.0/daemon/remote.c:2445:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ip_str[1024];
data/unbound-1.12.0/daemon/remote.c:2446:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[257];
data/unbound-1.12.0/daemon/remote.c:2633:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[32];
data/unbound-1.12.0/daemon/remote.c:2659:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[257], buf2[256];
data/unbound-1.12.0/daemon/remote.c:2689:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[257];
data/unbound-1.12.0/daemon/remote.c:2798:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[257];
data/unbound-1.12.0/daemon/remote.c:2813:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ip[128];
data/unbound-1.12.0/daemon/remote.c:3088:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/daemon/remote.c:3089:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char magic[7];
data/unbound-1.12.0/daemon/remote.c:3090:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/daemon/stats.c:387: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(s, reply, (size_t)len);
data/unbound-1.12.0/daemon/unbound.c:302:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char pidbuf[32];
data/unbound-1.12.0/daemon/unbound.c:306:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(file, O_RDONLY)) == -1) {
data/unbound-1.12.0/daemon/unbound.c:346:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((f = fopen(pidfile, "w")) ==  NULL ) {
data/unbound-1.12.0/daemon/unbound.c:406: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/unbound-1.12.0/daemon/unbound.c:697:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open(daemon->pidfile, O_WRONLY | O_TRUNC, 0644);
data/unbound-1.12.0/daemon/worker.c:942: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[MAXHOSTNAMELEN+1];
data/unbound-1.12.0/daemon/worker.c:1009: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[380];
data/unbound-1.12.0/daemon/worker.c:1010: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 zname[255+1];
data/unbound-1.12.0/daemon/worker.c:1011: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 sr[25];
data/unbound-1.12.0/daemon/worker.c:1124: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[LDNS_MAX_DOMAINLEN+1];
data/unbound-1.12.0/daemon/worker.c:1197: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 addrbuf[128];
data/unbound-1.12.0/daemon/worker.c:1225: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 ip[128];
data/unbound-1.12.0/daemon/worker.c:1781:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&worker->dtenv, worker->daemon->dtenv, sizeof(struct dt_env));
data/unbound-1.12.0/dns64/dns64.c:301:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(aaaa, prefix_addr, 16);
data/unbound-1.12.0/dnscrypt/dnscrypt.c:92:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(key + 1, pk, crypto_box_PUBLICKEYBYTES);
data/unbound-1.12.0/dnscrypt/dnscrypt.c:93:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(key + 1 + crypto_box_PUBLICKEYBYTES, sk, crypto_box_SECRETKEYBYTES);
data/unbound-1.12.0/dnscrypt/dnscrypt.c:122:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(d, nmkey, crypto_box_BEFORENMBYTES);
data/unbound-1.12.0/dnscrypt/dnscrypt.c:124:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(k->key, key, DNSCRYPT_SHARED_SECRET_KEY_LENGTH);
data/unbound-1.12.0/dnscrypt/dnscrypt.c:192:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(k->nonce, nonce, crypto_box_HALF_NONCEBYTES);
data/unbound-1.12.0/dnscrypt/dnscrypt.c:193:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(k->magic_query, magic_query, DNSCRYPT_MAGIC_HEADER_LEN);
data/unbound-1.12.0/dnscrypt/dnscrypt.c:194:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(k->client_publickey, pk, crypto_box_PUBLICKEYBYTES);
data/unbound-1.12.0/dnscrypt/dnscrypt.c:224:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(k.nonce, nonce, crypto_box_HALF_NONCEBYTES);
data/unbound-1.12.0/dnscrypt/dnscrypt.c:225:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(k.magic_query, magic_query, DNSCRYPT_MAGIC_HEADER_LEN);
data/unbound-1.12.0/dnscrypt/dnscrypt.c:226:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(k.client_publickey, pk, crypto_box_PUBLICKEYBYTES);
data/unbound-1.12.0/dnscrypt/dnscrypt.c:333:9:  [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(nmkey, entry->data, crypto_box_BEFORENMBYTES);
data/unbound-1.12.0/dnscrypt/dnscrypt.c:337:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(nonce, query_header->nonce, crypto_box_HALF_NONCEBYTES);
data/unbound-1.12.0/dnscrypt/dnscrypt.c:371:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(client_nonce, nonce, crypto_box_HALF_NONCEBYTES);
data/unbound-1.12.0/dnscrypt/dnscrypt.c:483:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(nonce, client_nonce, crypto_box_HALF_NONCEBYTES);
data/unbound-1.12.0/dnscrypt/dnscrypt.c:484:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(nonce + crypto_box_HALF_NONCEBYTES, client_nonce,
data/unbound-1.12.0/dnscrypt/dnscrypt.c:538: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(fname, O_RDONLY);
data/unbound-1.12.0/dnscrypt/dnscrypt.c:626:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
dnsc_key_to_fingerprint(char fingerprint[80U], const uint8_t * const key)
data/unbound-1.12.0/dnscrypt/dnscrypt.c:711:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&serial, cert->serial, sizeof serial);
data/unbound-1.12.0/dnscrypt/dnscrypt.c:759:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 const char *
data/unbound-1.12.0/dnscrypt/dnscrypt.c:811: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 fingerprint[80];
data/unbound-1.12.0/dnscrypt/dnscrypt.c:836:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(current_cert->magic_query,
data/unbound-1.12.0/dnscrypt/dnscrypt.c:839:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(current_cert->es_version,
data/unbound-1.12.0/dnscrypt/dnscrypt.h:66: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_key[crypto_shorthash_KEYBYTES];
data/unbound-1.12.0/dnstap/dnstap.c:170:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[MAXHOSTNAMELEN+1];
data/unbound-1.12.0/dnstap/dnstap_fstrm.c:176:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[512];
data/unbound-1.12.0/dnstap/dnstap_fstrm.c:213: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 tempf[512];
data/unbound-1.12.0/dnstap/unbound-dnstap-socket.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[64];
data/unbound-1.12.0/dnstap/unbound-dnstap-socket.c:448:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[300];
data/unbound-1.12.0/dnstap/unbound-dnstap-socket.c:500:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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], buf2[256];
data/unbound-1.12.0/dnstap/unbound-dnstap-socket.c:1093: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 ip[256];
data/unbound-1.12.0/edns-subnet/addrtree.c:73: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(edge->str, addr, n * sizeof (addrkey_t));
data/unbound-1.12.0/edns-subnet/edns-subnet.c:56: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, src, intpart);
data/unbound-1.12.0/edns-subnet/subnetmod.c:273: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(target->subnet_addr, source->subnet_addr, INET6_SIZE);
data/unbound-1.12.0/edns-subnet/subnetmod.c:446:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&sq->ecs_client_out.subnet_addr, &ecs->subnet_addr,
data/unbound-1.12.0/edns-subnet/subnetmod.c:544:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&c_out->subnet_addr, &c_in->subnet_addr, INET6_SIZE);
data/unbound-1.12.0/edns-subnet/subnetmod.c:788:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&sq->ecs_server_out.subnet_addr,
data/unbound-1.12.0/ipsecmod/ipsecmod.c:242:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[65535], *s, *tempstring;
data/unbound-1.12.0/ipsecmod/ipsecmod.c:391: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 type[16];
data/unbound-1.12.0/ipsecmod/ipsecmod.c:479: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 type[16];
data/unbound-1.12.0/ipset/ipset.c:65:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buffer[BUFF_LEN];
data/unbound-1.12.0/ipset/ipset.c:121: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 ip[128];
data/unbound-1.12.0/ipset/ipset.c:143: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 dname[BUFF_LEN];
data/unbound-1.12.0/iterator/iter_delegpt.c:210: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(&a->addr, addr, addrlen);
data/unbound-1.12.0/iterator/iter_delegpt.c:260:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[LDNS_MAX_DOMAINLEN+1];
data/unbound-1.12.0/iterator/iter_delegpt.c:289: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 s[128];
data/unbound-1.12.0/iterator/iter_delegpt.c:631: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(&a->addr, addr, addrlen);
data/unbound-1.12.0/iterator/iter_fwd.c:130: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[257];
data/unbound-1.12.0/iterator/iter_hints.c:181: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[257];
data/unbound-1.12.0/iterator/iter_hints.c:307:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE* f = fopen(fname, "r");
data/unbound-1.12.0/iterator/iter_hints.c:385: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[17];
data/unbound-1.12.0/iterator/iter_utils.c:1416: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 qname[255+1];
data/unbound-1.12.0/iterator/iter_utils.c:1417: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 dpname[255+1];
data/unbound-1.12.0/iterator/iter_utils.c:1428: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 qname[255+1];
data/unbound-1.12.0/iterator/iter_utils.c:1429: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 dpname[255+1];
data/unbound-1.12.0/iterator/iterator.c:423: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(sets+num_an, msg->rep->rrsets, msg->rep->an_numrrsets *
data/unbound-1.12.0/iterator/iterator.c:437: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(sets + num_an + msg->rep->an_numrrsets + num_ns, 
data/unbound-1.12.0/iterator/iterator.c:952: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[255+1];
data/unbound-1.12.0/iterator/iterator.c:969: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 buf[255+1];
data/unbound-1.12.0/iterator/iterator.c:1813: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 s[LDNS_MAX_DOMAINLEN+1];
data/unbound-1.12.0/iterator/iterator.c:1820: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 s[LDNS_MAX_DOMAINLEN+1];
data/unbound-1.12.0/iterator/iterator.c:2001: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 s[LDNS_MAX_DOMAINLEN+1];
data/unbound-1.12.0/iterator/iterator.c:3407:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(dest, to->rep->rrsets, to->rep->an_numrrsets
data/unbound-1.12.0/iterator/iterator.c:3410:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(dest, from->rep->rrsets, from->rep->an_numrrsets
data/unbound-1.12.0/iterator/iterator.c:3414:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(dest, to->rep->rrsets+to->rep->an_numrrsets,
data/unbound-1.12.0/iterator/iterator.c:3417:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(dest, from->rep->rrsets+from->rep->an_numrrsets,
data/unbound-1.12.0/iterator/iterator.c:3421:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(dest, to->rep->rrsets+to->rep->an_numrrsets+
data/unbound-1.12.0/iterator/iterator.c:3425:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(dest, from->rep->rrsets+from->rep->an_numrrsets+
data/unbound-1.12.0/libunbound/libunbound.c:1092:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/libunbound/libunbound.c:1136: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).
	in = fopen(fname, "r");
data/unbound-1.12.0/libunbound/libunbound.c:1177:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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], ldata[2048];
data/unbound-1.12.0/libunbound/libunbound.c:1210: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).
	in = fopen(fname, "r");
data/unbound-1.12.0/libunbound/libworker.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[255+2];
data/unbound-1.12.0/pythonmod/pythonmod.c:291:7:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      wchar_t progname[8];
data/unbound-1.12.0/pythonmod/pythonmod.c:314:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
         char wdir[1524];
data/unbound-1.12.0/respip/respip.c:298:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[65536];
data/unbound-1.12.0/respip/respip.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 bufshort[64];
data/unbound-1.12.0/respip/respip.c:542:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(d->rr_data[i], data->rr_data[i], data->rr_len[i]);
data/unbound-1.12.0/respip/respip.c:1309:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char srcip[128], respip[128], txt[512];
data/unbound-1.12.0/services/authzone.c:804: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, old, sizeof(struct packed_rrset_data));
data/unbound-1.12.0/services/authzone.c:958: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, old, sizeof(struct packed_rrset_data));
data/unbound-1.12.0/services/authzone.c:1022: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(sigd, sigold, sizeof(struct packed_rrset_data));
data/unbound-1.12.0/services/authzone.c:1511:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				inc = fopen(incfile, "r");
data/unbound-1.12.0/services/authzone.c:1550: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[17];
data/unbound-1.12.0/services/authzone.c:1576: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 nm[255+1];
data/unbound-1.12.0/services/authzone.c:1580: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).
	in = fopen(zfilename, "r");
data/unbound-1.12.0/services/authzone.c:1608:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(state.origin, z->name, z->namelen);
data/unbound-1.12.0/services/authzone.c:1687:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[LDNS_RR_BUF_SIZE];
data/unbound-1.12.0/services/authzone.c:1728: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(fname, "w");
data/unbound-1.12.0/services/authzone.c:2405: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(buf, qname, qname_len-dname_len);
data/unbound-1.12.0/services/authzone.c:2628: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 p[LDNS_MAX_DOMAINLEN+1+N3HASHBUFLEN+256];
data/unbound-1.12.0/services/authzone.c:3207: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 zname[256], qname[256], nname[256], cename[256],
data/unbound-1.12.0/services/authzone.c:4521:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[256];
data/unbound-1.12.0/services/authzone.c:4522:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char typestr[32];
data/unbound-1.12.0/services/authzone.c:4815: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 preview[1024];
data/unbound-1.12.0/services/authzone.c:4882: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(fname, "w");
data/unbound-1.12.0/services/authzone.c:4904:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmpfile[1024];
data/unbound-1.12.0/services/authzone.c:4904:7:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	char tmpfile[1024];
data/unbound-1.12.0/services/authzone.c:4933: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 nm[255+1];
data/unbound-1.12.0/services/authzone.c:4939:45:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	if((size_t)strlen(zfilename) + 16 > sizeof(tmpfile)) {
data/unbound-1.12.0/services/authzone.c:4945:11:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	snprintf(tmpfile, sizeof(tmpfile), "%s.tmp%u", zfilename,
data/unbound-1.12.0/services/authzone.c:4945:27:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	snprintf(tmpfile, sizeof(tmpfile), "%s.tmp%u", zfilename,
data/unbound-1.12.0/services/authzone.c:4949:35:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		if(!auth_zone_write_chunks(xfr, tmpfile)) {
data/unbound-1.12.0/services/authzone.c:4950:11:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
			unlink(tmpfile);
data/unbound-1.12.0/services/authzone.c:4954:37:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	} else if(!auth_zone_write_file(z, tmpfile)) {
data/unbound-1.12.0/services/authzone.c:4955:10:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		unlink(tmpfile);
data/unbound-1.12.0/services/authzone.c:4959:12:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	if(rename(tmpfile, zfilename) < 0) {
data/unbound-1.12.0/services/authzone.c:4960:43:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		log_err("could not rename(%s, %s): %s", tmpfile, zfilename,
data/unbound-1.12.0/services/authzone.c:4962:10:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		unlink(tmpfile);
data/unbound-1.12.0/services/authzone.c:5037: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 zname[256];
data/unbound-1.12.0/services/authzone.c:5098: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[512];
data/unbound-1.12.0/services/authzone.c:5099: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 buf2[LDNS_MAX_DOMAINLEN+1];
data/unbound-1.12.0/services/authzone.c:5150: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 zname[255+1];
data/unbound-1.12.0/services/authzone.c:5189: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 zname[255+1], as[256];
data/unbound-1.12.0/services/authzone.c:5198: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 zname[255+1], as[256];
data/unbound-1.12.0/services/authzone.c:5219: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 zname[255+1], as[256];
data/unbound-1.12.0/services/authzone.c:5228: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 zname[255+1], as[256];
data/unbound-1.12.0/services/authzone.c:5252: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 zname[255+1];
data/unbound-1.12.0/services/authzone.c:5275: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 zname[255+1];
data/unbound-1.12.0/services/authzone.c:5332: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 s[64];
data/unbound-1.12.0/services/authzone.c:5378: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 zname[255+1];
data/unbound-1.12.0/services/authzone.c:5385: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 zname[255+1];
data/unbound-1.12.0/services/authzone.c:5392: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 zname[255+1];
data/unbound-1.12.0/services/authzone.c:5442: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 rcode[32];
data/unbound-1.12.0/services/authzone.c:6034: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 zname[255+1];
data/unbound-1.12.0/services/authzone.c:6076: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 zname[255+1], as[256];
data/unbound-1.12.0/services/authzone.c:6096: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 zname[255+1], as[256];
data/unbound-1.12.0/services/authzone.c:6104: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 zname[255+1], as[256];
data/unbound-1.12.0/services/authzone.c:6135: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 zname[255+1];
data/unbound-1.12.0/services/authzone.c:6183:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char buf[256];
data/unbound-1.12.0/services/authzone.c:6222:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char buf[256];
data/unbound-1.12.0/services/authzone.c:6229: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[256];
data/unbound-1.12.0/services/authzone.c:6285: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[512];
data/unbound-1.12.0/services/authzone.c:6286: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 buf2[LDNS_MAX_DOMAINLEN+1];
data/unbound-1.12.0/services/authzone.c:6327: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 zname[255+1];
data/unbound-1.12.0/services/authzone.c:6340: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 zname[255+1];
data/unbound-1.12.0/services/authzone.c:6348: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 zname[255+1];
data/unbound-1.12.0/services/authzone.c:6374: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 zname[255+1];
data/unbound-1.12.0/services/authzone.c:6385: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 zname[255+1];
data/unbound-1.12.0/services/authzone.c:6435: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 zname[255+1];
data/unbound-1.12.0/services/authzone.c:6442: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 zname[255+1];
data/unbound-1.12.0/services/authzone.c:6449: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 zname[255+1];
data/unbound-1.12.0/services/authzone.c:6623: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 zname[255+1];
data/unbound-1.12.0/services/authzone.c:6644: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 zname[255+1];
data/unbound-1.12.0/services/cache/dns.c:518: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(&msg->qinfo, q, sizeof(struct query_info));
data/unbound-1.12.0/services/cache/dns.c:690: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(newname, q->qname, q->qname_len-rrset->rk.dname_len);
data/unbound-1.12.0/services/cache/infra.c:209: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).
		d->lim = atoi(p->str2);
data/unbound-1.12.0/services/cache/infra.c:215:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		d->below = atoi(p->str2);
data/unbound-1.12.0/services/cache/infra.c:367: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(&k.addr, addr, addrlen);
data/unbound-1.12.0/services/cache/infra.c:431:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key->addr, addr, addrlen);
data/unbound-1.12.0/services/cache/infra.c:936: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[257], qnm[257], ts[12], cs[12], ip[128];
data/unbound-1.12.0/services/cache/infra.c:1026: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 client_ip[128], qnm[LDNS_MAX_DOMAINLEN+1+12+12];
data/unbound-1.12.0/services/listen_dnsport.c:116: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[100];
data/unbound-1.12.0/services/listen_dnsport.c:975: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 p[16];
data/unbound-1.12.0/services/listen_dnsport.c:976: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 newif[128];
data/unbound-1.12.0/services/listen_dnsport.c:1083: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).
	if(!p && atoi(port) == ssl_port)
data/unbound-1.12.0/services/listen_dnsport.c:1085: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).
	if(p && atoi(p+1) == ssl_port)
data/unbound-1.12.0/services/listen_dnsport.c:1088: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).
		if(p && atoi(p+1) == atoi(s->str))
data/unbound-1.12.0/services/listen_dnsport.c:1088:24:  [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(p && atoi(p+1) == atoi(s->str))
data/unbound-1.12.0/services/listen_dnsport.c:1090: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).
		if(!p && atoi(port) == atoi(s->str))
data/unbound-1.12.0/services/listen_dnsport.c:1090:26:  [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(!p && atoi(port) == atoi(s->str))
data/unbound-1.12.0/services/listen_dnsport.c:1101: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).
	if(!p && atoi(port) == https_port)
data/unbound-1.12.0/services/listen_dnsport.c:1103: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).
	if(p && atoi(p+1) == https_port)
data/unbound-1.12.0/services/listen_dnsport.c:1147:4:  [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).
			atoi(strchr(ifname, '@')+1) == dnscrypt_port) ||
data/unbound-1.12.0/services/listen_dnsport.c:1148:29:  [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).
			(!strchr(ifname, '@') && atoi(port) == dnscrypt_port));
data/unbound-1.12.0/services/listen_dnsport.c:1411: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 addr_buf[INET6_ADDRSTRLEN + 1 + IF_NAMESIZE + 1 + 16 + 1];
data/unbound-1.12.0/services/listen_dnsport.c:1413: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 addr_buf[INET_ADDRSTRLEN + 1 + 16 + 1];
data/unbound-1.12.0/services/listen_dnsport.c:1432: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 a4[INET_ADDRSTRLEN + 1];
data/unbound-1.12.0/services/listen_dnsport.c:1446: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 a6[INET6_ADDRSTRLEN + 1];
data/unbound-1.12.0/services/listen_dnsport.c:1447: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 if_index_name[IF_NAMESIZE + 1];
data/unbound-1.12.0/services/listen_dnsport.c:1562:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char portbuf[32];
data/unbound-1.12.0/services/listen_dnsport.c:1736:28:  [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).
	struct tcp_req_open_item* open, *nopen;
data/unbound-1.12.0/services/listen_dnsport.c:1742:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	while(open) {
data/unbound-1.12.0/services/listen_dnsport.c:1745:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		free(open);
data/unbound-1.12.0/services/listen_dnsport.c:1771:28:  [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).
	struct tcp_req_open_item* open, *prev = NULL;
data/unbound-1.12.0/services/listen_dnsport.c:1774:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	while(open) {
data/unbound-1.12.0/services/listen_dnsport.c:1781:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			free(open);
data/unbound-1.12.0/services/listen_dnsport.c:1788: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).
		prev = open;
data/unbound-1.12.0/services/listen_dnsport.c:2132: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(buf, sldns_buffer_current(h2_stream->rbuffer), copylen);
data/unbound-1.12.0/services/listen_dnsport.c:2179:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char status[4];
data/unbound-1.12.0/services/listen_dnsport.c:2304: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(buf, msg, strlen(msg));
data/unbound-1.12.0/services/listen_dnsport.c:2320:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char status[4];
data/unbound-1.12.0/services/listen_dnsport.c:2691:31:  [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).
		h2_stream->content_length = atoi((const char*)value);
data/unbound-1.12.0/services/localzone.c:188: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 str[256];
data/unbound-1.12.0/services/localzone.c:380:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(pd->rr_len+1, oldlen, 
data/unbound-1.12.0/services/localzone.c:382:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(pd->rr_ttl+1, oldttl, 
data/unbound-1.12.0/services/localzone.c:384:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(pd->rr_data+1, olddata, 
data/unbound-1.12.0/services/localzone.c:761:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[1024]; /* known long enough */
data/unbound-1.12.0/services/localzone.c:1183: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[64];
data/unbound-1.12.0/services/localzone.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 buf[65536];
data/unbound-1.12.0/services/localzone.c:1585:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ip[128], txt[512];
data/unbound-1.12.0/services/localzone.c:1586:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char zname[LDNS_MAX_DOMAINLEN+1];
data/unbound-1.12.0/services/localzone.c:1694: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 zname[255+1];
data/unbound-1.12.0/services/localzone.c:1716: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 zname[255+1];
data/unbound-1.12.0/services/mesh.c:1719:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[30];
data/unbound-1.12.0/services/modstack.c:122: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 md[256];
data/unbound-1.12.0/services/outside_network.c:394: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(&pend->c->repinfo.addr, &w->addr, w->addrlen);
data/unbound-1.12.0/services/outside_network.c:546:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key.addr, &reply_info->addr, reply_info->addrlen);
data/unbound-1.12.0/services/outside_network.c:1326: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(&w->addr, &sq->addr, sq->addrlen);
data/unbound-1.12.0/services/outside_network.c:1395:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key.addr, addr, addrlen);
data/unbound-1.12.0/services/outside_network.c:1446: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(&sq->addr, addr, addrlen);
data/unbound-1.12.0/services/outside_network.c:1561: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[LDNS_MAX_DOMAINLEN+1];
data/unbound-1.12.0/services/outside_network.c:1865: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(&rep->addr, &sq->addr, sq->addrlen);
data/unbound-1.12.0/services/outside_network.c:2208:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char to[64];
data/unbound-1.12.0/services/outside_network.c:2217: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 to[64];
data/unbound-1.12.0/services/outside_network.c:2363: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(&cp->repinfo.addr, to_addr, to_addrlen);
data/unbound-1.12.0/services/outside_network.c:2426: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(&cp->repinfo.addr, to_addr, to_addrlen);
data/unbound-1.12.0/services/rpz.c:933:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ip[128], txt[512];
data/unbound-1.12.0/services/rpz.c:934:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dnamestr[LDNS_MAX_DOMAINLEN+1];
data/unbound-1.12.0/sldns/keyraw.c:340: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 encoded[37+64];
data/unbound-1.12.0/sldns/keyraw.c:360: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 buf[256+2]; /* sufficient for 2*384/8+1 */
data/unbound-1.12.0/sldns/rrdef.c:696:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		return atoi(name + 4);
data/unbound-1.12.0/sldns/rrdef.c:734:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		return atoi(name + 5);
data/unbound-1.12.0/sldns/sbuffer.c:58: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(buffer->_data, data, size);
data/unbound-1.12.0/sldns/sbuffer.h:437: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(buffer->_data + at, data, count);
data/unbound-1.12.0/sldns/sbuffer.h:603: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(data, buffer->_data + at, count);
data/unbound-1.12.0/sldns/str2wire.c:178:16:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		if(r) return memcpy(r, dname, *len);
data/unbound-1.12.0/sldns/str2wire.c:443:26:  [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).
	hex_data_size = (size_t)atoi(token);
data/unbound-1.12.0/sldns/str2wire.c:739:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char token[LDNS_MAX_RDFLEN+1];
data/unbound-1.12.0/sldns/str2wire.c:864:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[LDNS_RR_BUF_SIZE+1];
data/unbound-1.12.0/sldns/str2wire.c:1122:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char my_ip_str[64];
data/unbound-1.12.0/sldns/str2wire.c:1153: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).
	family = (uint16_t) atoi(my_str);
data/unbound-1.12.0/sldns/str2wire.c:1188:21:  [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).
	prefix = (uint8_t) atoi(my_str);
data/unbound-1.12.0/sldns/str2wire.c:1280:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char token[64]; /* for a type name */
data/unbound-1.12.0/sldns/str2wire.c:1708:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char token[50], proto_str[50];
data/unbound-1.12.0/sldns/str2wire.c:1725:26:  [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).
			else rd[0] = (uint8_t)atoi(token);
data/unbound-1.12.0/sldns/str2wire.c:1733:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				serv_port = atoi(token);
data/unbound-1.12.0/sldns/str2wire.c:1855:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char token[512];
data/unbound-1.12.0/sldns/str2wire.c:1865:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	rd[0] = (uint8_t)atoi(token);
data/unbound-1.12.0/sldns/str2wire.c:1870:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	rd[1] = (uint8_t)atoi(token);
data/unbound-1.12.0/sldns/str2wire.c:1876:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	rd[2] = (uint8_t)atoi(token);
data/unbound-1.12.0/sldns/wire2str.c:219:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[16];
data/unbound-1.12.0/sldns/wire2str.c:226:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[16];
data/unbound-1.12.0/sldns/wire2str.c:242:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[16];
data/unbound-1.12.0/sldns/wire2str.c:1093:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[32];
data/unbound-1.12.0/sldns/wire2str.c:1107:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/sldns/wire2str.c:1351:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char date_buf[16];
data/unbound-1.12.0/sldns/wire2str.c:1876: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[64];
data/unbound-1.12.0/sldns/wire2str.c:1894: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[64];
data/unbound-1.12.0/smallapp/unbound-anchor.c:380:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/smallapp/unbound-anchor.c:389: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).
	in = fopen(file, "r");
data/unbound-1.12.0/smallapp/unbound-anchor.c:484: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 out[100];
data/unbound-1.12.0/smallapp/unbound-anchor.c:833:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/smallapp/unbound-anchor.c:870: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).
			*clen = (size_t)atoi(buf+16);
data/unbound-1.12.0/smallapp/unbound-anchor.c:929:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/smallapp/unbound-anchor.c:991:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/smallapp/unbound-anchor.c:1092: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(data, d, l);
data/unbound-1.12.0/smallapp/unbound-anchor.c:1401:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/smallapp/unbound-anchor.c:1560:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/smallapp/unbound-anchor.c:1696: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/unbound-1.12.0/smallapp/unbound-anchor.c:1842: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(root_anchor_file, "w");
data/unbound-1.12.0/smallapp/unbound-anchor.c:1881: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(root_anchor_file, "w");
data/unbound-1.12.0/smallapp/unbound-anchor.c:1998:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[10240];
data/unbound-1.12.0/smallapp/unbound-anchor.c:2000: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/unbound-1.12.0/smallapp/unbound-anchor.c:2042:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE* out = fopen(file, "w");
data/unbound-1.12.0/smallapp/unbound-anchor.c:2126: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/unbound-1.12.0/smallapp/unbound-anchor.c:2127:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[8192];
data/unbound-1.12.0/smallapp/unbound-anchor.c:2148: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/unbound-1.12.0/smallapp/unbound-anchor.c:2149:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/smallapp/unbound-anchor.c:2366: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(optarg);
data/unbound-1.12.0/smallapp/unbound-checkconf.c:258: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[65536];
data/unbound-1.12.0/smallapp/unbound-checkconf.c:540: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 n[64];
data/unbound-1.12.0/smallapp/unbound-checkconf.c:864:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char oldwd[4096];
data/unbound-1.12.0/smallapp/unbound-control.c:309:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char nm[16];
data/unbound-1.12.0/smallapp/unbound-control.c:418:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char nm[32];
data/unbound-1.12.0/smallapp/unbound-control.c:747:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/smallapp/unbound-control.c:752:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/smallapp/unbound-control.c:921:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char buf[256];
data/unbound-1.12.0/smallapp/unbound-host.c:121:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[32];
data/unbound-1.12.0/smallapp/unbound-host.c:139:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/smallapp/unbound-host.c:231:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char d[16];
data/unbound-1.12.0/smallapp/unbound-host.c:240:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char d[16];
data/unbound-1.12.0/smallapp/unbound-host.c:249:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char d[16];
data/unbound-1.12.0/smallapp/unbound-host.c:258:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char s[65535];
data/unbound-1.12.0/smallapp/unbound-host.c:292:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tstr[16];
data/unbound-1.12.0/smallapp/unbound-host.c:293:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cstr[16];
data/unbound-1.12.0/smallapp/unbound-host.c:294:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char rcodestr[16];
data/unbound-1.12.0/testcode/asynclook.c:117:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[100];
data/unbound-1.12.0/testcode/checklocks.c:146: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(e->hold, e->region, e->size);
data/unbound-1.12.0/testcode/checklocks.c:208:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(p->hold, p->region, p->size);
data/unbound-1.12.0/testcode/checklocks.c:658:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[24];
data/unbound-1.12.0/testcode/checklocks.c:661:20:  [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).
	thr->order_info = fopen(buf, "w");
data/unbound-1.12.0/testcode/delayer.c:848:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char from[109];
data/unbound-1.12.0/testcode/delayer.c:1079:8:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				if(atoi(optarg)==0 && strcmp(optarg,"0")!=0) {
data/unbound-1.12.0/testcode/delayer.c:1083:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				delay = atoi(optarg);
data/unbound-1.12.0/testcode/delayer.c:1095:8:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				if(atoi(optarg)==0 && strcmp(optarg,"0")!=0) {
data/unbound-1.12.0/testcode/delayer.c:1099:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				bindport = atoi(optarg);
data/unbound-1.12.0/testcode/dohclient.c:133: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(buf, sldns_buffer_current(source->ptr), length);
data/unbound-1.12.0/testcode/dohclient.c:382:27:  [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).
		h2_stream->res_status = atoi((char*)value);
data/unbound-1.12.0/testcode/dohclient.c:549:8:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				if(atoi(optarg)==0 && strcmp(optarg,"0")!=0) {
data/unbound-1.12.0/testcode/dohclient.c:554: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(optarg);
data/unbound-1.12.0/testcode/fake_event.c:387: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(&repinfo.addr, &pend->addr, pend->addrlen);
data/unbound-1.12.0/testcode/fake_event.c:456:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&repinfo.addr, &todo->addr, todo->addrlen);
data/unbound-1.12.0/testcode/fake_event.c:511: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(&repinfo.addr, &p->addr, p->addrlen);
data/unbound-1.12.0/testcode/fake_event.c:581:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[1024], line[1024];
data/unbound-1.12.0/testcode/fake_event.c:589: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).
	in = fopen(name, "r");
data/unbound-1.12.0/testcode/fake_event.c:634:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[1024], line[1024];
data/unbound-1.12.0/testcode/fake_event.c:642: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).
	in = fopen(name, "r");
data/unbound-1.12.0/testcode/fake_event.c:693:30:  [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).
		dp, dplen, LDNS_RR_TYPE_A, atoi(now->string),
data/unbound-1.12.0/testcode/fake_event.c:697:3:  [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).
		atoi(now->string), rto);
data/unbound-1.12.0/testcode/fake_event.c:1008: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(&ans->repinfo, repinfo, sizeof(struct comm_reply));
data/unbound-1.12.0/testcode/fake_event.c:1093: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(&pend->addr, &sq->addr, sq->addrlen);
data/unbound-1.12.0/testcode/fake_event.c:1143: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(&pend->addr, &sq->addr, sq->addrlen);
data/unbound-1.12.0/testcode/fake_event.c:1192:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char z[256];
data/unbound-1.12.0/testcode/fake_event.c:1241: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(&pend->addr, addr, addrlen);
data/unbound-1.12.0/testcode/fake_event.c:1684: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(&pend->addr, to_addr, to_addrlen);
data/unbound-1.12.0/testcode/fake_event.c:1689: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[512];
data/unbound-1.12.0/testcode/fake_event.c:1690: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 addrbuf[128];
data/unbound-1.12.0/testcode/fake_event.c:1774: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(&pend->addr, addr, addrlen);
data/unbound-1.12.0/testcode/fake_event.c:1779: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[512];
data/unbound-1.12.0/testcode/fake_event.c:1780: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 addrbuf[128];
data/unbound-1.12.0/testcode/lock_verify.c:166:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[STRMAX];
data/unbound-1.12.0/testcode/lock_verify.c:261: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/unbound-1.12.0/testcode/memstats.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 codeline[10240];
data/unbound-1.12.0/testcode/memstats.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 name[10240];
data/unbound-1.12.0/testcode/memstats.c:155:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char codeline[10240];
data/unbound-1.12.0/testcode/memstats.c:156:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[10240];
data/unbound-1.12.0/testcode/memstats.c:195: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(fname, "r");
data/unbound-1.12.0/testcode/memstats.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 buf[102400];
data/unbound-1.12.0/testcode/perf.c:423: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 rc[16];
data/unbound-1.12.0/testcode/perf.c:449:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char nm[1024], cl[1024], tp[1024], fl[1024];
data/unbound-1.12.0/testcode/perf.c:500:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(d, info->qlist_data, sizeof(uint8_t*)*
data/unbound-1.12.0/testcode/perf.c:503:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(l, info->qlist_len, sizeof(size_t)*
data/unbound-1.12.0/testcode/perf.c:536:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/testcode/perf.c:538: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(fname, "r");
data/unbound-1.12.0/testcode/perf.c:596:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			if(atoi(optarg)==0 && strcmp(optarg, "0")!=0) {
data/unbound-1.12.0/testcode/perf.c:600: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).
			info.duration = atoi(optarg);
data/unbound-1.12.0/testcode/petal.c:218:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/unbound-1.12.0/testcode/petal.c:371: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(fname, 
data/unbound-1.12.0/testcode/petal.c:381: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 hdr[1024];
data/unbound-1.12.0/testcode/petal.c:440:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[16384];
data/unbound-1.12.0/testcode/petal.c:445: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(fname, 
data/unbound-1.12.0/testcode/petal.c:539:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/testcode/petal.c:540:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char host[1024];
data/unbound-1.12.0/testcode/petal.c:541:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char combined[2048];
data/unbound-1.12.0/testcode/petal.c:555: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 out[100];
data/unbound-1.12.0/testcode/petal.c:636: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(optarg);
data/unbound-1.12.0/testcode/pktview.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 buf[102400];
data/unbound-1.12.0/testcode/replay.c:217:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line[MAX_LINE_LEN];
data/unbound-1.12.0/testcode/replay.c:242:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/testcode/replay.c:441:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[MAX_LINE_LEN];
data/unbound-1.12.0/testcode/replay.c:689:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[32];
data/unbound-1.12.0/testcode/replay.c:690: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).
	time_t tt = (time_t)atoi(arg);
data/unbound-1.12.0/testcode/replay.c:732:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[32];
data/unbound-1.12.0/testcode/replay.c:783: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 res[1024];
data/unbound-1.12.0/testcode/replay.c:794:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/testcode/replay.c:867:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/testcode/signit.c:118:24:  [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).
	s->keytag = (uint16_t)atoi(argv[3]);
data/unbound-1.12.0/testcode/signit.c:138: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).
		in = fopen(names[i], "r");
data/unbound-1.12.0/testcode/signit.c:238:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[10240];
data/unbound-1.12.0/testcode/signit.c:259:43:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		out = ldns_nsec3_hash_name(in, (uint8_t)atoi(argv[2]), 
data/unbound-1.12.0/testcode/signit.c:260:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			(uint16_t)atoi(argv[4]),
data/unbound-1.12.0/testcode/streamtcp.c:466:8:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				if(atoi(optarg)==0 && strcmp(optarg,"0")!=0) {
data/unbound-1.12.0/testcode/streamtcp.c:471:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				delay = atoi(optarg);
data/unbound-1.12.0/testcode/testbound.c:133:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(pass_argv[*pass_argc], p, len);
data/unbound-1.12.0/testcode/testbound.c:159:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[MAX_LINE_LEN];
data/unbound-1.12.0/testcode/testbound.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 line[MAX_LINE_LEN];
data/unbound-1.12.0/testcode/testbound.c:185: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).
	spool = fopen(line, "w");
data/unbound-1.12.0/testcode/testbound.c:197: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 l2[MAX_LINE_LEN-30]; /* -30 makes it fit with
data/unbound-1.12.0/testcode/testbound.c:219:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[MAX_LINE_LEN];
data/unbound-1.12.0/testcode/testbound.c:232: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).
	spool = fopen(line, "w");
data/unbound-1.12.0/testcode/testbound.c:256:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char configfile[MAX_LINE_LEN];
data/unbound-1.12.0/testcode/testbound.c:257:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line[MAX_LINE_LEN];
data/unbound-1.12.0/testcode/testbound.c:263:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	cfg = fopen(configfile, "w");
data/unbound-1.12.0/testcode/testbound.c:319:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		FILE *in = fopen(filename, "rb");
data/unbound-1.12.0/testcode/testpkts.c:528:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[MAX_LINE];
data/unbound-1.12.0/testcode/testpkts.c:564:36:  [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).
			pstate->default_ttl = (uint32_t)atoi(parse);
data/unbound-1.12.0/testcode/testpkts.c:683:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if((in=fopen(name, "r")) == NULL) {
data/unbound-1.12.0/testcode/testpkts.c:1352:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char qs[512], ps[512];
data/unbound-1.12.0/testcode/testpkts.c:1370:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char qs[5120], ps[5120];
data/unbound-1.12.0/testcode/testpkts.c:1538:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(res, orig, LDNS_HEADER_SIZE);
data/unbound-1.12.0/testcode/testpkts.c:1566:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(res, orig, LDNS_HEADER_SIZE);
data/unbound-1.12.0/testcode/unitauth.c:469:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[256];
data/unbound-1.12.0/testcode/unitauth.c:482:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[256];
data/unbound-1.12.0/testcode/unitauth.c:493: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(fname, "w");
data/unbound-1.12.0/testcode/unitauth.c:551:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[10240], buf2[10240];
data/unbound-1.12.0/testcode/unitauth.c:554: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).
	i1 = fopen(f1, "r");
data/unbound-1.12.0/testcode/unitauth.c:556: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).
	i2 = fopen(f2, "r");
data/unbound-1.12.0/testcode/unitauth.c:653:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char rcode[32];
data/unbound-1.12.0/testcode/unitauth.c:673:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[65536];
data/unbound-1.12.0/testcode/unitldns.c:156: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).
	inf = fopen(input, "r");
data/unbound-1.12.0/testcode/unitldns.c:158: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).
	chf = fopen(check, "r");
data/unbound-1.12.0/testcode/unitldns.c:164: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).
		of = fopen("outputfile", "w");
data/unbound-1.12.0/testcode/unitldns.c:240:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char target[128];
data/unbound-1.12.0/testcode/unitmain.c:195:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&a4.sin_addr, "\377\377\377\377", 4);
data/unbound-1.12.0/testcode/unitmain.c:199:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&a6.sin6_addr, "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377", 16);
data/unbound-1.12.0/testcode/unitmain.c:224:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&a4.sin_addr, "abcd", 4);
data/unbound-1.12.0/testcode/unitmain.c:225:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&b4.sin_addr, "abcd", 4);
data/unbound-1.12.0/testcode/unitmain.c:242:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&a4.sin_addr, "\377\377\377\377", 4);
data/unbound-1.12.0/testcode/unitmain.c:243:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&b4.sin_addr, t4[i], 4);
data/unbound-1.12.0/testcode/unitmain.c:251:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&a6.sin6_addr, "abcdefghabcdefgh", 16);
data/unbound-1.12.0/testcode/unitmain.c:252:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&b6.sin6_addr, "abcdefghabcdefgh", 16);
data/unbound-1.12.0/testcode/unitmain.c:717:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[65536];
data/unbound-1.12.0/testcode/unitmsgparse.c:220: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 rbuf[16];
data/unbound-1.12.0/testcode/unitmsgparse.c:241:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[65535];
data/unbound-1.12.0/testcode/unitmsgparse.c:334: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 rbuf[16];
data/unbound-1.12.0/testcode/unitmsgparse.c:443: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(fname, "r");
data/unbound-1.12.0/testcode/unitmsgparse.c:444:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/testcode/unitmsgparse.c:471: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(fname, "r");
data/unbound-1.12.0/testcode/unitmsgparse.c:472:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/testcode/unitneg.c:56:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/unbound-1.12.0/testcode/unitneg.c:97: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 zname[36];
data/unbound-1.12.0/testcode/unitneg.c:115: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 buf1[256], buf2[256];
data/unbound-1.12.0/testcode/unitverify.c:99:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char rcode[16];
data/unbound-1.12.0/testdata/speed_cache.tdir/makeqs.c:10:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        int max = atoi(argv[1]);
data/unbound-1.12.0/util/alloc.c:384: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(res, &size, sizeof(size));
data/unbound-1.12.0/util/alloc.c:385: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(res+8, &mem_special, sizeof(mem_special));
data/unbound-1.12.0/util/alloc.c:407:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(res, &s, sizeof(s));
data/unbound-1.12.0/util/alloc.c:408: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(res+8, &mem_special, sizeof(mem_special));
data/unbound-1.12.0/util/alloc.c:459:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(res+16, ptr+16, size);
data/unbound-1.12.0/util/alloc.c:461:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(res+16, ptr+16, cursz);
data/unbound-1.12.0/util/alloc.c:465: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(res, &size, sizeof(size));
data/unbound-1.12.0/util/alloc.c:466: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(res+8, &mem_special, sizeof(mem_special));
data/unbound-1.12.0/util/alloc.c:656:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(*dest, md, ms);
data/unbound-1.12.0/util/alloc.c:674:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(*sig, n, (size_t)r);
data/unbound-1.12.0/util/config_file.c:394:5:  [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(val) == 0 && strcmp(val, "0") != 0) return 0
data/unbound-1.12.0/util/config_file.c:397:5:  [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(val) == 0) return 0
data/unbound-1.12.0/util/config_file.c:400:5:  [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(val) == 0 || !is_pow2((size_t)atoi(val))) return 0
data/unbound-1.12.0/util/config_file.c:400:40:  [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(val) == 0 || !is_pow2((size_t)atoi(val))) return 0
data/unbound-1.12.0/util/config_file.c:406:34:  [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).
	{ IS_NUMBER_OR_ZERO; cfg->var = atoi(val); }
data/unbound-1.12.0/util/config_file.c:409:34:  [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).
	{ IS_NONZERO_NUMBER; cfg->var = atoi(val); }
data/unbound-1.12.0/util/config_file.c:412:44:  [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).
	{ IS_NUMBER_OR_ZERO; cfg->var = (unsigned)atoi(val); }
data/unbound-1.12.0/util/config_file.c:415:42:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	{ IS_NUMBER_OR_ZERO; cfg->var = (size_t)atoi(val); }
data/unbound-1.12.0/util/config_file.c:418:42:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	{ IS_NONZERO_NUMBER; cfg->var = (size_t)atoi(val); }
data/unbound-1.12.0/util/config_file.c:427:39:  [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).
	{ IS_POW2_NUMBER; cfg->var = (size_t)atoi(val); }
data/unbound-1.12.0/util/config_file.c:445:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[64];
data/unbound-1.12.0/util/config_file.c:455: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).
		else if(atoi(val) == 0)
data/unbound-1.12.0/util/config_file.c:457:29:  [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).
		else cfg->stat_interval = atoi(val);
data/unbound-1.12.0/util/config_file.c:476:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			if(atoi(val) == 0) return 0;
data/unbound-1.12.0/util/config_file.c:477:39:  [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->val_date_override = (uint32_t)atoi(val);
data/unbound-1.12.0/util/config_file.c:556:38:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	{ IS_NUMBER_OR_ZERO; cfg->max_ttl = atoi(val); MAX_TTL=(time_t)cfg->max_ttl;}
data/unbound-1.12.0/util/config_file.c:558:47:  [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).
	{ IS_NUMBER_OR_ZERO; cfg->max_negative_ttl = atoi(val); MAX_NEG_TTL=(time_t)cfg->max_negative_ttl;}
data/unbound-1.12.0/util/config_file.c:560:38:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	{ IS_NUMBER_OR_ZERO; cfg->min_ttl = atoi(val); MIN_TTL=(time_t)cfg->min_ttl;}
data/unbound-1.12.0/util/config_file.c:562:52:  [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).
	    IS_NUMBER_OR_ZERO; cfg->infra_cache_min_rtt = atoi(val);
data/unbound-1.12.0/util/config_file.c:617:48:  [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).
	{ IS_NUMBER_OR_ZERO; cfg->serve_expired_ttl = atoi(val); SERVE_EXPIRED_TTL=(time_t)cfg->serve_expired_ttl;}
data/unbound-1.12.0/util/config_file.c:620:54:  [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).
	{ IS_NUMBER_OR_ZERO; cfg->serve_expired_reply_ttl = atoi(val); SERVE_EXPIRED_REPLY_TTL=(time_t)cfg->serve_expired_reply_ttl;}
data/unbound-1.12.0/util/config_file.c:700:45:  [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).
	    IS_NUMBER_OR_ZERO; cfg->ip_ratelimit = atoi(val);
data/unbound-1.12.0/util/config_file.c:704:42:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    IS_NUMBER_OR_ZERO; cfg->ratelimit = atoi(val);
data/unbound-1.12.0/util/config_file.c:721:47:  [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).
	{ IS_NUMBER_OR_ZERO; cfg->ipsecmod_max_ttl = atoi(val); }
data/unbound-1.12.0/util/config_file.c:729:56:  [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).
	{ IS_NUMBER_OR_ZERO; cfg->val_sig_skew_min = (int32_t)atoi(val); }
data/unbound-1.12.0/util/config_file.c:731:56:  [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).
	{ IS_NUMBER_OR_ZERO; cfg->val_sig_skew_max = (int32_t)atoi(val); }
data/unbound-1.12.0/util/config_file.c:911:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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], nopt[64];
data/unbound-1.12.0/util/config_file.c:1270: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).
	in = fopen(fname, "r");
data/unbound-1.12.0/util/config_file.c:1575:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		int port = atoi(str);
data/unbound-1.12.0/util/config_file.c:1583: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).
		int i, low, high = atoi(mid+1);
data/unbound-1.12.0/util/config_file.c:1584: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[16];
data/unbound-1.12.0/util/config_file.c:1594:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(buf, str, (size_t)(mid-str));
data/unbound-1.12.0/util/config_file.c:1596:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		low = atoi(buf);
data/unbound-1.12.0/util/config_file.c:1898:18:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		*res = (size_t)atol(str);
data/unbound-1.12.0/util/config_file.c:1928:18:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	*res = ((size_t)atol(str)) * mult;
data/unbound-1.12.0/util/config_file.c:1959:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(newarray, cfg->tagname, sizeof(char*)*cfg->num_tags);
data/unbound-1.12.0/util/config_file.c:2018:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/util/config_file.c:2218:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[256];
data/unbound-1.12.0/util/config_file.c:2267:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/util/config_file.c:2382:3:  [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 dirbuf[2*MAX_PATH+4];
data/unbound-1.12.0/util/config_file.c:2433: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[256];
data/unbound-1.12.0/util/config_file.c:2449:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/util/config_file.c:2453:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dname[LDNS_MAX_DOMAINLEN+1];
data/unbound-1.12.0/util/config_file.c:2454:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char t[16], c[16];
data/unbound-1.12.0/util/config_file.c:2474:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/util/config_file.c:2478:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dname[LDNS_MAX_DOMAINLEN+1];
data/unbound-1.12.0/util/config_file.c:2479:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[16], c[16];
data/unbound-1.12.0/util/config_file.c:2499:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/util/config_file.c:2500:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dname[LDNS_MAX_DOMAINLEN+1];
data/unbound-1.12.0/util/config_file.c:2501:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[16], c[16];
data/unbound-1.12.0/util/config_file.c:2513:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[1024];
data/unbound-1.12.0/util/config_file.c:2514:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[LDNS_MAX_DOMAINLEN+1];
data/unbound-1.12.0/util/configlexer.c:3666: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).
	input = fopen(filename, "r");
data/unbound-1.12.0/util/configparser.c:2380:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/unbound-1.12.0/util/configparser.c:2569:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char yymsgbuf[128];
data/unbound-1.12.0/util/configparser.c:2950: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((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0)
data/unbound-1.12.0/util/configparser.c:2952:39:  [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).
		else cfg_parser->cfg->num_threads = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:2962: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((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0)
data/unbound-1.12.0/util/configparser.c:2964:37:  [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).
		else cfg_parser->cfg->verbosity = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:2976: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).
		else if(atoi((yyvsp[0].str)) == 0)
data/unbound-1.12.0/util/configparser.c:2978:41:  [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).
		else cfg_parser->cfg->stat_interval = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:3026: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).
		else if(atoi((yyvsp[0].str)) == 0)
data/unbound-1.12.0/util/configparser.c:3028:35:  [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).
		else cfg_parser->cfg->shm_key = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:3038: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((yyvsp[0].str)) == 0)
data/unbound-1.12.0/util/configparser.c:3040:32:  [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).
		else cfg_parser->cfg->port = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:3114: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((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0)
data/unbound-1.12.0/util/configparser.c:3116: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).
		else if (atoi((yyvsp[0].str)) > 32)
data/unbound-1.12.0/util/configparser.c:3118: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).
		else if (atoi((yyvsp[0].str)) < 0)
data/unbound-1.12.0/util/configparser.c:3120:59:  [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).
		else cfg_parser->cfg->max_client_subnet_ipv4 = (uint8_t)atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:3134: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((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0)
data/unbound-1.12.0/util/configparser.c:3136: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).
		else if (atoi((yyvsp[0].str)) > 128)
data/unbound-1.12.0/util/configparser.c:3138: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).
		else if (atoi((yyvsp[0].str)) < 0)
data/unbound-1.12.0/util/configparser.c:3140:59:  [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).
		else cfg_parser->cfg->max_client_subnet_ipv6 = (uint8_t)atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:3154: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((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0)
data/unbound-1.12.0/util/configparser.c:3156: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).
		else if (atoi((yyvsp[0].str)) > 32)
data/unbound-1.12.0/util/configparser.c:3158: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).
		else if (atoi((yyvsp[0].str)) < 0)
data/unbound-1.12.0/util/configparser.c:3160:59:  [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).
		else cfg_parser->cfg->min_client_subnet_ipv4 = (uint8_t)atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:3174: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((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0)
data/unbound-1.12.0/util/configparser.c:3176: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).
		else if (atoi((yyvsp[0].str)) > 128)
data/unbound-1.12.0/util/configparser.c:3178: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).
		else if (atoi((yyvsp[0].str)) < 0)
data/unbound-1.12.0/util/configparser.c:3180:59:  [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).
		else cfg_parser->cfg->min_client_subnet_ipv6 = (uint8_t)atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:3194: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((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0)
data/unbound-1.12.0/util/configparser.c:3196: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).
		else if (atoi((yyvsp[0].str)) < 0)
data/unbound-1.12.0/util/configparser.c:3198:60:  [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).
		else cfg_parser->cfg->max_ecs_tree_size_ipv4 = (uint32_t)atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:3212: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((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0)
data/unbound-1.12.0/util/configparser.c:3214: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).
		else if (atoi((yyvsp[0].str)) < 0)
data/unbound-1.12.0/util/configparser.c:3216:60:  [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).
		else cfg_parser->cfg->max_ecs_tree_size_ipv6 = (uint32_t)atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:3263: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((yyvsp[0].str)) == 0)
data/unbound-1.12.0/util/configparser.c:3265:46:  [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).
		else cfg_parser->cfg->outgoing_num_ports = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:3299: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((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0)
data/unbound-1.12.0/util/configparser.c:3301:44:  [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).
		else cfg_parser->cfg->outgoing_num_tcp = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:3311: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((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0)
data/unbound-1.12.0/util/configparser.c:3313:44:  [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).
		else cfg_parser->cfg->incoming_num_tcp = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:3407: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).
                if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0)
data/unbound-1.12.0/util/configparser.c:3409:49:  [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).
                else cfg_parser->cfg->tcp_mss = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:3419: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((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0)
data/unbound-1.12.0/util/configparser.c:3421:44:  [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).
		else cfg_parser->cfg->outgoing_tcp_mss = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:3431: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((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0)
data/unbound-1.12.0/util/configparser.c:3433: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).
		else if (atoi((yyvsp[0].str)) > 120000)
data/unbound-1.12.0/util/configparser.c:3435: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).
		else if (atoi((yyvsp[0].str)) < 1)
data/unbound-1.12.0/util/configparser.c:3437:44:  [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).
		else cfg_parser->cfg->tcp_idle_timeout = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:3459: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((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0)
data/unbound-1.12.0/util/configparser.c:3461: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).
		else if (atoi((yyvsp[0].str)) > 6553500)
data/unbound-1.12.0/util/configparser.c:3463: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).
		else if (atoi((yyvsp[0].str)) < 1)
data/unbound-1.12.0/util/configparser.c:3465:49:  [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).
		else cfg_parser->cfg->tcp_keepalive_timeout = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:3531: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((yyvsp[0].str)) == 0)
data/unbound-1.12.0/util/configparser.c:3533:36:  [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).
		else cfg_parser->cfg->ssl_port = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:3619: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((yyvsp[0].str)) == 0)
data/unbound-1.12.0/util/configparser.c:3621:38:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		else cfg_parser->cfg->https_port = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:3650: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((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0)
data/unbound-1.12.0/util/configparser.c:3652:44:  [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).
		else cfg_parser->cfg->http_max_streams = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:4109: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((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0)
data/unbound-1.12.0/util/configparser.c:4111: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).
		else if (atoi((yyvsp[0].str)) > 63)
data/unbound-1.12.0/util/configparser.c:4113: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).
		else if (atoi((yyvsp[0].str)) < 0)
data/unbound-1.12.0/util/configparser.c:4116:31:  [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_parser->cfg->ip_dscp = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:4137: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((yyvsp[0].str)) == 0)
data/unbound-1.12.0/util/configparser.c:4139: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).
		else if (atoi((yyvsp[0].str)) < 12)
data/unbound-1.12.0/util/configparser.c:4141: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).
		else if (atoi((yyvsp[0].str)) > 65535)
data/unbound-1.12.0/util/configparser.c:4143:44:  [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).
		else cfg_parser->cfg->edns_buffer_size = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:4153: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((yyvsp[0].str)) == 0)
data/unbound-1.12.0/util/configparser.c:4155: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).
		else if (atoi((yyvsp[0].str)) < 4096)
data/unbound-1.12.0/util/configparser.c:4157:43:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		else cfg_parser->cfg->msg_buffer_size = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:4178: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((yyvsp[0].str)) == 0)
data/unbound-1.12.0/util/configparser.c:4181:39:  [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_parser->cfg->msg_cache_slabs = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:4194: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((yyvsp[0].str)) == 0)
data/unbound-1.12.0/util/configparser.c:4196:50:  [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).
		else cfg_parser->cfg->num_queries_per_thread = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:4206: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((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0)
data/unbound-1.12.0/util/configparser.c:4208:39:  [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).
		else cfg_parser->cfg->jostle_time = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:4218: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((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0)
data/unbound-1.12.0/util/configparser.c:4220:39:  [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).
		else cfg_parser->cfg->delay_close = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:4267: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((yyvsp[0].str)) == 0)
data/unbound-1.12.0/util/configparser.c:4270:41:  [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_parser->cfg->rrset_cache_slabs = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:4283: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((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0)
data/unbound-1.12.0/util/configparser.c:4285:36:  [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).
		else cfg_parser->cfg->host_ttl = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:4306: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((yyvsp[0].str)) == 0)
data/unbound-1.12.0/util/configparser.c:4308:48:  [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).
		else cfg_parser->cfg->infra_cache_numhosts = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:4329: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((yyvsp[0].str)) == 0)
data/unbound-1.12.0/util/configparser.c:4332:41:  [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_parser->cfg->infra_cache_slabs = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:4345: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((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0)
data/unbound-1.12.0/util/configparser.c:4347:47:  [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).
		else cfg_parser->cfg->infra_cache_min_rtt = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:4537: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((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0)
data/unbound-1.12.0/util/configparser.c:4539:46:  [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).
		else cfg_parser->cfg->unwanted_threshold = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:4613:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			if(atoi((yyvsp[0].str)) == 0)
data/unbound-1.12.0/util/configparser.c:4615:41:  [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_parser->cfg->val_date_override = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:4629:40:  [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_parser->cfg->val_sig_skew_min = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:4645:40:  [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_parser->cfg->val_sig_skew_max = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:4658: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((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0)
data/unbound-1.12.0/util/configparser.c:4660:35:  [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).
		else cfg_parser->cfg->max_ttl = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:4670: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((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0)
data/unbound-1.12.0/util/configparser.c:4672:44:  [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).
		else cfg_parser->cfg->max_negative_ttl = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:4682: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((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0)
data/unbound-1.12.0/util/configparser.c:4684:35:  [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).
		else cfg_parser->cfg->min_ttl = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:4694: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((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0)
data/unbound-1.12.0/util/configparser.c:4696:37:  [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).
		else cfg_parser->cfg->bogus_ttl = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:4770: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((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0)
data/unbound-1.12.0/util/configparser.c:4772:45:  [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).
		else cfg_parser->cfg->serve_expired_ttl = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:4794: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((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0)
data/unbound-1.12.0/util/configparser.c:4796:51:  [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).
		else cfg_parser->cfg->serve_expired_reply_ttl = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:4806: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((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0)
data/unbound-1.12.0/util/configparser.c:4808:56:  [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).
		else cfg_parser->cfg->serve_expired_client_timeout = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:4850: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((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0)
data/unbound-1.12.0/util/configparser.c:4852:41:  [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).
		else cfg_parser->cfg->val_log_level = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:4872: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((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0)
data/unbound-1.12.0/util/configparser.c:4874:40:  [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).
		else cfg_parser->cfg->add_holddown = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:4884: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((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0)
data/unbound-1.12.0/util/configparser.c:4886:40:  [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).
		else cfg_parser->cfg->del_holddown = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:4896: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((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0)
data/unbound-1.12.0/util/configparser.c:4898:40:  [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).
		else cfg_parser->cfg->keep_missing = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:4932: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((yyvsp[0].str)) == 0)
data/unbound-1.12.0/util/configparser.c:4935:39:  [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_parser->cfg->key_cache_slabs = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:5057:48:  [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_parser->cfg->unknown_server_time_limit = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:5067:35:  [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_parser->cfg->max_udp_size = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:5256: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((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0)
data/unbound-1.12.0/util/configparser.c:5258:40:  [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).
		else cfg_parser->cfg->ip_ratelimit = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:5268: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((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0)
data/unbound-1.12.0/util/configparser.c:5270:37:  [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).
		else cfg_parser->cfg->ratelimit = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:5302:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  	if(atoi((yyvsp[0].str)) == 0)
data/unbound-1.12.0/util/configparser.c:5305:43:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  		cfg_parser->cfg->ip_ratelimit_slabs = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:5318: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((yyvsp[0].str)) == 0)
data/unbound-1.12.0/util/configparser.c:5321:39:  [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_parser->cfg->ratelimit_slabs = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:5334: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((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) {
data/unbound-1.12.0/util/configparser.c:5352: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((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0) {
data/unbound-1.12.0/util/configparser.c:5370:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  	if(atoi((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0)
data/unbound-1.12.0/util/configparser.c:5372:48:  [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).
  	else cfg_parser->cfg->ip_ratelimit_factor = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:5382: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((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0)
data/unbound-1.12.0/util/configparser.c:5384:44:  [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).
		else cfg_parser->cfg->ratelimit_factor = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:5403: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((yyvsp[0].str)) <= 0)
data/unbound-1.12.0/util/configparser.c:5405:43:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		else cfg_parser->cfg->fast_server_num = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:5415: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((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0)
data/unbound-1.12.0/util/configparser.c:5417:46:  [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).
		else cfg_parser->cfg->fast_server_permil = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:5501: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((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0)
data/unbound-1.12.0/util/configparser.c:5503:44:  [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).
		else cfg_parser->cfg->ipsecmod_max_ttl = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:5550:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		tag_data = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:5567: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((yyvsp[0].str)) == 0 && strcmp((yyvsp[0].str), "0") != 0)
data/unbound-1.12.0/util/configparser.c:5569: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).
		else if(atoi((yyvsp[0].str)) > 65535 || atoi((yyvsp[0].str)) < 0)
data/unbound-1.12.0/util/configparser.c:5569:43:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		else if(atoi((yyvsp[0].str)) > 65535 || atoi((yyvsp[0].str)) < 0)
data/unbound-1.12.0/util/configparser.c:5571:50:  [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).
		else cfg_parser->cfg->edns_client_tag_opcode = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:5968: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((yyvsp[0].str)) == 0)
data/unbound-1.12.0/util/configparser.c:5970:40:  [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).
		else cfg_parser->cfg->control_port = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:6369: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((yyvsp[0].str)) == 0)
data/unbound-1.12.0/util/configparser.c:6371:41:  [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).
		else cfg_parser->cfg->dnscrypt_port = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:6436:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  	if(atoi((yyvsp[0].str)) == 0)
data/unbound-1.12.0/util/configparser.c:6439:59:  [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_parser->cfg->dnscrypt_shared_secret_cache_slabs = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:6463:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  	if(atoi((yyvsp[0].str)) == 0)
data/unbound-1.12.0/util/configparser.c:6466:51:  [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_parser->cfg->dnscrypt_nonce_cache_slabs = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:6534: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((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:6551: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((yyvsp[0].str)) == 0)
data/unbound-1.12.0/util/configparser.c:6553:41:  [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).
		else cfg_parser->cfg->redis_timeout = atoi((yyvsp[0].str));
data/unbound-1.12.0/util/configparser.c:6582:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		if (atoi((yyvsp[0].str)) < 0)
data/unbound-1.12.0/util/data/msgparse.c:1115: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 str[128], *s;
data/unbound-1.12.0/util/data/msgreply.c:645: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(&e->key, q, sizeof(*q));
data/unbound-1.12.0/util/data/msgreply.c:847:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char qname_buf[LDNS_MAX_DOMAINLEN+1];
data/unbound-1.12.0/util/data/msgreply.c:848:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char clientip_buf[128];
data/unbound-1.12.0/util/data/msgreply.c:849:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char rcode_buf[16];
data/unbound-1.12.0/util/data/msgreply.c:850:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char type_buf[16];
data/unbound-1.12.0/util/data/msgreply.c:851:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char class_buf[16];
data/unbound-1.12.0/util/data/packed_rrset.c:304:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[65535];
data/unbound-1.12.0/util/edns.c:108:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		tag_data = atoi(c->str2); /* validated in config parser */
data/unbound-1.12.0/util/log.c:145: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/unbound-1.12.0/util/log.c:223:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/util/log.c:227:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/util/log.c:230:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[128], dtbuf[128];
data/unbound-1.12.0/util/log.c:242: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/unbound-1.12.0/util/log.c:377:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/util/log.c:434: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/unbound-1.12.0/util/module.c:223:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[32], *s;
data/unbound-1.12.0/util/net_help.c:187: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/unbound-1.12.0/util/net_help.c:197:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dest[100];
data/unbound-1.12.0/util/net_help.c:233: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/unbound-1.12.0/util/net_help.c:239: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/unbound-1.12.0/util/net_help.c:257: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/unbound-1.12.0/util/net_help.c:269:34:  [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).
			sa->sin6_scope_id = (uint32_t)atoi(s+1);
data/unbound-1.12.0/util/net_help.c:291:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/util/net_help.c:295: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/unbound-1.12.0/util/net_help.c:299: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/unbound-1.12.0/util/net_help.c:357: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 buff[LDNS_MAX_LABELLEN+1];
data/unbound-1.12.0/util/net_help.c:372:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(buff, dname, lablen);
data/unbound-1.12.0/util/net_help.c:402:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buff[3 /* 3 digit netblock */ + 1];
data/unbound-1.12.0/util/net_help.c:412: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(buff, dname+1, nlablen);
data/unbound-1.12.0/util/net_help.c:414:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	*net = atoi(buff);
data/unbound-1.12.0/util/net_help.c:432: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/unbound-1.12.0/util/net_help.c:445: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/unbound-1.12.0/util/net_help.c:455: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/unbound-1.12.0/util/net_help.c:487:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[LDNS_MAX_DOMAINLEN+1];
data/unbound-1.12.0/util/net_help.c:488:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[12], c[12];
data/unbound-1.12.0/util/net_help.c:518:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[LDNS_MAX_DOMAINLEN+1];
data/unbound-1.12.0/util/net_help.c:519:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[12], c[12];
data/unbound-1.12.0/util/net_help.c:551:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char namebuf[LDNS_MAX_DOMAINLEN+1];
data/unbound-1.12.0/util/net_help.c:552:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/util/net_help.c:582:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/util/net_help.c:850:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/util/net_help.c:1418: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).
		f = fopen(p->str, "rb");
data/unbound-1.12.0/util/net_help.c:1487:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(key_name, ticket_keys->key_name, 16);
data/unbound-1.12.0/util/netevent.c:397: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/unbound-1.12.0/util/netevent.c:406: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/unbound-1.12.0/util/netevent.c:424: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/unbound-1.12.0/util/netevent.c:447: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[256];
data/unbound-1.12.0/util/netevent.c:587: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[256];
data/unbound-1.12.0/util/netevent.c:1190: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[255];
data/unbound-1.12.0/util/netevent.c:2050:32:  [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).
			c->tcp_byte_count = (size_t)atoi(line+16);
data/unbound-1.12.0/util/regional.c:166: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(s, init, size);
data/unbound-1.12.0/util/storage/dnstree.c:100: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(&node->addr, addr, addrlen);
data/unbound-1.12.0/util/storage/dnstree.c:217:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&key.addr, addr, addrlen);
data/unbound-1.12.0/util/storage/dnstree.c:247:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&key.addr, addr, addrlen);
data/unbound-1.12.0/util/storage/slabhash.c:136:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char num[17];
data/unbound-1.12.0/util/tcp_conn_limit.c:113:5:  [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(s2) < 0) {
data/unbound-1.12.0/util/tcp_conn_limit.c:117: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).
	limit = (uint32_t)atoi(s2);
data/unbound-1.12.0/validator/autotrust.c:151:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char msg[MAXSYSLOGMSGLEN];
data/unbound-1.12.0/validator/autotrust.c:234:46:  [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).
                ta->pending_count = (uint8_t)atoi(comments);
data/unbound-1.12.0/validator/autotrust.c:248:29:  [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).
                timestamp = atoi(comments);
data/unbound-1.12.0/validator/autotrust.c:992: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.
        char line[10240];
data/unbound-1.12.0/validator/autotrust.c:1000:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (!(fd = fopen(nm, "r"))) {
data/unbound-1.12.0/validator/autotrust.c:1101:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmi[32];
data/unbound-1.12.0/validator/autotrust.c:1180:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tempf[2048];
data/unbound-1.12.0/validator/autotrust.c:1204: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(tempf, "w");
data/unbound-1.12.0/validator/autotrust.c:2258:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[32];
data/unbound-1.12.0/validator/autotrust.c:2278:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[257];
data/unbound-1.12.0/validator/val_anchor.c:436: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(fname, "r");
data/unbound-1.12.0/validator/val_anchor.c:738: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(fname, "r");
data/unbound-1.12.0/validator/val_anchor.c:1020:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char b[257];
data/unbound-1.12.0/validator/val_secalgo.c:92:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/unbound-1.12.0/validator/val_secalgo.c:954: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 buf[256+2]; /* sufficient for 2*384/8+1 */
data/unbound-1.12.0/validator/val_secalgo.c:1259: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[HASH_LENGTH_MAX];
data/unbound-1.12.0/validator/val_secalgo.c:1260: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 hash2[HASH_LENGTH_MAX*2];
data/unbound-1.12.0/validator/val_secalgo.c:1326:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(sechash.data, prefix, prefixlen);
data/unbound-1.12.0/validator/val_sigcrypt.c:543:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[256];
data/unbound-1.12.0/validator/val_sigcrypt.c:1207:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char expi_buf[16];
data/unbound-1.12.0/validator/val_sigcrypt.c:1208:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char incep_buf[16];
data/unbound-1.12.0/validator/val_sigcrypt.c:1209:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char now_buf[16];
data/unbound-1.12.0/validator/val_utils.c:739: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 herr[64], aerr[64];
data/unbound-1.12.0/validator/validator.c:327: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 rc[16];
data/unbound-1.12.0/validator/validator.c:449:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tagstr[LDNS_MAX_LABELLEN+1] = "_ta"; /* +1 for NULL byte */
data/unbound-1.12.0/validator/validator.c:2393: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 rc[16];
data/unbound-1.12.0/validator/validator.c:2572: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 rc[16];
data/unbound-1.12.0/winrc/anchor-update.c:88:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE* out = fopen(file, "w");
data/unbound-1.12.0/winrc/anchor-update.c:89:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[65535], t[32];
data/unbound-1.12.0/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/unbound-1.12.0/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/unbound-1.12.0/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/unbound-1.12.0/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[2*MAX_PATH+4+256];
data/unbound-1.12.0/winrc/w_inst.c:194: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_config[2*MAX_PATH+4+256];
data/unbound-1.12.0/winrc/w_inst.c:215:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(path, " -c ");
data/unbound-1.12.0/winrc/w_inst.c:219: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/unbound-1.12.0/winrc/win_svc.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 b[256];
data/unbound-1.12.0/winrc/win_svc.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 e[256];
data/unbound-1.12.0/winrc/win_svc.c:226: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/unbound-1.12.0/winrc/win_svc.c:482: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:\\unbound.log", "w"));
data/unbound-1.12.0/cachedb/cachedb.c:353:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(secret && secret[0] && clen + strlen(secret) < sizeof(clear)) {
data/unbound-1.12.0/cachedb/cachedb.c:354: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).
		memmove(clear+clen, secret, strlen(secret));
data/unbound-1.12.0/cachedb/cachedb.c:355: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).
		clen += strlen(secret);
data/unbound-1.12.0/compat/arc4random.c:120:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ssize_t ret = read(fd, (char*)buf + i, wanted);
data/unbound-1.12.0/compat/ctime_r.c:36: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(result) > 10 && result[7]==' ' && result[8]=='0')
data/unbound-1.12.0/compat/getentropy_linux.c:250:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ssize_t ret = read(fd, (char *)buf + i, wanted);
data/unbound-1.12.0/compat/getentropy_osx.c:178:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ssize_t ret = read(fd, (char *)buf + i, wanted);
data/unbound-1.12.0/compat/getentropy_solaris.c:207:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ssize_t ret = read(fd, (char *)buf + i, wanted);
data/unbound-1.12.0/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/unbound-1.12.0/compat/sha512.c:95:32:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
#error Define BYTE_ORDER to be equal to either LITTLE_ENDIAN or BIG_ENDIAN
data/unbound-1.12.0/compat/snprintf.c:591: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/unbound-1.12.0/compat/strlcat.c:60: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).
		return(dlen + strlen(s));
data/unbound-1.12.0/compat/strptime.c:78:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int len = strlen(strs[i]);
data/unbound-1.12.0/daemon/remote.c:554:40:  [1] (buffer) strlen:
  Does not handle 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((r=SSL_write(res->ssl, text, (int)strlen(text))) <= 0) {
data/unbound-1.12.0/daemon/remote.c:565: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).
		while(at < strlen(text)) {
data/unbound-1.12.0/daemon/remote.c:566:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			ssize_t r = send(res->fd, text+at, strlen(text)-at, 0);
data/unbound-1.12.0/daemon/remote.c:2351: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).
		l = strlen(buf);
data/unbound-1.12.0/daemon/remote.c:2357:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			l = strlen(buf);
data/unbound-1.12.0/daemon/remote.c:2361:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			l = strlen(buf);
data/unbound-1.12.0/daemon/remote.c:2369: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).
		l = strlen(buf);
data/unbound-1.12.0/daemon/remote.c:2379:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			l = strlen(buf);
data/unbound-1.12.0/daemon/remote.c:2454: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).
		snprintf(ip_str+strlen(ip_str), sizeof(ip_str)-strlen(ip_str),
data/unbound-1.12.0/daemon/remote.c:2454:50:  [1] (buffer) strlen:
  Does not handle 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(ip_str+strlen(ip_str), sizeof(ip_str)-strlen(ip_str),
data/unbound-1.12.0/daemon/remote.c:2875: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).
			(uint8_t*)cmd, strlen(cmd)+1, 0)) {
data/unbound-1.12.0/daemon/unbound.c:313:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (((l = read(fd, pidbuf, sizeof(pidbuf)))) == -1) {
data/unbound-1.12.0/daemon/unbound.c:486:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strlen(cfg->chrootdir))==0));
data/unbound-1.12.0/daemon/unbound.c:559:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strlen(cfg->chrootdir)) == 0) 
data/unbound-1.12.0/daemon/unbound.c:560: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).
			(*cfgfile) += strlen(cfg->chrootdir);
data/unbound-1.12.0/daemon/unbound.c:565:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strlen(cfg->chrootdir))==0) {
data/unbound-1.12.0/daemon/unbound.c:567: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).
			daemon->pidfile = strdup(old+strlen(cfg->chrootdir));
data/unbound-1.12.0/daemon/unbound.c:584:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strlen(cfg->chrootdir)) == 0)
data/unbound-1.12.0/daemon/unbound.c:585: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).
			dir += strlen(cfg->chrootdir);
data/unbound-1.12.0/daemon/worker.c:830: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).
		size_t len = strlen(str[i]);
data/unbound-1.12.0/daemon/worker.c:904: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).
		str_len -= strlen(str); str += strlen(str);
data/unbound-1.12.0/daemon/worker.c:904: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).
		str_len -= strlen(str); str += strlen(str);
data/unbound-1.12.0/daemon/worker.c:908: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).
			str_len -= strlen(str); str += strlen(str);
data/unbound-1.12.0/daemon/worker.c:908:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			str_len -= strlen(str); str += strlen(str);
data/unbound-1.12.0/dnscrypt/dnscrypt.c:542:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read(fd, buf, count) != (ssize_t)count) {
data/unbound-1.12.0/dnscrypt/dnscrypt.c:564:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        cfg->chrootdir, strlen(cfg->chrootdir)) == 0)
data/unbound-1.12.0/dnscrypt/dnscrypt.c:565: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).
        nm += strlen(cfg->chrootdir);
data/unbound-1.12.0/dnscrypt/dnscrypt.c:722:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if((unsigned)strlen(dnscenv->provider_name) >= (unsigned)0xffff0000) {
data/unbound-1.12.0/dnscrypt/dnscrypt.c:727: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).
        rrlen = strlen(dnscenv->provider_name) +
data/unbound-1.12.0/dnscrypt/dnscrypt.c:728: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).
                         strlen(ttl_class_type) +
data/unbound-1.12.0/dnscrypt/dnscrypt.c:741: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).
                snprintf(rr + strlen(rr), rrlen - strlen(rr), "%c", c);
data/unbound-1.12.0/dnscrypt/dnscrypt.c:741:51:  [1] (buffer) strlen:
  Does not handle 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(rr + strlen(rr), rrlen - strlen(rr), "%c", c);
data/unbound-1.12.0/dnscrypt/dnscrypt.c:743: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).
                snprintf(rr + strlen(rr), rrlen - strlen(rr), "\\%03d", c);
data/unbound-1.12.0/dnscrypt/dnscrypt.c:743:51:  [1] (buffer) strlen:
  Does not handle 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(rr + strlen(rr), rrlen - strlen(rr), "\\%03d", c);
data/unbound-1.12.0/dnscrypt/dnscrypt.c:752:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        snprintf(rr + strlen(rr), rrlen - strlen(rr), "\"");
data/unbound-1.12.0/dnscrypt/dnscrypt.c:752: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).
        snprintf(rr + strlen(rr), rrlen - strlen(rr), "\"");
data/unbound-1.12.0/dnstap/dnstap.c:186: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).
	env->len_identity = (unsigned int)strlen(env->identity);
data/unbound-1.12.0/dnstap/dnstap.c:203:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	env->len_version = (unsigned int)strlen(env->version);
data/unbound-1.12.0/dnstap/dnstap_fstrm.c:61: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).
	n = 4+4+4+4+4+strlen(contenttype);
data/unbound-1.12.0/dnstap/dnstap_fstrm.c:66: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).
	control[1] = htonl(4+4+4+strlen(contenttype));
data/unbound-1.12.0/dnstap/dnstap_fstrm.c:69: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).
	control[4] = htonl(strlen(contenttype));
data/unbound-1.12.0/dnstap/dnstap_fstrm.c:70:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memmove(&control[5], contenttype, strlen(contenttype));
data/unbound-1.12.0/dnstap/dnstap_fstrm.c:108: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).
	n = 4+4+4+4+4+strlen(contenttype);
data/unbound-1.12.0/dnstap/dnstap_fstrm.c:114: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).
	control[1] = htonl(4+4+4+strlen(contenttype));
data/unbound-1.12.0/dnstap/dnstap_fstrm.c:117: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).
	control[4] = htonl(strlen(contenttype));
data/unbound-1.12.0/dnstap/dnstap_fstrm.c:118:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memmove(&control[5], contenttype, strlen(contenttype));
data/unbound-1.12.0/dnstap/dnstap_fstrm.c:136: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).
	n = 4+4+4+4+4+strlen(contenttype);
data/unbound-1.12.0/dnstap/dnstap_fstrm.c:142: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).
	control[1] = htonl(4+4+4+strlen(contenttype));
data/unbound-1.12.0/dnstap/dnstap_fstrm.c:145: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).
	control[4] = htonl(strlen(contenttype));
data/unbound-1.12.0/dnstap/dnstap_fstrm.c:146:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memmove(&control[5], contenttype, strlen(contenttype));
data/unbound-1.12.0/dnstap/dtstream.c:1165: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(len == strlen(DNSTAP_CONTENT_TYPE) &&
data/unbound-1.12.0/dnstap/dtstream.c:1540:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	r = read(fd, &cmd, sizeof(cmd));
data/unbound-1.12.0/dnstap/unbound-dnstap-socket.c:455:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if(buf[0] != 0) buf[strlen(buf)-1]=0;
data/unbound-1.12.0/ipsecmod/ipsecmod.c:270:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(!domainname_has_safe_characters(tempstring, strlen(tempstring))) {
data/unbound-1.12.0/ipset/ipset.c:67: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(setname) >= IPSET_MAXNAMELEN) {
data/unbound-1.12.0/ipset/ipset.c:86:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	mnl_attr_put(nlh, IPSET_ATTR_SETNAME, strlen(setname) + 1, setname);
data/unbound-1.12.0/ipset/ipset.c:160: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).
		plen = strlen(p->str);
data/unbound-1.12.0/ipset/ipset.c:242:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ipset_env->v4_enabled = !ipset_env->name_v4 || (strlen(ipset_env->name_v4) == 0) ? 0 : 1;
data/unbound-1.12.0/ipset/ipset.c:243:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ipset_env->v6_enabled = !ipset_env->name_v6 || (strlen(ipset_env->name_v6) == 0) ? 0 : 1;
data/unbound-1.12.0/iterator/iter_hints.c:421:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strlen(cfg->chrootdir)) == 0)
data/unbound-1.12.0/iterator/iter_hints.c:422: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).
				f += strlen(cfg->chrootdir);
data/unbound-1.12.0/libunbound/context.c:235: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).
	size_t slen = strlen(q->res->qname) + 1/*end of string*/;
data/unbound-1.12.0/libunbound/context.c:315: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).
	size_t wlen = (pkt&&q->res->why_bogus)?strlen(q->res->why_bogus)+1:0;
data/unbound-1.12.0/services/authzone.c:1502:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						strlen(cfg->chrootdir)) == 0)
data/unbound-1.12.0/services/authzone.c:1503: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).
					incfile += strlen(cfg->chrootdir);
data/unbound-1.12.0/services/authzone.c:1573: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).
		cfg->chrootdir, strlen(cfg->chrootdir)) == 0)
data/unbound-1.12.0/services/authzone.c:1574: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).
		zfilename += strlen(cfg->chrootdir);
data/unbound-1.12.0/services/authzone.c:1694: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).
		if(!write_out(out, buf, strlen(buf)))
data/unbound-1.12.0/services/authzone.c:4930: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).
		cfg->chrootdir, strlen(cfg->chrootdir)) == 0)
data/unbound-1.12.0/services/authzone.c:4931: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).
		zfilename += strlen(cfg->chrootdir);
data/unbound-1.12.0/services/authzone.c:4939: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((size_t)strlen(zfilename) + 16 > sizeof(tmpfile)) {
data/unbound-1.12.0/services/authzone.c:6808: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).
	size_t len = strlen(str);
data/unbound-1.12.0/services/cache/infra.c:1036:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if(strlen(qnm)>0 && qnm[strlen(qnm)-1]=='\n')
data/unbound-1.12.0/services/cache/infra.c:1036: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).
				if(strlen(qnm)>0 && qnm[strlen(qnm)-1]=='\n')
data/unbound-1.12.0/services/cache/infra.c:1037: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).
					qnm[strlen(qnm)-1] = 0; /*remove newline*/
data/unbound-1.12.0/services/cache/rrset.c:125:62:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
need_to_update_rrset(void* nd, void* cd, time_t timenow, int equal, int ns)
data/unbound-1.12.0/services/cache/rrset.c:136:42:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		newd->security != sec_status_bogus && !equal)
data/unbound-1.12.0/services/cache/rrset.c:142:6:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		if(equal && cached->ttl >= timenow && 
data/unbound-1.12.0/services/cache/rrset.c:151:39:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	if( newd->trust == cached->trust && !equal ) {
data/unbound-1.12.0/services/cache/rrset.c:209:4:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
			equal, (rrset_type==LDNS_RR_TYPE_NS))) {
data/unbound-1.12.0/services/cache/rrset.c:213:7:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
			if(equal) return 2;
data/unbound-1.12.0/services/cache/rrset.c:233:45:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
			|| rrset_type == LDNS_RR_TYPE_DNAME) && !equal) {
data/unbound-1.12.0/services/listen_dnsport.c:982:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if(strlen(s+1) >= sizeof(p)) {
data/unbound-1.12.0/services/listen_dnsport.c:990: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).
		p[strlen(s+1)]=0;
data/unbound-1.12.0/services/listen_dnsport.c:1417:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if(strlen(ifa->ifa_name) != (size_t)(atsign-search_ifa)
data/unbound-1.12.0/services/listen_dnsport.c:1455:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(if_index_name) != 0) {
data/unbound-1.12.0/services/listen_dnsport.c:2302: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(length < strlen(msg))
data/unbound-1.12.0/services/listen_dnsport.c:2304: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).
	memcpy(buf, msg, strlen(msg));
data/unbound-1.12.0/services/listen_dnsport.c:2305:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return strlen(msg);
data/unbound-1.12.0/services/listen_dnsport.c:2642: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).
		size_t el = strlen(h2_session->c->http_endpoint);
data/unbound-1.12.0/services/listen_dnsport.c:2643: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).
		size_t qpl = strlen(HTTP_QUERY_PARAM);
data/unbound-1.12.0/services/localzone.c:741: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).
	size_t len = strlen(name);
data/unbound-1.12.0/services/localzone.c:748:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			(strlen(p->str) == len || (strlen(p->str)==len+1 &&
data/unbound-1.12.0/services/localzone.c:748: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).
			(strlen(p->str) == len || (strlen(p->str)==len+1 &&
data/unbound-1.12.0/services/modstack.c:212:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if(strncmp(names[i], s, strlen(names[i])) == 0) {
data/unbound-1.12.0/services/modstack.c:213: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).
                        s += strlen(names[i]);
data/unbound-1.12.0/services/outside_network.c:2329:48:  [1] (buffer) strlen:
  Does not handle 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(!X509_VERIFY_PARAM_set1_host(param, host, strlen(host))) {
data/unbound-1.12.0/sldns/parse.c:60:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(f)) != EOF) {
data/unbound-1.12.0/sldns/parse.c:200: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).
       if(strlen(keyword) >= LDNS_MAX_KEYWORDLEN)
data/unbound-1.12.0/sldns/parse.c:431:14:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = fgetc(fp)) != EOF) {
data/unbound-1.12.0/sldns/parse.c:457: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).
       if(strlen(keyword) >= LDNS_MAX_KEYWORDLEN)
data/unbound-1.12.0/sldns/parse.c:470:39:  [1] (buffer) strlen:
  Does not handle 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(fkeyword, keyword, strlen(keyword)) == 0) {
data/unbound-1.12.0/sldns/rrdef.c:695: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(name) > 4 && strncasecmp(name, "TYPE", 4) == 0) {
data/unbound-1.12.0/sldns/rrdef.c:704:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		   strlen(name) == strlen(desc_name) &&
data/unbound-1.12.0/sldns/rrdef.c:704: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).
		   strlen(name) == strlen(desc_name) &&
data/unbound-1.12.0/sldns/rrdef.c:705:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		   strncasecmp(name, desc_name, strlen(desc_name)) == 0) {
data/unbound-1.12.0/sldns/rrdef.c:712: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(name) == 4 && strncasecmp(name, "IXFR", 4) == 0) {
data/unbound-1.12.0/sldns/rrdef.c:714: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).
	} else if (strlen(name) == 4 && strncasecmp(name, "AXFR", 4) == 0) {
data/unbound-1.12.0/sldns/rrdef.c:716: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).
	} else if (strlen(name) == 5 && strncasecmp(name, "MAILB", 5) == 0) {
data/unbound-1.12.0/sldns/rrdef.c:718: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).
	} else if (strlen(name) == 5 && strncasecmp(name, "MAILA", 5) == 0) {
data/unbound-1.12.0/sldns/rrdef.c:720: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).
	} else if (strlen(name) == 3 && strncasecmp(name, "ANY", 3) == 0) {
data/unbound-1.12.0/sldns/rrdef.c:733: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(name) > 5 && strncasecmp(name, "CLASS", 5) == 0) {
data/unbound-1.12.0/sldns/sbuffer.h:478: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).
	sldns_buffer_write_at(buffer, at, str, strlen(str));
data/unbound-1.12.0/sldns/sbuffer.h:489: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).
	sldns_buffer_write(buffer, str, strlen(str));
data/unbound-1.12.0/sldns/str2wire.c:49: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((char*)str);
data/unbound-1.12.0/sldns/str2wire.c:239: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).
			sldns_buffer_position(strbuf)-strlen(token));
data/unbound-1.12.0/sldns/str2wire.c:257: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(token) > 0 && !isdigit((unsigned char)token[0])) {
data/unbound-1.12.0/sldns/str2wire.c:458:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				sldns_buffer_position(strbuf)-strlen(token));
data/unbound-1.12.0/sldns/str2wire.c:508:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				sldns_buffer_position(strbuf)-strlen(token));
data/unbound-1.12.0/sldns/str2wire.c:519: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 tlen = strlen(token);
data/unbound-1.12.0/sldns/str2wire.c:532: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).
			sldns_buffer_position(strbuf)-strlen(token));
data/unbound-1.12.0/sldns/str2wire.c:558: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).
	slen = strlen(token);
data/unbound-1.12.0/sldns/str2wire.c:589: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).
		slen = strlen(token);
data/unbound-1.12.0/sldns/str2wire.c:746:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	sldns_buffer_init_frm_data(&strbuf, (uint8_t*)str, strlen(str));
data/unbound-1.12.0/sldns/str2wire.c:1139: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(my_str) < 2
data/unbound-1.12.0/sldns/str2wire.c:1207:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t sz = sldns_b64_pton_calculate_size(strlen(str));
data/unbound-1.12.0/sldns/str2wire.c:1224: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).
	size_t slen = strlen(str);
data/unbound-1.12.0/sldns/str2wire.c:1290:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	sldns_buffer_init_frm_data(&strbuf, (uint8_t*)str, strlen(str));
data/unbound-1.12.0/sldns/str2wire.c:1425: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(str) == 14 && sscanf(str, "%4d%2d%2d%2d%2d%2d",
data/unbound-1.12.0/sldns/str2wire.c:1665: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(my_str) > 0) {
data/unbound-1.12.0/sldns/str2wire.c:1670: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(my_str) > 0) {
data/unbound-1.12.0/sldns/str2wire.c:1675: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(my_str) > 0) {
data/unbound-1.12.0/sldns/str2wire.c:1710:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	sldns_buffer_init_frm_data(&strbuf, (uint8_t*)str, strlen(str));
data/unbound-1.12.0/sldns/str2wire.c:1795: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).
	slen = strlen(s);
data/unbound-1.12.0/sldns/str2wire.c:1822: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).
	size_t slen = strlen(str);
data/unbound-1.12.0/sldns/str2wire.c:1857:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	sldns_buffer_init_frm_data(&strbuf, (uint8_t*)str, strlen(str));
data/unbound-1.12.0/sldns/str2wire.c:1925:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int i, salt_length_str = (int)strlen(str);
data/unbound-1.12.0/sldns/str2wire.c:1958: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).
			l != (int)strlen(str) || /* more data to read */
data/unbound-1.12.0/sldns/str2wire.c:1980: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).
			l != (int)strlen(str))
data/unbound-1.12.0/sldns/str2wire.c:2001: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).
			l != (int)strlen(str))
data/unbound-1.12.0/sldns/str2wire.c:2017: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).
	size_t slen = strlen(str);
data/unbound-1.12.0/smallapp/unbound-anchor.c:440:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	bio = BIO_new_mem_buf(d, (int)strlen(d));
data/unbound-1.12.0/smallapp/unbound-anchor.c:840: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).
	l = strlen(buf);
data/unbound-1.12.0/smallapp/unbound-anchor.c:850: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, buf, (int)strlen(buf)) <= 0) {
data/unbound-1.12.0/smallapp/unbound-anchor.c:1019: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).
			} while (strlen(buf) > 0);
data/unbound-1.12.0/smallapp/unbound-anchor.c:1412: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).
	return (strncasecmp(buf, name, strlen(name)) == 0);
data/unbound-1.12.0/smallapp/unbound-anchor.c:1464: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(BIO_write(b, s, (int)strlen(s)) < 0) {
data/unbound-1.12.0/smallapp/unbound-anchor.c:1578:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(BIO_write(data->ds, buf, (int)strlen(buf)) < 0) {
data/unbound-1.12.0/smallapp/unbound-anchor.c:2048: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(!fwrite(builtin_root_anchor, strlen(builtin_root_anchor), 1, out)) {
data/unbound-1.12.0/smallapp/unbound-checkconf.c:533:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if(strncmp(names[i], s, strlen(names[i])) == 0) {
data/unbound-1.12.0/smallapp/unbound-checkconf.c:554: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).
		s += strlen(names[i]);
data/unbound-1.12.0/smallapp/unbound-checkconf.c:587: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).
		cfg->chrootdir[strlen(cfg->chrootdir)-1] == '/')
data/unbound-1.12.0/smallapp/unbound-control.c:731: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).
		remote_write(ssl, fd, buf, strlen(buf));
data/unbound-1.12.0/smallapp/unbound-control.c:754: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).
	remote_write(ssl, fd, pre, strlen(pre));
data/unbound-1.12.0/smallapp/unbound-control.c:756:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		remote_write(ssl, fd, space, strlen(space));
data/unbound-1.12.0/smallapp/unbound-control.c:757: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).
		remote_write(ssl, fd, argv[i], strlen(argv[i]));
data/unbound-1.12.0/smallapp/unbound-control.c:759: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).
	remote_write(ssl, fd, newline, strlen(newline));
data/unbound-1.12.0/smallapp/unbound-host.c:318: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(result->canonname && strlen(result->canonname) > 1 &&
data/unbound-1.12.0/smallapp/unbound-host.c:319: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).
		result->canonname[strlen(result->canonname)-1] == '.')
data/unbound-1.12.0/smallapp/unbound-host.c:320: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).
		result->canonname[strlen(result->canonname)-1] = 0;
data/unbound-1.12.0/testcode/asynclook.c:543:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(100000);
data/unbound-1.12.0/testcode/checklocks.c:243: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).
		fwrite(lock->holder_file, strlen(lock->holder_file)+1, 1, 
data/unbound-1.12.0/testcode/checklocks.c:263: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).
		fwrite(lock->create_file, strlen(lock->create_file)+1, 1, 
data/unbound-1.12.0/testcode/checklocks.c:554:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(1000); /* in 1/1000000s of a second */
data/unbound-1.12.0/testcode/dohclient.c:171: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).
		h2_stream->path = malloc(strlen(
data/unbound-1.12.0/testcode/dohclient.c:172: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).
			h2_session->endpoint)+strlen("?dns=")+qb64_size+1);
data/unbound-1.12.0/testcode/dohclient.c:174: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).
		snprintf(h2_stream->path, strlen(h2_session->endpoint)+
data/unbound-1.12.0/testcode/dohclient.c:175:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strlen("?dns=")+qb64_size+1, "%s?dns=%s",
data/unbound-1.12.0/testcode/dohclient.c:196: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).
		headers[i].namelen = strlen((char*)headers[i].name);
data/unbound-1.12.0/testcode/dohclient.c:197:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		headers[i].valuelen = strlen((char*)headers[i].value);
data/unbound-1.12.0/testcode/fake_event.c:599:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if(line[0]) line[strlen(line)-1] = 0; /* remove newline */
data/unbound-1.12.0/testcode/fake_event.c:652:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if(line[0]) line[strlen(line)-1] = 0; /* remove newline */
data/unbound-1.12.0/testcode/fake_event.c:1695: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(buf[0] != 0) buf[strlen(buf)-1] = 0; /* del newline*/
data/unbound-1.12.0/testcode/fake_event.c:1785: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(buf[0] != 0) buf[strlen(buf)-1] = 0; /* del newline*/
data/unbound-1.12.0/testcode/lock_verify.c:170:14:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while( (c = fgetc(in)) != 0) {
data/unbound-1.12.0/testcode/memstats.c:86: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) < 32) /* up to 'info: ' */
data/unbound-1.12.0/testcode/memstats.c:202: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).
		done += (off_t)strlen(buf);
data/unbound-1.12.0/testcode/perf.c:454:6:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	r = sscanf(p, " %1023s %1023s %1023s %1023s", nm, cl, tp, fl);
data/unbound-1.12.0/testcode/petal.c:205: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(buf) < 4) return 0;
data/unbound-1.12.0/testcode/petal.c:318: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).
	size_t l = strlen(s);
data/unbound-1.12.0/testcode/petal.c:337: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(host);
data/unbound-1.12.0/testcode/petal.c:347: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(file);
data/unbound-1.12.0/testcode/petal.c:384: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).
		r = strlen(hdr);
data/unbound-1.12.0/testcode/petal.c:402: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).
	r = strlen(at);
data/unbound-1.12.0/testcode/petal.c:406: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).
	r = strlen(at);
data/unbound-1.12.0/testcode/petal.c:410: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).
	r = strlen(at);
data/unbound-1.12.0/testcode/petal.c:414: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).
	r = strlen(at);
data/unbound-1.12.0/testcode/petal.c:459: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).
	r = strlen(at);
data/unbound-1.12.0/testcode/petal.c:463: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).
	r = strlen(at);
data/unbound-1.12.0/testcode/petal.c:467: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).
	r = strlen(at);
data/unbound-1.12.0/testcode/petal.c:471: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).
	r = strlen(at);
data/unbound-1.12.0/testcode/petal.c:475: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).
	r = strlen(at);
data/unbound-1.12.0/testcode/petal.c:493:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		r = strlen(at);
data/unbound-1.12.0/testcode/petal.c:504: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).
			r = strlen(at);
data/unbound-1.12.0/testcode/petal.c:510: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).
			r = strlen(at);
data/unbound-1.12.0/testcode/petal.c:516: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).
			r = strlen(at);
data/unbound-1.12.0/testcode/pktview.c:67: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).
		np = &np[strlen(np)];
data/unbound-1.12.0/testcode/replay.c:93:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t len = (size_t)strlen(keyword);
data/unbound-1.12.0/testcode/replay.c:132: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).
	for(i = strlen(p); i > 0; i--) {
data/unbound-1.12.0/testcode/replay.c:230:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if(line[0]) line[strlen(line)-1] = 0; /* remove newline */
data/unbound-1.12.0/testcode/replay.c:246:5:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	if(sscanf(remain, " %1023s %c %n", buf, &eq, &skip) != 2)
data/unbound-1.12.0/testcode/replay.c:252:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(remain[0]) remain[strlen(remain)-1]=0; /* remove newline */
data/unbound-1.12.0/testcode/replay.c:313:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if(strlen(mom->string)>0)
data/unbound-1.12.0/testcode/replay.c:314: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).
				mom->string[strlen(mom->string)-1]=0;
data/unbound-1.12.0/testcode/replay.c:315: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).
			remain += strlen(mom->string);
data/unbound-1.12.0/testcode/replay.c:321: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(remain)>0 && remain[strlen(remain)-1]=='\n')
data/unbound-1.12.0/testcode/replay.c:321: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(strlen(remain)>0 && remain[strlen(remain)-1]=='\n')
data/unbound-1.12.0/testcode/replay.c:322: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).
			remain[strlen(remain)-1] = 0;
data/unbound-1.12.0/testcode/replay.c:330: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(remain)>0 && remain[strlen(remain)-1]=='\n')
data/unbound-1.12.0/testcode/replay.c:330: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(strlen(remain)>0 && remain[strlen(remain)-1]=='\n')
data/unbound-1.12.0/testcode/replay.c:331: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).
			remain[strlen(remain)-1] = 0;
data/unbound-1.12.0/testcode/replay.c:362: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(m)>0 && m[strlen(m)-1]=='\n')
data/unbound-1.12.0/testcode/replay.c:362:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if(strlen(m)>0 && m[strlen(m)-1]=='\n')
data/unbound-1.12.0/testcode/replay.c:363: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).
			m[strlen(m)-1] = 0;
data/unbound-1.12.0/testcode/replay.c:378: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(remain) > 0) /* remove \n */
data/unbound-1.12.0/testcode/replay.c:379: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).
			remain[strlen(remain)-1] = 0;
data/unbound-1.12.0/testcode/replay.c:616: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(inserted) > remain) {
data/unbound-1.12.0/testcode/replay.c:696: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(buf[0]) buf[strlen(buf)-1]=0; /* remove trailing newline */
data/unbound-1.12.0/testcode/replay.c:835: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).
		size_t remain = sizeof(buf)-strlen(buf);
data/unbound-1.12.0/testcode/replay.c:876:39:  [1] (buffer) strlen:
  Does not handle 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((size_t)(next-at) >= sizeof(buf)-strlen(buf))
data/unbound-1.12.0/testcode/replay.c:878: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).
		(void)strlcpy(buf+strlen(buf), at, (size_t)(next-at+1));
data/unbound-1.12.0/testcode/replay.c:883: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).
		(void)strlcpy(buf+strlen(buf), expand, sizeof(buf)-strlen(buf));
data/unbound-1.12.0/testcode/replay.c:883:54:  [1] (buffer) strlen:
  Does not handle 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)strlcpy(buf+strlen(buf), expand, sizeof(buf)-strlen(buf));
data/unbound-1.12.0/testcode/replay.c:888: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).
	(void)strlcpy(buf+strlen(buf), at, sizeof(buf)-strlen(buf));
data/unbound-1.12.0/testcode/replay.c:888:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	(void)strlcpy(buf+strlen(buf), at, sizeof(buf)-strlen(buf));
data/unbound-1.12.0/testcode/signit.c:83: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(str) < 14)
data/unbound-1.12.0/testcode/signit.c:248: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(line) > 0)
data/unbound-1.12.0/testcode/signit.c:249: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).
			line[strlen(line)-1] = 0; /* remove trailing newline */
data/unbound-1.12.0/testcode/testbound.c:77: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(s);
data/unbound-1.12.0/testcode/testbound.c:126: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).
		else	len = strlen(p);
data/unbound-1.12.0/testcode/testbound.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).
	id[strlen(id)-1]=0; /* remove newline */
data/unbound-1.12.0/testcode/testbound.c:182: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).
	id[strlen(id)-1]=0; /* remove newline */
data/unbound-1.12.0/testcode/testbound.c:202: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).
			tid[strlen(tid)-1]=0; /* remove newline */
data/unbound-1.12.0/testcode/testbound.c:227: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).
	id[strlen(id)-1]=0; /* remove newline */
data/unbound-1.12.0/testcode/testbound.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).
			parse[strlen(parse)-1] = 0; /* strip off \n */
data/unbound-1.12.0/testcode/testpkts.c:80: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).
	size_t len = strlen(keyword);
data/unbound-1.12.0/testcode/testpkts.c:1383: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).
	qslen = strlen(qs);
data/unbound-1.12.0/testcode/testpkts.c:1384: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).
	pslen = strlen(ps);
data/unbound-1.12.0/testcode/unitauth.c:495: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).
	r = fwrite(s, 1, strlen(s), out);
data/unbound-1.12.0/testcode/unitauth.c:498: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 if(r < strlen(s)) {
data/unbound-1.12.0/testcode/unitldns.c:246: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).
	unit_assert(result == strlen("hello") && strcmp(target, "hello") == 0);
data/unbound-1.12.0/testcode/unitldns.c:249: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).
	unit_assert(result == strlen("hello>") && strcmp(target, "hello>") == 0);
data/unbound-1.12.0/testcode/unitldns.c:252: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).
	unit_assert(result == strlen("hello?!") && strcmp(target, "hello?!") == 0);
data/unbound-1.12.0/testcode/unitldns.c:257: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).
	unit_assert(result == strlen("hel") && strcmp(target, "hel") == 0);
data/unbound-1.12.0/testcode/unitldns.c:260: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).
	result = sldns_b64url_pton(u1, strlen(u1), (uint8_t*)target, tarsize);
data/unbound-1.12.0/testcode/unitldns.c:261: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).
	unit_assert(result == strlen("hello") && strcmp(target, "hello") == 0);
data/unbound-1.12.0/testcode/unitldns.c:263: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).
	result = sldns_b64url_pton(u2, strlen(u2), (uint8_t*)target, tarsize);
data/unbound-1.12.0/testcode/unitldns.c:264: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).
	unit_assert(result == strlen("hello>") && strcmp(target, "hello>") == 0);
data/unbound-1.12.0/testcode/unitldns.c:266: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).
	result = sldns_b64url_pton(u3, strlen(u3), (uint8_t*)target, tarsize);
data/unbound-1.12.0/testcode/unitldns.c:267: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).
	unit_assert(result == strlen("hello+/") && strcmp(target, "hello?!") == 0);
data/unbound-1.12.0/testcode/unitldns.c:270: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).
	result = sldns_b64url_pton(u4, strlen(u4), (uint8_t*)target, tarsize);
data/unbound-1.12.0/testcode/unitmsgparse.c:453: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(buf) < 10) /* skip pcat line numbers. */
data/unbound-1.12.0/testcode/unitmsgparse.c:492: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).
		np = &np[strlen(np)];
data/unbound-1.12.0/testcode/unitneg.c:185: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).
	buf2[0] = (char)(strlen(buf2+2)+1);
data/unbound-1.12.0/testcode/unitneg.c:209:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	z = neg_find_zone(neg, (uint8_t*)zname, strlen(zname)+1, 
data/unbound-1.12.0/testcode/unitneg.c:212: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).
		z = neg_create_zone(neg,  (uint8_t*)zname, strlen(zname)+1,
data/unbound-1.12.0/testcode/unitneg.c:225: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).
	nsec.rk.dname_len = strlen(from)+1;
data/unbound-1.12.0/testcode/unitregional.c:195: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).
	unit_assert(memcmp(a, str, strlen(str)+1) == 0);
data/unbound-1.12.0/util/alloc.c:630: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).
	size_t l = strlen(s)+1;
data/unbound-1.12.0/util/config_file.c:447: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).
	if(opt[strlen(opt)-1] != ':' && strlen(opt)+2<sizeof(buf)) {
data/unbound-1.12.0/util/config_file.c:447: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(opt[strlen(opt)-1] != ':' && strlen(opt)+2<sizeof(buf)) {
data/unbound-1.12.0/util/config_file.c:472: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).
		} else if(strlen(val) == 14) {
data/unbound-1.12.0/util/config_file.c:827: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).
		total += strlen(s->str) + 1; /* len + newline */
data/unbound-1.12.0/util/config_file.c:834: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 this = strlen(s->str);
data/unbound-1.12.0/util/config_file.c:840: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).
		this = strlen(w);
data/unbound-1.12.0/util/config_file.c:914: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(opt && opt[strlen(opt)-1] == ':' && strlen(opt)<sizeof(nopt)) {
data/unbound-1.12.0/util/config_file.c:914:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(opt && opt[strlen(opt)-1] == ':' && strlen(opt)<sizeof(nopt)) {
data/unbound-1.12.0/util/config_file.c:915:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		memmove(nopt, opt, strlen(opt));
data/unbound-1.12.0/util/config_file.c:916: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).
		nopt[strlen(opt)-1] = 0;
data/unbound-1.12.0/util/config_file.c:1834: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(str) < 14)
data/unbound-1.12.0/util/config_file.c:1893: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(!str || (len=(size_t)strlen(str)) == 0) {
data/unbound-1.12.0/util/config_file.c:2029:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				len += strlen(buf+len);
data/unbound-1.12.0/util/config_file.c:2102: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).
		strncmp(cfg->chrootdir, fname, strlen(cfg->chrootdir)) == 0) {
data/unbound-1.12.0/util/config_file.c:2104: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).
		return strlen(fname);
data/unbound-1.12.0/util/config_file.c:2109: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(cfg->chrootdir);
data/unbound-1.12.0/util/config_file.c:2126:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strlen(cfg->chrootdir)) == 0)
data/unbound-1.12.0/util/config_file.c:2127:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len += strlen(cfg->directory)-strlen(cfg->chrootdir);
data/unbound-1.12.0/util/config_file.c:2127: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).
			len += strlen(cfg->directory)-strlen(cfg->chrootdir);
data/unbound-1.12.0/util/config_file.c:2128: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).
		else	len += strlen(cfg->directory);
data/unbound-1.12.0/util/config_file.c:2134:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len += strlen(fname);
data/unbound-1.12.0/util/config_file.c:2149: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).
		strncmp(cfg->chrootdir, fname, strlen(cfg->chrootdir)) == 0) {
data/unbound-1.12.0/util/config_file.c:2176:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strlen(cfg->chrootdir)) == 0)
data/unbound-1.12.0/util/config_file.c:2177: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).
			(void)strlcat(buf, cfg->directory+strlen(cfg->chrootdir), 
data/unbound-1.12.0/util/config_file.c:2291:2:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	sscanf(ip, "%100s", buf);
data/unbound-1.12.0/util/config_file.c:2331: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).
		snprintf(buf+strlen(buf), sizeof(buf)-strlen(buf), "%.*s", 
data/unbound-1.12.0/util/config_file.c:2331: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).
		snprintf(buf+strlen(buf), sizeof(buf)-strlen(buf), "%.*s", 
data/unbound-1.12.0/util/config_file.c:2334: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).
	snprintf(buf+strlen(buf), sizeof(buf)-strlen(buf), " PTR %s", name);
data/unbound-1.12.0/util/config_file.c:2334:40:  [1] (buffer) strlen:
  Does not handle 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(buf+strlen(buf), sizeof(buf)-strlen(buf), " PTR %s", name);
data/unbound-1.12.0/util/config_file.c:2395:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				cfg->directory = memdup(dirbuf, strlen(dirbuf)+1);
data/unbound-1.12.0/util/config_file.c:2438: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).
			snprintf(buf+strlen(buf), sizeof(buf)-strlen(buf), 
data/unbound-1.12.0/util/config_file.c:2438:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			snprintf(buf+strlen(buf), sizeof(buf)-strlen(buf), 
data/unbound-1.12.0/util/config_file.c:2441: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).
			addr_to_str(&p->addr, p->len, buf+strlen(buf),
data/unbound-1.12.0/util/config_file.c:2442: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).
				sizeof(buf)-strlen(buf));
data/unbound-1.12.0/util/config_file.c:2459: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).
	left -= strlen(p); p += strlen(p);
data/unbound-1.12.0/util/config_file.c:2459: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).
	left -= strlen(p); p += strlen(p);
data/unbound-1.12.0/util/config_file.c:2464: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).
		left -= strlen(p); p += strlen(p);
data/unbound-1.12.0/util/config_file.c:2464: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).
		left -= strlen(p); p += strlen(p);
data/unbound-1.12.0/util/config_file.c:2484: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).
	left -= strlen(p); p += strlen(p);
data/unbound-1.12.0/util/config_file.c:2484: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).
	left -= strlen(p); p += strlen(p);
data/unbound-1.12.0/util/config_file.c:2489: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).
		left -= strlen(p); p += strlen(p);
data/unbound-1.12.0/util/config_file.c:2489: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).
		left -= strlen(p); p += strlen(p);
data/unbound-1.12.0/util/configlexer.c:3657: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(cfg_parser->chroot)) == 0) {
data/unbound-1.12.0/util/configlexer.c:3658: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(cfg_parser->chroot);
data/unbound-1.12.0/util/configlexer.c:3712:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strlen(cfg_parser->chroot)) == 0) {
data/unbound-1.12.0/util/configlexer.c:3713: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).
			filename += strlen(cfg_parser->chroot);
data/unbound-1.12.0/util/configlexer.c:3886:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
data/unbound-1.12.0/util/configlexer.c:6585:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return yy_scan_bytes( yystr, (int) strlen(yystr) );
data/unbound-1.12.0/util/configparser.c:2277:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#   define yystrlen strlen
data/unbound-1.12.0/util/configparser.c:3632:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			cfg_parser->cfg->http_endpoint = malloc(strlen((yyvsp[0].str))+2);
data/unbound-1.12.0/util/configparser.c:3637:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strlen((yyvsp[0].str))+1);
data/unbound-1.12.0/util/configparser.c:3843: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).
				strncmp(d, cfg_parser->chroot, strlen(
data/unbound-1.12.0/util/configparser.c:3845: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).
				d += strlen(cfg_parser->chroot);
data/unbound-1.12.0/util/configparser.c:4607: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).
		} else if(strlen((yyvsp[0].str)) == 14) {
data/unbound-1.12.0/util/configparser.c:5552:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			(tag_data == 0 && (strlen((yyvsp[0].str)) != 1 || (yyvsp[0].str)[0] != '0')))
data/unbound-1.12.0/util/data/dname.c:571: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).
	size_t plen = strlen(prefix);
data/unbound-1.12.0/util/log.c:143: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/unbound-1.12.0/util/log.c:144: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/unbound-1.12.0/util/net_help.c:1312:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if(!X509_VERIFY_PARAM_set1_host(param, auth_name, strlen(auth_name))) {
data/unbound-1.12.0/util/regional.c:182: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).
	return (char*)regional_alloc_init(r, string, strlen(string)+1);
data/unbound-1.12.0/util/tube.c:159:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		r = read(c->fd, ((uint8_t*)&tube->cmd_len) + tube->cmd_read,
data/unbound-1.12.0/util/tube.c:189:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	r = read(c->fd, tube->cmd_msg+tube->cmd_read-sizeof(tube->cmd_len),
data/unbound-1.12.0/util/tube.c:340:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		r = read(fd, len, sizeof(*len));
data/unbound-1.12.0/util/tube.c:355:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if((r=read(fd, ((char*)len)+d, sizeof(*len)-d)) == -1) {
data/unbound-1.12.0/util/tube.c:375:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if((r=read(fd, (*buf)+d, (size_t)((ssize_t)*len)-d)) == -1) {
data/unbound-1.12.0/validator/autotrust.c:124: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).
		return (int)(pos-str)+(int)strlen(sub);
data/unbound-1.12.0/validator/autotrust.c:168: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).
        int len = (int)strlen(str), pos = 0, timestamp = 0;
data/unbound-1.12.0/validator/autotrust.c:193: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 (pos >= (int) strlen(comments))
data/unbound-1.12.0/validator/autotrust.c:223: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 (pos >= (int) strlen(comments))
data/unbound-1.12.0/validator/autotrust.c:239: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 (pos >= (int) strlen(comments))
data/unbound-1.12.0/validator/autotrust.c:931: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 i, poslen = strlen(pos);
data/unbound-1.12.0/validator/autotrust.c:963: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).
		poslen = strlen(pos);
data/unbound-1.12.0/validator/autotrust.c:1158: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).
		str[strlen(str)-1] = 0; /* remove newline */
data/unbound-1.12.0/validator/autotrust.c:2264: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(str[0]) str[strlen(str)-1]=0; /* remove newline */
data/unbound-1.12.0/validator/autotrust.c:2266: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(buf[0]) buf[strlen(buf)-1]=0; /* remove newline */
data/unbound-1.12.0/validator/autotrust.c:2293: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(buf[0]) buf[strlen(buf)-1]=0; /* remove newline */
data/unbound-1.12.0/validator/autotrust.c:2296: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(buf[0]) buf[strlen(buf)-1]=0; /* remove newline */
data/unbound-1.12.0/validator/autotrust.c:2299: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(buf[0]) buf[strlen(buf)-1]=0; /* remove newline */
data/unbound-1.12.0/validator/val_anchor.c:489:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while((c = getc(in)) != EOF ) {
data/unbound-1.12.0/validator/val_anchor.c:535:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while((c = getc(in)) != EOF ) {
data/unbound-1.12.0/validator/val_anchor.c:554:25:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			while(c != EOF && (c=getc(in)) != EOF ) {
data/unbound-1.12.0/validator/val_anchor.c:556:12:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					if((c=getc(in)) == '/')
data/unbound-1.12.0/validator/val_anchor.c:588:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			while((c = getc(in)) != EOF ) {
data/unbound-1.12.0/validator/val_anchor.c:1074: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).
			cfg->chrootdir, strlen(cfg->chrootdir)) == 0)
data/unbound-1.12.0/validator/val_anchor.c:1075: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).
			nm += strlen(cfg->chrootdir);
data/unbound-1.12.0/validator/val_anchor.c:1087: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).
			cfg->chrootdir, strlen(cfg->chrootdir)) == 0)
data/unbound-1.12.0/validator/val_anchor.c:1088: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).
			nm += strlen(cfg->chrootdir);
data/unbound-1.12.0/validator/val_anchor.c:1111: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).
			cfg->chrootdir, strlen(cfg->chrootdir)) == 0)
data/unbound-1.12.0/validator/val_anchor.c:1112: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).
			nm += strlen(cfg->chrootdir);
data/unbound-1.12.0/validator/val_kentry.c:61: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).
		s += strlen(kd->reason)+1;
data/unbound-1.12.0/validator/val_kentry.c:63:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		s += strlen((char*)kd->algo)+1;
data/unbound-1.12.0/validator/validator.c:450:40:  [1] (buffer) strlen:
  Does not handle 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 tagstr_left = sizeof(tagstr) - strlen(tagstr);
data/unbound-1.12.0/validator/validator.c:451: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).
	char* tagstr_pos = tagstr + strlen(tagstr);
data/unbound-1.12.0/validator/validator.c:466: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).
		tagstr_left -= strlen(tagstr_pos);
data/unbound-1.12.0/validator/validator.c:467: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).
		tagstr_pos += strlen(tagstr_pos);
data/unbound-1.12.0/validator/validator.c:2118: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(*qstate->qinfo.qname == strlen(SENTINEL_IS) +
data/unbound-1.12.0/validator/validator.c:2128:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		} else if(*qstate->qinfo.qname == strlen(SENTINEL_NOT) +
data/unbound-1.12.0/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/unbound-1.12.0/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/unbound-1.12.0/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/unbound-1.12.0/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/unbound-1.12.0/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/unbound-1.12.0/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/unbound-1.12.0/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/unbound-1.12.0/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/unbound-1.12.0/winrc/win_svc.c:275: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(rootanchor && strlen(rootanchor)>0) {
data/unbound-1.12.0/winrc/win_svc.c:552: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) {

ANALYSIS SUMMARY:

Hits = 1337
Lines analyzed = 172731 in approximately 5.31 seconds (32527 lines/second)
Physical Source Lines of Code (SLOC) = 120696
Hits@level = [0] 1090 [1] 379 [2] 803 [3]  97 [4]  55 [5]   3
Hits@level+ = [0+] 2427 [1+] 1337 [2+] 958 [3+] 155 [4+]  58 [5+]   3
Hits/KSLOC@level+ = [0+] 20.1084 [1+] 11.0774 [2+] 7.9373 [3+] 1.28422 [4+] 0.480546 [5+] 0.0248558
Dot directories skipped = 2 (--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.