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/knot-3.0.2/tests/contrib/test_base32hex.c
Examining data/knot-3.0.2/tests/contrib/test_sockaddr.c
Examining data/knot-3.0.2/tests/contrib/test_net.c
Examining data/knot-3.0.2/tests/contrib/test_wire_ctx.c
Examining data/knot-3.0.2/tests/contrib/test_siphash.c
Examining data/knot-3.0.2/tests/contrib/test_net_shortwrite.c
Examining data/knot-3.0.2/tests/contrib/test_qp-trie.c
Examining data/knot-3.0.2/tests/contrib/test_strtonum.c
Examining data/knot-3.0.2/tests/contrib/test_base64url.c
Examining data/knot-3.0.2/tests/contrib/test_time.c
Examining data/knot-3.0.2/tests/contrib/test_qp-cow.c
Examining data/knot-3.0.2/tests/contrib/test_string.c
Examining data/knot-3.0.2/tests/contrib/test_heap.c
Examining data/knot-3.0.2/tests/contrib/test_base64.c
Examining data/knot-3.0.2/tests/contrib/test_dynarray.c
Examining data/knot-3.0.2/tests/utils/test_cert.c
Examining data/knot-3.0.2/tests/utils/test_lookup.c
Examining data/knot-3.0.2/tests/tap/files.c
Examining data/knot-3.0.2/tests/tap/files.h
Examining data/knot-3.0.2/tests/tap/float.c
Examining data/knot-3.0.2/tests/tap/runtests.c
Examining data/knot-3.0.2/tests/tap/basic.c
Examining data/knot-3.0.2/tests/tap/float.h
Examining data/knot-3.0.2/tests/tap/basic.h
Examining data/knot-3.0.2/tests/tap/macros.h
Examining data/knot-3.0.2/tests/libknot/test_edns.c
Examining data/knot-3.0.2/tests/libknot/test_rdata.c
Examining data/knot-3.0.2/tests/libknot/test_endian.c
Examining data/knot-3.0.2/tests/libknot/test_wire.c
Examining data/knot-3.0.2/tests/libknot/test_cookies.c
Examining data/knot-3.0.2/tests/libknot/test_rrset.c
Examining data/knot-3.0.2/tests/libknot/test_rrset-wire.c
Examining data/knot-3.0.2/tests/libknot/test_descriptor.c
Examining data/knot-3.0.2/tests/libknot/test_lookup.c
Examining data/knot-3.0.2/tests/libknot/test_yptrafo.c
Examining data/knot-3.0.2/tests/libknot/test_ypschema.c
Examining data/knot-3.0.2/tests/libknot/test_dname.c
Examining data/knot-3.0.2/tests/libknot/test_db.c
Examining data/knot-3.0.2/tests/libknot/test_control.c
Examining data/knot-3.0.2/tests/libknot/test_rdataset.c
Examining data/knot-3.0.2/tests/libknot/test_edns_ecs.c
Examining data/knot-3.0.2/tests/libknot/test_pkt.c
Examining data/knot-3.0.2/tests/libknot/test_yparser.c
Examining data/knot-3.0.2/tests/libknot/test_tsig.c
Examining data/knot-3.0.2/tests/libzscanner/zscanner-tool.c
Examining data/knot-3.0.2/tests/libzscanner/processing.h
Examining data/knot-3.0.2/tests/libzscanner/processing.c
Examining data/knot-3.0.2/tests/modules/test_rrl.c
Examining data/knot-3.0.2/tests/modules/test_onlinesign.c
Examining data/knot-3.0.2/tests/knot/test_requestor.c
Examining data/knot-3.0.2/tests/knot/test_changeset.c
Examining data/knot-3.0.2/tests/knot/test_zone_serial.c
Examining data/knot-3.0.2/tests/knot/test_worker_queue.c
Examining data/knot-3.0.2/tests/knot/test_confdb.c
Examining data/knot-3.0.2/tests/knot/test_server.h
Examining data/knot-3.0.2/tests/knot/test_zone-tree.c
Examining data/knot-3.0.2/tests/knot/test_zonedb.c
Examining data/knot-3.0.2/tests/knot/test_server.c
Examining data/knot-3.0.2/tests/knot/test_conf_tools.c
Examining data/knot-3.0.2/tests/knot/test_query_module.c
Examining data/knot-3.0.2/tests/knot/test_dthreads.c
Examining data/knot-3.0.2/tests/knot/test_zone_timers.c
Examining data/knot-3.0.2/tests/knot/test_conf.h
Examining data/knot-3.0.2/tests/knot/test_journal.c
Examining data/knot-3.0.2/tests/knot/test_acl.c
Examining data/knot-3.0.2/tests/knot/test_confio.c
Examining data/knot-3.0.2/tests/knot/test_kasp_db.c
Examining data/knot-3.0.2/tests/knot/test_worker_pool.c
Examining data/knot-3.0.2/tests/knot/test_process_query.c
Examining data/knot-3.0.2/tests/knot/test_node.c
Examining data/knot-3.0.2/tests/knot/test_fdset.c
Examining data/knot-3.0.2/tests/knot/test_zone_events.c
Examining data/knot-3.0.2/tests/knot/test_zone-update.c
Examining data/knot-3.0.2/tests/knot/test_conf.c
Examining data/knot-3.0.2/tests/libdnssec/test_binary.c
Examining data/knot-3.0.2/tests/libdnssec/test_keystore_pkcs8.c
Examining data/knot-3.0.2/tests/libdnssec/test_keyid.c
Examining data/knot-3.0.2/tests/libdnssec/sample_keys.h
Examining data/knot-3.0.2/tests/libdnssec/test_sign_der.c
Examining data/knot-3.0.2/tests/libdnssec/test_shared_dname.c
Examining data/knot-3.0.2/tests/libdnssec/test_key_algorithm.c
Examining data/knot-3.0.2/tests/libdnssec/test_keystore_pkcs11.c
Examining data/knot-3.0.2/tests/libdnssec/test_random.c
Examining data/knot-3.0.2/tests/libdnssec/test_nsec_bitmap.c
Examining data/knot-3.0.2/tests/libdnssec/test_keytag.c
Examining data/knot-3.0.2/tests/libdnssec/test_sign.c
Examining data/knot-3.0.2/tests/libdnssec/test_key_ds.c
Examining data/knot-3.0.2/tests/libdnssec/test_shared_bignum.c
Examining data/knot-3.0.2/tests/libdnssec/test_key.c
Examining data/knot-3.0.2/tests/libdnssec/test_crypto.c
Examining data/knot-3.0.2/tests/libdnssec/test_nsec_hash.c
Examining data/knot-3.0.2/tests/libdnssec/test_tsig.c
Examining data/knot-3.0.2/tests-fuzz/main.c
Examining data/knot-3.0.2/tests-fuzz/fuzz_zscanner.c
Examining data/knot-3.0.2/tests-fuzz/fuzz_dname_to_str.c
Examining data/knot-3.0.2/tests-fuzz/fuzz_packet.c
Examining data/knot-3.0.2/tests-fuzz/knotd_wrap/afl-loop.h
Examining data/knot-3.0.2/tests-fuzz/knotd_wrap/udp-handler.c
Examining data/knot-3.0.2/tests-fuzz/knotd_wrap/server.c
Examining data/knot-3.0.2/tests-fuzz/knotd_wrap/tcp-handler.c
Examining data/knot-3.0.2/tests-fuzz/fuzz_dname_from_str.c
Examining data/knot-3.0.2/src/contrib/base32hex.h
Examining data/knot-3.0.2/src/contrib/getline.h
Examining data/knot-3.0.2/src/contrib/base32hex.c
Examining data/knot-3.0.2/src/contrib/files.c
Examining data/knot-3.0.2/src/contrib/files.h
Examining data/knot-3.0.2/src/contrib/libbpf/include/asm/barrier.h
Examining data/knot-3.0.2/src/contrib/libbpf/include/linux/types.h
Examining data/knot-3.0.2/src/contrib/libbpf/include/linux/ring_buffer.h
Examining data/knot-3.0.2/src/contrib/libbpf/include/linux/err.h
Examining data/knot-3.0.2/src/contrib/libbpf/include/linux/overflow.h
Examining data/knot-3.0.2/src/contrib/libbpf/include/linux/compiler.h
Examining data/knot-3.0.2/src/contrib/libbpf/include/linux/kernel.h
Examining data/knot-3.0.2/src/contrib/libbpf/include/linux/list.h
Examining data/knot-3.0.2/src/contrib/libbpf/include/linux/filter.h
Examining data/knot-3.0.2/src/contrib/libbpf/include/uapi/linux/if_link.h
Examining data/knot-3.0.2/src/contrib/libbpf/include/uapi/linux/bpf_common.h
Examining data/knot-3.0.2/src/contrib/libbpf/include/uapi/linux/if_xdp.h
Examining data/knot-3.0.2/src/contrib/libbpf/include/uapi/linux/bpf.h
Examining data/knot-3.0.2/src/contrib/libbpf/include/uapi/linux/netlink.h
Examining data/knot-3.0.2/src/contrib/libbpf/include/uapi/linux/btf.h
Examining data/knot-3.0.2/src/contrib/libbpf/bpf/hashmap.h
Examining data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.h
Examining data/knot-3.0.2/src/contrib/libbpf/bpf/bpf_prog_linfo.c
Examining data/knot-3.0.2/src/contrib/libbpf/bpf/bpf.h
Examining data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf_util.h
Examining data/knot-3.0.2/src/contrib/libbpf/bpf/nlattr.c
Examining data/knot-3.0.2/src/contrib/libbpf/bpf/hashmap.c
Examining data/knot-3.0.2/src/contrib/libbpf/bpf/str_error.c
Examining data/knot-3.0.2/src/contrib/libbpf/bpf/bpf.c
Examining data/knot-3.0.2/src/contrib/libbpf/bpf/btf_dump.c
Examining data/knot-3.0.2/src/contrib/libbpf/bpf/btf.c
Examining data/knot-3.0.2/src/contrib/libbpf/bpf/nlattr.h
Examining data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf_internal.h
Examining data/knot-3.0.2/src/contrib/libbpf/bpf/bpf_endian.h
Examining data/knot-3.0.2/src/contrib/libbpf/bpf/bpf_helper_defs.h
Examining data/knot-3.0.2/src/contrib/libbpf/bpf/netlink.c
Examining data/knot-3.0.2/src/contrib/libbpf/bpf/bpf_core_read.h
Examining data/knot-3.0.2/src/contrib/libbpf/bpf/bpf_tracing.h
Examining data/knot-3.0.2/src/contrib/libbpf/bpf/xsk.h
Examining data/knot-3.0.2/src/contrib/libbpf/bpf/xsk.c
Examining data/knot-3.0.2/src/contrib/libbpf/bpf/str_error.h
Examining data/knot-3.0.2/src/contrib/libbpf/bpf/btf.h
Examining data/knot-3.0.2/src/contrib/libbpf/bpf/bpf_helpers.h
Examining data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf_probes.c
Examining data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c
Examining data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf_errno.c
Examining data/knot-3.0.2/src/contrib/vpool/vpool.c
Examining data/knot-3.0.2/src/contrib/vpool/vpool.h
Examining data/knot-3.0.2/src/contrib/base64url.h
Examining data/knot-3.0.2/src/contrib/ctype.h
Examining data/knot-3.0.2/src/contrib/base64.h
Examining data/knot-3.0.2/src/contrib/asan.h
Examining data/knot-3.0.2/src/contrib/net.c
Examining data/knot-3.0.2/src/contrib/time.c
Examining data/knot-3.0.2/src/contrib/url-parser/url_parser.h
Examining data/knot-3.0.2/src/contrib/url-parser/url_parser.c
Examining data/knot-3.0.2/src/contrib/sockaddr.c
Examining data/knot-3.0.2/src/contrib/tolower.h
Examining data/knot-3.0.2/src/contrib/wire_ctx.h
Examining data/knot-3.0.2/src/contrib/spinlock.h
Examining data/knot-3.0.2/src/contrib/semaphore.h
Examining data/knot-3.0.2/src/contrib/ucw/lists.h
Examining data/knot-3.0.2/src/contrib/ucw/mempool.c
Examining data/knot-3.0.2/src/contrib/ucw/array-sort.h
Examining data/knot-3.0.2/src/contrib/ucw/heap.c
Examining data/knot-3.0.2/src/contrib/ucw/heap.h
Examining data/knot-3.0.2/src/contrib/ucw/binsearch.h
Examining data/knot-3.0.2/src/contrib/ucw/mempool.h
Examining data/knot-3.0.2/src/contrib/ucw/lists.c
Examining data/knot-3.0.2/src/contrib/dynarray.h
Examining data/knot-3.0.2/src/contrib/semaphore.c
Examining data/knot-3.0.2/src/contrib/time.h
Examining data/knot-3.0.2/src/contrib/strtonum.h
Examining data/knot-3.0.2/src/contrib/mempattern.c
Examining data/knot-3.0.2/src/contrib/getline.c
Examining data/knot-3.0.2/src/contrib/dnstap/writer.c
Examining data/knot-3.0.2/src/contrib/dnstap/message.h
Examining data/knot-3.0.2/src/contrib/dnstap/dnstap.c
Examining data/knot-3.0.2/src/contrib/dnstap/reader.h
Examining data/knot-3.0.2/src/contrib/dnstap/convert.h
Examining data/knot-3.0.2/src/contrib/dnstap/message.c
Examining data/knot-3.0.2/src/contrib/dnstap/convert.c
Examining data/knot-3.0.2/src/contrib/dnstap/reader.c
Examining data/knot-3.0.2/src/contrib/dnstap/dnstap.h
Examining data/knot-3.0.2/src/contrib/dnstap/writer.h
Examining data/knot-3.0.2/src/contrib/qp-trie/trie.h
Examining data/knot-3.0.2/src/contrib/qp-trie/trie.c
Examining data/knot-3.0.2/src/contrib/base64url.c
Examining data/knot-3.0.2/src/contrib/sockaddr.h
Examining data/knot-3.0.2/src/contrib/string.h
Examining data/knot-3.0.2/src/contrib/base64.c
Examining data/knot-3.0.2/src/contrib/trim.h
Examining data/knot-3.0.2/src/contrib/string.c
Examining data/knot-3.0.2/src/contrib/net.h
Examining data/knot-3.0.2/src/contrib/mempattern.h
Examining data/knot-3.0.2/src/contrib/openbsd/siphash.h
Examining data/knot-3.0.2/src/contrib/openbsd/strlcpy.h
Examining data/knot-3.0.2/src/contrib/openbsd/strlcat.h
Examining data/knot-3.0.2/src/contrib/openbsd/strlcat.c
Examining data/knot-3.0.2/src/contrib/openbsd/siphash.c
Examining data/knot-3.0.2/src/contrib/openbsd/strlcpy.c
Examining data/knot-3.0.2/src/contrib/macros.h
Examining data/knot-3.0.2/src/utils/knsec3hash/knsec3hash.c
Examining data/knot-3.0.2/src/utils/knotd/main.c
Examining data/knot-3.0.2/src/utils/knsupdate/knsupdate_exec.c
Examining data/knot-3.0.2/src/utils/knsupdate/knsupdate_main.c
Examining data/knot-3.0.2/src/utils/knsupdate/knsupdate_exec.h
Examining data/knot-3.0.2/src/utils/knsupdate/knsupdate_params.h
Examining data/knot-3.0.2/src/utils/knsupdate/knsupdate_params.c
Examining data/knot-3.0.2/src/utils/knotc/main.c
Examining data/knot-3.0.2/src/utils/knotc/commands.c
Examining data/knot-3.0.2/src/utils/knotc/process.c
Examining data/knot-3.0.2/src/utils/knotc/commands.h
Examining data/knot-3.0.2/src/utils/knotc/interactive.h
Examining data/knot-3.0.2/src/utils/knotc/process.h
Examining data/knot-3.0.2/src/utils/knotc/interactive.c
Examining data/knot-3.0.2/src/utils/keymgr/main.c
Examining data/knot-3.0.2/src/utils/keymgr/functions.c
Examining data/knot-3.0.2/src/utils/keymgr/bind_privkey.h
Examining data/knot-3.0.2/src/utils/keymgr/offline_ksk.h
Examining data/knot-3.0.2/src/utils/keymgr/offline_ksk.c
Examining data/knot-3.0.2/src/utils/keymgr/bind_privkey.c
Examining data/knot-3.0.2/src/utils/keymgr/functions.h
Examining data/knot-3.0.2/src/utils/kzonecheck/main.c
Examining data/knot-3.0.2/src/utils/kzonecheck/zone_check.c
Examining data/knot-3.0.2/src/utils/kzonecheck/zone_check.h
Examining data/knot-3.0.2/src/utils/kcatalogprint/main.c
Examining data/knot-3.0.2/src/utils/khost/khost_main.c
Examining data/knot-3.0.2/src/utils/khost/khost_params.c
Examining data/knot-3.0.2/src/utils/khost/khost_params.h
Examining data/knot-3.0.2/src/utils/kjournalprint/main.c
Examining data/knot-3.0.2/src/utils/common/netio.h
Examining data/knot-3.0.2/src/utils/common/token.h
Examining data/knot-3.0.2/src/utils/common/netio.c
Examining data/knot-3.0.2/src/utils/common/exec.h
Examining data/knot-3.0.2/src/utils/common/token.c
Examining data/knot-3.0.2/src/utils/common/cert.h
Examining data/knot-3.0.2/src/utils/common/cert.c
Examining data/knot-3.0.2/src/utils/common/sign.c
Examining data/knot-3.0.2/src/utils/common/lookup.h
Examining data/knot-3.0.2/src/utils/common/msg.h
Examining data/knot-3.0.2/src/utils/common/params.c
Examining data/knot-3.0.2/src/utils/common/lookup.c
Examining data/knot-3.0.2/src/utils/common/https.h
Examining data/knot-3.0.2/src/utils/common/exec.c
Examining data/knot-3.0.2/src/utils/common/resolv.h
Examining data/knot-3.0.2/src/utils/common/tls.h
Examining data/knot-3.0.2/src/utils/common/sign.h
Examining data/knot-3.0.2/src/utils/common/hex.h
Examining data/knot-3.0.2/src/utils/common/https.c
Examining data/knot-3.0.2/src/utils/common/resolv.c
Examining data/knot-3.0.2/src/utils/common/hex.c
Examining data/knot-3.0.2/src/utils/common/msg.c
Examining data/knot-3.0.2/src/utils/common/tls.c
Examining data/knot-3.0.2/src/utils/common/params.h
Examining data/knot-3.0.2/src/utils/kdig/kdig_params.c
Examining data/knot-3.0.2/src/utils/kdig/kdig_main.c
Examining data/knot-3.0.2/src/utils/kdig/kdig_params.h
Examining data/knot-3.0.2/src/utils/kdig/kdig_exec.c
Examining data/knot-3.0.2/src/utils/kdig/kdig_exec.h
Examining data/knot-3.0.2/src/utils/kzonesign/main.c
Examining data/knot-3.0.2/src/utils/kxdpgun/load_queries.h
Examining data/knot-3.0.2/src/utils/kxdpgun/main.c
Examining data/knot-3.0.2/src/utils/kxdpgun/popenve.h
Examining data/knot-3.0.2/src/utils/kxdpgun/popenve.c
Examining data/knot-3.0.2/src/utils/kxdpgun/load_queries.c
Examining data/knot-3.0.2/src/libknot/rrset.c
Examining data/knot-3.0.2/src/libknot/tsig.h
Examining data/knot-3.0.2/src/libknot/errcode.h
Examining data/knot-3.0.2/src/libknot/mm_ctx.h
Examining data/knot-3.0.2/src/libknot/version.h
Examining data/knot-3.0.2/src/libknot/error.c
Examining data/knot-3.0.2/src/libknot/error.h
Examining data/knot-3.0.2/src/libknot/xdp/bpf-user.h
Examining data/knot-3.0.2/src/libknot/xdp/eth.h
Examining data/knot-3.0.2/src/libknot/xdp/bpf-consts.h
Examining data/knot-3.0.2/src/libknot/xdp/bpf-kernel.c
Examining data/knot-3.0.2/src/libknot/xdp/xdp.h
Examining data/knot-3.0.2/src/libknot/xdp/eth.c
Examining data/knot-3.0.2/src/libknot/xdp/bpf-kernel-obj.h
Examining data/knot-3.0.2/src/libknot/xdp/bpf-kernel-obj.c
Examining data/knot-3.0.2/src/libknot/xdp/bpf-user.c
Examining data/knot-3.0.2/src/libknot/xdp/xdp.c
Examining data/knot-3.0.2/src/libknot/rrtype/opt.c
Examining data/knot-3.0.2/src/libknot/rrtype/tsig.h
Examining data/knot-3.0.2/src/libknot/rrtype/nsec3.h
Examining data/knot-3.0.2/src/libknot/rrtype/rrsig.h
Examining data/knot-3.0.2/src/libknot/rrtype/nsec3param.h
Examining data/knot-3.0.2/src/libknot/rrtype/rdname.h
Examining data/knot-3.0.2/src/libknot/rrtype/naptr.c
Examining data/knot-3.0.2/src/libknot/rrtype/tsig.c
Examining data/knot-3.0.2/src/libknot/rrtype/dnskey.h
Examining data/knot-3.0.2/src/libknot/rrtype/nsec.h
Examining data/knot-3.0.2/src/libknot/rrtype/opt.h
Examining data/knot-3.0.2/src/libknot/rrtype/naptr.h
Examining data/knot-3.0.2/src/libknot/rrtype/soa.h
Examining data/knot-3.0.2/src/libknot/rrtype/ds.h
Examining data/knot-3.0.2/src/libknot/libknot.h
Examining data/knot-3.0.2/src/libknot/cookies.h
Examining data/knot-3.0.2/src/libknot/rrset-dump.h
Examining data/knot-3.0.2/src/libknot/rdataset.c
Examining data/knot-3.0.2/src/libknot/dname.c
Examining data/knot-3.0.2/src/libknot/consts.h
Examining data/knot-3.0.2/src/libknot/descriptor.h
Examining data/knot-3.0.2/src/libknot/rdataset.h
Examining data/knot-3.0.2/src/libknot/dname.h
Examining data/knot-3.0.2/src/libknot/db/db_lmdb.c
Examining data/knot-3.0.2/src/libknot/db/db_lmdb.h
Examining data/knot-3.0.2/src/libknot/db/db_trie.h
Examining data/knot-3.0.2/src/libknot/db/db_trie.c
Examining data/knot-3.0.2/src/libknot/db/db.h
Examining data/knot-3.0.2/src/libknot/descriptor.c
Examining data/knot-3.0.2/src/libknot/control/control.c
Examining data/knot-3.0.2/src/libknot/control/control.h
Examining data/knot-3.0.2/src/libknot/lookup.h
Examining data/knot-3.0.2/src/libknot/tsig.c
Examining data/knot-3.0.2/src/libknot/codes.h
Examining data/knot-3.0.2/src/libknot/rdata.h
Examining data/knot-3.0.2/src/libknot/tsig-op.c
Examining data/knot-3.0.2/src/libknot/rrset.h
Examining data/knot-3.0.2/src/libknot/attribute.h
Examining data/knot-3.0.2/src/libknot/rrset-dump.c
Examining data/knot-3.0.2/src/libknot/endian.h
Examining data/knot-3.0.2/src/libknot/wire.h
Examining data/knot-3.0.2/src/libknot/tsig-op.h
Examining data/knot-3.0.2/src/libknot/packet/rrset-wire.h
Examining data/knot-3.0.2/src/libknot/packet/pkt.h
Examining data/knot-3.0.2/src/libknot/packet/compr.h
Examining data/knot-3.0.2/src/libknot/packet/rrset-wire.c
Examining data/knot-3.0.2/src/libknot/packet/wire.h
Examining data/knot-3.0.2/src/libknot/packet/pkt.c
Examining data/knot-3.0.2/src/libknot/codes.c
Examining data/knot-3.0.2/src/libknot/yparser/yptrafo.c
Examining data/knot-3.0.2/src/libknot/yparser/ypformat.c
Examining data/knot-3.0.2/src/libknot/yparser/ypschema.c
Examining data/knot-3.0.2/src/libknot/yparser/ypbody.c
Examining data/knot-3.0.2/src/libknot/yparser/yptrafo.h
Examining data/knot-3.0.2/src/libknot/yparser/yparser.c
Examining data/knot-3.0.2/src/libknot/yparser/ypschema.h
Examining data/knot-3.0.2/src/libknot/yparser/yparser.h
Examining data/knot-3.0.2/src/libknot/yparser/ypformat.h
Examining data/knot-3.0.2/src/libknot/cookies.c
Examining data/knot-3.0.2/src/libzscanner/functions.c
Examining data/knot-3.0.2/src/libzscanner/version.h
Examining data/knot-3.0.2/src/libzscanner/error.c
Examining data/knot-3.0.2/src/libzscanner/error.h
Examining data/knot-3.0.2/src/libzscanner/functions.h
Examining data/knot-3.0.2/src/libzscanner/scanner.h
Examining data/knot-3.0.2/src/knot/include/module.h
Examining data/knot-3.0.2/src/knot/server/tcp-handler.h
Examining data/knot-3.0.2/src/knot/server/server.h
Examining data/knot-3.0.2/src/knot/server/dthreads.c
Examining data/knot-3.0.2/src/knot/server/udp-handler.c
Examining data/knot-3.0.2/src/knot/server/server.c
Examining data/knot-3.0.2/src/knot/server/udp-handler.h
Examining data/knot-3.0.2/src/knot/server/dthreads.h
Examining data/knot-3.0.2/src/knot/server/tcp-handler.c
Examining data/knot-3.0.2/src/knot/updates/acl.c
Examining data/knot-3.0.2/src/knot/updates/ddns.h
Examining data/knot-3.0.2/src/knot/updates/acl.h
Examining data/knot-3.0.2/src/knot/updates/zone-update.c
Examining data/knot-3.0.2/src/knot/updates/apply.h
Examining data/knot-3.0.2/src/knot/updates/apply.c
Examining data/knot-3.0.2/src/knot/updates/zone-update.h
Examining data/knot-3.0.2/src/knot/updates/ddns.c
Examining data/knot-3.0.2/src/knot/updates/changesets.c
Examining data/knot-3.0.2/src/knot/updates/changesets.h
Examining data/knot-3.0.2/src/knot/query/capture.h
Examining data/knot-3.0.2/src/knot/query/requestor.c
Examining data/knot-3.0.2/src/knot/query/query.c
Examining data/knot-3.0.2/src/knot/query/query.h
Examining data/knot-3.0.2/src/knot/query/capture.c
Examining data/knot-3.0.2/src/knot/query/layer.h
Examining data/knot-3.0.2/src/knot/query/requestor.h
Examining data/knot-3.0.2/src/knot/conf/confio.h
Examining data/knot-3.0.2/src/knot/conf/schema.h
Examining data/knot-3.0.2/src/knot/conf/schema.c
Examining data/knot-3.0.2/src/knot/conf/conf.c
Examining data/knot-3.0.2/src/knot/conf/confio.c
Examining data/knot-3.0.2/src/knot/conf/confdb.c
Examining data/knot-3.0.2/src/knot/conf/module.h
Examining data/knot-3.0.2/src/knot/conf/base.h
Examining data/knot-3.0.2/src/knot/conf/migration.h
Examining data/knot-3.0.2/src/knot/conf/module.c
Examining data/knot-3.0.2/src/knot/conf/conf.h
Examining data/knot-3.0.2/src/knot/conf/tools.c
Examining data/knot-3.0.2/src/knot/conf/base.c
Examining data/knot-3.0.2/src/knot/conf/migration.c
Examining data/knot-3.0.2/src/knot/conf/confdb.h
Examining data/knot-3.0.2/src/knot/conf/tools.h
Examining data/knot-3.0.2/src/knot/journal/serialization.h
Examining data/knot-3.0.2/src/knot/journal/journal_write.c
Examining data/knot-3.0.2/src/knot/journal/journal_read.c
Examining data/knot-3.0.2/src/knot/journal/journal_basic.h
Examining data/knot-3.0.2/src/knot/journal/journal_read.h
Examining data/knot-3.0.2/src/knot/journal/journal_metadata.c
Examining data/knot-3.0.2/src/knot/journal/knot_lmdb.h
Examining data/knot-3.0.2/src/knot/journal/journal_metadata.h
Examining data/knot-3.0.2/src/knot/journal/journal_basic.c
Examining data/knot-3.0.2/src/knot/journal/serialization.c
Examining data/knot-3.0.2/src/knot/journal/knot_lmdb.c
Examining data/knot-3.0.2/src/knot/journal/journal_write.h
Examining data/knot-3.0.2/src/knot/ctl/commands.c
Examining data/knot-3.0.2/src/knot/ctl/process.c
Examining data/knot-3.0.2/src/knot/ctl/commands.h
Examining data/knot-3.0.2/src/knot/ctl/process.h
Examining data/knot-3.0.2/src/knot/events/events.c
Examining data/knot-3.0.2/src/knot/events/events.h
Examining data/knot-3.0.2/src/knot/events/handlers/ds_push.c
Examining data/knot-3.0.2/src/knot/events/handlers/refresh.c
Examining data/knot-3.0.2/src/knot/events/handlers/nsec3resalt.c
Examining data/knot-3.0.2/src/knot/events/handlers/dnssec.c
Examining data/knot-3.0.2/src/knot/events/handlers/notify.c
Examining data/knot-3.0.2/src/knot/events/handlers/load.c
Examining data/knot-3.0.2/src/knot/events/handlers/expire.c
Examining data/knot-3.0.2/src/knot/events/handlers/freeze_thaw.c
Examining data/knot-3.0.2/src/knot/events/handlers/flush.c
Examining data/knot-3.0.2/src/knot/events/handlers/backup.c
Examining data/knot-3.0.2/src/knot/events/handlers/ds_check.c
Examining data/knot-3.0.2/src/knot/events/handlers/update.c
Examining data/knot-3.0.2/src/knot/events/replan.h
Examining data/knot-3.0.2/src/knot/events/handlers.h
Examining data/knot-3.0.2/src/knot/events/replan.c
Examining data/knot-3.0.2/src/knot/modules/noudp/noudp.c
Examining data/knot-3.0.2/src/knot/modules/rrl/functions.c
Examining data/knot-3.0.2/src/knot/modules/rrl/rrl.c
Examining data/knot-3.0.2/src/knot/modules/rrl/functions.h
Examining data/knot-3.0.2/src/knot/modules/queryacl/queryacl.c
Examining data/knot-3.0.2/src/knot/modules/whoami/whoami.c
Examining data/knot-3.0.2/src/knot/modules/stats/stats.c
Examining data/knot-3.0.2/src/knot/modules/dnstap/dnstap.c
Examining data/knot-3.0.2/src/knot/modules/cookies/cookies.c
Examining data/knot-3.0.2/src/knot/modules/synthrecord/synthrecord.c
Examining data/knot-3.0.2/src/knot/modules/geoip/geodb.c
Examining data/knot-3.0.2/src/knot/modules/geoip/geodb.h
Examining data/knot-3.0.2/src/knot/modules/geoip/geoip.c
Examining data/knot-3.0.2/src/knot/modules/dnsproxy/dnsproxy.c
Examining data/knot-3.0.2/src/knot/modules/onlinesign/nsec_next.c
Examining data/knot-3.0.2/src/knot/modules/onlinesign/nsec_next.h
Examining data/knot-3.0.2/src/knot/modules/onlinesign/onlinesign.c
Examining data/knot-3.0.2/src/knot/dnssec/rrset-sign.h
Examining data/knot-3.0.2/src/knot/dnssec/nsec-chain.h
Examining data/knot-3.0.2/src/knot/dnssec/zone-events.h
Examining data/knot-3.0.2/src/knot/dnssec/ds_query.c
Examining data/knot-3.0.2/src/knot/dnssec/policy.c
Examining data/knot-3.0.2/src/knot/dnssec/nsec3-chain.h
Examining data/knot-3.0.2/src/knot/dnssec/context.c
Examining data/knot-3.0.2/src/knot/dnssec/policy.h
Examining data/knot-3.0.2/src/knot/dnssec/zone-events.c
Examining data/knot-3.0.2/src/knot/dnssec/nsec3-chain.c
Examining data/knot-3.0.2/src/knot/dnssec/ds_query.h
Examining data/knot-3.0.2/src/knot/dnssec/context.h
Examining data/knot-3.0.2/src/knot/dnssec/zone-nsec.c
Examining data/knot-3.0.2/src/knot/dnssec/key_records.c
Examining data/knot-3.0.2/src/knot/dnssec/nsec-chain.c
Examining data/knot-3.0.2/src/knot/dnssec/key_records.h
Examining data/knot-3.0.2/src/knot/dnssec/key-events.h
Examining data/knot-3.0.2/src/knot/dnssec/zone-sign.c
Examining data/knot-3.0.2/src/knot/dnssec/rrset-sign.c
Examining data/knot-3.0.2/src/knot/dnssec/zone-nsec.h
Examining data/knot-3.0.2/src/knot/dnssec/zone-keys.h
Examining data/knot-3.0.2/src/knot/dnssec/zone-keys.c
Examining data/knot-3.0.2/src/knot/dnssec/kasp/kasp_db.h
Examining data/knot-3.0.2/src/knot/dnssec/kasp/kasp_zone.c
Examining data/knot-3.0.2/src/knot/dnssec/kasp/keystate.h
Examining data/knot-3.0.2/src/knot/dnssec/kasp/policy.h
Examining data/knot-3.0.2/src/knot/dnssec/kasp/keystate.c
Examining data/knot-3.0.2/src/knot/dnssec/kasp/kasp_zone.h
Examining data/knot-3.0.2/src/knot/dnssec/kasp/keystore.h
Examining data/knot-3.0.2/src/knot/dnssec/kasp/keystore.c
Examining data/knot-3.0.2/src/knot/dnssec/kasp/kasp_db.c
Examining data/knot-3.0.2/src/knot/dnssec/key-events.c
Examining data/knot-3.0.2/src/knot/dnssec/zone-sign.h
Examining data/knot-3.0.2/src/knot/nameserver/tsig_ctx.c
Examining data/knot-3.0.2/src/knot/nameserver/query_module.h
Examining data/knot-3.0.2/src/knot/nameserver/query_module.c
Examining data/knot-3.0.2/src/knot/nameserver/internet.h
Examining data/knot-3.0.2/src/knot/nameserver/nsec_proofs.h
Examining data/knot-3.0.2/src/knot/nameserver/chaos.h
Examining data/knot-3.0.2/src/knot/nameserver/log.h
Examining data/knot-3.0.2/src/knot/nameserver/update.h
Examining data/knot-3.0.2/src/knot/nameserver/nsec_proofs.c
Examining data/knot-3.0.2/src/knot/nameserver/notify.c
Examining data/knot-3.0.2/src/knot/nameserver/axfr.c
Examining data/knot-3.0.2/src/knot/nameserver/axfr.h
Examining data/knot-3.0.2/src/knot/nameserver/notify.h
Examining data/knot-3.0.2/src/knot/nameserver/xfr.c
Examining data/knot-3.0.2/src/knot/nameserver/ixfr.h
Examining data/knot-3.0.2/src/knot/nameserver/chaos.c
Examining data/knot-3.0.2/src/knot/nameserver/xfr.h
Examining data/knot-3.0.2/src/knot/nameserver/tsig_ctx.h
Examining data/knot-3.0.2/src/knot/nameserver/process_query.c
Examining data/knot-3.0.2/src/knot/nameserver/internet.c
Examining data/knot-3.0.2/src/knot/nameserver/process_query.h
Examining data/knot-3.0.2/src/knot/nameserver/ixfr.c
Examining data/knot-3.0.2/src/knot/nameserver/update.c
Examining data/knot-3.0.2/src/knot/zone/backup.h
Examining data/knot-3.0.2/src/knot/zone/zonedb-load.h
Examining data/knot-3.0.2/src/knot/zone/node.c
Examining data/knot-3.0.2/src/knot/zone/catalog.c
Examining data/knot-3.0.2/src/knot/zone/adjust.c
Examining data/knot-3.0.2/src/knot/zone/zonedb-load.c
Examining data/knot-3.0.2/src/knot/zone/timers.c
Examining data/knot-3.0.2/src/knot/zone/serial.h
Examining data/knot-3.0.2/src/knot/zone/catalog.h
Examining data/knot-3.0.2/src/knot/zone/timers.h
Examining data/knot-3.0.2/src/knot/zone/semantic-check.c
Examining data/knot-3.0.2/src/knot/zone/adjust.h
Examining data/knot-3.0.2/src/knot/zone/zonedb.c
Examining data/knot-3.0.2/src/knot/zone/contents.h
Examining data/knot-3.0.2/src/knot/zone/zonefile.c
Examining data/knot-3.0.2/src/knot/zone/zone-dump.c
Examining data/knot-3.0.2/src/knot/zone/serial.c
Examining data/knot-3.0.2/src/knot/zone/zone.h
Examining data/knot-3.0.2/src/knot/zone/zone.c
Examining data/knot-3.0.2/src/knot/zone/contents.c
Examining data/knot-3.0.2/src/knot/zone/measure.h
Examining data/knot-3.0.2/src/knot/zone/zone-tree.h
Examining data/knot-3.0.2/src/knot/zone/zonefile.h
Examining data/knot-3.0.2/src/knot/zone/zone-load.h
Examining data/knot-3.0.2/src/knot/zone/zonedb.h
Examining data/knot-3.0.2/src/knot/zone/measure.c
Examining data/knot-3.0.2/src/knot/zone/zone-dump.h
Examining data/knot-3.0.2/src/knot/zone/semantic-check.h
Examining data/knot-3.0.2/src/knot/zone/backup.c
Examining data/knot-3.0.2/src/knot/zone/zone-diff.c
Examining data/knot-3.0.2/src/knot/zone/adds_tree.c
Examining data/knot-3.0.2/src/knot/zone/zone-diff.h
Examining data/knot-3.0.2/src/knot/zone/zone-tree.c
Examining data/knot-3.0.2/src/knot/zone/zone-load.c
Examining data/knot-3.0.2/src/knot/zone/node.h
Examining data/knot-3.0.2/src/knot/zone/adds_tree.h
Examining data/knot-3.0.2/src/knot/worker/pool.h
Examining data/knot-3.0.2/src/knot/worker/queue.h
Examining data/knot-3.0.2/src/knot/worker/queue.c
Examining data/knot-3.0.2/src/knot/worker/pool.c
Examining data/knot-3.0.2/src/knot/common/evsched.c
Examining data/knot-3.0.2/src/knot/common/log.c
Examining data/knot-3.0.2/src/knot/common/stats.c
Examining data/knot-3.0.2/src/knot/common/stats.h
Examining data/knot-3.0.2/src/knot/common/log.h
Examining data/knot-3.0.2/src/knot/common/process.c
Examining data/knot-3.0.2/src/knot/common/process.h
Examining data/knot-3.0.2/src/knot/common/fdset.h
Examining data/knot-3.0.2/src/knot/common/fdset.c
Examining data/knot-3.0.2/src/knot/common/evsched.h
Examining data/knot-3.0.2/src/libdnssec/tsig.h
Examining data/knot-3.0.2/src/libdnssec/keyid.c
Examining data/knot-3.0.2/src/libdnssec/version.h
Examining data/knot-3.0.2/src/libdnssec/error.c
Examining data/knot-3.0.2/src/libdnssec/error.h
Examining data/knot-3.0.2/src/libdnssec/random.c
Examining data/knot-3.0.2/src/libdnssec/keytag.h
Examining data/knot-3.0.2/src/libdnssec/keystore/pkcs11.c
Examining data/knot-3.0.2/src/libdnssec/keystore/internal.h
Examining data/knot-3.0.2/src/libdnssec/keystore/pkcs8.c
Examining data/knot-3.0.2/src/libdnssec/keystore/keystore.c
Examining data/knot-3.0.2/src/libdnssec/key/keytag.c
Examining data/knot-3.0.2/src/libdnssec/key/simple.c
Examining data/knot-3.0.2/src/libdnssec/key/algorithm.c
Examining data/knot-3.0.2/src/libdnssec/key/dnskey.h
Examining data/knot-3.0.2/src/libdnssec/key/internal.h
Examining data/knot-3.0.2/src/libdnssec/key/algorithm.h
Examining data/knot-3.0.2/src/libdnssec/key/convert.h
Examining data/knot-3.0.2/src/libdnssec/key/key.c
Examining data/knot-3.0.2/src/libdnssec/key/convert.c
Examining data/knot-3.0.2/src/libdnssec/key/ds.c
Examining data/knot-3.0.2/src/libdnssec/key/privkey.h
Examining data/knot-3.0.2/src/libdnssec/key/privkey.c
Examining data/knot-3.0.2/src/libdnssec/key/dnskey.c
Examining data/knot-3.0.2/src/libdnssec/tsig.c
Examining data/knot-3.0.2/src/libdnssec/crypto.h
Examining data/knot-3.0.2/src/libdnssec/pem.c
Examining data/knot-3.0.2/src/libdnssec/binary.c
Examining data/knot-3.0.2/src/libdnssec/dnssec.h
Examining data/knot-3.0.2/src/libdnssec/shared/binary_wire.h
Examining data/knot-3.0.2/src/libdnssec/shared/dname.c
Examining data/knot-3.0.2/src/libdnssec/shared/dname.h
Examining data/knot-3.0.2/src/libdnssec/shared/bignum.c
Examining data/knot-3.0.2/src/libdnssec/shared/shared.h
Examining data/knot-3.0.2/src/libdnssec/shared/bignum.h
Examining data/knot-3.0.2/src/libdnssec/shared/keyid_gnutls.h
Examining data/knot-3.0.2/src/libdnssec/shared/keyid_gnutls.c
Examining data/knot-3.0.2/src/libdnssec/keystore.h
Examining data/knot-3.0.2/src/libdnssec/random.h
Examining data/knot-3.0.2/src/libdnssec/nsec.h
Examining data/knot-3.0.2/src/libdnssec/sign.h
Examining data/knot-3.0.2/src/libdnssec/keyid.h
Examining data/knot-3.0.2/src/libdnssec/binary.h
Examining data/knot-3.0.2/src/libdnssec/nsec/nsec.c
Examining data/knot-3.0.2/src/libdnssec/nsec/hash.c
Examining data/knot-3.0.2/src/libdnssec/nsec/bitmap.c
Examining data/knot-3.0.2/src/libdnssec/p11/p11.c
Examining data/knot-3.0.2/src/libdnssec/p11/p11.h
Examining data/knot-3.0.2/src/libdnssec/sign/der.h
Examining data/knot-3.0.2/src/libdnssec/sign/der.c
Examining data/knot-3.0.2/src/libdnssec/sign/sign.c
Examining data/knot-3.0.2/src/libdnssec/crypto.c
Examining data/knot-3.0.2/src/libdnssec/key.h
Examining data/knot-3.0.2/src/libdnssec/pem.h

FINAL RESULTS:

data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:67:46:  [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 __printf(a, b)	__attribute__((format(printf, a, b)))
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:75:9:  [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.
	return vfprintf(stderr, format, args);
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:525:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(obj->path, path);
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:3233: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(path, PATH_MAX, locations[i].path_fmt, buf.release);
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:3235:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		if (access(path, R_OK))
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:5084: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(buf, section_names[i].sec);
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:5564:8:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
	err = fscanf(f, fmt, &ret);
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf_internal.h:55:24:  [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.
	__attribute__((format(printf, 2, 3)));
data/knot-3.0.2/src/contrib/time.c:378: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.
		ret = snprintf(dst, dst_len, "%"KNOT_TIME_PRINTF, time);
data/knot-3.0.2/src/contrib/time.c:395: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.
		ret = snprintf(dst, dst_len, "%+"KNOT_TIMEDIFF_PRINTF,
data/knot-3.0.2/src/knot/common/log.c:279:16:  [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 written = vsnprintf(*write, *capacity, fmt, args);
data/knot-3.0.2/src/knot/common/log.c:332:12:  [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 ret = vsnprintf(write, capacity, fmt, args);
data/knot-3.0.2/src/knot/common/log.h:109:23:  [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.
__attribute__((format(printf, 3, 4)));
data/knot-3.0.2/src/knot/common/log.h:124:23:  [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.
__attribute__((format(printf, 5, 6)));
data/knot-3.0.2/src/knot/common/log.h:137:23:  [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.
__attribute__((format(printf, 4, 5)));
data/knot-3.0.2/src/knot/conf/module.c:164:14:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		} else if (access(MODULE_DIR, F_OK | R_OK) != 0) {
data/knot-3.0.2/src/knot/ctl/commands.c:1230:13:  [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 ret = snprintf(value, sizeof(value), "%"PRIu64, counter);
data/knot-3.0.2/src/knot/ctl/commands.c:1269:10:  [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.
			ret = snprintf(value, sizeof(value), "%"PRIu64, counter);
data/knot-3.0.2/src/knot/ctl/commands.c:1537:14:  [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 ret = snprintf(value, sizeof(value), "%"PRIu64,
data/knot-3.0.2/src/knot/dnssec/kasp/kasp_db.c:68: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.
	(void)snprintf(tmp, sizeof(tmp), "%0*"PRIu64, (int)(sizeof(tmp) - 1), time);
data/knot-3.0.2/src/knot/nameserver/query_module.c:243: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.
	if (vsnprintf(msg, sizeof(msg), fmt, args) < 0) {
data/knot-3.0.2/src/knot/zone/backup.c:51:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(lockfile_name, "%s/knot.backup.lockfile", (ctx)->backup_dir);
data/knot-3.0.2/src/knot/zone/zonefile.c:149:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access(source, F_OK | R_OK) != 0) {
data/knot-3.0.2/src/libknot/rrset-dump.c:708: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.
		ret = snprintf(out + total_len, out_len - total_len, \
data/knot-3.0.2/src/utils/common/msg.c:36:7:  [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.
		n = vprintf(fmt, ap);
data/knot-3.0.2/src/utils/common/msg.h:26:25:  [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 ERR(msg, ...)	{ fprintf(stderr, ERROR_ msg, ##__VA_ARGS__); fflush(stderr); }
data/knot-3.0.2/src/utils/common/msg.h:27:26:  [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 INFO(msg, ...)	{ fprintf(stdout, INFO_ msg, ##__VA_ARGS__); fflush(stdout); }
data/knot-3.0.2/src/utils/common/msg.h:28:26:  [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 WARN(msg, ...)	{ fprintf(stderr, WARNING_ msg, ##__VA_ARGS__); fflush(stderr); }
data/knot-3.0.2/src/utils/keymgr/functions.h:23:27:  [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 ERROR(msg, ...)	{ fprintf(stderr, "Error: " msg, ##__VA_ARGS__); fflush(stderr); }
data/knot-3.0.2/src/utils/keymgr/offline_ksk.c:342:6:  [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 the scanf format is influenceable by an
  attacker, it's exploitable.
	    sscanf((const char *)sc->buffer, "; KeySigningRequest %f %"PRIu64,
data/knot-3.0.2/src/utils/keymgr/offline_ksk.c:381:6:  [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 the scanf format is influenceable by an
  attacker, it's exploitable.
	    sscanf((const char *)sc->buffer, "; SignedKeyResponse %f %"PRIu64,
data/knot-3.0.2/src/utils/keymgr/offline_ksk.c:415:6:  [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 the scanf format is influenceable by an
  attacker, it's exploitable.
	    sscanf((const char *)sc->buffer, "; SignedKeyResponse %f %"PRIu64,
data/knot-3.0.2/src/utils/knsec3hash/knsec3hash.c:33:25:  [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 error(fmt, ...) fprintf(stderr, fmt "\n", ##__VA_ARGS__)
data/knot-3.0.2/src/utils/knsupdate/knsupdate_params.c:73: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 n = vsnprintf(buf, sizeof(buf), fmt, ap);
data/knot-3.0.2/src/utils/kxdpgun/load_queries.c:53:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf(ERR_PREFIX "file '%s' (%s)\n", filename, strerror(errno));
data/knot-3.0.2/src/utils/kxdpgun/load_queries.c:67:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf(ERR_PREFIX "(out of memory)\n");
data/knot-3.0.2/src/utils/kxdpgun/load_queries.c:73:13:  [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.
		int ret = sscanf(bufs->line, "%s%s%s", bufs->dname_txt, bufs->type_txt, bufs->flags_txt);
data/knot-3.0.2/src/utils/kxdpgun/load_queries.c:75:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf(ERR_PREFIX "(faulty line): '%.*s'\n",
data/knot-3.0.2/src/utils/kxdpgun/load_queries.c:82:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf(ERR_PREFIX "(faulty dname): '%s'\n", bufs->dname_txt);
data/knot-3.0.2/src/utils/kxdpgun/load_queries.c:89:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf(ERR_PREFIX "(faulty type): '%s'\n", bufs->type_txt);
data/knot-3.0.2/src/utils/kxdpgun/load_queries.c:105:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf(ERR_PREFIX "(faulty flag): '%s'\n", bufs->flags_txt);
data/knot-3.0.2/src/utils/kxdpgun/load_queries.c:117:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf(ERR_PREFIX "(out of memory)\n");
data/knot-3.0.2/src/utils/kxdpgun/load_queries.c:146:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf(ERR_PREFIX "(no queries in file)\n");
data/knot-3.0.2/src/utils/kxdpgun/main.c:408:7:  [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_buf, "%s%s%s%s%s", fields[0], fields[1], fields[2], fields[3], fields[4]) != 5) {
data/knot-3.0.2/tests-fuzz/main.c:105:12:  [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 ret = snprintf(corporadir, sizeof(corporadir), SRCDIR "/%s.in", target);
data/knot-3.0.2/tests-fuzz/main.c:112: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.
	ret = snprintf(corporadir, sizeof(corporadir), SRCDIR "/%s.repro", target);
data/knot-3.0.2/tests/libdnssec/test_keystore_pkcs11.c:84:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		if (access(path, R_OK|X_OK) == 0) {
data/knot-3.0.2/tests/libdnssec/test_keystore_pkcs11.c:147:3:  [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.
		execlp(util, basename,
data/knot-3.0.2/tests/tap/basic.c:165:9:  [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/knot-3.0.2/tests/tap/basic.c:179:5:  [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/knot-3.0.2/tests/tap/basic.c:231:9:  [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(reason, args);
data/knot-3.0.2/tests/tap/basic.c:277:13:  [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(reason, args);
data/knot-3.0.2/tests/tap/basic.c:378:5:  [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/knot-3.0.2/tests/tap/basic.c:397:5:  [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/knot-3.0.2/tests/tap/basic.c:415:5:  [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/knot-3.0.2/tests/tap/basic.c:433:5:  [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/knot-3.0.2/tests/tap/basic.c:545:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access(path, R_OK) == 0)
data/knot-3.0.2/tests/tap/basic.c:588:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(path, X_OK) < 0)
data/knot-3.0.2/tests/tap/basic.h:64:45:  [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.
    __attribute__((__noreturn__, __format__(printf, 1, 2)));
data/knot-3.0.2/tests/tap/basic.h:72:31:  [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.
    __attribute__((__format__(printf, 2, 3)));
data/knot-3.0.2/tests/tap/basic.h:75:31:  [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.
    __attribute__((__format__(printf, 1, 2)));
data/knot-3.0.2/tests/tap/basic.h:79:31:  [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.
    __attribute__((__format__(printf, 3, 4)));
data/knot-3.0.2/tests/tap/basic.h:81:31:  [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.
    __attribute__((__format__(printf, 2, 3)));
data/knot-3.0.2/tests/tap/basic.h:85:31:  [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.
    __attribute__((__format__(printf, 3, 4)));
data/knot-3.0.2/tests/tap/basic.h:87:31:  [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.
    __attribute__((__format__(printf, 3, 4)));
data/knot-3.0.2/tests/tap/basic.h:90:31:  [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.
    __attribute__((__format__(printf, 3, 4)));
data/knot-3.0.2/tests/tap/basic.h:94:58:  [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.
    __attribute__((__noreturn__, __nonnull__, __format__(printf, 1, 2)));
data/knot-3.0.2/tests/tap/basic.h:96:58:  [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.
    __attribute__((__noreturn__, __nonnull__, __format__(printf, 1, 2)));
data/knot-3.0.2/tests/tap/basic.h:100:44:  [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.
    __attribute__((__nonnull__, __format__(printf, 1, 2)));
data/knot-3.0.2/tests/tap/basic.h:102:44:  [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.
    __attribute__((__nonnull__, __format__(printf, 1, 2)));
data/knot-3.0.2/tests/tap/float.h:37:31:  [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.
    __attribute__((__format__(printf, 4, 5)));
data/knot-3.0.2/tests/tap/runtests.c:253:58:  [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.
    __attribute__((__nonnull__, __noreturn__, __format__(printf, 1, 2)));
data/knot-3.0.2/tests/tap/runtests.c:276:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, format, args);
data/knot-3.0.2/tests/tap/runtests.c:418:13:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        if (execl(path, path, (char *) 0) == -1)
data/knot-3.0.2/tests/tap/runtests.c:976:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(path, X_OK) < 0)
data/knot-3.0.2/tests/tap/runtests.c:1295:9:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if (execl(path, path, (char *) 0) == -1)
data/knot-3.0.2/tests/tap/runtests.c:1324:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            printf(usage_message, argv[0], argv[0], argv[0], usage_extra);
data/knot-3.0.2/tests/tap/runtests.c:1346:9:  [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.
        fprintf(stderr, usage_message, argv[0], argv[0], argv[0], usage_extra);
data/knot-3.0.2/tests/tap/runtests.c:1375:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(banner, shortlist);
data/knot-3.0.2/src/knot/conf/conf.c:798:16:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
			char *cwd = realpath("./", NULL);
data/knot-3.0.2/src/knot/conf/tools.c:684:29:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
		char *full_current_name = realpath(file_name, NULL);
data/knot-3.0.2/src/libdnssec/keystore/pkcs8.c:261:15:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
	char *path = realpath(config, NULL);
data/knot-3.0.2/src/utils/kcatalogprint/main.c:45:16:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt_long(argc, argv, "hV", options, NULL)) != -1) {
data/knot-3.0.2/src/utils/keymgr/main.c:378:16:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt_long(argc, argv, "hVd:c:C:t:", opts, NULL)) != -1) {
data/knot-3.0.2/src/utils/khost/khost_params.c:261:16:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt_long(argc, argv, "46adhrsTvVwc:t:R:W:", opts, NULL))
data/knot-3.0.2/src/utils/kjournalprint/main.c:301:16:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt_long(argc, argv, "l:nzcdhV", opts, NULL)) != -1) {
data/knot-3.0.2/src/utils/knotc/interactive.c:360:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *home = getenv("HOME");
data/knot-3.0.2/src/utils/knotc/main.c:84:16:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt_long(argc, argv, "+c:C:m:s:t:bfvhV", opts, NULL)) != -1) {
data/knot-3.0.2/src/utils/knotd/main.c:403:16:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt_long(argc, argv, "c:C:m:s:dvhV", opts, NULL)) != -1) {
data/knot-3.0.2/src/utils/knotd/main.c:468:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(time(NULL));
data/knot-3.0.2/src/utils/knsec3hash/knsec3hash.c:111:16:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt_long(argc, argv, "hV", options, NULL)) != -1) {
data/knot-3.0.2/src/utils/knsupdate/knsupdate_params.c:208:16:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt_long(argc, argv, "dhDvVp:t:r:y:k:", opts, NULL))
data/knot-3.0.2/src/utils/kxdpgun/main.c:577:16:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt_long(argc, argv, "hVt:Q:b:rp:F:I:l:i:", opts, NULL)) != -1) {
data/knot-3.0.2/src/utils/kzonecheck/main.c:85:16:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt_long(argc, argv, "o:t:d:vVh", opts, NULL)) != -1) {
data/knot-3.0.2/src/utils/kzonesign/main.c:91:16:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt_long(argc, argv, "c:o:rt:hV", opts, NULL)) != -1) {
data/knot-3.0.2/tests-fuzz/knotd_wrap/udp-handler.c:53:23:  [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.
	rq->afl_persistent = getenv("AFL_PERSISTENT") != NULL;
data/knot-3.0.2/tests/contrib/test_heap.c:40:2:  [3] (random) seed48:
  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.
	seed48(seed);
data/knot-3.0.2/tests/contrib/test_heap.c:79:20:  [3] (random) lrand48:
  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.
		values[i].data = lrand48() % VALUE_RANGE;
data/knot-3.0.2/tests/contrib/test_heap.c:106:22:  [3] (random) lrand48:
  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.
		replaced[i].data = lrand48() % VALUE_RANGE;
data/knot-3.0.2/tests/contrib/test_qp-cow.c:170:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(argc, argv, "k:l:m:t:h")) != -1)
data/knot-3.0.2/tests/contrib/test_qp-trie.c:186:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(time(NULL));
data/knot-3.0.2/tests/knot/test_dthreads.c:84:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(time(NULL));
data/knot-3.0.2/tests/libdnssec/test_keystore_pkcs11.c:68:20:  [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.
	const char *env = getenv(ENV_SOFTHSM_DSO);
data/knot-3.0.2/tests/libdnssec/test_keystore_pkcs11.c:99:20:  [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.
	const char *env = getenv(ENV_SOFTHSM_UTIL);
data/knot-3.0.2/tests/libzscanner/zscanner-tool.c:155:16:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt_long(argc, argv, "m:sth", opts, &li)) != -1) {
data/knot-3.0.2/tests/tap/basic.c:539:16:  [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.
        base = getenv(envs[i]);
data/knot-3.0.2/tests/tap/basic.c:582:13:  [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.
    build = getenv("BUILD");
data/knot-3.0.2/tests/tap/files.c:26: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.
	char *tmpdir = getenv("TMPDIR");
data/knot-3.0.2/tests/tap/runtests.c:1318:22:  [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 ((option = getopt(argc, argv, "b:hl:os:L:")) != EOF) {
data/knot-3.0.2/src/contrib/dynarray.h:108: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(new_arr, prefix ## _dynarray_arr(dynarray), \
data/knot-3.0.2/src/contrib/files.c:111:11:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	int fd = mkstemp(*tmp_name);
data/knot-3.0.2/src/contrib/files.c:152:15:  [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 *from = fopen(src, "r");
data/knot-3.0.2/src/contrib/getline.c:54: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(*lineptr, buffer, length);
data/knot-3.0.2/src/contrib/libbpf/bpf/bpf.c:91: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(attr.map_name, create_attr->name,
data/knot-3.0.2/src/contrib/libbpf/bpf/bpf.c:168: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(attr.map_name, name,
data/knot-3.0.2/src/contrib/libbpf/bpf/bpf.c:203: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(nrecord, orecord, expected_rec_size);
data/knot-3.0.2/src/contrib/libbpf/bpf/bpf.c:259: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(attr.prog_name, load_attr->name,
data/knot-3.0.2/src/contrib/libbpf/bpf/bpf_prog_linfo.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(prog_linfo->raw_linfo, (void *)(long)info->line_info, data_sz);
data/knot-3.0.2/src/contrib/libbpf/bpf/bpf_prog_linfo.c:150: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(prog_linfo->raw_jited_linfo,
data/knot-3.0.2/src/contrib/libbpf/bpf/btf.c:371: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(btf->data, data, size);
data/knot-3.0.2/src/contrib/libbpf/bpf/btf.c:418: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, O_RDONLY);
data/knot-3.0.2/src/contrib/libbpf/bpf/btf.c:725:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char container_name[max_name];
data/knot-3.0.2/src/contrib/libbpf/bpf/btf.c:985: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(btf_ext->data, data, size);
data/knot-3.0.2/src/contrib/libbpf/bpf/btf.c:1049: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(data + existing_len, sinfo->data, records_len);
data/knot-3.0.2/src/contrib/libbpf/bpf/btf_dump.c:1368:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char new_name[max_len];
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:243:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[BPF_OBJ_NAME_LEN];
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:244:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char license[64];
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:399: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(prog->insns, data, size);
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:600:19:  [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).
		obj->efile.fd = open(obj->path, O_RDONLY);
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:602:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char errmsg[STRERR_BUFSIZE], *cp;
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:841:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char map_name[BPF_OBJ_NAME_LEN];
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:879: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(*data_buff, data->d_buf, data->d_size);
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:1020: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(&map->def, def, map_def_sz);
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:1039: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(&map->def, def, sizeof(struct bpf_map_def));
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:1102:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[PATH_MAX];
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:1676: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 errmsg[STRERR_BUFSIZE];
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:2003:11:  [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).
	new_fd = open("/", O_RDONLY | O_CLOEXEC);
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:2060:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *cp, errmsg[STRERR_BUFSIZE];
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:2101:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *cp, errmsg[STRERR_BUFSIZE];
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:2240:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[STRERR_BUFSIZE];
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:2261:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *cp, errmsg[STRERR_BUFSIZE];
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:2300:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *cp, errmsg[STRERR_BUFSIZE];
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:2336: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 *cp, errmsg[STRERR_BUFSIZE];
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:3184: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(path, "rb");
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:3225:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX + 1];
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:3592: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(new_insn + prog->insns_cnt, text->insns,
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:3719:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *cp, errmsg[STRERR_BUFSIZE];
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:3923:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_name[64];
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:4126:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *cp, errmsg[STRERR_BUFSIZE];
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:4148:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *cp, errmsg[STRERR_BUFSIZE];
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:4179:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *cp, errmsg[STRERR_BUFSIZE];
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:4268: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[PATH_MAX];
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:4289: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[PATH_MAX];
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:4331: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[PATH_MAX];
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:4354:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *cp, errmsg[STRERR_BUFSIZE];
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:4489: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[PATH_MAX];
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:4536: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[PATH_MAX];
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:4574: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[PATH_MAX];
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:4596: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[PATH_MAX];
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:4621: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[PATH_MAX];
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:5121:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char raw_tp_btf[128] = BTF_PREFIX;
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:5505:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char errmsg[STRERR_BUFSIZE];
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:5553:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[STRERR_BUFSIZE];
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:5557: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(file, "r");
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:5608:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char errmsg[STRERR_BUFSIZE];
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:5655:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char errmsg[STRERR_BUFSIZE];
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:5686:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char errmsg[STRERR_BUFSIZE];
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:5717:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[PATH_MAX];
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:5737:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char errmsg[STRERR_BUFSIZE];
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:5768:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char errmsg[STRERR_BUFSIZE];
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:5803:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char errmsg[STRERR_BUFSIZE];
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:5834:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char errmsg[STRERR_BUFSIZE];
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:5896: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(*copy_mem, copy_start, len_first);
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:5897: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(*copy_mem + len_first, base, len_secnd);
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:5993:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[STRERR_BUFSIZE];
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:6081:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[STRERR_BUFSIZE];
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:6201:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char data[0];
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:6530:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:6538: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(fcpu, O_RDONLY);
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf_errno.c:20: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 *libbpf_strerror_table[NR_ERRNO] = {
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf_probes.c:27:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ifname[IF_NAMESIZE], path[64], buf[8];
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf_probes.c:36: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, O_RDONLY);
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf_probes.c:157: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(raw_btf, &hdr, sizeof(hdr));
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf_probes.c:158: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(raw_btf + hdr.hdr_len, raw_types, hdr.type_len);
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf_probes.c:159: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(raw_btf + hdr.hdr_len + hdr.type_len, str_sec, hdr.str_len);
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf_probes.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[4096] = {};
data/knot-3.0.2/src/contrib/libbpf/bpf/netlink.c:81:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[4096];
data/knot-3.0.2/src/contrib/libbpf/bpf/netlink.c:139: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             attrbuf[64];
data/knot-3.0.2/src/contrib/libbpf/bpf/netlink.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((char *)nla_xdp + NLA_HDRLEN, &fd, sizeof(fd));
data/knot-3.0.2/src/contrib/libbpf/bpf/netlink.c:174: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 *)nla_xdp + NLA_HDRLEN, &flags, sizeof(flags));
data/knot-3.0.2/src/contrib/libbpf/bpf/netlink.c:279: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(info, &xdp_id.info, sz);
data/knot-3.0.2/src/contrib/libbpf/bpf/nlattr.c:190:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		errmsg = (char *) libbpf_nla_data(tb[NLMSGERR_ATTR_MSG]);
data/knot-3.0.2/src/contrib/libbpf/bpf/xsk.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 ifname[IFNAMSIZ];
data/knot-3.0.2/src/contrib/libbpf/bpf/xsk.c:324: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(&config, usr_config, sizeof(struct xsk_umem_config_v1));
data/knot-3.0.2/src/contrib/libbpf/bpf/xsk.c:336:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char log_buf[log_buf_size];
data/knot-3.0.2/src/contrib/libbpf/bpf/xsk.c:426: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(ifr.ifr_name, xsk->ifname, IFNAMSIZ - 1);
data/knot-3.0.2/src/contrib/libbpf/bpf/xsk.c:628: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(xsk->ifname, ifname, IFNAMSIZ - 1);
data/knot-3.0.2/src/contrib/libbpf/bpf/xsk.h:168: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.
	return &((char *)umem_area)[addr];
data/knot-3.0.2/src/contrib/libbpf/include/uapi/linux/bpf.h:369: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	build_id[BPF_BUILD_ID_SIZE];
data/knot-3.0.2/src/contrib/libbpf/include/uapi/linux/bpf.h:389: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	map_name[BPF_OBJ_NAME_LEN];
data/knot-3.0.2/src/contrib/libbpf/include/uapi/linux/bpf.h:416: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		prog_name[BPF_OBJ_NAME_LEN];
data/knot-3.0.2/src/contrib/libbpf/include/uapi/linux/bpf.h:3307:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[BPF_OBJ_NAME_LEN];
data/knot-3.0.2/src/contrib/libbpf/include/uapi/linux/bpf.h:3340:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[BPF_OBJ_NAME_LEN];
data/knot-3.0.2/src/contrib/mempattern.c:71: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(p, what,
data/knot-3.0.2/src/contrib/mempattern.c:93:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		return memcpy(mem, s, len);
data/knot-3.0.2/src/contrib/net.c:162:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[SOCKADDR_STRLEN] = { 0 };
data/knot-3.0.2/src/contrib/openbsd/siphash.c:88: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(&ctx->buf[used], ptr, left);
data/knot-3.0.2/src/contrib/openbsd/siphash.c:93: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(&ctx->buf[used], ptr, len);
data/knot-3.0.2/src/contrib/openbsd/siphash.c:106: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(&ctx->buf, ptr, len);
data/knot-3.0.2/src/contrib/qp-trie/trie.c:36: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.
typedef char static_assert_pointer_fits_in_word
data/knot-3.0.2/src/contrib/qp-trie/trie.c:133: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.
typedef char static_assert_fields_fit_in_word
data/knot-3.0.2/src/contrib/qp-trie/trie.c:136: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.
typedef char static_assert_bmp_fits
data/knot-3.0.2/src/contrib/qp-trie/trie.c:170: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(lkey->chars, key, len);
data/knot-3.0.2/src/contrib/qp-trie/trie.c:487: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(wild_key, key, wild_len - 2);
data/knot-3.0.2/src/contrib/qp-trie/trie.c:606: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(st, ns->stack, ns->len * sizeof(node_t *));
data/knot-3.0.2/src/contrib/qp-trie/trie.c:1069: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(it2->stack, it->stack, it->len * sizeof(it->stack[0]));
data/knot-3.0.2/src/contrib/qp-trie/trie.c:1308: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.
	t->p = memcpy(nt, twigs(t), sizeof(node_t) * cc);
data/knot-3.0.2/src/contrib/sockaddr.c:176: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(ss_data, raw_addr, ss_size);
data/knot-3.0.2/src/contrib/sockaddr.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 host[256] = "";
data/knot-3.0.2/src/contrib/string.c:46: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.
	return memcpy(result, data, data_size);
data/knot-3.0.2/src/contrib/string.c:79: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, s1, s1len);
data/knot-3.0.2/src/contrib/string.c:80: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 + s1len, s2, s2len + 1);
data/knot-3.0.2/src/contrib/string.c:103: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(trimmed, scan, len);
data/knot-3.0.2/src/contrib/time.c:331:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 int print_unit(char *dst, size_t dst_len, char *unit_names[unit_count],
data/knot-3.0.2/src/contrib/time.c:331:50:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 int print_unit(char *dst, size_t dst_len, char *unit_names[unit_count],
data/knot-3.0.2/src/contrib/ucw/lists.c:157: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(i, n, itemsz);
data/knot-3.0.2/src/contrib/vpool/vpool.c:91: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(ret, pool->v_buf, pool->v_off);
data/knot-3.0.2/src/contrib/vpool/vpool.c:162: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(ret, data, datsize);
data/knot-3.0.2/src/contrib/wire_ctx.h: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(data, ctx->position, size);
data/knot-3.0.2/src/contrib/wire_ctx.h:276: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(ctx->position, data, size);
data/knot-3.0.2/src/contrib/wire_ctx.h:352: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->position, src->position, size);
data/knot-3.0.2/src/knot/common/log.c:232:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tstr[LOG_BUFLEN] = { 0 };
data/knot-3.0.2/src/knot/common/log.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 buff[LOG_BUFLEN];
data/knot-3.0.2/src/knot/common/log.c:412:31:  [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).
	log->file[log->file_count] = fopen(filename, "a");
data/knot-3.0.2/src/knot/common/process.c:52:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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] = { 0 };
data/knot-3.0.2/src/knot/common/process.c:54: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 *fp = fopen(filename, "r");
data/knot-3.0.2/src/knot/common/process.c:84:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[64];
data/knot-3.0.2/src/knot/common/process.c:93:11:  [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).
	int fd = open(filename, O_RDWR|O_CREAT, S_IRUSR|S_IWUSR|S_IRGRP);
data/knot-3.0.2/src/knot/common/stats.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 date[64] = "";
data/knot-3.0.2/src/knot/common/stats.c:211: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).
		fd = fopen(file_name, "a");
data/knot-3.0.2/src/knot/conf/base.c:529:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[512] = { 0 };
data/knot-3.0.2/src/knot/conf/base.c:942:35:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *fp = (file_name != NULL) ? fopen(file_name, "w") : stdout;
data/knot-3.0.2/src/knot/conf/conf.c:53:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char data_mdb[strlen(db_dir) + 10];
data/knot-3.0.2/src/knot/conf/conf.c:834: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(mod_id->name, val->data, name_len);
data/knot-3.0.2/src/knot/conf/conf.c:845: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(mod_id->data, val->data + name_len, mod_id->len);
data/knot-3.0.2/src/knot/conf/conf.c:998: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(label, zone + prefix_len, 1 + label_len);
data/knot-3.0.2/src/knot/conf/conf.c:1013:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[1024] = "";
data/knot-3.0.2/src/knot/conf/conf.c:1041: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[512] = "";
data/knot-3.0.2/src/knot/conf/conf.h:830:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[32];
data/knot-3.0.2/src/knot/conf/confdb.c:182: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 + NAME_POS, name + 1, name[0]);
data/knot-3.0.2/src/knot/conf/confdb.c:413: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(k + CONF_MIN_KEY_LEN, id, id_len);
data/knot-3.0.2/src/knot/conf/confdb.c:507: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(new_data, d.data, head_len);
data/knot-3.0.2/src/knot/conf/confdb.c:517: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(new_data + new_len, pos, tail_len);
data/knot-3.0.2/src/knot/conf/confdb.c:581: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(k + CONF_MIN_KEY_LEN, id, id_len);
data/knot-3.0.2/src/knot/conf/confdb.c:682: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(k + CONF_MIN_KEY_LEN, id, id_len);
data/knot-3.0.2/src/knot/conf/confdb.c:890:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fp = fopen(file_name, "w");
data/knot-3.0.2/src/knot/conf/confio.c:1013: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(copied_id, tmp_id, io.id_len);
data/knot-3.0.2/src/knot/conf/confio.c:1209: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(copied_id, tmp_id, io.id_len);
data/knot-3.0.2/src/knot/conf/module.c:98:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[1 + YP_MAX_ITEM_NAME_LEN + 1];
data/knot-3.0.2/src/knot/conf/module.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(name + 1, mod->api->name, name_len + 1);
data/knot-3.0.2/src/knot/ctl/commands.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 ttl[16];
data/knot-3.0.2/src/knot/ctl/commands.c:57:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[32];
data/knot-3.0.2/src/knot/ctl/commands.c:58:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char rdata[2 * 65536];
data/knot-3.0.2/src/knot/ctl/commands.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 txt_rr[sizeof(((send_ctx_t *)0)->owner) +
data/knot-3.0.2/src/knot/ctl/commands.c:200:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[128];
data/knot-3.0.2/src/knot/ctl/commands.c:750: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(out + prefix_len, origin, origin_len);
data/knot-3.0.2/src/knot/ctl/commands.c:1225:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char index[128];
data/knot-3.0.2/src/knot/ctl/commands.c:1226:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char value[32];
data/knot-3.0.2/src/knot/ctl/commands.c:1453:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[2048] = "";
data/knot-3.0.2/src/knot/ctl/commands.c:1517: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 value[32];
data/knot-3.0.2/src/knot/ctl/commands.c:1579:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[YP_MAX_TXT_DATA_LEN + 1] = "\0";
data/knot-3.0.2/src/knot/dnssec/kasp/kasp_db.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 tmp[21];
data/knot-3.0.2/src/knot/dnssec/kasp/kasp_db.c:313: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(nsec3salt->data, txn.cur_val.mv_data, txn.cur_val.mv_size);
data/knot-3.0.2/src/knot/dnssec/kasp/kasp_zone.c:244: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(new_keys, zone->keys, zone->num_keys * sizeof(*new_keys));
data/knot-3.0.2/src/knot/dnssec/kasp/kasp_zone.c:246: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(&new_keys[new_num_keys - 1], appkey, sizeof(*appkey));
data/knot-3.0.2/src/knot/dnssec/kasp/kasp_zone.c:434: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(zone->nsec3_salt.data,
data/knot-3.0.2/src/knot/dnssec/key-events.c:742: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 param[32];
data/knot-3.0.2/src/knot/dnssec/nsec-chain.c:61: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(rdata, to_owner, next_owner_size);
data/knot-3.0.2/src/knot/dnssec/nsec-chain.c:215: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(bitmap_write, knot_nsec_bitmap(bnorig.rrs.rdata), b_bitmap_len);
data/knot-3.0.2/src/knot/dnssec/nsec3-chain.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(bnew_hash, a_hash, raw_length);
data/knot-3.0.2/src/knot/dnssec/nsec3-chain.c:549: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(raw_hash, next_hash, raw_length);
data/knot-3.0.2/src/knot/dnssec/rrset-sign.c:255: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(rrsig, header, header_size);
data/knot-3.0.2/src/knot/dnssec/rrset-sign.c:256: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(rrsig + header_size, signature.data, signature.size);
data/knot-3.0.2/src/knot/dnssec/zone-keys.c:398:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char alg_code_str[8] = "";
data/knot-3.0.2/src/knot/dnssec/zone-keys.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 key_info[ctx->zone->num_keys][MAX_KEY_INFO];
data/knot-3.0.2/src/knot/events/handlers/dnssec.c:28:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char time_str[64] = { 0 };
data/knot-3.0.2/src/knot/events/handlers/load.c:264:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char old_serial_str[11] = "none", new_serial_str[15] = "";
data/knot-3.0.2/src/knot/events/handlers/refresh.c:187:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char old_info[32] = "none";
data/knot-3.0.2/src/knot/events/handlers/refresh.c:192:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char master_info[32] = "";
data/knot-3.0.2/src/knot/events/handlers/update.c:97: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(qdata->extra->orig_qname, knot_pkt_qname(pkt), pkt->qname_size);
data/knot-3.0.2/src/knot/journal/journal_metadata.c:31: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(&before, data, data_size);
data/knot-3.0.2/src/knot/journal/journal_metadata.c:47: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, &after, data_size);
data/knot-3.0.2/src/knot/journal/journal_metadata.c:82: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(result, txn->cur_val.mv_data, result_size);
data/knot-3.0.2/src/knot/journal/journal_metadata.c:126: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(val.mv_data, valp, val_size);
data/knot-3.0.2/src/knot/journal/journal_metadata.c:402: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(search.mv_data, found, search.mv_size);
data/knot-3.0.2/src/knot/journal/knot_lmdb.c:86:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char data_mdb[strlen(lmdb_path) + 10];
data/knot-3.0.2/src/knot/journal/knot_lmdb.c:355: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(clone->mv_data, orig->mv_data, clone->mv_size);
data/knot-3.0.2/src/knot/journal/knot_lmdb.c:726: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(tmp, wire.position, tmsize);
data/knot-3.0.2/src/knot/modules/cookies/cookies.c:188: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(params.secret, &current_secret, sizeof(current_secret));
data/knot-3.0.2/src/knot/modules/cookies/cookies.c:189: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(params.secret + sizeof(current_secret), &ctx->secret.constant,
data/knot-3.0.2/src/knot/modules/cookies/cookies.c:260: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(&ctx->secret, conf.single.data, conf.single.data_len);
data/knot-3.0.2/src/knot/modules/geoip/geodb.c:64: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(path->path[len], input, delim - input);
data/knot-3.0.2/src/knot/modules/geoip/geodb.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(geodata[i], input, key_len);
data/knot-3.0.2/src/knot/modules/geoip/geodb.c:94:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				((char *)geodata[i])[key_len] = '\0';
data/knot-3.0.2/src/knot/modules/geoip/geodb.c:171:64:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		mmdb_error = MMDB_aget_value(&res.entry, &entries[i], (const char *const*)paths[i].path);
data/knot-3.0.2/src/knot/modules/geoip/geodb.h:48:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *path[GEODB_MAX_PATH_LEN + 1]; // MMDB_aget_value() requires last member to be NULL.
data/knot-3.0.2/src/knot/modules/rrl/functions.c:171: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(&netblk, &ipv6->sin6_addr, RRL_V6_PREFIX_LEN);
data/knot-3.0.2/src/knot/modules/rrl/functions.c:174: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(&netblk, &ipv4->sin_addr, RRL_V4_PREFIX_LEN);
data/knot-3.0.2/src/knot/modules/rrl/functions.c:176: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 + blklen, &netblk, sizeof(netblk));
data/knot-3.0.2/src/knot/modules/rrl/functions.c:247: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(tbl->arr + *free_id, tbl->arr + new_id, sizeof(rrl_item_t));
data/knot-3.0.2/src/knot/modules/rrl/functions.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 addr_str[SOCKADDR_STRLEN];
data/knot-3.0.2/src/knot/modules/rrl/functions.c:434: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(bucket, &match, sizeof(rrl_item_t));
data/knot-3.0.2/src/knot/modules/rrl/functions.c:440: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(bucket, &match, sizeof(rrl_item_t));
data/knot-3.0.2/src/knot/modules/stats/stats.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 str[32];
data/knot-3.0.2/src/knot/modules/stats/stats.c:296:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/knot-3.0.2/src/knot/modules/stats/stats.c:310:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[16];
data/knot-3.0.2/src/knot/modules/synthrecord/synthrecord.c:293:6:  [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(addr_str + addr_len, &blocks[i], 4);
data/knot-3.0.2/src/knot/modules/synthrecord/synthrecord.c:331: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(addr_str, label + 1 + tpl->prefix_len, addr_len);
data/knot-3.0.2/src/knot/modules/synthrecord/synthrecord.c:462:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_str[SOCKADDR_STRLEN];
data/knot-3.0.2/src/knot/nameserver/chaos.c:49:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char qname[32];
data/knot-3.0.2/src/knot/nameserver/chaos.c:104: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(&rdata[1], response_str, response_len);
data/knot-3.0.2/src/knot/nameserver/internet.c:87: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(cname_rdata, cname, cname_size);
data/knot-3.0.2/src/knot/nameserver/log.h:83: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 address[SOCKADDR_STRLEN] = ""; \
data/knot-3.0.2/src/knot/nameserver/nsec_proofs.c:402: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(wildcard, "\x01""*", 2);
data/knot-3.0.2/src/knot/nameserver/nsec_proofs.c:403: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(wildcard + 2, closest->owner, size);
data/knot-3.0.2/src/knot/nameserver/process_query.c:425: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(qdata->extra->orig_qname, qname, query->qname_size);
data/knot-3.0.2/src/knot/nameserver/process_query.c:653: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_str[SOCKADDR_STRLEN] = { 0 };
data/knot-3.0.2/src/knot/nameserver/process_query.h:105: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(pkt->wire + KNOT_WIRE_HEADER_SIZE,
data/knot-3.0.2/src/knot/nameserver/query_module.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 msg[512];
data/knot-3.0.2/src/knot/nameserver/tsig_ctx.c:78: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(previous_digest, ctx->digest, ctx->digest_size);
data/knot-3.0.2/src/knot/nameserver/tsig_ctx.c:98: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(ctx->digest, knot_tsig_rdata_mac(tsig_rr), ctx->digest_size);
data/knot-3.0.2/src/knot/nameserver/tsig_ctx.c:129: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(write, packet->wire, packet->size);
data/knot-3.0.2/src/knot/query/capture.c:44: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(pkt->wire + KNOT_WIRE_HEADER_SIZE,
data/knot-3.0.2/src/knot/query/requestor.c:134: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(&request->remote, remote, sockaddr_len(remote));
data/knot-3.0.2/src/knot/query/requestor.c:136: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(&request->source, source, sockaddr_len(source));
data/knot-3.0.2/src/knot/server/server.c:256: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(&new_if->addr, addr, sizeof(*addr));
data/knot-3.0.2/src/knot/server/server.c:323: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(&new_if->addr, addr, sizeof(*addr));
data/knot-3.0.2/src/knot/server/server.c:326:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_str[SOCKADDR_STRLEN] = { 0 };
data/knot-3.0.2/src/knot/server/server.c:511: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_str[SOCKADDR_STRLEN] = { 0 };
data/knot-3.0.2/src/knot/server/server.c:522: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(&newlist[real_nifs++], new_if, sizeof(*newlist));
data/knot-3.0.2/src/knot/server/server.c:534: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_str[SOCKADDR_STRLEN] = { 0 };
data/knot-3.0.2/src/knot/server/server.c:543: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(&newlist[real_nifs++], new_if, sizeof(*newlist));
data/knot-3.0.2/src/knot/server/tcp-handler.c:88: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_str[SOCKADDR_STRLEN] = {0};
data/knot-3.0.2/src/knot/server/tcp-handler.c:112: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_str[SOCKADDR_STRLEN] = { 0 };
data/knot-3.0.2/src/knot/server/udp-handler.c:254:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *iobuf[NBUFS];
data/knot-3.0.2/src/knot/server/udp-handler.c:269: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(&rq->mm, &mm, sizeof(knot_mm_t));
data/knot-3.0.2/src/knot/updates/apply.c:52: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(copy, rrs->rdata, rrs->size);
data/knot-3.0.2/src/knot/updates/apply.c:76:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char type[16];
data/knot-3.0.2/src/knot/updates/apply.c:77:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char data[1024];
data/knot-3.0.2/src/knot/updates/zone-update.c:425:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/knot-3.0.2/src/knot/updates/zone-update.c:497: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/knot-3.0.2/src/knot/updates/zone-update.c:870: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 name_str[KNOT_DNAME_TXT_MAXLEN], type_str[16];
data/knot-3.0.2/src/knot/zone/adjust.c:94: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(wildcard, "\x01""*", 2);
data/knot-3.0.2/src/knot/zone/adjust.c:95: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(wildcard + 2, node->owner, wildcard_size - 2);
data/knot-3.0.2/src/knot/zone/adjust.c:218: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(new_addit->glues, mandatory, mandatory_size);
data/knot-3.0.2/src/knot/zone/adjust.c:219: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(new_addit->glues + mandatory_count, others,
data/knot-3.0.2/src/knot/zone/backup.c:50:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char lockfile_name[_backup_dir_len + 22]; \
data/knot-3.0.2/src/knot/zone/backup.c:71: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(ctx->backup_dir, backup_dir, backup_dir_len);
data/knot-3.0.2/src/knot/zone/backup.c:78:19:  [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).
	ctx->lock_file = open(lockfile, O_CREAT|O_EXCL, S_IRUSR|S_IWUSR);
data/knot-3.0.2/src/knot/zone/backup.c:96:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char db_dir[backup_dir_len + 16];
data/knot-3.0.2/src/knot/zone/backup.c:210:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char kasp_dir[strlen(ctx->backup_dir) + 6];
data/knot-3.0.2/src/knot/zone/catalog.c:38: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(sub, "\x07""version", 8);
data/knot-3.0.2/src/knot/zone/catalog.c:39: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(sub + 8, zone->apex->owner, zone_size);
data/knot-3.0.2/src/knot/zone/catalog.c:459: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->member, member, member_size);
data/knot-3.0.2/src/knot/zone/catalog.c:460: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->owner, owner, owner_size);
data/knot-3.0.2/src/knot/zone/catalog.c:513: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(sub, "\x05""zones", 6);
data/knot-3.0.2/src/knot/zone/catalog.c:514: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(sub + 6, zone->apex->owner, zone_size);
data/knot-3.0.2/src/knot/zone/node.c:124: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(ret + 1, ret, sizeof(*ret));
data/knot-3.0.2/src/knot/zone/node.c:172: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(counter, node, sizeof(*counter));
data/knot-3.0.2/src/knot/zone/node.c:190: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(node->rrs, counter->rrs, rrlen);
data/knot-3.0.2/src/knot/zone/semantic-check.c:32: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 *error_messages[SEM_ERR_UNKNOWN + 1] = {
data/knot-3.0.2/src/knot/zone/semantic-check.c:261:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char info_str[50] = "";
data/knot-3.0.2/src/knot/zone/semantic-check.c:262:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char type_str[16] = "";
data/knot-3.0.2/src/knot/zone/semantic-check.c:388:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char info_str[50] = "";
data/knot-3.0.2/src/knot/zone/semantic-check.c:389:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char type_str[16] = "";
data/knot-3.0.2/src/knot/zone/semantic-check.c:625: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 info[100] = "";
data/knot-3.0.2/src/knot/zone/semantic-check.c:772: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[50 + KNOT_DNAME_TXT_MAXLEN];
data/knot-3.0.2/src/knot/zone/semantic-check.c:927:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[50 + KNOT_DNAME_TXT_MAXLEN];
data/knot-3.0.2/src/knot/zone/zone-dump.c:214: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 date[64];
data/knot-3.0.2/src/knot/zone/zone.c:450:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_str[SOCKADDR_STRLEN] = { 0 };
data/knot-3.0.2/src/knot/zone/zone.c:476: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_str[SOCKADDR_STRLEN] = { 0 };
data/knot-3.0.2/src/knot/zone/zone.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 target[target_length];
data/knot-3.0.2/src/knot/zone/zonefile.c:67: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/knot-3.0.2/src/libdnssec/keystore/internal.h:32: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).
	int (*open)(void *ctx, const char *config);
data/knot-3.0.2/src/libdnssec/keystore/keystore.c:90:27:  [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).
	return store->functions->open(store->ctx, config);
data/knot-3.0.2/src/libdnssec/keystore/pkcs8.c:94:11:  [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).
	int fd = open(filename, flags, mode);
data/knot-3.0.2/src/libdnssec/p11/p11.c:29:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char *pkcs11_modules[PKCS11_MODULES_MAX] = { 0 };
data/knot-3.0.2/src/libdnssec/shared/keyid_gnutls.c:57: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(id->data, buffer, size);
data/knot-3.0.2/src/libknot/control/control.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 addr_str[SOCKADDR_STRLEN] = { 0 };
data/knot-3.0.2/src/libknot/cookies.c:46: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(out->data, &hash, sizeof(hash));
data/knot-3.0.2/src/libknot/cookies.c:101: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(out->data + out->len, &hash, sizeof(hash));
data/knot-3.0.2/src/libknot/cookies.c:124: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(&out->data[out->len], &now, sizeof(now));
data/knot-3.0.2/src/libknot/cookies.c:151: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(ref.data, sc->data, fixed_len);
data/knot-3.0.2/src/libknot/dname.c:151: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, name, len);
data/knot-3.0.2/src/libknot/dname.c:168: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, name, len);
data/knot-3.0.2/src/libknot/dname.c:184: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, len);
data/knot-3.0.2/src/libknot/dname.c:207: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(dst + len, src, lblen);
data/knot-3.0.2/src/libknot/dname.c:596: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(dst, name, *name + 1);
data/knot-3.0.2/src/libknot/dname.c:604: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(dst, suffix, *suffix + 1);
data/knot-3.0.2/src/libknot/dname.c:752: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(&storage[idx], src, len);
data/knot-3.0.2/src/libknot/dname.h:42: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.
typedef char knot_dname_txt_storage_t[KNOT_DNAME_TXT_MAXLEN + 1];
data/knot-3.0.2/src/libknot/packet/pkt.c:161: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(rr_info, pkt->rr_info, pkt->rrset_allocd * sizeof(knot_rrinfo_t));
data/knot-3.0.2/src/libknot/packet/pkt.c:162: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(rr, pkt->rr, pkt->rrset_allocd * sizeof(knot_rrset_t));
data/knot-3.0.2/src/libknot/packet/pkt.c:189: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(&pkt->mm, mm, sizeof(knot_mm_t));
data/knot-3.0.2/src/libknot/packet/pkt.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(dst->wire + dst->size, src->tsig_wire.pos,
data/knot-3.0.2/src/libknot/packet/pkt.c:276: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->wire, src->wire, src->size);
data/knot-3.0.2/src/libknot/packet/pkt.c:334: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(pkt->wire, query->wire, base_size);
data/knot-3.0.2/src/libknot/packet/pkt.c:515: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(pkt->rr + pkt->rrset_count, rr, sizeof(knot_rrset_t));
data/knot-3.0.2/src/libknot/packet/rrset-wire.c:131: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, size);
data/knot-3.0.2/src/libknot/packet/rrset-wire.c:165: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((dst) + (written), (label), (len)); \
data/knot-3.0.2/src/libknot/packet/rrset-wire.c:542: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(owner, buff, decompr_size);
data/knot-3.0.2/src/libknot/rdata.h:58: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(rdata->data, data, len);
data/knot-3.0.2/src/libknot/rdataset.c:153: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(dst->rdata, src->rdata, src->size);
data/knot-3.0.2/src/libknot/rrset-dump.c:57:34:  [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 FILL_IN_INPUT(pdata) if (memcpy(&(pdata), p->in, in_len) == NULL) { p->ret = -1; return; }
data/knot-3.0.2/src/libknot/rrset-dump.c:102:6:  [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 (memcpy(p->out, str, in_len + 1) == NULL) {
data/knot-3.0.2/src/libknot/rrset-dump.c:272:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char     type[32];
data/knot-3.0.2/src/libknot/rrset-dump.c:407: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(p->out, buf + src_begin, src_len);
data/knot-3.0.2/src/libknot/rrset-dump.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(p->out, omit_message, omlen);
data/knot-3.0.2/src/libknot/rrset-dump.c:764:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[32];
data/knot-3.0.2/src/libknot/rrset-dump.c:899:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		if (memcpy(&(addr4.s_addr), p->in, afdlen) == NULL) {
data/knot-3.0.2/src/libknot/rrset-dump.c:920:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		if (memcpy(&(addr6.s6_addr), p->in, afdlen) == NULL) {
data/knot-3.0.2/src/libknot/rrset-dump.c:1228: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(&exp, key + 1, sizeof(uint16_t));
data/knot-3.0.2/src/libknot/rrset-dump.c:1299:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char          alg_info[512] = "";
data/knot-3.0.2/src/libknot/rrset-dump.c:1312: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 oid_str[sizeof(alg_info) - 3];
data/knot-3.0.2/src/libknot/rrset-dump.c:1471: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 info[512] = "";
data/knot-3.0.2/src/libknot/rrset-dump.c:1965:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/knot-3.0.2/src/libknot/rrtype/opt.c:211: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(wire, data, size);
data/knot-3.0.2/src/libknot/rrtype/opt.c:673: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(cc->data, option, KNOT_EDNS_COOKIE_CLNT_SIZE);
data/knot-3.0.2/src/libknot/rrtype/opt.c:680: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(sc->data, option + KNOT_EDNS_COOKIE_CLNT_SIZE, sc_len);
data/knot-3.0.2/src/libknot/rrtype/tsig.c:200: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(rd, mac, length);
data/knot-3.0.2/src/libknot/rrtype/tsig.c:234: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(rd + sizeof(uint16_t), other_data, len);
data/knot-3.0.2/src/libknot/tsig-op.c:201: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(wire + offset, other_data, other_data_length);
data/knot-3.0.2/src/libknot/tsig-op.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(pos, request_mac, request_mac_len);
data/knot-3.0.2/src/libknot/tsig-op.c:256: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(pos, msg, msg_len);
data/knot-3.0.2/src/libknot/tsig-op.c:305: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(wire + 2, prev_mac, prev_mac_len);
data/knot-3.0.2/src/libknot/tsig-op.c:307: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(wire + prev_mac_len + 2, msg, msg_len);
data/knot-3.0.2/src/libknot/tsig-op.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(digest, digest_tmp, digest_tmp_len);
data/knot-3.0.2/src/libknot/tsig-op.c:456: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(wire + 2, prev_digest, prev_digest_len);
data/knot-3.0.2/src/libknot/tsig-op.c:458: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(wire + prev_digest_len + 2, to_sign, to_sign_len);
data/knot-3.0.2/src/libknot/tsig-op.c:501: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(digest, digest_tmp, digest_tmp_len);
data/knot-3.0.2/src/libknot/tsig-op.c:539: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(wire_to_sign, wire, size);
data/knot-3.0.2/src/libknot/tsig.c:140:15:  [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 *file = fopen(filename, "r");
data/knot-3.0.2/src/libknot/wire.h:75: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((uint8_t *)&input + 1, pos, 6);
data/knot-3.0.2/src/libknot/wire.h:106: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(pos, &beval, sizeof(beval));
data/knot-3.0.2/src/libknot/wire.h:121: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(pos, &beval, sizeof(beval));
data/knot-3.0.2/src/libknot/wire.h:136: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(pos, (uint8_t *)&swapped + 1, 6);
data/knot-3.0.2/src/libknot/wire.h:151: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(pos, &beval, sizeof(beval));
data/knot-3.0.2/src/libknot/xdp/bpf-kernel.c:51: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 whatever[7];
data/knot-3.0.2/src/libknot/xdp/xdp.c:327: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(out->eth_from, in_reply_to->eth_to, ETH_ALEN);
data/knot-3.0.2/src/libknot/xdp/xdp.c:328: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(out->eth_to, in_reply_to->eth_from, ETH_ALEN);
data/knot-3.0.2/src/libknot/xdp/xdp.c:426: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(&h->ipv4.saddr, &src_v4->sin_addr, sizeof(src_v4->sin_addr));
data/knot-3.0.2/src/libknot/xdp/xdp.c:427: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(&h->ipv4.daddr, &dst_v4->sin_addr, sizeof(dst_v4->sin_addr));
data/knot-3.0.2/src/libknot/xdp/xdp.c:460: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(&h->ipv6.saddr, &src_v6->sin6_addr, sizeof(src_v6->sin6_addr));
data/knot-3.0.2/src/libknot/xdp/xdp.c:461: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(&h->ipv6.daddr, &dst_v6->sin6_addr, sizeof(dst_v6->sin6_addr));
data/knot-3.0.2/src/libknot/yparser/yparser.c:99: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).
	parser->file.descriptor = open(file_name, O_RDONLY);
data/knot-3.0.2/src/libknot/yparser/yparser.h:80:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[YP_MAX_TXT_KEY_LEN];
data/knot-3.0.2/src/libknot/yparser/yparser.h:84:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char data[YP_MAX_TXT_DATA_LEN];
data/knot-3.0.2/src/libknot/yparser/ypschema.c:115: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((void *)dst->var.g.sub_items, src->var.g.sub_items, memsize);
data/knot-3.0.2/src/libknot/yparser/ypschema.c:140: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((void *)dst->name, src->name, src->name[0] + 2);
data/knot-3.0.2/src/libknot/yparser/yptrafo.c:215:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32];
data/knot-3.0.2/src/libknot/yparser/yptrafo.c:319:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char unit[2] = { '\0' };
data/knot-3.0.2/src/libknot/yparser/yptrafo.c:371:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[INET6_ADDRSTRLEN];
data/knot-3.0.2/src/libzscanner/scanner.h: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     include_filename[ZS_MAX_RDATA_LENGTH];
data/knot-3.0.2/src/utils/common/exec.c:53:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char flags[64] = "";
data/knot-3.0.2/src/utils/common/exec.c:54:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char unknown_rcode[64] = "";
data/knot-3.0.2/src/utils/common/exec.c:55:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char unknown_opcode[64] = "";
data/knot-3.0.2/src/utils/common/exec.c:146:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[64];
data/knot-3.0.2/src/utils/common/exec.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 addr_str[SOCKADDR_STRLEN] = { 0 };
data/knot-3.0.2/src/utils/common/exec.c:264:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char unknown_ercode[64] = "";
data/knot-3.0.2/src/utils/common/exec.c:439: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[32] = "NULL";
data/knot-3.0.2/src/utils/common/exec.c:490:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[32] = "Unknown";
data/knot-3.0.2/src/utils/common/exec.c:538:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char xfr[16] = "AXFR";
data/knot-3.0.2/src/utils/common/https.c:167: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(ctx->recv_buf, data, len);
data/knot-3.0.2/src/utils/common/https.c:412:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dns_query[dns_query_len];
data/knot-3.0.2/src/utils/common/https.c:452: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, buffer->buf, sent);
data/knot-3.0.2/src/utils/common/https.c:465:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char content_length[sizeof(size_t) * 3 + 1]; // limit for x->inf: log10(2^(8*sizeof(x))-1)/sizeof(x) = 2,408239965 -> 3
data/knot-3.0.2/src/utils/common/https.c:466:27:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	int content_length_len = sprintf(content_length, "%zu", ctx->send_buflen);
data/knot-3.0.2/src/utils/common/lookup.c:101: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, key, key_len);
data/knot-3.0.2/src/utils/common/netio.c:152:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_str[SOCKADDR_STRLEN] = {0};
data/knot-3.0.2/src/utils/common/params.c:151:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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] = "\0";
data/knot-3.0.2/src/utils/common/resolv.c:115:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[512];
data/knot-3.0.2/src/utils/common/resolv.c:118: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(RESOLV_FILE, "r");
data/knot-3.0.2/src/utils/common/tls.c:104: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(pin, src_pin, 1 + src_pin[0]);
data/knot-3.0.2/src/utils/kdig/kdig_params.c:699: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(&item[1], pin, ret);
data/knot-3.0.2/src/utils/kdig/kdig_params.c:968: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(q->cc.data, input, q->cc.len);
data/knot-3.0.2/src/utils/kdig/kdig_params.c:983: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(q->sc.data, input + q->cc.len, q->sc.len);
data/knot-3.0.2/src/utils/kdig/kdig_params.c:1106: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(&ss, ai->ai_addr, ai->ai_addrlen);
data/knot-3.0.2/src/utils/keymgr/bind_privkey.c:205:32:  [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).
	_cleanup_fclose_ FILE *file = fopen(filename, "r");
data/knot-3.0.2/src/utils/keymgr/functions.c:119:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *algnames[256] = { 0 };
data/knot-3.0.2/src/utils/keymgr/functions.c:471: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).
		int fd = open(param, O_RDONLY, 0);
data/knot-3.0.2/src/utils/keymgr/functions.c:829: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 buff[100];
data/knot-3.0.2/src/utils/keymgr/offline_ksk.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 date[64] = { 0 };
data/knot-3.0.2/src/utils/keymgr/offline_ksk.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[64] = { 0 };
data/knot-3.0.2/src/utils/kjournalprint/main.c:126:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char temp[100];
data/knot-3.0.2/src/utils/knotc/commands.c:711:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char filter_buff[MAX_FILTERS + 1] = { 0 };
data/knot-3.0.2/src/utils/knotc/commands.c:719: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 filter_id[2] = { get_filter(args->desc->cmd, args->argv[i])->id, 0 };
data/knot-3.0.2/src/utils/knotc/commands.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 rdata[65536]; // Maximum item size in libknot control interface.
data/knot-3.0.2/src/utils/knotc/commands.h:46:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char flags[4];
data/knot-3.0.2/src/utils/knotd/main.c:98: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).
		int fd = open("/dev/null", O_RDWR);
data/knot-3.0.2/src/utils/knsupdate/knsupdate_exec.c:169: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 cls_s[16] = "";
data/knot-3.0.2/src/utils/knsupdate/knsupdate_exec.c:183: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(owner_str, lp, len);
data/knot-3.0.2/src/utils/knsupdate/knsupdate_exec.c:199: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->r_owner, owner, s->r_owner_length);
data/knot-3.0.2/src/utils/knsupdate/knsupdate_exec.c:205: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(s->r_owner + s->r_owner_length, s->zone_origin,
data/knot-3.0.2/src/utils/knsupdate/knsupdate_exec.c:585: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 *fp = fopen(filename, "r");
data/knot-3.0.2/src/utils/knsupdate/knsupdate_params.c:70:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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]; /* Must suffice for domain name and TTL. */
data/knot-3.0.2/src/utils/kxdpgun/load_queries.c:51: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(filename, "r");
data/knot-3.0.2/src/utils/kxdpgun/load_queries.c:59: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 line[KNOT_DNAME_TXT_MAXLEN + 256];
data/knot-3.0.2/src/utils/kxdpgun/load_queries.c:60: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 dname_txt[KNOT_DNAME_TXT_MAXLEN + 1];
data/knot-3.0.2/src/utils/kxdpgun/load_queries.c:62: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_txt[128];
data/knot-3.0.2/src/utils/kxdpgun/load_queries.c:63: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 flags_txt[128];
data/knot-3.0.2/src/utils/kxdpgun/load_queries.c:124: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(pkt->payload + 12, bufs->dname, dname_len);
data/knot-3.0.2/src/utils/kxdpgun/main.c:63:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		dev[IFNAMSIZ];
data/knot-3.0.2/src/utils/kxdpgun/main.c:161: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(pkts[i].eth_from, ctx->local_mac, 6);
data/knot-3.0.2/src/utils/kxdpgun/main.c:162: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(pkts[i].eth_to, ctx->target_mac, 6);
data/knot-3.0.2/src/utils/kxdpgun/main.c:164: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(pkts[i].payload.iov_base, (*payl)->payload, (*payl)->len);
data/knot-3.0.2/src/utils/kxdpgun/main.c:307: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(mac, ifr.ifr_hwaddr.sa_data, 6);
data/knot-3.0.2/src/utils/kxdpgun/main.c:327: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(&sin6->sin6_addr, ip, sizeof(struct in6_addr));
data/knot-3.0.2/src/utils/kxdpgun/main.c:330: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(&sin->sin_addr, ip, sizeof(struct in_addr));
data/knot-3.0.2/src/utils/kxdpgun/main.c:367:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *args[5] = { "ip", arg1, arg2, arg3, NULL };
data/knot-3.0.2/src/utils/kxdpgun/main.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[256] = { 0 };
data/knot-3.0.2/src/utils/kxdpgun/main.c:404:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line_buf[1024] = { 0 };
data/knot-3.0.2/src/utils/kxdpgun/main.c:407: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 fields[5][strlen(line_buf) + 1];
data/knot-3.0.2/src/utils/kxdpgun/main.c:466: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).
	if (at != NULL && (val = atoi(at + 1)) > 0 && val <= 0xffff) {
data/knot-3.0.2/src/utils/kxdpgun/main.c:489:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dev1[IFNAMSIZ], dev2[IFNAMSIZ];
data/knot-3.0.2/src/utils/kxdpgun/main.c:499:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if 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 (at != NULL && (val = atoi(at + 1)) > 0 && val <= ctx->local_ip_range) {
data/knot-3.0.2/src/utils/kxdpgun/main.c:597: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).
			arg = atoi(optarg);
data/knot-3.0.2/src/utils/kxdpgun/main.c:605: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).
			arg = atoi(optarg);
data/knot-3.0.2/src/utils/kxdpgun/main.c:616: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).
			arg = atoi(optarg);
data/knot-3.0.2/src/utils/kxdpgun/main.c:624:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			if ((arg = atoi(optarg)) > 0) {
data/knot-3.0.2/src/utils/kxdpgun/main.c:628: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).
			if (argcp != NULL && (arg = atoi(argcp + 1)) > 0) {
data/knot-3.0.2/src/utils/kzonesign/main.c:103:16:  [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).
			timestamp = atol(optarg);
data/knot-3.0.2/tests-fuzz/fuzz_dname_from_str.c:29: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(txt, data, size);
data/knot-3.0.2/tests-fuzz/fuzz_packet.c:24: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(copy, data, size);
data/knot-3.0.2/tests-fuzz/main.c:51: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 fname[strlen(dirname) + strlen(dp->d_name) + 2];
data/knot-3.0.2/tests-fuzz/main.c:58:13:  [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(fname, O_RDONLY)) == -1) {
data/knot-3.0.2/tests-fuzz/main.c:99:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char corporadir[sizeof(SRCDIR) + 1 + strlen(target) + 8];
data/knot-3.0.2/tests-fuzz/main.c:126: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[64 * 1024];
data/knot-3.0.2/tests/contrib/test_heap.c:31: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("/dev/urandom", "r");
data/knot-3.0.2/tests/contrib/test_net_shortwrite.c:41: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(&addr, res->ai_addr, res->ai_addrlen);
data/knot-3.0.2/tests/contrib/test_qp-cow.c:173:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			keylen = (unsigned)atoi(optarg);
data/knot-3.0.2/tests/contrib/test_qp-cow.c:176:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			leaves = (unsigned)atoi(optarg);
data/knot-3.0.2/tests/contrib/test_qp-cow.c:179: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).
			mutations = atoi(optarg);
data/knot-3.0.2/tests/contrib/test_qp-cow.c:182: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).
			transactions = atoi(optarg);
data/knot-3.0.2/tests/contrib/test_qp-trie.c:52: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 key_buf[KEY_MAXLEN];
data/knot-3.0.2/tests/contrib/test_qp-trie.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(key_buf, key, key_len);
data/knot-3.0.2/tests/contrib/test_qp-trie.c:254:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_buf[KEY_MAXLEN] = {'\0'};
data/knot-3.0.2/tests/contrib/test_qp-trie.c:267: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_buf, cur_key, cur_key_len);
data/knot-3.0.2/tests/contrib/test_siphash.c:114: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.k0, "\x00\x01\x02\x03\x04\x05\x06\x07", sizeof(uint64_t));
data/knot-3.0.2/tests/contrib/test_siphash.c:115: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.k1, "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", sizeof(uint64_t));
data/knot-3.0.2/tests/contrib/test_time.c:160:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buff[100];
data/knot-3.0.2/tests/knot/test_conf_tools.c:31:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char t[64];
data/knot-3.0.2/tests/knot/test_confdb.c:48: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 + 2, name + 1, name[0]);
data/knot-3.0.2/tests/knot/test_confdb.c:141: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(k + 2, id, id_len);
data/knot-3.0.2/tests/knot/test_confdb.c:303: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(k + 2, id, id_len);
data/knot-3.0.2/tests/knot/test_confio.c:68:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[YP_MAX_TXT_DATA_LEN + 1] = "\0";
data/knot-3.0.2/tests/knot/test_confio.c:85:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[YP_MAX_TXT_DATA_LEN + 1] = "\0";
data/knot-3.0.2/tests/knot/test_confio.c:213: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 idx[2] = { '0' };
data/knot-3.0.2/tests/knot/test_confio.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 idx[2] = { '0' + i };
data/knot-3.0.2/tests/knot/test_confio.c:227: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 idx[2] = { '0' + i };
data/knot-3.0.2/tests/knot/test_confio.c:270: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 idx[2] = { '0' };
data/knot-3.0.2/tests/knot/test_confio.c:277:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char idx[2] = { '0' + i };
data/knot-3.0.2/tests/knot/test_confio.c:284: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 idx[2] = { '0' + i };
data/knot-3.0.2/tests/knot/test_confio.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 idx[2] = { '0' + CONF_MAX_TXN_DEPTH - 1 };
data/knot-3.0.2/tests/knot/test_confio.c:648:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[OUT_LEN];
data/knot-3.0.2/tests/knot/test_confio.c:776:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[OUT_LEN];
data/knot-3.0.2/tests/knot/test_confio.c:873:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[OUT_LEN];
data/knot-3.0.2/tests/knot/test_journal.c:49:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char conf_str[512];
data/knot-3.0.2/tests/knot/test_journal.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 owner[RAND_RR_LABEL + knot_dname_size(apex)];
data/knot-3.0.2/tests/knot/test_journal.c:99: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(owner + RAND_RR_LABEL, apex, knot_dname_size(apex));
data/knot-3.0.2/tests/knot/test_journal.c:479: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(out + 1, prefix, prefix_len);
data/knot-3.0.2/tests/knot/test_journal.c:480: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(out + 1 + prefix_len, apex, apex_len);
data/knot-3.0.2/tests/knot/test_node.c:28: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(wire, "testtest", strlen("testtest"));
data/knot-3.0.2/tests/knot/test_process_query.c:76: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, src_len); \
data/knot-3.0.2/tests/knot/test_zone-tree.c:37: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(ORDER, order, NCOUNT * sizeof(knot_dname_t*));
data/knot-3.0.2/tests/knot/test_zone-update.c:296:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char conf_str[512];
data/knot-3.0.2/tests/knot/test_zone_serial.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 str[32];
data/knot-3.0.2/tests/knot/test_zonedb.c:25: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 *zone_list[ZONE_COUNT] = {
data/knot-3.0.2/tests/libdnssec/test_keystore_pkcs11.c:186:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char config[4096] = { 0 };
data/knot-3.0.2/tests/libdnssec/test_keystore_pkcs11.c:192:15:  [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 *file = fopen(config, "w");
data/knot-3.0.2/tests/libdnssec/test_keystore_pkcs11.c:384:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char config[4096] = { 0 };
data/knot-3.0.2/tests/libdnssec/test_nsec_bitmap.c:83:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char rrtype_str[50];
data/knot-3.0.2/tests/libknot/test_cookies.c:144:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(sc.data, sc_reserverd, strlen(sc_reserverd));
data/knot-3.0.2/tests/libknot/test_db.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 first_key[KEY_MAXLEN] = { '\0' };
data/knot-3.0.2/tests/libknot/test_db.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 second_key[KEY_MAXLEN] = { '\0' };
data/knot-3.0.2/tests/libknot/test_db.c:132:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char last_key[KEY_MAXLEN] = { '\0' };
data/knot-3.0.2/tests/libknot/test_db.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 key_buf[KEY_MAXLEN] = {'\0'};
data/knot-3.0.2/tests/libknot/test_db.c:146: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(second_key, key.data, key.len);
data/knot-3.0.2/tests/libknot/test_db.c:149: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(first_key, key.data, key.len);
data/knot-3.0.2/tests/libknot/test_db.c:152: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_buf, key.data, key.len);
data/knot-3.0.2/tests/libknot/test_descriptor.c:31:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char     name[BUF_LEN] = "";
data/knot-3.0.2/tests/libknot/test_dname.c:333:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_small[2];
data/knot-3.0.2/tests/libknot/test_dname.c:415: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(in + 1, &i, sizeof(i));
data/knot-3.0.2/tests/libknot/test_dname.c:417: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 tmp[j];
data/knot-3.0.2/tests/libknot/test_edns_ecs.c:164: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(&sa, info->ai_addr, info->ai_addrlen);
data/knot-3.0.2/tests/libknot/test_pkt.c:26:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *g_names[NAMECOUNT] = {
data/knot-3.0.2/tests/libknot/test_pkt.c:32:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *g_rdata[DATACOUNT] = {
data/knot-3.0.2/tests/libknot/test_rdata.c:52: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(greater->data, lower->data, data_size);
data/knot-3.0.2/tests/libknot/test_tsig.c:73:11:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	int fd = mkstemp(filename);
data/knot-3.0.2/tests/libknot/test_yptrafo.c:32:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[64];
data/knot-3.0.2/tests/libknot/test_yptrafo.c:65:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[64];
data/knot-3.0.2/tests/libknot/test_yptrafo.c:97:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char t[64];
data/knot-3.0.2/tests/libknot/test_yptrafo.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 t[64];
data/knot-3.0.2/tests/libknot/test_yptrafo.c:151:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[64];
data/knot-3.0.2/tests/libknot/test_yptrafo.c:185:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[64];
data/knot-3.0.2/tests/libknot/test_yptrafo.c:216:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[64];
data/knot-3.0.2/tests/libknot/test_yptrafo.c:236:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char t[64];
data/knot-3.0.2/tests/libknot/test_yptrafo.c:272:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char t[64];
data/knot-3.0.2/tests/libknot/test_yptrafo.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 t[64];
data/knot-3.0.2/tests/libzscanner/processing.c:66:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char rclass[32];
data/knot-3.0.2/tests/libzscanner/processing.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 rtype[32];
data/knot-3.0.2/tests/libzscanner/zscanner-tool.c:158: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).
			mode = atoi(optarg);
data/knot-3.0.2/tests/modules/test_rrl.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(&addr, d->addr, sizeof(struct sockaddr_storage));
data/knot-3.0.2/tests/modules/test_rrl.c:115: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(rbuf, query->wire, query->size);
data/knot-3.0.2/tests/tap/basic.c:491: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(p, s, len);
data/knot-3.0.2/tests/tap/basic.c:514: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(copy, s, length);
data/knot-3.0.2/tests/tap/files.c:31:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[4096] = { 0 };
data/knot-3.0.2/tests/tap/files.c:43:13:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
		int ret = mkstemp(tmp);
data/knot-3.0.2/tests/tap/runtests.c:341: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(p, s, len);
data/knot-3.0.2/tests/tap/runtests.c:408:17:  [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).
        errfd = open("/dev/null", O_WRONLY);
data/knot-3.0.2/tests/tap/runtests.c:867: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 buffer[BUFSIZ];
data/knot-3.0.2/tests/tap/runtests.c:1001: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.
    const char *bases[3], *suffix, *base;
data/knot-3.0.2/tests/tap/runtests.c:1003: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.
    const char *suffixes[3] = { "-t", ".t", "" };
data/knot-3.0.2/tests/tap/runtests.c:1044: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 buffer[BUFSIZ];
data/knot-3.0.2/tests/tap/runtests.c:1057: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 = fopen(filename, "r");
data/knot-3.0.2/tests/tap/runtests.c:1184:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        logfile = fopen(logfile_name, "w+");
data/knot-3.0.2/src/contrib/dnstap/reader.c:46: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(DNSTAP_CONTENT_TYPE));
data/knot-3.0.2/src/contrib/dnstap/writer.c:41: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).
		writer->len_version = strlen(version);
data/knot-3.0.2/src/contrib/dnstap/writer.c:54: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(DNSTAP_CONTENT_TYPE));
data/knot-3.0.2/src/contrib/libbpf/bpf/bpf.c:92: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).
		       min(strlen(create_attr->name), BPF_OBJ_NAME_LEN - 1));
data/knot-3.0.2/src/contrib/libbpf/bpf/bpf.c:169: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).
		       min(strlen(name), BPF_OBJ_NAME_LEN - 1));
data/knot-3.0.2/src/contrib/libbpf/bpf/bpf.c:260: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).
		       min(strlen(load_attr->name), BPF_OBJ_NAME_LEN - 1));
data/knot-3.0.2/src/contrib/libbpf/bpf/btf.c:1664: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).
		p += strlen(p) + 1;
data/knot-3.0.2/src/contrib/libbpf/bpf/btf.c:1711: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).
			__u32 len = strlen(strs.ptrs[grp_idx].str);
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:519: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).
	obj = calloc(1, sizeof(struct bpf_object) + strlen(path) + 1);
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:527:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(obj->name, obj_name, sizeof(obj->name) - 1);
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:531:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(obj->name, basename((void *)path),
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:2685: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 n = strlen(name);
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:5079: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(buf) + strlen(section_names[i].sec) + 2 > len) {
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:5079: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).
		if (strlen(buf) + strlen(section_names[i].sec) + 2 > len) {
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:5083:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
		strcat(buf, " ");
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:5134:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(dst, name, sizeof(raw_tp_btf) - sizeof(BTF_PREFIX));
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf.c:6544:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	len = read(fd, buf, sizeof(buf));
data/knot-3.0.2/src/contrib/libbpf/bpf/libbpf_probes.c:40:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	len = read(fd, buf, sizeof(buf));
data/knot-3.0.2/src/contrib/mempattern.c:88: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(s) + 1;
data/knot-3.0.2/src/contrib/openbsd/strlcat.c:37: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/knot-3.0.2/src/contrib/sockaddr.c:210: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).
	int written = strlen(buf);
data/knot-3.0.2/src/contrib/string.c:70: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 s1len = strlen(s1);
data/knot-3.0.2/src/contrib/string.c:71: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 s2len = strlen(s2);
data/knot-3.0.2/src/contrib/string.c:93: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(scan);
data/knot-3.0.2/src/contrib/string.c:125:3:  [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 |= ((uint8_t *)s1)[i] ^ ((uint8_t *)s2)[i];
data/knot-3.0.2/src/contrib/string.c:128:9:  [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.
	return equal;
data/knot-3.0.2/src/contrib/string.c:203: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).
	size_t hex_len = strlen(hex);
data/knot-3.0.2/src/knot/common/log.c:319: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).
		zone_len = strlen(zone);
data/knot-3.0.2/src/knot/conf/base.c:504: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).
	    strncmp(parser->key, KNOTD_MOD_NAME_PREFIX, strlen(KNOTD_MOD_NAME_PREFIX)) == 0) {
data/knot-3.0.2/src/knot/conf/base.c:640: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).
		ret = yp_set_input_string(parser, input, strlen(input));
data/knot-3.0.2/src/knot/conf/base.c:951: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).
	const size_t mod_prefix_len = strlen(mod_prefix);
data/knot-3.0.2/src/knot/conf/conf.c:53: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).
	char data_mdb[strlen(db_dir) + 10];
data/knot-3.0.2/src/knot/conf/conf.c:928: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).
	size_t zone_len = strlen(buff);
data/knot-3.0.2/src/knot/conf/conf.c:1012: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).
	const char *end = name + strlen(name);
data/knot-3.0.2/src/knot/conf/confio.c:526: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).
	} else if (key1 != NULL && strlen(key1) != 0) {
data/knot-3.0.2/src/knot/conf/confio.c:725: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).
	} else if (key1 != NULL && strlen(key1) != 0) {
data/knot-3.0.2/src/knot/conf/module.c:94: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).
	const size_t name_len = strlen(mod->api->name);
data/knot-3.0.2/src/knot/conf/module.c:147: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(MODULE_DIR) > 0) {
data/knot-3.0.2/src/knot/conf/module.c:208: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).
		                         mod_name + strlen(KNOTD_MOD_NAME_PREFIX),
data/knot-3.0.2/src/knot/conf/module.c:250: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).
	module_t *found = conf_mod_find(conf, api->name, strlen(api->name), temporary);
data/knot-3.0.2/src/knot/conf/tools.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).
	const size_t len = strlen(KNOTD_MOD_NAME_PREFIX);
data/knot-3.0.2/src/knot/ctl/commands.c:723: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).
	size_t owner_len = strlen(owner);
data/knot-3.0.2/src/knot/ctl/commands.c:1113: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).
	bool only_orphan = (strlen(args->data[KNOT_CTL_IDX_FILTER]) == 1);
data/knot-3.0.2/src/knot/ctl/commands.c:1449: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).
	if (type == NULL || strlen(type) == 0) {
data/knot-3.0.2/src/knot/ctl/commands.c:1554: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).
	if (section == NULL || strncasecmp(section, "mod-", strlen("mod-")) == 0) {
data/knot-3.0.2/src/knot/dnssec/nsec-chain.c:167: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) {
data/knot-3.0.2/src/knot/dnssec/zone-nsec.c:190:9:  [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.
	return equal;
data/knot-3.0.2/src/knot/journal/journal_read.c:164:41:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
int journal_read_rrsets(journal_read_t *read, journal_read_cb_t cb, void *ctx)
data/knot-3.0.2/src/knot/journal/journal_read.c:169:47:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while (ret == KNOT_EOK && journal_read_rrset(read, &rr, true)) {
data/knot-3.0.2/src/knot/journal/journal_read.c:176:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = journal_read_get_error(read, ret);
data/knot-3.0.2/src/knot/journal/journal_read.c:177:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	journal_read_end(read);
data/knot-3.0.2/src/knot/journal/journal_read.c:280:41:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = journal_read_begin(j, true, 0, &read);
data/knot-3.0.2/src/knot/journal/journal_read.c:283:57:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = journal_read_begin(j, false, md.merged_serial, &read);
data/knot-3.0.2/src/knot/journal/journal_read.c:285:49:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (ret == KNOT_EOK && journal_read_changeset(read, &ch)) {
data/knot-3.0.2/src/knot/journal/journal_read.c:289:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = journal_read_get_error(read, ret);
data/knot-3.0.2/src/knot/journal/journal_read.c:290:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		journal_read_end(read);
data/knot-3.0.2/src/knot/journal/journal_read.c:298:56:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = journal_read_begin(j, false, md.first_serial, &read);
data/knot-3.0.2/src/knot/journal/journal_read.c:299:52:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while (ret == KNOT_EOK && journal_read_changeset(read, &ch)) {
data/knot-3.0.2/src/knot/journal/journal_read.c:304:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = journal_read_get_error(read, ret);
data/knot-3.0.2/src/knot/journal/journal_read.c:305:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		journal_read_end(read);
data/knot-3.0.2/src/knot/journal/journal_read.h:74:41:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
int journal_read_rrsets(journal_read_t *read, journal_read_cb_t cb, void *ctx);
data/knot-3.0.2/src/knot/journal/journal_write.c:85:61:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	txn->ret = journal_read_begin(j, merge_zij, merge_serial, &read);
data/knot-3.0.2/src/knot/journal/journal_write.c:89:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (journal_read_changeset(read, &merge)) {
data/knot-3.0.2/src/knot/journal/journal_write.c:92:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	txn->ret = journal_read_rrsets(read, merge_cb, &merge);
data/knot-3.0.2/src/knot/journal/knot_lmdb.c:86: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).
	char data_mdb[strlen(lmdb_path) + 10];
data/knot-3.0.2/src/knot/journal/knot_lmdb.c:589: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).
			wire_ctx_write(&wire, tmp_s, strlen(tmp_s) + 1);
data/knot-3.0.2/src/knot/journal/knot_lmdb.c:635: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).
			key.mv_size += strlen(tmp_s) + 1;
data/knot-3.0.2/src/knot/journal/knot_lmdb.c:715: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).
			wire_ctx_skip(&wire, strlen((const char *)wire.position) + 1);
data/knot-3.0.2/src/knot/modules/dnstap/dnstap.c:170: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).
	                                      strlen(DNSTAP_CONTENT_TYPE));
data/knot-3.0.2/src/knot/modules/dnstap/dnstap.c:197: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).
	                                      strlen(DNSTAP_CONTENT_TYPE));
data/knot-3.0.2/src/knot/modules/dnstap/dnstap.c:210: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).
	const size_t prefix_len = strlen(prefix);
data/knot-3.0.2/src/knot/modules/dnstap/dnstap.c:213: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(path) > prefix_len && strncmp(path, prefix, prefix_len) == 0) {
data/knot-3.0.2/src/knot/modules/dnstap/dnstap.c:237: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).
	ctx->identity_len = (ctx->identity != NULL) ? strlen(ctx->identity) : 0;
data/knot-3.0.2/src/knot/modules/dnstap/dnstap.c:248: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).
	ctx->version_len = (ctx->version != NULL) ? strlen(ctx->version) : 0;
data/knot-3.0.2/src/knot/modules/geoip/geodb.c:58: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).
			delim = input + strlen(input);
data/knot-3.0.2/src/knot/modules/geoip/geodb.c:82: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).
			delim = input + strlen(input);
data/knot-3.0.2/src/knot/modules/geoip/geoip.c:339: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).
	if (zs_set_input_string(scanner, set_origin, strlen(set_origin)) != 0 ||
data/knot-3.0.2/src/knot/modules/geoip/geoip.c:358: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).
	int key_len = strlen(mode_key[ctx->mode]);
data/knot-3.0.2/src/knot/modules/geoip/geoip.c:493: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 (zs_set_input_string(scanner, input_string, strlen(input_string)) != 0 ||
data/knot-3.0.2/src/knot/modules/synthrecord/synthrecord.c:371:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int addr_len = strlen(addr_str);
data/knot-3.0.2/src/knot/modules/synthrecord/synthrecord.c:556: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).
	tpl->prefix_len = strlen(tpl->prefix);
data/knot-3.0.2/src/knot/modules/synthrecord/synthrecord.c:567: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).
		tpl->zone_len = strlen(tpl->zone);
data/knot-3.0.2/src/knot/nameserver/chaos.c:90: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 response_len = strlen(response_str);
data/knot-3.0.2/src/knot/nameserver/ixfr.c:46:46:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                             journal_read_t *read)
data/knot-3.0.2/src/knot/nameserver/ixfr.c:50:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	assert(read);
data/knot-3.0.2/src/knot/nameserver/ixfr.c:60:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while (journal_read_rrset(read, &ixfr->cur_rr, true)) {
data/knot-3.0.2/src/knot/nameserver/ixfr.c:73:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return journal_read_get_error(read, KNOT_EOK);
data/knot-3.0.2/src/knot/nameserver/ixfr.c:90:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = ixfr_put_chg_part(pkt, ixfr, read);
data/knot-3.0.2/src/knot/nameserver/process_query.c:277: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(conf()->hostname),
data/knot-3.0.2/src/knot/zone/backup.c:49: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).
	size_t _backup_dir_len = strlen((ctx)->backup_dir); \
data/knot-3.0.2/src/knot/zone/backup.c:61: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 backup_dir_len = strlen(backup_dir) + 1;
data/knot-3.0.2/src/knot/zone/backup.c:210: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).
	char kasp_dir[strlen(ctx->backup_dir) + 6];
data/knot-3.0.2/src/knot/zone/catalog.c:73: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).
			MDB_val val = { strlen(CATALOG_VERSION), CATALOG_VERSION };
data/knot-3.0.2/src/knot/zone/zone-load.c:94:67:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int ret = journal_read_begin(zone_journal(zone), false, serial, &read);
data/knot-3.0.2/src/knot/zone/zone-load.c:104:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = journal_read_rrsets(read, apply_one_cb, contents);
data/knot-3.0.2/src/knot/zone/zone-load.c:129:61:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int ret = journal_read_begin(zone_journal(zone), true, 0, &read);
data/knot-3.0.2/src/knot/zone/zone-load.c:137:47:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while (ret == KNOT_EOK && journal_read_rrset(read, &rr, false)) {
data/knot-3.0.2/src/knot/zone/zone-load.c:144:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = journal_read_rrsets(read, apply_one_cb, *contents);
data/knot-3.0.2/src/knot/zone/zone-load.c:146:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		journal_read_end(read);
data/knot-3.0.2/src/knot/zone/zone.c:528: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).
	size_t dir_len = strlen(dir);
data/knot-3.0.2/src/knot/zone/zone.c:539: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).
	size_t target_length = strlen(zonefile_basename) + dir_len + 2;
data/knot-3.0.2/src/libdnssec/keyid.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(id) % 2 != 0) {
data/knot-3.0.2/src/libdnssec/keystore/pkcs11.c:54: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).
	size_t token_len = strlen(token_uri);
data/knot-3.0.2/src/libdnssec/keystore/pkcs11.c:55: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 id_len = strlen(key_id);
data/knot-3.0.2/src/libdnssec/keystore/pkcs8.c:147:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ssize_t read_count = read(file, read_pem.data, read_pem.size);
data/knot-3.0.2/src/libdnssec/keystore/pkcs8.c:435:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ssize_t read_count = read(file, pem.data, pem.size);
data/knot-3.0.2/src/libdnssec/shared/dname.c:105:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	uint8_t read, *scan = dname;
data/knot-3.0.2/src/libdnssec/shared/dname.c:108:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		scan += read;
data/knot-3.0.2/src/libdnssec/shared/dname.c:109:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	} while (read > 0);
data/knot-3.0.2/src/libknot/control/control.c:345: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).
		size_t data_len = strlen(data);
data/knot-3.0.2/src/libknot/dname.c:341: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).
	size_t name_len = strlen(name);
data/knot-3.0.2/src/libknot/rrset-dump.c:93: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 in_len = strlen(str);
data/knot-3.0.2/src/libknot/rrset-dump.c:231: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).
	out_len = strlen(p->out);
data/knot-3.0.2/src/libknot/rrset-dump.c:258: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).
	out_len = strlen(p->out);
data/knot-3.0.2/src/libknot/rrset-dump.c:504: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).
	const size_t omlen = strlen(omit_message);
data/knot-3.0.2/src/libknot/rrset-dump.c:837: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).
		out_len = strlen(dname_str);
data/knot-3.0.2/src/libknot/rrset-dump.c:909: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).
		out_len = strlen(p->out);
data/knot-3.0.2/src/libknot/rrset-dump.c:930: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).
		out_len = strlen(p->out);
data/knot-3.0.2/src/libknot/rrset-dump.c:1973:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	char sep = strlen(name) < 4 * TAB_WIDTH ? '\t' : ' ';
data/knot-3.0.2/src/libknot/tsig.c:66: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).
	b64secret.size = strlen(secret_b64);
data/knot-3.0.2/src/libknot/tsig.c:94: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).
	size_t copy_size = strlen(copy) + 1;
data/knot-3.0.2/src/libknot/yparser/ypschema.c:520: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).
	size_t key0_len = (key0 != NULL) ? strlen(key0) : 0;
data/knot-3.0.2/src/libknot/yparser/ypschema.c:521: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).
	size_t key1_len = (key1 != NULL) ? strlen(key1) : 0;
data/knot-3.0.2/src/libknot/yparser/ypschema.c:522: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).
	size_t id_len   = (id   != NULL) ? strlen(id)   : 0;
data/knot-3.0.2/src/libknot/yparser/ypschema.c:523: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).
	size_t data_len = (data != NULL) ? strlen(data) : 0;
data/knot-3.0.2/src/libknot/yparser/yptrafo.c:89: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((char *)in->position) + 1;
data/knot-3.0.2/src/libknot/yparser/yptrafo.c:425: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).
		wire_ctx_skip(out, strlen((char *)out->position));
data/knot-3.0.2/src/libknot/yparser/yptrafo.c:433: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).
		wire_ctx_skip(out, strlen((char *)out->position));
data/knot-3.0.2/src/libknot/yparser/yptrafo.c:648: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 (YP_LEN == strlen(opts->name) &&
data/knot-3.0.2/src/libknot/yparser/yptrafo.c:729: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).
	wire_ctx_skip(out, strlen((char *)out->position));
data/knot-3.0.2/src/libknot/yparser/yptrafo.c:810: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).
		wire_ctx_write(out, (uint8_t *)prefix, strlen(prefix));
data/knot-3.0.2/src/utils/common/hex.c:49: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 input_size = strlen(input);
data/knot-3.0.2/src/utils/common/https.c:140:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (!ctx->read) { //Unblock `nghttp2_session_recv(nghttp2_session)`
data/knot-3.0.2/src/utils/common/https.c:282: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).
		buf += strlen(buf);
data/knot-3.0.2/src/utils/common/https.c:333: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).
		                             strlen(remote));
data/knot-3.0.2/src/utils/common/https.c:409: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).
	const size_t dns_query_len = strlen(ctx->path) +
data/knot-3.0.2/src/utils/common/https.c:413:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(dns_query, ctx->path, dns_query_len);
data/knot-3.0.2/src/utils/common/https.c:414:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(dns_query, default_query, dns_query_len);
data/knot-3.0.2/src/utils/common/https.c:416: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 tmp_strlen = strlen(dns_query);
data/knot-3.0.2/src/utils/common/https.c:426:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		MAKE_NV(":authority", 10, ctx->authority, strlen(ctx->authority)),
data/knot-3.0.2/src/utils/common/https.c:471:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		MAKE_NV(":authority", 10, ctx->authority, strlen(ctx->authority)),
data/knot-3.0.2/src/utils/common/https.c:472: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).
		MAKE_NV(":path", 5, ctx->path, strlen(ctx->path)),
data/knot-3.0.2/src/utils/common/https.h:77:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	bool read;
data/knot-3.0.2/src/utils/common/lookup.c:78: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).
	size_t str_len = strlen(str);
data/knot-3.0.2/src/utils/common/lookup.c:173: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).
		            strlen(lookup->found.key)) != KNOT_EOK) {
data/knot-3.0.2/src/utils/common/lookup.c:269: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(lookup->found.key) > str_len) {
data/knot-3.0.2/src/utils/common/netio.c:159: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 buflen = strlen(addr_str) + strlen(sock_name) + 3 /* () */;
data/knot-3.0.2/src/utils/common/netio.c:159: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).
	size_t buflen = strlen(addr_str) + strlen(sock_name) + 3 /* () */;
data/knot-3.0.2/src/utils/common/params.c:212: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).
	size_t name_len = strlen(name);
data/knot-3.0.2/src/utils/common/params.c:258: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 cmp_len = MAX(strlen("NOTIFY"), param_pos);
data/knot-3.0.2/src/utils/common/params.c:273: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 (param_pos == strlen(value)) {
data/knot-3.0.2/src/utils/common/resolv.c:41: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).
	const size_t str_len = strlen(str);
data/knot-3.0.2/src/utils/common/resolv.c:158:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strncmp(option, "nameserver", strlen("nameserver")) == 0) {
data/knot-3.0.2/src/utils/common/tls.c:516: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).
		                             strlen(remote));
data/knot-3.0.2/src/utils/kdig/kdig_params.c:685: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).
	int ret = knot_base64_decode((const uint8_t *)arg, strlen(arg), pin, sizeof(pin));
data/knot-3.0.2/src/utils/kdig/kdig_params.c:1082: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).
	const size_t arg_len = strlen(arg);
data/knot-3.0.2/src/utils/kdig/kdig_params.c:1950: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(query->port) > 0) {
data/knot-3.0.2/src/utils/kdig/kdig_params.c:1952: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(conf->port) > 0) {
data/knot-3.0.2/src/utils/kdig/kdig_params.c:1968: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(s->service) == 0) {
data/knot-3.0.2/src/utils/kdig/kdig_params.c:1990: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(s->service) > 0) {
data/knot-3.0.2/src/utils/kdig/kdig_params.c:2146: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).
	size_t     len = strlen(opt);
data/knot-3.0.2/src/utils/kdig/kdig_params.c:2381: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(rest) > 0) {
data/knot-3.0.2/src/utils/kdig/kdig_params.c:2433: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(value) == 0) {
data/knot-3.0.2/src/utils/keymgr/bind_privkey.c:106:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		.size = strlen(string)
data/knot-3.0.2/src/utils/keymgr/bind_privkey.c:186: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 name_length = strlen(p->name);
data/knot-3.0.2/src/utils/keymgr/bind_privkey.c:216:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int r = parse_line(&params, line, read);
data/knot-3.0.2/src/utils/keymgr/functions.c:496:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ssize_t read_count = read(fd, pem.data, pem.size);
data/knot-3.0.2/src/utils/keymgr/functions.c:738: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).
	long spec_len = strlen(key_spec);
data/knot-3.0.2/src/utils/keymgr/functions.c:757:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (keyid_match && !is_keytag && strlen(candidate->id) == spec_len) {
data/knot-3.0.2/src/utils/knotc/commands.c:725: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).
				assert(strlen(filter_buff) < MAX_FILTERS);
data/knot-3.0.2/src/utils/knotc/interactive.c:230: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).
	lookup_complete(&lookup, item, strlen(item), el, section != NULL);
data/knot-3.0.2/src/utils/knotc/interactive.c:259: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).
			id_lookup(el, id + 1, strlen(id + 1), cmd_desc, section, false);
data/knot-3.0.2/src/utils/knotd/main.c:450:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(S_IROTH|S_IWOTH|S_IXOTH);
data/knot-3.0.2/src/utils/knsupdate/knsupdate_exec.c:161: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 (zs_set_input_string(s, lp, strlen(lp)) != 0 ||
data/knot-3.0.2/src/utils/knsupdate/knsupdate_exec.c:299: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 (zs_set_input_string(s, rr, strlen(rr)) != 0 ||
data/knot-3.0.2/src/utils/knsupdate/knsupdate_exec.c:527: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).
		memset(line, 0, strlen(line));
data/knot-3.0.2/src/utils/kxdpgun/main.c:196: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);
data/knot-3.0.2/src/utils/kxdpgun/main.c:274:4:  [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(dura_exp - duration);
data/knot-3.0.2/src/utils/kxdpgun/main.c:277:4:  [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);
data/knot-3.0.2/src/utils/kxdpgun/main.c:382:9:  [1] (buffer) fscanf:
  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.
	while (fscanf(p, "%255s", buf) == 1) {
data/knot-3.0.2/src/utils/kxdpgun/main.c:407:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		char fields[5][strlen(line_buf) + 1];
data/knot-3.0.2/src/utils/kxdpgun/main.c:487:2:  [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(10000);
data/knot-3.0.2/src/utils/kxdpgun/main.c:710: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(20000);
data/knot-3.0.2/src/utils/kxdpgun/main.c:712:2:  [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(1000000);
data/knot-3.0.2/src/utils/kxdpgun/main.c:715:2:  [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(1000000);
data/knot-3.0.2/src/utils/kzonecheck/main.c:129: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).
		if (strcmp(zonename + strlen(zonename) - strlen(ext), ext) == 0) {
data/knot-3.0.2/src/utils/kzonecheck/main.c:129: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).
		if (strcmp(zonename + strlen(zonename) - strlen(ext), ext) == 0) {
data/knot-3.0.2/src/utils/kzonecheck/main.c:130: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).
			zonename = strndup(zonename, strlen(zonename) - strlen(ext));
data/knot-3.0.2/src/utils/kzonecheck/main.c:130:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			zonename = strndup(zonename, strlen(zonename) - strlen(ext));
data/knot-3.0.2/tests-fuzz/main.c:51: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).
		char fname[strlen(dirname) + strlen(dp->d_name) + 2];
data/knot-3.0.2/tests-fuzz/main.c:51: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).
		char fname[strlen(dirname) + strlen(dp->d_name) + 2];
data/knot-3.0.2/tests-fuzz/main.c:78:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if ((n = read(fd, data, st.st_size)) == st.st_size) {
data/knot-3.0.2/tests-fuzz/main.c:99: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).
	char corporadir[sizeof(SRCDIR) + 1 + strlen(target) + 8];
data/knot-3.0.2/tests/contrib/test_base32hex.c:72: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).
	in_len = strlen((char *)in);
data/knot-3.0.2/tests/contrib/test_base32hex.c:74: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).
	ref_len = strlen((char *)ref);
data/knot-3.0.2/tests/contrib/test_base32hex.c:92: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).
	in_len = strlen((char *)in);
data/knot-3.0.2/tests/contrib/test_base32hex.c:94: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).
	ref_len = strlen((char *)ref);
data/knot-3.0.2/tests/contrib/test_base32hex.c:112: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).
	in_len = strlen((char *)in);
data/knot-3.0.2/tests/contrib/test_base32hex.c:114: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).
	ref_len = strlen((char *)ref);
data/knot-3.0.2/tests/contrib/test_base32hex.c:132: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).
	in_len = strlen((char *)in);
data/knot-3.0.2/tests/contrib/test_base32hex.c:134: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).
	ref_len = strlen((char *)ref);
data/knot-3.0.2/tests/contrib/test_base32hex.c:152: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).
	in_len = strlen((char *)in);
data/knot-3.0.2/tests/contrib/test_base32hex.c:154: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).
	ref_len = strlen((char *)ref);
data/knot-3.0.2/tests/contrib/test_base32hex.c:172: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).
	in_len = strlen((char *)in);
data/knot-3.0.2/tests/contrib/test_base32hex.c:174: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).
	ref_len = strlen((char *)ref);
data/knot-3.0.2/tests/contrib/test_base32hex.c:192: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).
	in_len = strlen((char *)in);
data/knot-3.0.2/tests/contrib/test_base32hex.c:194: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).
	ref_len = strlen((char *)ref);
data/knot-3.0.2/tests/contrib/test_base64.c:72: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).
	in_len = strlen((char *)in);
data/knot-3.0.2/tests/contrib/test_base64.c:74: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).
	ref_len = strlen((char *)ref);
data/knot-3.0.2/tests/contrib/test_base64.c:92: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).
	in_len = strlen((char *)in);
data/knot-3.0.2/tests/contrib/test_base64.c:94: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).
	ref_len = strlen((char *)ref);
data/knot-3.0.2/tests/contrib/test_base64.c:112: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).
	in_len = strlen((char *)in);
data/knot-3.0.2/tests/contrib/test_base64.c:114: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).
	ref_len = strlen((char *)ref);
data/knot-3.0.2/tests/contrib/test_base64.c:132: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).
	in_len = strlen((char *)in);
data/knot-3.0.2/tests/contrib/test_base64.c:134: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).
	ref_len = strlen((char *)ref);
data/knot-3.0.2/tests/contrib/test_base64.c:152: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).
	in_len = strlen((char *)in);
data/knot-3.0.2/tests/contrib/test_base64.c:154: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).
	ref_len = strlen((char *)ref);
data/knot-3.0.2/tests/contrib/test_base64.c:172: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).
	in_len = strlen((char *)in);
data/knot-3.0.2/tests/contrib/test_base64.c:174: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).
	ref_len = strlen((char *)ref);
data/knot-3.0.2/tests/contrib/test_base64.c:192: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).
	in_len = strlen((char *)in);
data/knot-3.0.2/tests/contrib/test_base64.c:194: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).
	ref_len = strlen((char *)ref);
data/knot-3.0.2/tests/contrib/test_base64url.c:68: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).
	in_len = strlen((char *)in);
data/knot-3.0.2/tests/contrib/test_base64url.c:70: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).
	ref_len = strlen((char *)ref);
data/knot-3.0.2/tests/contrib/test_base64url.c:88: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).
	in_len = strlen((char *)in);
data/knot-3.0.2/tests/contrib/test_base64url.c:90: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).
	ref_len = strlen((char *)ref);
data/knot-3.0.2/tests/contrib/test_base64url.c:108: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).
	in_len = strlen((char *)in);
data/knot-3.0.2/tests/contrib/test_base64url.c:110: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).
	ref_len = strlen((char *)ref);
data/knot-3.0.2/tests/contrib/test_base64url.c:128: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).
	in_len = strlen((char *)in);
data/knot-3.0.2/tests/contrib/test_base64url.c:130: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).
	ref_len = strlen((char *)ref);
data/knot-3.0.2/tests/contrib/test_base64url.c:148: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).
	in_len = strlen((char *)in);
data/knot-3.0.2/tests/contrib/test_base64url.c:150: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).
	ref_len = strlen((char *)ref);
data/knot-3.0.2/tests/contrib/test_base64url.c:168: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).
	in_len = strlen((char *)in);
data/knot-3.0.2/tests/contrib/test_base64url.c:170: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).
	ref_len = strlen((char *)ref);
data/knot-3.0.2/tests/contrib/test_base64url.c:188: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).
	in_len = strlen((char *)in);
data/knot-3.0.2/tests/contrib/test_base64url.c:190: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).
	ref_len = strlen((char *)ref);
data/knot-3.0.2/tests/contrib/test_base64url.c:208: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).
	in_len = strlen((char *)in);
data/knot-3.0.2/tests/contrib/test_base64url.c:210: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).
	ref_len = strlen((char *)ref);
data/knot-3.0.2/tests/contrib/test_base64url.c:221: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).
	in_len = strlen((char *)in);
data/knot-3.0.2/tests/contrib/test_base64url.c:223: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).
	ref_len = strlen((char *)ref);
data/knot-3.0.2/tests/contrib/test_qp-trie.c:44: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).
		s[i] = alphabet[rand() % strlen(alphabet)];
data/knot-3.0.2/tests/contrib/test_qp-trie.c:57: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).
	size_t key_len = strlen(key) + 1;
data/knot-3.0.2/tests/contrib/test_qp-trie.c:207: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).
		val = trie_get_ins(trie, (uint8_t *)keys[i], strlen(keys[i]) + 1);
data/knot-3.0.2/tests/contrib/test_qp-trie.c:225: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).
		val = trie_get_try(trie, (uint8_t *)keys[i], strlen(keys[i]) + 1);
data/knot-3.0.2/tests/knot/test_conf_tools.c:38: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).
	ret = yp_item_to_bin(&i, txt, strlen(txt), b, &b_len);
data/knot-3.0.2/tests/knot/test_conf_tools.c:43: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).
	ok(strlen(t) == t_len, "txt ret length");
data/knot-3.0.2/tests/knot/test_conf_tools.c:44: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).
	ok(strlen(txt) == t_len, "txt length");
data/knot-3.0.2/tests/knot/test_conf_tools.c:58: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).
	ret = yp_item_to_bin(&i, txt, strlen(txt), b, &b_len);
data/knot-3.0.2/tests/knot/test_confdb.c:410: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).
		          strlen(names[i]), KNOT_EOK, NULL, 0, (uint8_t *)"", 0);
data/knot-3.0.2/tests/knot/test_confdb.c:426: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).
		ok(id_len == strlen(names[count]), "Compare iteration id length");
data/knot-3.0.2/tests/knot/test_fdset.c:121:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(set.pfd[0].fd, &buf, WRITE_PATTERN_LEN);
data/knot-3.0.2/tests/knot/test_journal.c:281:41:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                       journal_read_t **read, list_t *list)
data/knot-3.0.2/tests/knot/test_journal.c:285:49:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int ret = journal_read_begin(*zj, zij, serial, read);
data/knot-3.0.2/tests/knot/test_journal.c:288:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		       journal_read_changeset(*read, ch)) {
data/knot-3.0.2/tests/knot/test_journal.c:292:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = journal_read_get_error(*read, KNOT_EOK);
data/knot-3.0.2/tests/knot/test_journal.c:317:55:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = load_j_list(&jj, false, changeset_from(m_ch), &read, &l);
data/knot-3.0.2/tests/knot/test_journal.c:323:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	journal_read_end(read);
data/knot-3.0.2/tests/knot/test_journal.c:344:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = load_j_list(&jj, false, 1, &read, &l);
data/knot-3.0.2/tests/knot/test_journal.c:349:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	journal_read_end(read);
data/knot-3.0.2/tests/knot/test_journal.c:351:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = load_j_list(&jj, false, 1, &read, &l);
data/knot-3.0.2/tests/knot/test_journal.c:355:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	journal_read_end(read);
data/knot-3.0.2/tests/knot/test_journal.c:362:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = load_j_list(&jj, false, 1, &read, &l);
data/knot-3.0.2/tests/knot/test_journal.c:366:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	journal_read_end(read);
data/knot-3.0.2/tests/knot/test_journal.c:378:41:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = load_j_list(&jj, false, serial, &read, &l);
data/knot-3.0.2/tests/knot/test_journal.c:383:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	journal_read_end(read);
data/knot-3.0.2/tests/knot/test_journal.c:393:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = load_j_list(&jj, false, 2, &read, &l);
data/knot-3.0.2/tests/knot/test_journal.c:397:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	journal_read_end(read);
data/knot-3.0.2/tests/knot/test_journal.c:419:42:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = journal_read_begin(jj, false, 0, &read);
data/knot-3.0.2/tests/knot/test_journal.c:421:42:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = journal_read_begin(jj, false, 1, &read);
data/knot-3.0.2/tests/knot/test_journal.c:423:45:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = load_j_list(&jj, false, 4294967294, &read, &l);
data/knot-3.0.2/tests/knot/test_journal.c:428:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	journal_read_end(read);
data/knot-3.0.2/tests/knot/test_journal.c:443:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = load_j_list(&jj, true, 0, &read, &l);
data/knot-3.0.2/tests/knot/test_journal.c:449:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	journal_read_end(read);
data/knot-3.0.2/tests/knot/test_journal.c:474: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 prefix_len = strlen(prefix);
data/knot-3.0.2/tests/knot/test_journal.c:592:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = load_j_list(&jj, false, 0, &read, &l);
data/knot-3.0.2/tests/knot/test_journal.c:600:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	journal_read_end(read);
data/knot-3.0.2/tests/knot/test_journal.c:605:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = load_j_list(&jj, false, 0, &read, &l);
data/knot-3.0.2/tests/knot/test_journal.c:609:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	journal_read_end(read);
data/knot-3.0.2/tests/knot/test_journal.c:610:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = load_j_list(&jj, false, i - 3, &read, &l);
data/knot-3.0.2/tests/knot/test_journal.c:614:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	journal_read_end(read);
data/knot-3.0.2/tests/knot/test_node.c:28: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).
	memcpy(wire, "testtest", strlen("testtest"));
data/knot-3.0.2/tests/knot/test_node.c:29: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).
	int ret = knot_rrset_add_rdata(r, wire, strlen("testtest"), NULL);
data/knot-3.0.2/tests/knot/test_zone-update.c:124: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 (zs_set_input_string(sc, zone_str1, strlen(zone_str1)) != 0 ||
data/knot-3.0.2/tests/knot/test_zone-update.c:134: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 (zs_set_input_string(sc, zone_str2, strlen(zone_str2)) != 0 ||
data/knot-3.0.2/tests/knot/test_zone-update.c:160: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 (zs_set_input_string(sc, node_str1, strlen(node_str1)) != 0 ||
data/knot-3.0.2/tests/knot/test_zone-update.c:168: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 (zs_set_input_string(sc, node_str2, strlen(node_str2)) != 0 ||
data/knot-3.0.2/tests/knot/test_zone-update.c:185: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 (zs_set_input_string(sc, node_str1, strlen(node_str1)) != 0 ||
data/knot-3.0.2/tests/knot/test_zone-update.c:214: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 (zs_set_input_string(sc, add_str, strlen(add_str)) != 0 ||
data/knot-3.0.2/tests/knot/test_zone-update.c:228: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 (zs_set_input_string(sc, del_str, strlen(del_str)) != 0 ||
data/knot-3.0.2/tests/knot/test_zone-update.c:241: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 (zs_set_input_string(sc, node_str2, strlen(node_str2)) != 0 ||
data/knot-3.0.2/tests/knot/test_zone-update.c:260: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 (zs_set_input_string(sc, node_str1, strlen(node_str1)) != 0 ||
data/knot-3.0.2/tests/libdnssec/test_key.c:171: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).
	ok(strlen((char *)output) + 1 == 13 &&
data/knot-3.0.2/tests/libdnssec/test_sign.c:75:61:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	dnssec_binary_t result = { .data = (uint8_t *)str, .size = strlen(str) };
data/knot-3.0.2/tests/libknot/test_control.c:46: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/knot-3.0.2/tests/libknot/test_cookies.c:144: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).
	memcpy(sc.data, sc_reserverd, strlen(sc_reserverd));
data/knot-3.0.2/tests/libknot/test_db.c:39:55:  [1] (buffer) strlen:
  Does not handle 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 KEY_SET(key, str) key.data = (str); key.len = strlen(str) + 1
data/knot-3.0.2/tests/libknot/test_db.c:48: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).
		s[i] = alphabet[rand() % strlen(alphabet)];
data/knot-3.0.2/tests/libknot/test_dname.c:133: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).
	assert(strlen((const char *)in) == KNOT_DNAME_MAXLEN - 1);
data/knot-3.0.2/tests/libknot/test_dname.c:422: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 if (strlen(out_dynamic) < sizeof(tmp) - 1 &&
data/knot-3.0.2/tests/libknot/test_pkt.c:91: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).
	                           strlen((char *)edns_str), edns_str, &mm);
data/knot-3.0.2/tests/libknot/test_pkt.c:112:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	tsig_key.secret.size = strlen(tsig_secret);
data/knot-3.0.2/tests/libknot/test_tsig.c:79: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).
	ok(write(fd, content, strlen(content)) != -1, "file write");
data/knot-3.0.2/tests/libknot/test_yparser.c:114: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).
	int ret = yp_set_input_string(yp, syntax_ok, strlen(syntax_ok));
data/knot-3.0.2/tests/libknot/test_yparser.c:227: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).
	int ret = yp_set_input_string(yp, input, strlen(input));
data/knot-3.0.2/tests/libknot/test_yparser.c:242: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).
	int ret = yp_set_input_string(yp, input, strlen(input));
data/knot-3.0.2/tests/libknot/test_yparser.c:256: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).
	ok(yp->key_len == strlen(str) && strcmp(yp->key, str) == 0 && yp->data_len == 0 && \
data/knot-3.0.2/tests/libknot/test_yparser.c:260: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).
	int ret = yp_set_input_string(yp, dname_ok, strlen(dname_ok));
data/knot-3.0.2/tests/libknot/test_yparser.c:277: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).
	   yp->data_len == strlen(str) && strcmp(yp->data, str) == 0 && \
data/knot-3.0.2/tests/libknot/test_yparser.c:280: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).
	int ret = yp_set_input_string(yp, quotes_ok, strlen(quotes_ok));
data/knot-3.0.2/tests/libknot/test_yparser.c:296: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).
	ret = yp_set_input_string(yp, str, strlen(str)); \
data/knot-3.0.2/tests/libknot/test_yparser.c:300: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).
	ok(yp->key_len != strlen(str) || strcmp(yp->key, str) != 0 || \
data/knot-3.0.2/tests/libknot/test_ypschema.c:136: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).
	ret = yp_set_input_string(yp, str, strlen(str)); \
data/knot-3.0.2/tests/libknot/test_yptrafo.c:37: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).
	ret = yp_item_to_bin(&i, txt, strlen(txt), b, &b_len);
data/knot-3.0.2/tests/libknot/test_yptrafo.c:42: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).
	ok(strlen(t) == t_len, "txt ret length");
data/knot-3.0.2/tests/libknot/test_yptrafo.c:43: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).
	ok(strlen(txt) == t_len, "txt length");
data/knot-3.0.2/tests/libknot/test_yptrafo.c:56: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).
	ret = yp_item_to_bin(&i, txt, strlen(txt), b, &b_len);
data/knot-3.0.2/tests/libknot/test_yptrafo.c:70: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).
	ret = yp_item_to_bin(&i, txt, strlen(txt), b, &b_len);
data/knot-3.0.2/tests/libknot/test_yptrafo.c:75: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).
	ok(strlen(t) == t_len, "txt ret length");
data/knot-3.0.2/tests/libknot/test_yptrafo.c:76: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).
	ok(strlen(txt) == t_len, "txt length");
data/knot-3.0.2/tests/libknot/test_yptrafo.c:88: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).
	ret = yp_item_to_bin(&i, txt, strlen(txt), b, &b_len);
data/knot-3.0.2/tests/libknot/test_yptrafo.c:102: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).
	ret = yp_item_to_bin(&i, txt, strlen(txt), b, &b_len);
data/knot-3.0.2/tests/libknot/test_yptrafo.c:108: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).
	ok(strlen(t) == t_len, "txt ret length");
data/knot-3.0.2/tests/libknot/test_yptrafo.c:109: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).
	ok(strlen(txt) == t_len, "txt length");
data/knot-3.0.2/tests/libknot/test_yptrafo.c:121: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).
	ret = yp_item_to_bin(&i, txt, strlen(txt), b, &b_len);
data/knot-3.0.2/tests/libknot/test_yptrafo.c:135: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).
	ret = yp_item_to_bin(&i, txt, strlen(txt), b, &b_len);
data/knot-3.0.2/tests/libknot/test_yptrafo.c:137: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).
	ok(b_len == strlen(txt) + 1, "compare length");
data/knot-3.0.2/tests/libknot/test_yptrafo.c:141: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).
	ok(strlen(t) == t_len, "txt ret length");
data/knot-3.0.2/tests/libknot/test_yptrafo.c:142: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).
	ok(strlen(txt) == t_len, "txt length");
data/knot-3.0.2/tests/libknot/test_yptrafo.c:156: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).
	ret = yp_item_to_bin(&i, txt, strlen(txt), b, &b_len);
data/knot-3.0.2/tests/libknot/test_yptrafo.c:163: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).
	ok(strlen(t) == t_len, "txt ret length");
data/knot-3.0.2/tests/libknot/test_yptrafo.c:164: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).
	ok(strlen(txt) == t_len, "txt length");
data/knot-3.0.2/tests/libknot/test_yptrafo.c:176: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).
	ret = yp_item_to_bin(&i, txt, strlen(txt), b, &b_len);
data/knot-3.0.2/tests/libknot/test_yptrafo.c:190: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).
	ret = yp_item_to_bin(&i, txt, strlen(txt), b, &b_len);
data/knot-3.0.2/tests/libknot/test_yptrafo.c:194: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).
	ok(strlen(t) == t_len, "txt ret length");
data/knot-3.0.2/tests/libknot/test_yptrafo.c:195: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).
	ok(strlen(txt) == t_len, "txt length");
data/knot-3.0.2/tests/libknot/test_yptrafo.c:207: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).
	ret = yp_item_to_bin(&i, txt, strlen(txt), b, &b_len);
data/knot-3.0.2/tests/libknot/test_yptrafo.c:221: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).
	ret = yp_item_to_bin(&i, txt, strlen(txt), b, &b_len);
data/knot-3.0.2/tests/libknot/test_yptrafo.c:226: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).
	ok(strlen(t) == t_len, "txt ret length");
data/knot-3.0.2/tests/libknot/test_yptrafo.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).
	ok(strlen(txt) == t_len, "txt length");
data/knot-3.0.2/tests/libknot/test_yptrafo.c:245: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).
	ret = yp_item_to_bin(&i, txt, strlen(txt), b, &b_len);
data/knot-3.0.2/tests/libknot/test_yptrafo.c:250: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).
	ok(strlen(t) == t_len, "txt ret length");
data/knot-3.0.2/tests/libknot/test_yptrafo.c:251: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).
	ok(strlen(txt_out) == t_len, "txt length");
data/knot-3.0.2/tests/libknot/test_yptrafo.c:263: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).
	ret = yp_item_to_bin(&i, txt, strlen(txt), b, &b_len);
data/knot-3.0.2/tests/libknot/test_yptrafo.c:277: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).
	ret = yp_item_to_bin(&i, txt, strlen(txt), b, &b_len);
data/knot-3.0.2/tests/libknot/test_yptrafo.c:282: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).
	ok(strlen(t) == t_len, "txt ret length");
data/knot-3.0.2/tests/libknot/test_yptrafo.c:283: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).
	ok(strlen(txt) == t_len, "txt length");
data/knot-3.0.2/tests/libknot/test_yptrafo.c:301: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).
	ret = yp_item_to_bin(&i, txt, strlen(txt), b, &b_len);
data/knot-3.0.2/tests/libknot/test_yptrafo.c:306: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).
	ok(strlen(t) == t_len, "txt ret length");
data/knot-3.0.2/tests/libknot/test_yptrafo.c:307: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).
	ok(strlen(txt) == t_len, "txt length");
data/knot-3.0.2/tests/tap/basic.c:487: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(s) + 1;
data/knot-3.0.2/tests/tap/basic.c:542: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).
        length = strlen(base) + 1 + strlen(file) + 1;
data/knot-3.0.2/tests/tap/basic.c:542: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).
        length = strlen(base) + 1 + strlen(file) + 1;
data/knot-3.0.2/tests/tap/basic.c:585: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).
    length = strlen(build) + strlen("/tmp") + 1;
data/knot-3.0.2/tests/tap/basic.c:585: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).
    length = strlen(build) + strlen("/tmp") + 1;
data/knot-3.0.2/tests/tap/runtests.c:336: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(s) + 1;
data/knot-3.0.2/tests/tap/runtests.c:485: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).
                    ts->reason[strlen(ts->reason) - 1] = '\0';
data/knot-3.0.2/tests/tap/runtests.c:549: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).
        bail = skip_whitespace(bail + strlen("Bail out!"));
data/knot-3.0.2/tests/tap/runtests.c:553: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).
            length = strlen(bail);
data/knot-3.0.2/tests/tap/runtests.c:568: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 (line[strlen(line) - 1] != '\n')
data/knot-3.0.2/tests/tap/runtests.c:1019: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).
            path_len = strlen(base) + strlen(name) + strlen(suffix) + 2;
data/knot-3.0.2/tests/tap/runtests.c:1019: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).
            path_len = strlen(base) + strlen(name) + strlen(suffix) + 2;
data/knot-3.0.2/tests/tap/runtests.c:1019: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).
            path_len = strlen(base) + strlen(name) + strlen(suffix) + 2;
data/knot-3.0.2/tests/tap/runtests.c:1063: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).
        length = strlen(buffer) - 1;
data/knot-3.0.2/tests/tap/runtests.c:1166: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).
        length = strlen(current->ts->file);
data/knot-3.0.2/tests/tap/runtests.c:1196: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).
        for (i = strlen(ts->file); i < longest; i++)
data/knot-3.0.2/tests/tap/runtests.c:1352: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).
        unsigned int len = strlen("SOURCE=") + strlen(source) + 1;
data/knot-3.0.2/tests/tap/runtests.c:1352: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).
        unsigned int len = strlen("SOURCE=") + strlen(source) + 1;
data/knot-3.0.2/tests/tap/runtests.c:1359: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).
        unsigned int len = strlen("BUILD=") + strlen(build) + 1;
data/knot-3.0.2/tests/tap/runtests.c:1359: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).
        unsigned int len = strlen("BUILD=") + strlen(build) + 1;
data/knot-3.0.2/tests/utils/test_lookup.c:27: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).
	int ret = lookup_search(l, in, strlen(in));
data/knot-3.0.2/tests/utils/test_lookup.c:39: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).
	int ret = lookup_search(l, in, strlen(in));
data/knot-3.0.2/tests/utils/test_lookup.c:50: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).
	int ret = lookup_search(l, in, strlen(in));

ANALYSIS SUMMARY:

Hits = 996
Lines analyzed = 162190 in approximately 7.91 seconds (20501 lines/second)
Physical Source Lines of Code (SLOC) = 105402
Hits@level = [0] 504 [1] 371 [2] 516 [3]  30 [4]  79 [5]   0
Hits@level+ = [0+] 1500 [1+] 996 [2+] 625 [3+] 109 [4+]  79 [5+]   0
Hits/KSLOC@level+ = [0+] 14.2312 [1+] 9.44954 [2+] 5.92968 [3+] 1.03414 [4+] 0.749511 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.