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/yadifa-2.3.10/lib/dnscore/include/dnscore/dnscore-config-features.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/alarm.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/allocator.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/async.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/base16.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/base32.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/base32hex.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/base64.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/basic-priority-queue.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/buffer_input_stream.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/buffer_output_stream.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/bytearray_input_stream.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/bytearray_output_stream.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/bytezarray_output_stream.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/chroot.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/clone_input_output_stream.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/cmdline.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/concat_input_stream.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/config-cmdline.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/config_file_reader.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/config_settings.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/counter_output_stream.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/ctrl-rfc.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/debug.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/debug_config.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/digest.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/dns-udp.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/dns_resource_record.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/dnscore.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/dnsformat.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/dnskey.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/dnskey-keyring.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/dnskey_dsa.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/dnskey_ecdsa.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/dnskey_rsa.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/dnskey-signature.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/dnsname.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/dnsname_set.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/dnssec_errors.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/empty-input-stream.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/fdtools.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/file_input_stream.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/file_output_stream.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/fingerprint.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/format.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/host_address.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/hsdllist.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/identity.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/input_stream.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/io_stream.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/limited_input_stream.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/limiter.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/list-dl.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/list-sl.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/list-sl-debug.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/logger.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/logger_channel_file.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/logger_channel_stream.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/logger_channel_syslog.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/logger_handle.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/logger-output-stream.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/message-buffer.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/message-viewer.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/message.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/message_verify_rrsig.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/message_dnsupdate.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/mt_output_stream.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/mutex.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/name.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/network.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/output_stream.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/pace.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/packet_reader.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/packet_writer.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/parser.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/parsing.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/pid.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/pipe_stream.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/pool.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/print_stream.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/ptr_set.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/ptr_set_debug.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/ptr_vector.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/queue-sl.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/random.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/rc.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/rewind-input-stream.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/rfc.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/serial.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/server-setup.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/service.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/string_set.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/sys_error.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/sys_get_cpu_count.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/sys_types.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/tcp_io_stream.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/thread_pool.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/threaded-qsl-cw.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/threaded_dll_cw.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/threaded_nb_mm.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/threaded_nbrb.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/threaded_queue.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/threaded_ringbuffer.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/threaded_ringbuffer_cw.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/threaded_ringlist.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/timeformat.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/timems.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/typebitmap.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/u32_set.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/u64_set.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/u64_set_debug.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/xfr_input_stream.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/zalloc.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/zonefile_reader.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/osx_clock_gettime.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/tsig.h
Examining data/yadifa-2.3.10/lib/dnscore/include/dnscore/nsid.h
Examining data/yadifa-2.3.10/lib/dnscore/src/alarm.c
Examining data/yadifa-2.3.10/lib/dnscore/src/allocator.c
Examining data/yadifa-2.3.10/lib/dnscore/src/async.c
Examining data/yadifa-2.3.10/lib/dnscore/src/base16.c
Examining data/yadifa-2.3.10/lib/dnscore/src/base32.c
Examining data/yadifa-2.3.10/lib/dnscore/src/base32hex.c
Examining data/yadifa-2.3.10/lib/dnscore/src/base64.c
Examining data/yadifa-2.3.10/lib/dnscore/src/basic-priority-queue.c
Examining data/yadifa-2.3.10/lib/dnscore/src/buffer_input_stream.c
Examining data/yadifa-2.3.10/lib/dnscore/src/buffer_output_stream.c
Examining data/yadifa-2.3.10/lib/dnscore/src/bytearray_input_stream.c
Examining data/yadifa-2.3.10/lib/dnscore/src/bytearray_output_stream.c
Examining data/yadifa-2.3.10/lib/dnscore/src/bytezarray_output_stream.c
Examining data/yadifa-2.3.10/lib/dnscore/src/chroot.c
Examining data/yadifa-2.3.10/lib/dnscore/src/clone_input_output_stream.c
Examining data/yadifa-2.3.10/lib/dnscore/src/cmdline.c
Examining data/yadifa-2.3.10/lib/dnscore/src/concat_input_stream.c
Examining data/yadifa-2.3.10/lib/dnscore/src/config-cmdline.c
Examining data/yadifa-2.3.10/lib/dnscore/src/config_file_reader.c
Examining data/yadifa-2.3.10/lib/dnscore/src/config_key.c
Examining data/yadifa-2.3.10/lib/dnscore/src/config_logger.c
Examining data/yadifa-2.3.10/lib/dnscore/src/config_settings.c
Examining data/yadifa-2.3.10/lib/dnscore/src/config_struct.c
Examining data/yadifa-2.3.10/lib/dnscore/src/counter_output_stream.c
Examining data/yadifa-2.3.10/lib/dnscore/src/debug.c
Examining data/yadifa-2.3.10/lib/dnscore/src/digest_sha1.c
Examining data/yadifa-2.3.10/lib/dnscore/src/digest_sha256.c
Examining data/yadifa-2.3.10/lib/dnscore/src/digest_sha384.c
Examining data/yadifa-2.3.10/lib/dnscore/src/digest_sha512.c
Examining data/yadifa-2.3.10/lib/dnscore/src/dns-udp.c
Examining data/yadifa-2.3.10/lib/dnscore/src/dns_resource_record.c
Examining data/yadifa-2.3.10/lib/dnscore/src/dnscore.c
Examining data/yadifa-2.3.10/lib/dnscore/src/dnsformat.c
Examining data/yadifa-2.3.10/lib/dnscore/src/dnskey.c
Examining data/yadifa-2.3.10/lib/dnscore/src/dnskey-keyring.c
Examining data/yadifa-2.3.10/lib/dnscore/src/dnskey_dsa.c
Examining data/yadifa-2.3.10/lib/dnscore/src/dnskey_ecdsa.c
Examining data/yadifa-2.3.10/lib/dnscore/src/dnskey_rsa.c
Examining data/yadifa-2.3.10/lib/dnscore/src/dnskey-signature.c
Examining data/yadifa-2.3.10/lib/dnscore/src/dnsname.c
Examining data/yadifa-2.3.10/lib/dnscore/src/empty-input-stream.c
Examining data/yadifa-2.3.10/lib/dnscore/src/fdtools.c
Examining data/yadifa-2.3.10/lib/dnscore/src/file_input_stream.c
Examining data/yadifa-2.3.10/lib/dnscore/src/file_output_stream.c
Examining data/yadifa-2.3.10/lib/dnscore/src/format.c
Examining data/yadifa-2.3.10/lib/dnscore/src/host_address.c
Examining data/yadifa-2.3.10/lib/dnscore/src/hsdllist.c
Examining data/yadifa-2.3.10/lib/dnscore/src/identity.c
Examining data/yadifa-2.3.10/lib/dnscore/src/input_stream.c
Examining data/yadifa-2.3.10/lib/dnscore/src/limited_input_stream.c
Examining data/yadifa-2.3.10/lib/dnscore/src/limiter.c
Examining data/yadifa-2.3.10/lib/dnscore/src/list-dl.c
Examining data/yadifa-2.3.10/lib/dnscore/src/list-sl.c
Examining data/yadifa-2.3.10/lib/dnscore/src/list-sl-debug.c
Examining data/yadifa-2.3.10/lib/dnscore/src/logger-output-stream.c
Examining data/yadifa-2.3.10/lib/dnscore/src/logger.c
Examining data/yadifa-2.3.10/lib/dnscore/src/logger_channel_file.c
Examining data/yadifa-2.3.10/lib/dnscore/src/logger_channel_stream.c
Examining data/yadifa-2.3.10/lib/dnscore/src/logger_channel_syslog.c
Examining data/yadifa-2.3.10/lib/dnscore/src/logger_handle.c
Examining data/yadifa-2.3.10/lib/dnscore/src/message-buffer.c
Examining data/yadifa-2.3.10/lib/dnscore/src/message-viewer.c
Examining data/yadifa-2.3.10/lib/dnscore/src/message.c
Examining data/yadifa-2.3.10/lib/dnscore/src/message_print_format_dig.c
Examining data/yadifa-2.3.10/lib/dnscore/src/message_verify_rrsig.c
Examining data/yadifa-2.3.10/lib/dnscore/src/message_dnsupdate.c
Examining data/yadifa-2.3.10/lib/dnscore/src/mt_output_stream.c
Examining data/yadifa-2.3.10/lib/dnscore/src/mutex.c
Examining data/yadifa-2.3.10/lib/dnscore/src/name.c
Examining data/yadifa-2.3.10/lib/dnscore/src/output_stream.c
Examining data/yadifa-2.3.10/lib/dnscore/src/pace.c
Examining data/yadifa-2.3.10/lib/dnscore/src/packet_reader.c
Examining data/yadifa-2.3.10/lib/dnscore/src/packet_writer.c
Examining data/yadifa-2.3.10/lib/dnscore/src/parser.c
Examining data/yadifa-2.3.10/lib/dnscore/src/parsing.c
Examining data/yadifa-2.3.10/lib/dnscore/src/pid.c
Examining data/yadifa-2.3.10/lib/dnscore/src/pipe_stream.c
Examining data/yadifa-2.3.10/lib/dnscore/src/pool.c
Examining data/yadifa-2.3.10/lib/dnscore/src/ptr_set.c
Examining data/yadifa-2.3.10/lib/dnscore/src/ptr_set_debug.c
Examining data/yadifa-2.3.10/lib/dnscore/src/ptr_vector.c
Examining data/yadifa-2.3.10/lib/dnscore/src/queue-sl.c
Examining data/yadifa-2.3.10/lib/dnscore/src/random.c
Examining data/yadifa-2.3.10/lib/dnscore/src/rc.c
Examining data/yadifa-2.3.10/lib/dnscore/src/rewind-input-stream.c
Examining data/yadifa-2.3.10/lib/dnscore/src/rfc.c
Examining data/yadifa-2.3.10/lib/dnscore/src/serial.c
Examining data/yadifa-2.3.10/lib/dnscore/src/server-setup.c
Examining data/yadifa-2.3.10/lib/dnscore/src/service.c
Examining data/yadifa-2.3.10/lib/dnscore/src/string_set.c
Examining data/yadifa-2.3.10/lib/dnscore/src/sys_error.c
Examining data/yadifa-2.3.10/lib/dnscore/src/sys_get_cpu_count.c
Examining data/yadifa-2.3.10/lib/dnscore/src/tcp_io_stream.c
Examining data/yadifa-2.3.10/lib/dnscore/src/thread_pool.c
Examining data/yadifa-2.3.10/lib/dnscore/src/threaded-qsl-cw.c
Examining data/yadifa-2.3.10/lib/dnscore/src/threaded_dll_cw.c
Examining data/yadifa-2.3.10/lib/dnscore/src/threaded_nb_mm.c
Examining data/yadifa-2.3.10/lib/dnscore/src/threaded_nbrb.c
Examining data/yadifa-2.3.10/lib/dnscore/src/threaded_ringbuffer.c
Examining data/yadifa-2.3.10/lib/dnscore/src/threaded_ringbuffer_cw.c
Examining data/yadifa-2.3.10/lib/dnscore/src/threaded_ringlist.c
Examining data/yadifa-2.3.10/lib/dnscore/src/timeformat.c
Examining data/yadifa-2.3.10/lib/dnscore/src/timems.c
Examining data/yadifa-2.3.10/lib/dnscore/src/typebitmap.c
Examining data/yadifa-2.3.10/lib/dnscore/src/u32_set.c
Examining data/yadifa-2.3.10/lib/dnscore/src/u64_set.c
Examining data/yadifa-2.3.10/lib/dnscore/src/u64_set_debug.c
Examining data/yadifa-2.3.10/lib/dnscore/src/xfr_input_stream.c
Examining data/yadifa-2.3.10/lib/dnscore/src/zalloc.c
Examining data/yadifa-2.3.10/lib/dnscore/src/osx_clock_gettime.c
Examining data/yadifa-2.3.10/lib/dnscore/src/tsig.c
Examining data/yadifa-2.3.10/lib/dnscore/src/tsig_algorithms.c
Examining data/yadifa-2.3.10/lib/dnscore/src/nsid.c
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/zdb-config-features.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/avl.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/btree.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/dictionary.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/dictionary-node.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/dnsrdata.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/dnssec.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/dnssec_config.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/dnssec-keystore.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/hash.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/htable.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/htbt.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/journal.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/journal_ix.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/journal-cjf.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/journal-cjf-common.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/journal-cjf-idxt.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/journal-cjf-page.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/journal-cjf-page-cache.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/journal-cjf-page-output-stream.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/chain-replay.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/nsec.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/nsec-chain-replay.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/nsec3.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/nsec3_collection.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/nsec3_hash.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/nsec3-chain-replay.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/nsec3_item.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/nsec3_load.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/nsec3_name_error.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/nsec3_nodata_error.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/nsec3_owner.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/nsec3_types.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/nsec3_zone.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/nsec_collection.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/nsec_common.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/rr_canonize.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/rrsig.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/xfr_copy.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/zdb.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/zdb_config.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/zdb_error.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/zdb_icmtl.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/zdb_record.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/zdb_rr_label.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/zdb_sanitize.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/zdb_types.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/zdb_utils.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/zdb_cache.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/zdb_zone.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/zdb-lock.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/zdb-zone-arc.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/zdb-zone-dnssec.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/zdb-zone-find.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/zdb-zone-garbage.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/zdb-zone-journal.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/zdb-zone-lock.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/zdb-zone-lock-monitor.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/zdb-zone-answer-axfr.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/zdb-zone-answer-ixfr.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/zdb-zone-maintenance.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/zdb-packed-ttlrdata.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/zdb_zone_axfr_input_stream.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/zdb_zone_label.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/zdb_zone_label_iterator.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/zdb_zone_load.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/zdb_zone_load_interface.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/zdb-zone-path-provider.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/zdb_zone_process.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/zdb-zone-reader-filter.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/zdb_zone_write.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/nsec3-forall-label.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/dynupdate.h
Examining data/yadifa-2.3.10/lib/dnsdb/include/dnsdb/dynupdate-diff.h
Examining data/yadifa-2.3.10/lib/dnsdb/src/avl.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/dictionary.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/dictionary_btree.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/dictionary_htbt.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/hash.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/hash_table_values.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/htable.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/htbt.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/journal-cjf-idxt.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/journal-cjf-page-cache.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/journal-cjf-page-output-stream.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/journal-cjf-page.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/journal-cjf.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/journal.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/journal_ix.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/xfr_copy.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/zdb-zone-answer-axfr.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/zdb-zone-answer-ixfr.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/zdb-zone-arc.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/zdb-zone-dnssec.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/zdb-zone-find.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/zdb-zone-garbage.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/zdb-zone-journal.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/zdb-zone-lock.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/zdb-zone-lock-monitor.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/zdb-zone-path-provider.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/zdb-zone-reader-filter.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/zdb.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/zdb_cache.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/zdb_error.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/zdb_icmtl.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/zdb_query_ex.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/zdb_query_ex_wire.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/zdb_record.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/zdb_rr_label.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/zdb_sanitize.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/zdb_utils.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/zdb_zone_axfr_input_stream.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/zdb_zone_label.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/zdb_zone_label_iterator.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/zdb_zone_load.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/zdb_zone_process.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/zdb_zone_store_axfr.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/zdb_zone_write_text.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/zdb_zone_write_unbound.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/dynupdate_check_prerequisites.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/dynupdate-diff.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/dynupdate-diff-nochain.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/dynupdate-diff-nsec.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/dynupdate-diff-nsec3.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/zdb-zone-maintenance.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/zdb-zone-maintenance-rrsig.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/zdb-zone-maintenance-nsec.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/zdb-zone-maintenance-nsec3.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/dnssec.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/dnssec-keystore.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/nsec_common.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/rr_canonize.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/rrsig.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/zdb_update_signatures.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/zdb-packed-ttlrdata.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/nsec3.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/nsec3_collection.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/nsec3_hash.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/nsec3_item.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/nsec3-chain-replay.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/nsec3_load.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/nsec3_name_error.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/nsec3_nodata_error.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/nsec3_owner.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/nsec3_zone.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/nsec3-forall-label.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/nsec.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/nsec-chain-replay.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/nsec_collection.c
Examining data/yadifa-2.3.10/lib/dnsdb/src/zdb_zone.c
Examining data/yadifa-2.3.10/lib/dnszone/include/dnszone/dnszone-config-features.h
Examining data/yadifa-2.3.10/lib/dnszone/include/dnszone/dnszone.h
Examining data/yadifa-2.3.10/lib/dnszone/include/dnszone/hints_file_reader.h
Examining data/yadifa-2.3.10/lib/dnszone/include/dnszone/zone_axfr_reader.h
Examining data/yadifa-2.3.10/lib/dnszone/include/dnszone/zone_file_reader.h
Examining data/yadifa-2.3.10/lib/dnszone/src/dnszone.c
Examining data/yadifa-2.3.10/lib/dnszone/src/hints_file_reader.c
Examining data/yadifa-2.3.10/lib/dnszone/src/zone_axfr_reader.c
Examining data/yadifa-2.3.10/lib/dnszone/src/zone_file_reader.c
Examining data/yadifa-2.3.10/lib/dnslg/include/dnslg/dnslg-config-features.h
Examining data/yadifa-2.3.10/lib/dnslg/include/dnslg/config-load.h
Examining data/yadifa-2.3.10/lib/dnslg/include/dnslg/config-resolver.h
Examining data/yadifa-2.3.10/lib/dnslg/include/dnslg/dns.h
Examining data/yadifa-2.3.10/lib/dnslg/include/dnslg/resolv-conf.h
Examining data/yadifa-2.3.10/lib/dnslg/include/dnslg/resolv.h
Examining data/yadifa-2.3.10/lib/dnslg/src/config-load.c
Examining data/yadifa-2.3.10/lib/dnslg/src/config-resolver.c
Examining data/yadifa-2.3.10/lib/dnslg/src/dns.c
Examining data/yadifa-2.3.10/lib/dnslg/src/resolv-conf.c
Examining data/yadifa-2.3.10/lib/dnslg/src/resolv.c
Examining data/yadifa-2.3.10/sbin/yadifad/axfr.h
Examining data/yadifa-2.3.10/sbin/yadifad/config.h
Examining data/yadifa-2.3.10/sbin/yadifad/config_error.h
Examining data/yadifa-2.3.10/sbin/yadifad/confs.h
Examining data/yadifa-2.3.10/sbin/yadifad/database-service-zone-desc-load.h
Examining data/yadifa-2.3.10/sbin/yadifad/database-service-zone-desc-unload.h
Examining data/yadifa-2.3.10/sbin/yadifad/database-service-zone-download.h
Examining data/yadifa-2.3.10/sbin/yadifad/database-service-zone-freeze.h
Examining data/yadifa-2.3.10/sbin/yadifad/database-service-zone-load.h
Examining data/yadifa-2.3.10/sbin/yadifad/database-service-zone-mount.h
Examining data/yadifa-2.3.10/sbin/yadifad/database-service-zone-save.h
Examining data/yadifa-2.3.10/sbin/yadifad/database-service-zone-unfreeze.h
Examining data/yadifa-2.3.10/sbin/yadifad/database-service-zone-unload.h
Examining data/yadifa-2.3.10/sbin/yadifad/database-service-zone-unmount.h
Examining data/yadifa-2.3.10/sbin/yadifad/database-service.h
Examining data/yadifa-2.3.10/sbin/yadifad/database.h
Examining data/yadifa-2.3.10/sbin/yadifad/dnssec-policy.h
Examining data/yadifa-2.3.10/sbin/yadifad/ixfr.h
Examining data/yadifa-2.3.10/sbin/yadifad/log_query.h
Examining data/yadifa-2.3.10/sbin/yadifad/log_statistics.h
Examining data/yadifa-2.3.10/sbin/yadifad/notify.h
Examining data/yadifa-2.3.10/sbin/yadifad/poll-util.h
Examining data/yadifa-2.3.10/sbin/yadifad/process_class_ch.h
Examining data/yadifa-2.3.10/sbin/yadifad/server-mt.h
Examining data/yadifa-2.3.10/sbin/yadifad/server-rw.h
Examining data/yadifa-2.3.10/sbin/yadifad/server.h
Examining data/yadifa-2.3.10/sbin/yadifad/server_context.h
Examining data/yadifa-2.3.10/sbin/yadifad/server_error.h
Examining data/yadifa-2.3.10/sbin/yadifad/signals.h
Examining data/yadifa-2.3.10/sbin/yadifad/zone.h
Examining data/yadifa-2.3.10/sbin/yadifad/zone_desc.h
Examining data/yadifa-2.3.10/sbin/yadifad/zone-source.h
Examining data/yadifa-2.3.10/sbin/yadifad/ctrl.h
Examining data/yadifa-2.3.10/sbin/yadifad/ctrl_query.h
Examining data/yadifa-2.3.10/sbin/yadifad/ctrl_zone.h
Examining data/yadifa-2.3.10/sbin/yadifad/config_acl.h
Examining data/yadifa-2.3.10/sbin/yadifad/rrl.h
Examining data/yadifa-2.3.10/sbin/yadifad/acl.h
Examining data/yadifa-2.3.10/sbin/yadifad/dynupdate_query_service.h
Examining data/yadifa-2.3.10/sbin/yadifad/database-service-zone-resignature.h
Examining data/yadifa-2.3.10/sbin/yadifad/config-dnssec-policy.h
Examining data/yadifa-2.3.10/sbin/yadifad/config-key-roll-parser.h
Examining data/yadifa-2.3.10/sbin/yadifad/zone-signature-policy.h
Examining data/yadifa-2.3.10/sbin/yadifad/main.c
Examining data/yadifa-2.3.10/sbin/yadifad/axfr.c
Examining data/yadifa-2.3.10/sbin/yadifad/config_main.c
Examining data/yadifa-2.3.10/sbin/yadifad/config_zone.c
Examining data/yadifa-2.3.10/sbin/yadifad/confs.c
Examining data/yadifa-2.3.10/sbin/yadifad/database-service-zone-desc-load.c
Examining data/yadifa-2.3.10/sbin/yadifad/database-service-zone-desc-unload.c
Examining data/yadifa-2.3.10/sbin/yadifad/database-service-zone-download.c
Examining data/yadifa-2.3.10/sbin/yadifad/database-service-zone-freeze.c
Examining data/yadifa-2.3.10/sbin/yadifad/database-service-zone-load.c
Examining data/yadifa-2.3.10/sbin/yadifad/database-service-zone-mount.c
Examining data/yadifa-2.3.10/sbin/yadifad/database-service-zone-save.c
Examining data/yadifa-2.3.10/sbin/yadifad/database-service-zone-unfreeze.c
Examining data/yadifa-2.3.10/sbin/yadifad/database-service-zone-unload.c
Examining data/yadifa-2.3.10/sbin/yadifad/database-service-zone-unmount.c
Examining data/yadifa-2.3.10/sbin/yadifad/database-service.c
Examining data/yadifa-2.3.10/sbin/yadifad/database.c
Examining data/yadifa-2.3.10/sbin/yadifad/ixfr.c
Examining data/yadifa-2.3.10/sbin/yadifad/log_query.c
Examining data/yadifa-2.3.10/sbin/yadifad/log_statistics.c
Examining data/yadifa-2.3.10/sbin/yadifad/notify.c
Examining data/yadifa-2.3.10/sbin/yadifad/poll-util.c
Examining data/yadifa-2.3.10/sbin/yadifad/process_class_ch.c
Examining data/yadifa-2.3.10/sbin/yadifad/server-mt.c
Examining data/yadifa-2.3.10/sbin/yadifad/server-rw.c
Examining data/yadifa-2.3.10/sbin/yadifad/server.c
Examining data/yadifa-2.3.10/sbin/yadifad/server_context.c
Examining data/yadifa-2.3.10/sbin/yadifad/signals.c
Examining data/yadifa-2.3.10/sbin/yadifad/zone.c
Examining data/yadifa-2.3.10/sbin/yadifad/config-nsid.c
Examining data/yadifa-2.3.10/sbin/yadifad/config_control.c
Examining data/yadifa-2.3.10/sbin/yadifad/ctrl.c
Examining data/yadifa-2.3.10/sbin/yadifad/ctrl_query.c
Examining data/yadifa-2.3.10/sbin/yadifad/ctrl_zone.c
Examining data/yadifa-2.3.10/sbin/yadifad/acl.c
Examining data/yadifa-2.3.10/sbin/yadifad/config_acl.c
Examining data/yadifa-2.3.10/sbin/yadifad/rrl.c
Examining data/yadifa-2.3.10/sbin/yadifad/dynupdate_query_service.c
Examining data/yadifa-2.3.10/sbin/yadifad/database-service-zone-resignature.c
Examining data/yadifa-2.3.10/sbin/yadifad/config-denial.c
Examining data/yadifa-2.3.10/sbin/yadifad/config-dnssec-policy.c
Examining data/yadifa-2.3.10/sbin/yadifad/config-key-roll.c
Examining data/yadifa-2.3.10/sbin/yadifad/config-key-suite.c
Examining data/yadifa-2.3.10/sbin/yadifad/config-key-template.c
Examining data/yadifa-2.3.10/sbin/yadifad/config-key-roll-parser.c
Examining data/yadifa-2.3.10/sbin/yadifad/zone-signature-policy.c
Examining data/yadifa-2.3.10/sbin/yadifad/zone-signature-date-next.c
Examining data/yadifa-2.3.10/sbin/yadifad/zone-signature-date-prev.c
Examining data/yadifa-2.3.10/bin/yadifa/common-config.h
Examining data/yadifa-2.3.10/bin/yadifa/message-viewer-dig.h
Examining data/yadifa-2.3.10/bin/yadifa/message-viewer-json.h
Examining data/yadifa-2.3.10/bin/yadifa/message-viewer-parse.h
Examining data/yadifa-2.3.10/bin/yadifa/message-viewer-wire.h
Examining data/yadifa-2.3.10/bin/yadifa/message-viewer-xml.h
Examining data/yadifa-2.3.10/bin/yadifa/query-result.h
Examining data/yadifa-2.3.10/bin/yadifa/yadifa.h
Examining data/yadifa-2.3.10/bin/yadifa/yadifa-config.h
Examining data/yadifa-2.3.10/bin/yadifa/dnssec-test.h
Examining data/yadifa-2.3.10/bin/yadifa/main.c
Examining data/yadifa-2.3.10/bin/yadifa/message-viewer-dig.c
Examining data/yadifa-2.3.10/bin/yadifa/message-viewer-json.c
Examining data/yadifa-2.3.10/bin/yadifa/message-viewer-parse.c
Examining data/yadifa-2.3.10/bin/yadifa/message-viewer-wire.c
Examining data/yadifa-2.3.10/bin/yadifa/message-viewer-xml.c
Examining data/yadifa-2.3.10/bin/yadifa/query-result.c
Examining data/yadifa-2.3.10/bin/yadifa/yadifa.c
Examining data/yadifa-2.3.10/bin/yadifa/yadifa-config.c

FINAL RESULTS:

data/yadifa-2.3.10/lib/dnscore/src/debug.c:242:17:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
    ssize_t n = readlink("/proc/self/exe", path, sizeof(path));
data/yadifa-2.3.10/lib/dnscore/src/pid.c:110:16:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
            if(chown(pid_file_path, new_uid, new_gid) >= 0)
data/yadifa-2.3.10/bin/yadifa/main.c:154:9:  [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(rc_file, home_env);
data/yadifa-2.3.10/bin/yadifa/main.c:156:9:  [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(rc_file, program_name);
data/yadifa-2.3.10/bin/yadifa/message-viewer-json.c:85:5:  [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(pretty_print_tab, PRETTY_PRINT_WORD);
data/yadifa-2.3.10/bin/yadifa/message-viewer-xml.c:85:5:  [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(pretty_print_tab, PRETTY_PRINT_WORD);
data/yadifa-2.3.10/lib/dnscore/include/dnscore/sys_types.h:72:9:  [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).
#define strcpy strcpy_freebsd
data/yadifa-2.3.10/lib/dnscore/src/dnscore.c:122:41:  [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 ARCH_CHECK_SIZE(a,b) if(a!=b) { printf(ARCH_CHECK_SIZE_WARNING,#a,a,b);puts(ARCH_RECOMPILE_WARNING);DIE(ERROR); }
data/yadifa-2.3.10/lib/dnscore/src/dnscore.c:123:52:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define ARCH_CHECK_SIGNED(a) {a val=~0;if(val>0) { printf(ARCH_CHECK_SIGN_WARNING,#a);puts(ARCH_RECOMPILE_WARNING);DIE(ERROR); }}
data/yadifa-2.3.10/lib/dnscore/src/dnscore.c:124:54:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define ARCH_CHECK_UNSIGNED(a) {a val=~0;if(val<0) { printf(ARCH_CHECK_SIGN_WARNING,#a);puts(ARCH_RECOMPILE_WARNING);DIE(ERROR); }}
data/yadifa-2.3.10/lib/dnscore/src/format.c:445:15:  [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 len = snprintf(tmp, sizeof(tmp), fmt, val);
data/yadifa-2.3.10/lib/dnscore/src/format.c:458:15:  [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 len = snprintf(tmp, sizeof(tmp), fmt, val);
data/yadifa-2.3.10/lib/dnscore/src/sys_error.c:71: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); /* Keep native */
data/yadifa-2.3.10/lib/dnsdb/src/dnssec-keystore.c:561: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.
        if(snprintf(path, PATH_MAX, "%s/" OAT_PRIVATE_FORMAT, domain->keys_path, clean_origin, algorithm, tag) >= PATH_MAX)
data/yadifa-2.3.10/lib/dnsdb/src/dnssec-keystore.c:569: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.
        if(snprintf(path, PATH_MAX, "%s/" OAT_PRIVATE_FORMAT, g_keystore_path, clean_origin, algorithm, tag) >= PATH_MAX)
data/yadifa-2.3.10/lib/dnsdb/src/dnssec-keystore.c:630: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.
        if(snprintf(path, PATH_MAX, "%s/" OAT_DNSKEY_FORMAT, domain->keys_path, clean_origin, algorithm, tag) >= PATH_MAX)
data/yadifa-2.3.10/lib/dnsdb/src/dnssec-keystore.c:638: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.
        if(snprintf(path, PATH_MAX, "%s/" OAT_DNSKEY_FORMAT, g_keystore_path, clean_origin, algorithm, tag) >= PATH_MAX)
data/yadifa-2.3.10/lib/dnsdb/src/dnssec-keystore.c:1581:16:  [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.
            if(snprintf(path, sizeof(path), "%s/" OAT_PRIVATE_FORMAT, domain->keys_path, clean_origin, algorithm, tag) >= PATH_MAX)
data/yadifa-2.3.10/lib/dnsdb/src/dnssec-keystore.c:1589:16:  [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.
            if(snprintf(path, sizeof(path), "%s/" OAT_PRIVATE_FORMAT, g_keystore_path, clean_origin, algorithm, tag) >= PATH_MAX)
data/yadifa-2.3.10/lib/dnsdb/src/dnssec-keystore.c:1645: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.
        if(snprintf(path, PATH_MAX, "%s/" OAT_PRIVATE_FORMAT, domain->keys_path, key->origin, key->algorithm, key->tag) >= PATH_MAX)
data/yadifa-2.3.10/lib/dnsdb/src/dnssec-keystore.c:1653: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.
        if(snprintf(path, PATH_MAX, "%s/" OAT_PRIVATE_FORMAT, g_keystore_path, key->origin, key->algorithm, key->tag) >= PATH_MAX)
data/yadifa-2.3.10/lib/dnsdb/src/dnssec-keystore.c:1695: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.
        if(snprintf(path, PATH_MAX, "%s/" OAT_DNSKEY_FORMAT, domain->keys_path, key->origin, key->algorithm, key->tag) >= PATH_MAX)
data/yadifa-2.3.10/lib/dnsdb/src/dnssec-keystore.c:1703: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.
        if(snprintf(path, PATH_MAX, "%s/" OAT_DNSKEY_FORMAT, g_keystore_path, key->origin, key->algorithm, key->tag) >= PATH_MAX)
data/yadifa-2.3.10/lib/dnsdb/src/zdb-zone-answer-axfr.c:492:28:  [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.
            should_write = access(buffer, R_OK | F_OK) < 0;
data/yadifa-2.3.10/lib/dnsdb/src/zdb-zone-answer-axfr.c:622:20:  [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(buffer, R_OK | F_OK) >= 0)
data/yadifa-2.3.10/lib/dnsdb/src/zdb-zone-answer-axfr.c:659:16:  [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(buffer, R_OK | F_OK) >= 0)
data/yadifa-2.3.10/sbin/yadifad/log_query.c:175:9:  [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(buffer, class_name); // the buffer is big enough
data/yadifa-2.3.10/sbin/yadifad/log_query.c:190:9:  [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(buffer, type_name); // the buffer is big enough
data/yadifa-2.3.10/sbin/yadifad/log_query.c:289:9:  [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(buffer, class_name); // the buffer is big enough
data/yadifa-2.3.10/sbin/yadifad/log_query.c:304:9:  [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(buffer, type_name); // the buffer is big enough
data/yadifa-2.3.10/bin/yadifa/main.c:141:28:  [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_env = getenv ("HOME");
data/yadifa-2.3.10/lib/dnscore/src/chroot.c:266:8:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
    if(chroot(chroot_path) < 0)   
data/yadifa-2.3.10/lib/dnscore/src/tcp_io_stream.c:404:33:  [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* tcp_flags_cfg = getenv(DNSCORE_TCP_FLAGS);
data/yadifa-2.3.10/sbin/yadifad/config_main.c:110:18:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
CONFIG_FLAG16(   chroot                      , S_CHROOT                  , server_flags,  SERVER_FL_CHROOT              ) // doc
data/yadifa-2.3.10/bin/yadifa/main.c:155:9:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
        strcat(rc_file, "/.");
data/yadifa-2.3.10/bin/yadifa/main.c:157:9:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
        strcat(rc_file, ".rc");
data/yadifa-2.3.10/bin/yadifa/message-viewer-json.c:56: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 *message_record_names[4] =
data/yadifa-2.3.10/bin/yadifa/message-viewer-json.c:61: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 *message_section_names[4] =
data/yadifa-2.3.10/bin/yadifa/message-viewer-json.c:66:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char *message_section_update_names[4] =
data/yadifa-2.3.10/bin/yadifa/message-viewer-json.c:77: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 pretty_print_tab[32];
data/yadifa-2.3.10/bin/yadifa/message-viewer-json.c:78: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 pretty_print_cr[2];
data/yadifa-2.3.10/bin/yadifa/message-viewer-xml.c:56: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 *message_record_names[4] =
data/yadifa-2.3.10/bin/yadifa/message-viewer-xml.c:61: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 *message_section_names[4] =
data/yadifa-2.3.10/bin/yadifa/message-viewer-xml.c:66:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char *message_section_update_names[4] =
data/yadifa-2.3.10/bin/yadifa/message-viewer-xml.c:77: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 pretty_print_tab[32];
data/yadifa-2.3.10/bin/yadifa/message-viewer-xml.c:78: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 pretty_print_cr[2];
data/yadifa-2.3.10/bin/yadifa/yadifa-config.c:279: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 txt[16];
data/yadifa-2.3.10/lib/dnscore/include/dnscore/bytearray_output_stream.h:70: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.
    typedef char bytearray_output_stream_context[sizeof(void*) + 9];
data/yadifa-2.3.10/lib/dnscore/include/dnscore/bytezarray_output_stream.h:70: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.
    typedef char bytezarray_output_stream_context[sizeof(void*) + 9];
data/yadifa-2.3.10/lib/dnscore/include/dnscore/config_settings.h:315: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 line[256];
data/yadifa-2.3.10/lib/dnscore/include/dnscore/config_settings.h:316: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 file[PATH_MAX];
data/yadifa-2.3.10/lib/dnscore/include/dnscore/dnskey.h:136: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 name[24];
data/yadifa-2.3.10/lib/dnscore/include/dnscore/dnsname.h:496: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(target, src, len);
data/yadifa-2.3.10/lib/dnscore/include/dnscore/fdtools.h:76: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 _reserved[PATH_MAX];
data/yadifa-2.3.10/lib/dnscore/include/dnscore/mutex.h:111: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 _MTXs[4];
data/yadifa-2.3.10/lib/dnscore/include/dnscore/parser.h:154: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 char_type[256];
data/yadifa-2.3.10/lib/dnscore/include/dnscore/parser.h:155: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 delimiter_close[256];
data/yadifa-2.3.10/lib/dnscore/include/dnscore/parser.h:157: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 line_buffer[PARSER_LINE_LENGTH_MAX];
data/yadifa-2.3.10/lib/dnscore/include/dnscore/parser.h:159: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 extra_buffer[PARSER_LINE_LENGTH_MAX];
data/yadifa-2.3.10/lib/dnscore/include/dnscore/parser.h:161: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 additional_buffer[PARSER_LINE_LENGTH_MAX];
data/yadifa-2.3.10/lib/dnscore/include/dnscore/parser.h:437:13:  [2] (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_text, parser_text(p), len);
data/yadifa-2.3.10/lib/dnscore/include/dnscore/parser.h:456: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 text[32];
data/yadifa-2.3.10/lib/dnscore/include/dnscore/parser.h:471: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 text[32];
data/yadifa-2.3.10/lib/dnscore/include/dnscore/sys_types.h:57: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(dest, src, src_len);
data/yadifa-2.3.10/lib/dnscore/include/dnscore/sys_types.h:68: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(dest, src, src_len);
data/yadifa-2.3.10/lib/dnscore/include/dnscore/sys_types.h:677:43:  [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 MEMCOPY(target__,source__,size__) memcpy((target__),(source__),(size__))
data/yadifa-2.3.10/lib/dnscore/src/base32.c:54: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 __BASE32__[256] = {
data/yadifa-2.3.10/lib/dnscore/src/base32hex.c:54: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 __BASE32_HEX__[256] = {
data/yadifa-2.3.10/lib/dnscore/src/base32hex.c:377: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 tmp[8];
data/yadifa-2.3.10/lib/dnscore/src/base64.c:54: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 __BASE64__[256] ={
data/yadifa-2.3.10/lib/dnscore/src/buffer_input_stream.c:269:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(buffer, b, len);
data/yadifa-2.3.10/lib/dnscore/src/buffer_input_stream.c:273:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buffer, b, n);
data/yadifa-2.3.10/lib/dnscore/src/bytearray_output_stream.c:283: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(ret, data->buffer, n);
data/yadifa-2.3.10/lib/dnscore/src/bytearray_output_stream.c:295: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(ret, data->buffer, n);
data/yadifa-2.3.10/lib/dnscore/src/cmdline.c:150: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 clean_name[128];
data/yadifa-2.3.10/lib/dnscore/src/config_file_reader.c:76: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 key[256];
data/yadifa-2.3.10/lib/dnscore/src/config_file_reader.c:77: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 current_container_name[256];
data/yadifa-2.3.10/lib/dnscore/src/config_file_reader.c:124:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(file_path, base_file_path, n);
data/yadifa-2.3.10/lib/dnscore/src/config_file_reader.c:260:29:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                            memcpy(cfr->current_container_name, &text[1], text_len - 2); // copy between < > 
data/yadifa-2.3.10/lib/dnscore/src/config_file_reader.c:363:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_name[PATH_MAX];
data/yadifa-2.3.10/lib/dnscore/src/config_file_reader.c:427:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(cfr->key, text, text_len);
data/yadifa-2.3.10/lib/dnscore/src/config_file_reader.c:582:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(cfgerr->line, cfr->parser.line_buffer, len);
data/yadifa-2.3.10/lib/dnscore/src/config_key.c:43: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 name[256];
data/yadifa-2.3.10/lib/dnscore/src/config_key.c:44: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 algorithm[32];
data/yadifa-2.3.10/lib/dnscore/src/config_key.c:45: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 secret[512];
data/yadifa-2.3.10/lib/dnscore/src/config_logger.c:297: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 value_target[PATH_MAX];
data/yadifa-2.3.10/lib/dnscore/src/config_logger.c:370:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char fullpath[PATH_MAX];
data/yadifa-2.3.10/lib/dnscore/src/config_logger.c:393:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&fullpath[pathbase_len], value, path_len);
data/yadifa-2.3.10/lib/dnscore/src/config_logger.c:487:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char level[16];
data/yadifa-2.3.10/lib/dnscore/src/config_logger.c:541:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char channel_name[64];
data/yadifa-2.3.10/lib/dnscore/src/config_settings.c:381:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    *dest = atoi(value);
data/yadifa-2.3.10/lib/dnscore/src/config_settings.c:398: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).
    u32 tmp = atoi(value);
data/yadifa-2.3.10/lib/dnscore/src/config_settings.c:423: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).
    u32 tmp = atoi(value);
data/yadifa-2.3.10/lib/dnscore/src/config_settings.c:450:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    *dest = atoi(value);
data/yadifa-2.3.10/lib/dnscore/src/config_settings.c:459:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    *dest = atoi(value);
data/yadifa-2.3.10/lib/dnscore/src/config_settings.c:521: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(dest, value, len);
data/yadifa-2.3.10/lib/dnscore/src/config_settings.c:666:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(tmp, value, len);
data/yadifa-2.3.10/lib/dnscore/src/config_settings.c:1046: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.
            char key_name[MAX_DOMAIN_TEXT_LENGTH + 1];
data/yadifa-2.3.10/lib/dnscore/src/config_settings.c:1106:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(key_name, key_name_start, key_name_len);
data/yadifa-2.3.10/lib/dnscore/src/config_settings.c:1390: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 configuration_file_path[PATH_MAX];
data/yadifa-2.3.10/lib/dnscore/src/config_settings.c:1843: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 tmp[1024];
data/yadifa-2.3.10/lib/dnscore/src/config_settings.c:1854:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char filtered_name[128];
data/yadifa-2.3.10/lib/dnscore/src/config_settings.c:2136:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char filtered_name[128];
data/yadifa-2.3.10/lib/dnscore/src/config_settings.c:2300:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char filtered_name[128];
data/yadifa-2.3.10/lib/dnscore/src/config_settings.c:2317:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char table_filtered_name[128];
data/yadifa-2.3.10/lib/dnscore/src/config_struct.c:117: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(vtbl, &config_section_struct_descriptor, sizeof(config_section_descriptor_vtbl_s));
data/yadifa-2.3.10/lib/dnscore/src/debug.c:241: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 path[PATH_MAX];
data/yadifa-2.3.10/lib/dnscore/src/debug.c:326: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 debug_bfd_symbol_flags_format_letter[24] =
data/yadifa-2.3.10/lib/dnscore/src/debug.c:340: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 tmp[24];
data/yadifa-2.3.10/lib/dnscore/src/debug.c:629:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(trace, buffer, n * sizeof(void*));
data/yadifa-2.3.10/lib/dnscore/src/debug.c:642:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(trace, buffer, n * sizeof(void*));
data/yadifa-2.3.10/lib/dnscore/src/debug.c:722:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char binary[PATH_MAX];            
data/yadifa-2.3.10/lib/dnscore/src/debug.c:723:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(binary, text, n);
data/yadifa-2.3.10/lib/dnscore/src/debug.c:782:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char binary[PATH_MAX];            
data/yadifa-2.3.10/lib/dnscore/src/debug.c:783:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(binary, text, n);
data/yadifa-2.3.10/lib/dnscore/src/debug.c:923: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 binary[PATH_MAX];
data/yadifa-2.3.10/lib/dnscore/src/debug.c:943:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(binary, symbols[i], n);
data/yadifa-2.3.10/lib/dnscore/src/debug.c:1441: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.
            char tag_text[9];
data/yadifa-2.3.10/lib/dnscore/src/dns-udp.c:1204:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(fqdn, simple_message->fqdn, fqdn_len);
data/yadifa-2.3.10/lib/dnscore/src/dns-udp.c:1209:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(fqdn, "\006BROKEN", 8);
data/yadifa-2.3.10/lib/dnscore/src/dns-udp.c:2105:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(mesg->buffer, ctx->messages[index], n); // scan-build false-positive: mesg is not NULL, thus buffer cannot be NULL
data/yadifa-2.3.10/lib/dnscore/src/dnsformat.c:778: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[INET6_ADDRSTRLEN + 1 + 5 + 1];
data/yadifa-2.3.10/lib/dnscore/src/dnsformat.c:836: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[MAX_DOMAIN_LENGTH + 1 + 5 + 1];
data/yadifa-2.3.10/lib/dnscore/src/dnsformat.c:908: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_tmp[1024];
data/yadifa-2.3.10/lib/dnscore/src/dnsformat.c:963:21:  [2] (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, "INVALID", 8);
data/yadifa-2.3.10/lib/dnscore/src/dnsformat.c:983:17:  [2] (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, src, p - src);
data/yadifa-2.3.10/lib/dnscore/src/dnsformat.c:997:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(src, "NULL", 5);
data/yadifa-2.3.10/lib/dnscore/src/dnsformat.c:1017: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[INET6_ADDRSTRLEN + 1 + 5 + 1];
data/yadifa-2.3.10/lib/dnscore/src/dnskey-signature.c:248:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&hdr.header.fqdn_signature[0], owner_fqdn, owner_fqdn_len);
data/yadifa-2.3.10/lib/dnscore/src/dnskey.c:604: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 origin[MAX_DOMAIN_LENGTH];
data/yadifa-2.3.10/lib/dnscore/src/dnskey.c:648: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 buffer2_[4096];
data/yadifa-2.3.10/lib/dnscore/src/dnskey.c:1103: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 origin[MAX_DOMAIN_LENGTH + 1];
data/yadifa-2.3.10/lib/dnscore/src/dnskey.c:1142:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(origin, text, text_len);
data/yadifa-2.3.10/lib/dnscore/src/dnskey.c:1262: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 extension[16];
data/yadifa-2.3.10/lib/dnscore/src/dnskey.c:1263: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 domain[256];
data/yadifa-2.3.10/lib/dnscore/src/dnskey.c:1265: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 path[PATH_MAX];
data/yadifa-2.3.10/lib/dnscore/src/dnskey.c:1312: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(path, filename, path_len);
data/yadifa-2.3.10/lib/dnscore/src/dnskey.c:1316: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(&path[path_len], "key", 4);
data/yadifa-2.3.10/lib/dnscore/src/dnskey.c:1326: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(&path[path_len], "private", 8);
data/yadifa-2.3.10/lib/dnscore/src/dnskey.c:1713: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 filename[PATH_MAX];
data/yadifa-2.3.10/lib/dnscore/src/dnskey.c:1751: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 filename[PATH_MAX];
data/yadifa-2.3.10/lib/dnscore/src/dnskey_dsa.c:310: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.
            char buffer[256];
data/yadifa-2.3.10/lib/dnscore/src/dnskey_dsa.c:371: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.
            char buffer[256];
data/yadifa-2.3.10/lib/dnscore/src/dnskey_ecdsa.c:283: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.
            char buffer[256];
data/yadifa-2.3.10/lib/dnscore/src/dnskey_ecdsa.c:333: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.
            char buffer[256];
data/yadifa-2.3.10/lib/dnscore/src/dnskey_ecdsa.c:360:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&tmp[1], rdata, rdata_size);
data/yadifa-2.3.10/lib/dnscore/src/dnskey_ecdsa.c:387: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(output_buffer, &tmp[1], size - 1);
data/yadifa-2.3.10/lib/dnscore/src/dnskey_rsa.c:319: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.
            char buffer[256];
data/yadifa-2.3.10/lib/dnscore/src/dnsname.c:2374:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&dst->labels[0], &src->labels[0], sizeof(u8*) * dst->size);
data/yadifa-2.3.10/lib/dnscore/src/fdtools.c:82: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 name[256];
data/yadifa-2.3.10/lib/dnscore/src/fdtools.c:492: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 fullpath[PATH_MAX];
data/yadifa-2.3.10/lib/dnscore/src/fdtools.c:498:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(fullpath, folder, l0);
data/yadifa-2.3.10/lib/dnscore/src/fdtools.c:500:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&fullpath[l0 + 1], filename, l1);
data/yadifa-2.3.10/lib/dnscore/src/fdtools.c:559: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).
    while((fd = open(pathname, flags)) < 0)
data/yadifa-2.3.10/lib/dnscore/src/fdtools.c:619: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).
    while((fd = open(pathname, flags, mode)) < 0)
data/yadifa-2.3.10/lib/dnscore/src/fdtools.c:653:14:  [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(template);
data/yadifa-2.3.10/lib/dnscore/src/fdtools.c:681: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).
    while((fd = open(pathname, flags, mode)) < 0)
data/yadifa-2.3.10/lib/dnscore/src/fdtools.c:985: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 dir_path[PATH_MAX];
data/yadifa-2.3.10/lib/dnscore/src/fdtools.c:1014:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(t, s, n);
data/yadifa-2.3.10/lib/dnscore/src/fdtools.c:1161: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 fullpath[PATH_MAX];
data/yadifa-2.3.10/lib/dnscore/src/fdtools.c:1188: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 path[PATH_MAX];
data/yadifa-2.3.10/lib/dnscore/src/fdtools.c:1189: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(path, basedir, basedir_len);
data/yadifa-2.3.10/lib/dnscore/src/fdtools.c:1237:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(name, tmp->d_name, name_len + 1);
data/yadifa-2.3.10/lib/dnscore/src/format.c:250: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 __HEXA__[16] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'};
data/yadifa-2.3.10/lib/dnscore/src/format.c:251: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 __hexa__[16] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};
data/yadifa-2.3.10/lib/dnscore/src/format.c:321: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 tmp[__SIZEOF_POINTER__ * 2];
data/yadifa-2.3.10/lib/dnscore/src/format.c:337: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 tmp[20];
data/yadifa-2.3.10/lib/dnscore/src/format.c:355: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 tmp[20];
data/yadifa-2.3.10/lib/dnscore/src/format.c:373: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 tmp[20];
data/yadifa-2.3.10/lib/dnscore/src/format.c:422:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        p += sprintf(p, "%i", padding);
data/yadifa-2.3.10/lib/dnscore/src/format.c:427:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        p += sprintf(p, "%i", float_padding);
data/yadifa-2.3.10/lib/dnscore/src/format.c:440: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 fmt[32];
data/yadifa-2.3.10/lib/dnscore/src/format.c:441: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 tmp[64];
data/yadifa-2.3.10/lib/dnscore/src/format.c:453: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 fmt[32];
data/yadifa-2.3.10/lib/dnscore/src/format.c:454: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 tmp[64];
data/yadifa-2.3.10/lib/dnscore/src/format.c:605:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char padding_string[10];
data/yadifa-2.3.10/lib/dnscore/src/format.c:619: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).
                padding = atoi(padding_string);
data/yadifa-2.3.10/lib/dnscore/src/format.c:624:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char padding_string[10];
data/yadifa-2.3.10/lib/dnscore/src/format.c:638:33:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                float_padding = atoi(padding_string);
data/yadifa-2.3.10/lib/dnscore/src/format.c:904:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[2];
data/yadifa-2.3.10/lib/dnscore/src/format.c:1280: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[65];
data/yadifa-2.3.10/lib/dnscore/src/format.c:1305: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[65];
data/yadifa-2.3.10/lib/dnscore/src/format.c:1330: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 tmp[4096];
data/yadifa-2.3.10/lib/dnscore/src/format.c:1370: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 tmp[1];
data/yadifa-2.3.10/lib/dnscore/src/format.c:1378: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 tmp[1];
data/yadifa-2.3.10/lib/dnscore/src/format.c:1454:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char ip6txt[INET6_ADDRSTRLEN];
data/yadifa-2.3.10/lib/dnscore/src/format.c:1858:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char ip6txt[INET6_ADDRSTRLEN];
data/yadifa-2.3.10/lib/dnscore/src/format.c:1993: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 hexbyte[2];
data/yadifa-2.3.10/lib/dnscore/src/host_address.c:204:13:  [2] (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_in->sin_addr.s_addr, address->ip.v4.bytes, 4);
data/yadifa-2.3.10/lib/dnscore/src/host_address.c:220:13:  [2] (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_in6->sin6_addr, address->ip.v6.bytes, 16);
data/yadifa-2.3.10/lib/dnscore/src/host_address.c:250:13:  [2] (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_in->sin_addr.s_addr, address->ip.v4.bytes, 4);
data/yadifa-2.3.10/lib/dnscore/src/host_address.c:266:13:  [2] (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_in6->sin6_addr, address->ip.v6.bytes, 16);
data/yadifa-2.3.10/lib/dnscore/src/host_address.c:367:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(address->ip.v6.bytes, &sain6->sin6_addr, 16);
data/yadifa-2.3.10/lib/dnscore/src/host_address.c:565: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(address->ip.v4.bytes, ipv4, 4);
data/yadifa-2.3.10/lib/dnscore/src/host_address.c:573: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(address->ip.v6.bytes, ipv6, 16);
data/yadifa-2.3.10/lib/dnscore/src/logger-output-stream.c:112:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(&stream->data->line[stream->data->line_offset], buffer, line_len);
data/yadifa-2.3.10/lib/dnscore/src/logger-output-stream.c:118:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(&stream->data->line[stream->data->line_offset], buffer, remaining);
data/yadifa-2.3.10/lib/dnscore/src/logger-output-stream.c:140:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&stream->data->line[stream->data->line_offset], buffer, len);
data/yadifa-2.3.10/lib/dnscore/src/logger-output-stream.c:146:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&stream->data->line[stream->data->line_offset], buffer, remaining);            
data/yadifa-2.3.10/lib/dnscore/src/logger.c:76: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[1024];
data/yadifa-2.3.10/lib/dnscore/src/logger_channel_file.c:217: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 thread_tag_buffer[9];
data/yadifa-2.3.10/lib/dnscore/src/logger_channel_syslog.c:93: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 tmp[SYSLOG_MAX_LINE_SIZE];
data/yadifa-2.3.10/lib/dnscore/src/logger_channel_syslog.c:102:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(tmp, SYSLOG_FORMATTING_ERROR_TEXT, SYSLOG_FORMATTING_ERROR_TEXT_LENGTH);
data/yadifa-2.3.10/lib/dnscore/src/logger_channel_syslog.c:117: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 tmp[SYSLOG_MAX_LINE_SIZE];
data/yadifa-2.3.10/lib/dnscore/src/logger_channel_syslog.c:123:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(tmp, SYSLOG_FORMATTING_ERROR_TEXT, SYSLOG_FORMATTING_ERROR_TEXT_LENGTH);
data/yadifa-2.3.10/lib/dnscore/src/logger_handle.c:316: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 acewnid[16 + 1] = "!ACEWNID1234567";
data/yadifa-2.3.10/lib/dnscore/src/logger_handle.c:713:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy((char*)handle->formatted_name, name,  MIN(len , LOGGER_HANDLE_FORMATTED_LENGTH));
data/yadifa-2.3.10/lib/dnscore/src/logger_handle.c:1039: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 repeat_text[128];
data/yadifa-2.3.10/lib/dnscore/src/logger_handle.c:1042: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 thread_tag_buffer[12];
data/yadifa-2.3.10/lib/dnscore/src/logger_handle.c:2625: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(message->text.text, text, text_len);
data/yadifa-2.3.10/lib/dnscore/src/logger_handle.c:2704: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(message->text.text, text, text_len);
data/yadifa-2.3.10/lib/dnscore/src/logger_handle.c:2903: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(message->text.text, text, text_len);
data/yadifa-2.3.10/lib/dnscore/src/message.c:538:33:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                                memcpy(old_mac, mesg->tsig.mac, old_mac_size);
data/yadifa-2.3.10/lib/dnscore/src/message.c:1474: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(tc, qname, qname_len);
data/yadifa-2.3.10/lib/dnscore/src/message.c:1503: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(tc, qname, qname_len);
data/yadifa-2.3.10/lib/dnscore/src/message.c:1591: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(tc, qname, qname_len);
data/yadifa-2.3.10/lib/dnscore/src/message.c:2290: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(clone, mesg, offsetof(message_data,qname));
data/yadifa-2.3.10/lib/dnscore/src/message.c:2292: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(clone->buffer_tcp_len, mesg->buffer_tcp_len, 2 + MAX(mesg->received, mesg->send_length));
data/yadifa-2.3.10/lib/dnscore/src/message_dnsupdate.c:354: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(entry->zrdata, zrdata, zrdata_len);
data/yadifa-2.3.10/lib/dnscore/src/message_verify_rrsig.c:242:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(type_record_fqdn_copy, type_record_fqdn, type_record_fqdn_len);
data/yadifa-2.3.10/lib/dnscore/src/message_verify_rrsig.c:524:29:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                            memcpy(&rdata_network_size_rdata[2], rdata, rdata_size);
data/yadifa-2.3.10/lib/dnscore/src/message_verify_rrsig.c:593:29:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                            memcpy(&rrsig_header, rdata, 18);
data/yadifa-2.3.10/lib/dnscore/src/name.c:99:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(key, name, len);
data/yadifa-2.3.10/lib/dnscore/src/name.c:121:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(key, name, len);
data/yadifa-2.3.10/lib/dnscore/src/nsid.c:85:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&tmp[6], bytes, size);
data/yadifa-2.3.10/lib/dnscore/src/output_stream.c:108: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[64];
data/yadifa-2.3.10/lib/dnscore/src/output_stream.c:167: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[64];
data/yadifa-2.3.10/lib/dnscore/src/output_stream.c:226: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[64];
data/yadifa-2.3.10/lib/dnscore/src/output_stream.c:289: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[64];
data/yadifa-2.3.10/lib/dnscore/src/packet_reader.c:895:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(address->ip.v4.bytes, ip_buffer, 4);
data/yadifa-2.3.10/lib/dnscore/src/packet_reader.c:901:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(address->ip.v6.bytes, ip_buffer, 16);
data/yadifa-2.3.10/lib/dnscore/src/parser.c:65: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 eol_park_needle[2] = {' ', '\0'};
data/yadifa-2.3.10/lib/dnscore/src/parser.c:215:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(op, start, n);
data/yadifa-2.3.10/lib/dnscore/src/parser.c:234:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(op, start, len);
data/yadifa-2.3.10/lib/dnscore/src/parser.c:695:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(parser->additional_buffer, parser->text, offset);
data/yadifa-2.3.10/lib/dnscore/src/parser.c:712:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&parser->additional_buffer[offset], text, text_length);
data/yadifa-2.3.10/lib/dnscore/src/parser.c:738:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(parser->additional_buffer, parser->text, offset);
data/yadifa-2.3.10/lib/dnscore/src/parser.c:753:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&parser->additional_buffer[offset], text, text_length);
data/yadifa-2.3.10/lib/dnscore/src/parser.c:804:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&parser->additional_buffer[offset], text, text_length);
data/yadifa-2.3.10/lib/dnscore/src/parser.c:851:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&parser->additional_buffer[offset], text, text_length);
data/yadifa-2.3.10/lib/dnscore/src/parsing.c:775: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 tmp[64];
data/yadifa-2.3.10/lib/dnscore/src/parsing.c:777: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, src, src_len);
data/yadifa-2.3.10/lib/dnscore/src/parsing.c:825:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(dest, from, len);
data/yadifa-2.3.10/lib/dnscore/src/parsing.c:845:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(dest, from, len);
data/yadifa-2.3.10/lib/dnscore/src/pid.c:82: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[16];
data/yadifa-2.3.10/lib/dnscore/src/pid.c:156: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[8 + 1];
data/yadifa-2.3.10/lib/dnscore/src/ptr_vector.c:102:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(v->data, original->data, ptr_vector_size(original) * sizeof(void*));
data/yadifa-2.3.10/lib/dnscore/src/ptr_vector.c:122:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(v->data, original->data, ptr_vector_size(original) * sizeof(void*));
data/yadifa-2.3.10/lib/dnscore/src/ptr_vector.c:144:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(v->data, original->data, ptr_vector_size(original) * sizeof(void*));
data/yadifa-2.3.10/lib/dnscore/src/ptr_vector.c:293: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(&v->data[++v->offset], datap, data_size);
data/yadifa-2.3.10/lib/dnscore/src/ptr_vector.c:888:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&pv->data[idx], valp, n);
data/yadifa-2.3.10/lib/dnscore/src/ptr_vector.c:894:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&pv->data[idx], valp, n);
data/yadifa-2.3.10/lib/dnscore/src/rewind-input-stream.c:201:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buffer, &data->buffer[data->buffer_offset - data->rewind_relative], rewind_len);
data/yadifa-2.3.10/lib/dnscore/src/rewind-input-stream.c:224:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(buffer, &data->buffer[data->buffer_offset], ret);
data/yadifa-2.3.10/lib/dnscore/src/rfc.c:216: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 *opcode[16] =
data/yadifa-2.3.10/lib/dnscore/src/rfc.c:239: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 *rcode[32] =
data/yadifa-2.3.10/lib/dnscore/src/rfc.c:635: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 txt[16];
data/yadifa-2.3.10/lib/dnscore/src/rfc.c:656: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 txt[16];
data/yadifa-2.3.10/lib/dnscore/src/rfc.c:679: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 txt[16];
data/yadifa-2.3.10/lib/dnscore/src/rfc.c:700: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 txt[16];
data/yadifa-2.3.10/lib/dnscore/src/server-setup.c:251: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 output_file[PATH_MAX];
data/yadifa-2.3.10/lib/dnscore/src/service.c:104: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 service_tag[8];
data/yadifa-2.3.10/lib/dnscore/src/service.c:127: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.
            char tmp_name[16];
data/yadifa-2.3.10/lib/dnscore/src/sys_error.c:118: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 error_gettext_tmp[64];
data/yadifa-2.3.10/lib/dnscore/src/tcp_io_stream.c:113:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(sai, next->ai_addr, next->ai_addrlen);
data/yadifa-2.3.10/lib/dnscore/src/tcp_io_stream.c:124:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(sai6, next->ai_addr, next->ai_addrlen);
data/yadifa-2.3.10/lib/dnscore/src/tcp_io_stream.c:402: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 tmp[256];
data/yadifa-2.3.10/lib/dnscore/src/thread_pool.c:104: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 info[46];
data/yadifa-2.3.10/lib/dnscore/src/thread_pool.c:252: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 service_tag[8];
data/yadifa-2.3.10/lib/dnscore/src/thread_pool.c:348:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(desc->info, "IDLE", 5);
data/yadifa-2.3.10/lib/dnscore/src/thread_pool.c:953:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(thread_descriptors, tds, sizeof(thread_descriptor_s*) * tps);
data/yadifa-2.3.10/lib/dnscore/src/thread_pool.c:996:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(thread_descriptors, tds, sizeof(thread_descriptor_s*) * new_size);
data/yadifa-2.3.10/lib/dnscore/src/thread_pool.c:1291: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 tag[8];
data/yadifa-2.3.10/lib/dnscore/src/thread_pool.c:1296: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 thread_tag_unknown[8] = {'u','n','k','n','o','w','n',' '};
data/yadifa-2.3.10/lib/dnscore/src/thread_pool.c:1332: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(out_9_bytes, thread_get_tag(id), 9);
data/yadifa-2.3.10/lib/dnscore/src/thread_pool.c:1408: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 service_tag[9];
data/yadifa-2.3.10/lib/dnscore/src/thread_pool.c:1412:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(out_service_tag, "unnamed", 8);
data/yadifa-2.3.10/lib/dnscore/src/thread_pool.c:1424: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(service_tag, prefix, prefix_len);
data/yadifa-2.3.10/lib/dnscore/src/thread_pool.c:1460: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(out_service_tag, service_tag, 8);
data/yadifa-2.3.10/lib/dnscore/src/timeformat.c:68: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 dateseparator[1] = {'-'};
data/yadifa-2.3.10/lib/dnscore/src/timeformat.c:69: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 timeseparator[1] = {':'};
data/yadifa-2.3.10/lib/dnscore/src/timeformat.c:70: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 fracseparator[1] = {'.'};
data/yadifa-2.3.10/lib/dnscore/src/timeformat.c:71: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 datetimeseparator[1] = {' '};
data/yadifa-2.3.10/lib/dnscore/src/timeformat.c:72: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 utcsuffix[1] = {'U'};
data/yadifa-2.3.10/lib/dnscore/src/timems.c:222: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(&tm, tm_, sizeof(struct tm));
data/yadifa-2.3.10/lib/dnscore/src/tsig.c:1098: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(tsig_ptr, mesg->tsig.tsig->name, mesg->tsig.tsig->name_len);
data/yadifa-2.3.10/lib/dnscore/src/tsig.c:1101: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(tsig_ptr, tsig_typeclassttl, sizeof(tsig_typeclassttl));
data/yadifa-2.3.10/lib/dnscore/src/tsig.c:1108: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(tsig_ptr, mesg->tsig.tsig->mac_algorithm_name, mesg->tsig.tsig->mac_algorithm_name_len);
data/yadifa-2.3.10/lib/dnscore/src/tsig.c:1116: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(&tsig_ptr[10], mesg->tsig.mac, mac_size);
data/yadifa-2.3.10/lib/dnscore/src/tsig.c:1127:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(tsig_ptr, mesg->tsig.other, other_len);
data/yadifa-2.3.10/lib/dnscore/src/tsig.c:1213: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(tsig_ptr, mesg->tsig.tsig->name, mesg->tsig.tsig->name_len);
data/yadifa-2.3.10/lib/dnscore/src/tsig.c:1216: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(tsig_ptr, tsig_typeclassttl, sizeof(tsig_typeclassttl));
data/yadifa-2.3.10/lib/dnscore/src/tsig.c:1223: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(tsig_ptr, mesg->tsig.tsig->mac_algorithm_name, mesg->tsig.tsig->mac_algorithm_name_len);
data/yadifa-2.3.10/lib/dnscore/src/xfr_input_stream.c:881:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(old_mac, message->tsig.mac, old_mac_size);
data/yadifa-2.3.10/lib/dnsdb/src/dnssec-keystore.c:539: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 clean_origin[MAX_DOMAIN_LENGTH];
data/yadifa-2.3.10/lib/dnsdb/src/dnssec-keystore.c:552: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 path[PATH_MAX];
data/yadifa-2.3.10/lib/dnsdb/src/dnssec-keystore.c:553: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 path_new[PATH_MAX];
data/yadifa-2.3.10/lib/dnsdb/src/dnssec-keystore.c:1048: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 extension[16];
data/yadifa-2.3.10/lib/dnsdb/src/dnssec-keystore.c:1049: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 domain[256];
data/yadifa-2.3.10/lib/dnsdb/src/dnssec-keystore.c:1050: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 file[PATH_MAX + 1];
data/yadifa-2.3.10/lib/dnsdb/src/dnssec-keystore.c:1061: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(file, basedir, dlen);
data/yadifa-2.3.10/lib/dnsdb/src/dnssec-keystore.c:1066: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(&file[dlen], filename, flen + 1);
data/yadifa-2.3.10/lib/dnsdb/src/dnssec-keystore.c:1274:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char domain[MAX_DOMAIN_LENGTH];
data/yadifa-2.3.10/lib/dnsdb/src/dnssec-keystore.c:1390: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 clean_origin[MAX_DOMAIN_LENGTH];
data/yadifa-2.3.10/lib/dnsdb/src/dnssec-keystore.c:1570:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char clean_origin[MAX_DOMAIN_LENGTH];
data/yadifa-2.3.10/lib/dnsdb/src/dnssec-keystore.c:1577:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char path[PATH_MAX];
data/yadifa-2.3.10/lib/dnsdb/src/dnssec-keystore.c:1632: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 path[PATH_MAX];
data/yadifa-2.3.10/lib/dnsdb/src/dnssec-keystore.c:1687: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 path[PATH_MAX];
data/yadifa-2.3.10/lib/dnsdb/src/dnssec-keystore.c:1712: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).
    if((f = fopen(path, "w+b")) == NULL)
data/yadifa-2.3.10/lib/dnsdb/src/dnssec-keystore.c:1740: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 b64[BASE64_ENCODED_SIZE(4096)];
data/yadifa-2.3.10/lib/dnsdb/src/dnssec.c:117:51:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        ENGINE_ctrl_cmd((ENGINE*)engine, command, atoi(command_value), NULL, NULL, 0);
data/yadifa-2.3.10/lib/dnsdb/src/dynupdate-diff-nsec.c:344:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&rdata, to->fqdn, to_fqdn_len);
data/yadifa-2.3.10/lib/dnsdb/src/dynupdate-diff-nsec.c:381:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&rdata, to->fqdn, to_fqdn_len);
data/yadifa-2.3.10/lib/dnsdb/src/dynupdate-diff-nsec.c:382:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&rdata[to_fqdn_len], &nsec_rdata[next_fqdn_len], bitmap_size);
data/yadifa-2.3.10/lib/dnsdb/src/dynupdate-diff-nsec3.c:186:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(node->digest, digest, digest[0] + 1);
data/yadifa-2.3.10/lib/dnsdb/src/dynupdate-diff-nsec3.c:398: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(&digest_fqdn[b32_len + 1], diff->origin, fqdn_len );
data/yadifa-2.3.10/lib/dnsdb/src/dynupdate-diff-nsec3.c:411:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(rdata, n3->rdata, nsec3param_rdata_size);
data/yadifa-2.3.10/lib/dnsdb/src/dynupdate-diff-nsec3.c:413:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&rdata[nsec3param_rdata_size], next_digest, 1 + next_digest[0]);    
data/yadifa-2.3.10/lib/dnsdb/src/dynupdate-diff-nsec3.c:430:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(rdata, n3->rdata, nsec3param_rdata_size);
data/yadifa-2.3.10/lib/dnsdb/src/dynupdate-diff-nsec3.c:432:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&rdata[nsec3param_rdata_size], next_digest, 1 + next_digest[0]);    
data/yadifa-2.3.10/lib/dnsdb/src/dynupdate-diff-nsec3.c:433:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&rdata[nsec3param_rdata_size + 1 + next_digest[0]], dnssec_chain_node_nsec3_get_bits_map(from), bitmap_size);
data/yadifa-2.3.10/lib/dnsdb/src/dynupdate-diff.c:88: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 zone_diff_record_state_format_letters[6] = {'+','-','O','V','E','A'};
data/yadifa-2.3.10/lib/dnsdb/src/dynupdate-diff.c:102: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 zone_diff_chain_state_format_letters[8] = {'+','-',' ','r','E','{','}','!'};
data/yadifa-2.3.10/lib/dnsdb/src/dynupdate-diff.c:1063:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(rr->rdata, rdata, rdata_size);
data/yadifa-2.3.10/lib/dnsdb/src/dynupdate-diff.c:2079:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(tmp_rdata, rr_soa_removed->rdata, rr_soa_removed->rdata_size);
data/yadifa-2.3.10/lib/dnsdb/src/journal-cjf-idxt.c:476:17:  [2] (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, tbl, JOURNAL_CJF_PAGE_ITEM_SIZE * size);
data/yadifa-2.3.10/lib/dnsdb/src/journal-cjf-idxt.c:531: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(jnl->idxt.entries, tbl, JOURNAL_CJF_PAGE_ITEM_SIZE * idx);
data/yadifa-2.3.10/lib/dnsdb/src/journal-cjf-page-cache.c:214: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(empty_page_tbl_header_and_zeroes, &head, CJF_SECTION_INDEX_SLOT_HEAD);
data/yadifa-2.3.10/lib/dnsdb/src/journal-cjf-page-cache.c:429: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(&sci->buffer[offset], value, value_len);
data/yadifa-2.3.10/lib/dnsdb/src/journal-cjf-page-cache.c:504: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(value, &sci->buffer[offset], value_len);
data/yadifa-2.3.10/lib/dnsdb/src/journal-cjf.c:525:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char broken_file_path[PATH_MAX];
data/yadifa-2.3.10/lib/dnsdb/src/journal-cjf.c:2377: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 filename[PATH_MAX];
data/yadifa-2.3.10/lib/dnsdb/src/journal.c:228:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(origin_buffer, "\005BOGUS", 7);
data/yadifa-2.3.10/lib/dnsdb/src/journal.c:374: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 data_path[PATH_MAX];
data/yadifa-2.3.10/lib/dnsdb/src/journal_ix.c:492:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char new_name[PATH_MAX];
data/yadifa-2.3.10/lib/dnsdb/src/journal_ix.c:493:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(new_name, jix->journal_name, jix->journal_name_len);
data/yadifa-2.3.10/lib/dnsdb/src/journal_ix.c:498:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(jix->journal_name, new_name, jix->journal_name_len);
data/yadifa-2.3.10/lib/dnsdb/src/journal_ix.c:1210: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   fqdn[MAX_DOMAIN_LENGTH + 1];
data/yadifa-2.3.10/lib/dnsdb/src/journal_ix.c:1211: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   filename[PATH_MAX];
data/yadifa-2.3.10/lib/dnsdb/src/journal_ix.c:1398:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char journal_name[PATH_MAX];
data/yadifa-2.3.10/lib/dnsdb/src/nsec-chain-replay.c:80: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(record->fqdn, fqdn, fqdn_len);
data/yadifa-2.3.10/lib/dnsdb/src/nsec.c:427:17:  [2] (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, name, dname_len);
data/yadifa-2.3.10/lib/dnsdb/src/nsec.c:429:17:  [2] (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, tmp_bitmap, tbm_size);
data/yadifa-2.3.10/lib/dnsdb/src/nsec.c:643:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(rdata, next_name, dname_len);
data/yadifa-2.3.10/lib/dnsdb/src/nsec.c:646:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(rdata, tmp_bitmap, tbm_size);
data/yadifa-2.3.10/lib/dnsdb/src/nsec3-chain-replay.c:95: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(record->fqdn_rdata, fqdn, fqdn_len);
data/yadifa-2.3.10/lib/dnsdb/src/nsec3-chain-replay.c:96: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(&record->fqdn_rdata[fqdn_len], rdata, rdata_size);
data/yadifa-2.3.10/lib/dnsdb/src/nsec3-forall-label.c:123:13:  [2] (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, q, len);
data/yadifa-2.3.10/lib/dnsdb/src/nsec3-forall-label.c:127:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(p, ctx->zone->origin, ctx->origin_len);
data/yadifa-2.3.10/lib/dnsdb/src/nsec3.c:718:13:  [2] (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, &rdata[5 + salt_size], hash_size + 1);
data/yadifa-2.3.10/lib/dnsdb/src/nsec3.c:1313: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(name, label->name, name_len);
data/yadifa-2.3.10/lib/dnsdb/src/nsec3.c:1365: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(&nsec3paramadd_rdata[5], salt, salt_len);
data/yadifa-2.3.10/lib/dnsdb/src/nsec3_item.c:734:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(nsec3_item->type_bit_maps, bitmap, type_bit_maps_size);
data/yadifa-2.3.10/lib/dnsdb/src/nsec3_load.c:128:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&record->digest_then_rdata[digest_len + 1], rdata, rdata_size);    
data/yadifa-2.3.10/lib/dnsdb/src/nsec3_load.c:199: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(chain->nsec3param_rdata, nsec3param_rdata, nsec3param_size);
data/yadifa-2.3.10/lib/dnsdb/src/nsec3_load.c:419:13:  [2] (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, digest, digest_len + 1);
data/yadifa-2.3.10/lib/dnsdb/src/nsec3_zone.c:397: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(n3->rdata, nsec3param_rdata, nsec3param_rdata_realsize);
data/yadifa-2.3.10/lib/dnsdb/src/xfr_copy.c:107: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 file_path[PATH_MAX];
data/yadifa-2.3.10/lib/dnsdb/src/xfr_copy.c:129: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 tmp_file_path[PATH_MAX];
data/yadifa-2.3.10/lib/dnsdb/src/xfr_copy.c:130: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 file_path[PATH_MAX];
data/yadifa-2.3.10/lib/dnsdb/src/zdb-zone-answer-axfr.c:288: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[PATH_MAX + 8];
data/yadifa-2.3.10/lib/dnsdb/src/zdb-zone-answer-axfr.c:514:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&buffer[path_len], ".part", 6);
data/yadifa-2.3.10/lib/dnsdb/src/zdb-zone-answer-axfr.c:620:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(&buffer[path_len], ".part", 6);
data/yadifa-2.3.10/lib/dnsdb/src/zdb-zone-answer-axfr.c:1270: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(mesg_clone, mesg, sizeof(message_data));
data/yadifa-2.3.10/lib/dnsdb/src/zdb-zone-answer-ixfr.c:379:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(current_soa_rdata_buffer, ZDB_PACKEDRECORD_PTR_RDATAPTR(soa), current_soa_rdata_size);
data/yadifa-2.3.10/lib/dnsdb/src/zdb-zone-answer-ixfr.c:700: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(mesg_clone, mesg, sizeof(message_data));
data/yadifa-2.3.10/lib/dnsdb/src/zdb-zone-arc.c:97: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 prefix[64];
data/yadifa-2.3.10/lib/dnsdb/src/zdb-zone-dnssec.c:84: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 name[256];
data/yadifa-2.3.10/lib/dnsdb/src/zdb-zone-dnssec.c:179: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 keys_path[PATH_MAX];
data/yadifa-2.3.10/lib/dnsdb/src/zdb-zone-dnssec.c:190: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 keys_path[PATH_MAX];
data/yadifa-2.3.10/lib/dnsdb/src/zdb-zone-dnssec.c:201: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 keys_path[PATH_MAX];
data/yadifa-2.3.10/lib/dnsdb/src/zdb-zone-dnssec.c:212: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 keys_path[PATH_MAX];
data/yadifa-2.3.10/lib/dnsdb/src/zdb-zone-maintenance.c:372:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(&mctx.fqdn_stack.labels[0], &iter.dnslabels[0], (iter.top + 1) * sizeof(u8*));
data/yadifa-2.3.10/lib/dnsdb/src/zdb-zone-maintenance.c:727:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(from_fqdn, mctx.fqdn, fqdn_len);
data/yadifa-2.3.10/lib/dnsdb/src/zdb-zone-path-provider.c:146: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 dir_path[PATH_MAX];
data/yadifa-2.3.10/lib/dnsdb/src/zdb_query_ex_wire.c:299:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&pc.packet[pc.packet_offset], edns0_rdatasize_nsid_option_wire, edns0_rdatasize_nsid_option_wire_size);
data/yadifa-2.3.10/lib/dnsdb/src/zdb_record.c:548: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, ttlrdata_->rdata_pointer, ttlrdata.rdata_size);
data/yadifa-2.3.10/lib/dnsdb/src/zdb_record.c:675: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(rec->rdata_pointer, source->rdata_pointer, rec->rdata_size);
data/yadifa-2.3.10/lib/dnsdb/src/zdb_record.c:695: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(rec->rdata_pointer, source->rdata_pointer, rec->rdata_size);
data/yadifa-2.3.10/lib/dnsdb/src/zdb_rr_label.c:111:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(sub_fqdn, (*sub_labelp)->name, (*sub_labelp)->name[0] + 1);
data/yadifa-2.3.10/lib/dnsdb/src/zdb_rr_label.c:142: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(parms.fqdn, rr_label_fqdn, len);
data/yadifa-2.3.10/lib/dnsdb/src/zdb_update_signatures.c:170:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&fqdn_stack.labels[0], &iter.dnslabels[0], (iter.top + 1) * sizeof(u8*));
data/yadifa-2.3.10/lib/dnsdb/src/zdb_update_signatures.c:794:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(from_fqdn, fqdn, fqdn_len);
data/yadifa-2.3.10/lib/dnsdb/src/zdb_utils.c:182: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[4096];
data/yadifa-2.3.10/lib/dnsdb/src/zdb_zone.c:311: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, ZDB_PACKEDRECORD_PTR_RDATAPTR(packed_ttlrdata), ttlrdata.rdata_size);
data/yadifa-2.3.10/lib/dnsdb/src/zdb_zone_axfr_input_stream.c:220: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 path[PATH_MAX];
data/yadifa-2.3.10/lib/dnsdb/src/zdb_zone_axfr_input_stream.c:238:13:  [2] (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[ret], ".part", 6);
data/yadifa-2.3.10/lib/dnsdb/src/zdb_zone_load.c:161: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 origin_ascii[MAX_DOMAIN_TEXT_LENGTH + 1];
data/yadifa-2.3.10/lib/dnsdb/src/zdb_zone_load.c:1067:17:  [2] (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, soa_rdata, soa_rdata_len);
data/yadifa-2.3.10/lib/dnsdb/src/zdb_zone_write_text.c:91: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 __TAB__[1] = {'\t'};
data/yadifa-2.3.10/lib/dnsdb/src/zdb_zone_write_text.c:93: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 __LF__[1] = {'\n'};
data/yadifa-2.3.10/lib/dnsdb/src/zdb_zone_write_text.c:219: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 label_cstr[2 + MAX_DOMAIN_LENGTH + 1];
data/yadifa-2.3.10/lib/dnsdb/src/zdb_zone_write_text.c:232: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 dot_origin[1 + MAX_DOMAIN_LENGTH + 1];
data/yadifa-2.3.10/lib/dnsdb/src/zdb_zone_write_text.c:623: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 tmp[PATH_MAX];
data/yadifa-2.3.10/lib/dnsdb/src/zdb_zone_write_unbound.c:97: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 label_cstr[MAX_DOMAIN_LENGTH];
data/yadifa-2.3.10/lib/dnslg/src/resolv.c:251: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                                   fqdn[MAX_DOMAIN_TEXT_LENGTH + 1];
data/yadifa-2.3.10/lib/dnszone/src/zone_axfr_reader.c:89: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(rr, entry, required);
data/yadifa-2.3.10/lib/dnszone/src/zone_axfr_reader.c:107:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(entry, top, required);
data/yadifa-2.3.10/lib/dnszone/src/zone_axfr_reader.c:271: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 file_path[PATH_MAX];
data/yadifa-2.3.10/lib/dnszone/src/zone_file_reader.c:97: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 dot_origin[MAX_DOMAIN_LENGTH + 1];
data/yadifa-2.3.10/lib/dnszone/src/zone_file_reader.c:134: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 text_buffer[1024];
data/yadifa-2.3.10/lib/dnszone/src/zone_file_reader.c:684:21:  [2] (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, text, text_len);
data/yadifa-2.3.10/lib/dnszone/src/zone_file_reader.c:881:17:  [2] (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, text, text_len);
data/yadifa-2.3.10/lib/dnszone/src/zone_file_reader.c:907:17:  [2] (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, text, text_len);
data/yadifa-2.3.10/lib/dnszone/src/zone_file_reader.c:933:17:  [2] (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, text, text_len);
data/yadifa-2.3.10/lib/dnszone/src/zone_file_reader.c:983:21:  [2] (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, text, text_len);
data/yadifa-2.3.10/lib/dnszone/src/zone_file_reader.c:1018:17:  [2] (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, text, text_len);
data/yadifa-2.3.10/lib/dnszone/src/zone_file_reader.c:1042:17:  [2] (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, text, text_len);
data/yadifa-2.3.10/lib/dnszone/src/zone_file_reader.c:1240: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(rr, entry, required);
data/yadifa-2.3.10/lib/dnszone/src/zone_file_reader.c:1258:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(entry, top, required);
data/yadifa-2.3.10/lib/dnszone/src/zone_file_reader.c:1353:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(&zfr->dot_origin[1], text, text_len);
data/yadifa-2.3.10/lib/dnszone/src/zone_file_reader.c:1390:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                         char file_name[PATH_MAX];
data/yadifa-2.3.10/lib/dnszone/src/zone_file_reader.c:1504:37:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                                    memcpy(zfr->error_message_buffer, text, text_len);
data/yadifa-2.3.10/lib/dnszone/src/zone_file_reader.c:1524:37:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                                    memcpy(zfr->error_message_buffer, text, text_len);
data/yadifa-2.3.10/lib/dnszone/src/zone_file_reader.c:1903: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[4096];
data/yadifa-2.3.10/lib/dnszone/src/zone_file_reader.c:1914:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buffer, text, n);
data/yadifa-2.3.10/sbin/yadifad/acl.c:473: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 txt[512];
data/yadifa-2.3.10/sbin/yadifad/acl.c:659: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 token[256];
data/yadifa-2.3.10/sbin/yadifad/acl.c:718:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(token, description, token_len);
data/yadifa-2.3.10/sbin/yadifad/acl.c:791:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(ami->parameters.tsig.known, key->mac, key->mac_size);
data/yadifa-2.3.10/sbin/yadifad/acl.c:793:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(ami->parameters.tsig.name, dnsname, dnsname_len);
data/yadifa-2.3.10/sbin/yadifad/acl.c:850:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(&ami->parameters.ipv4.address.bytes, buffer, 4);
data/yadifa-2.3.10/sbin/yadifad/acl.c:868:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(&ami->parameters.ipv6.address.bytes, buffer, 16);
data/yadifa-2.3.10/sbin/yadifad/acl.c:967:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(&ami->parameters.ipv4.mask.bytes, buffer, 4);
data/yadifa-2.3.10/sbin/yadifad/acl.c:983:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(&ami->parameters.ipv6.mask.bytes, buffer, 16);
data/yadifa-2.3.10/sbin/yadifad/acl.c:1009:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(&ami->parameters.ipv4.mask, buffer, 4);
data/yadifa-2.3.10/sbin/yadifad/acl.c:1014:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(&ami->parameters.ipv6.mask, buffer, 16);
data/yadifa-2.3.10/sbin/yadifad/acl.c:1126:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char txt[512];
data/yadifa-2.3.10/sbin/yadifad/acl.c:1320:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(target->items[i], aml->items[i], sizeof(address_match_item));
data/yadifa-2.3.10/sbin/yadifad/acl.c:2123:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy((u8*)&ipv6.sin6_addr, ami->parameters.ipv6.address.bytes, 16);
data/yadifa-2.3.10/sbin/yadifad/acl.c:2292:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy((u8*)&ipv6.sin6_addr, ami->parameters.ipv6.address.bytes, 16);
data/yadifa-2.3.10/sbin/yadifad/axfr.c:203: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 data_path[PATH_MAX];
data/yadifa-2.3.10/sbin/yadifad/config-denial.c:222:37:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        denial->algorithm_val = (u8)atoi(denial->algorithm);
data/yadifa-2.3.10/sbin/yadifad/config-key-roll-parser.c:47: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 *week[7]   = { "sun", "mon", "tue", "wed", "thu", "fri", "sat" };
data/yadifa-2.3.10/sbin/yadifad/config-key-roll-parser.c:48: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 *month[12] = { "jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec" };
data/yadifa-2.3.10/sbin/yadifad/config-key-roll-parser.c:50: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 *key_roll_actions[7] = {
data/yadifa-2.3.10/sbin/yadifad/config-key-roll-parser.c:145:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(dest, *from, len);
data/yadifa-2.3.10/sbin/yadifad/config-key-roll-parser.c:166:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(dest, *from, len);
data/yadifa-2.3.10/sbin/yadifad/config-key-roll-parser.c:238: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 key_roll_item_part[16];
data/yadifa-2.3.10/sbin/yadifad/config-key-roll-parser.c:392: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 key_roll_item[16]  = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
data/yadifa-2.3.10/sbin/yadifad/config-nsid.c:92:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(dest->bytes, bytes, size);
data/yadifa-2.3.10/sbin/yadifad/config-nsid.c:100: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(dest->bytes, bytes, size);
data/yadifa-2.3.10/sbin/yadifad/config_main.c:220: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 fullpath[PATH_MAX];
data/yadifa-2.3.10/sbin/yadifad/config_main.c:221: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 tempfile[PATH_MAX];
data/yadifa-2.3.10/sbin/yadifad/config_main.c:281:18:  [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).
    if((tempfd = mkstemp(tempfile)) < 0)
data/yadifa-2.3.10/sbin/yadifad/config_main.c:323:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char filename[PATH_MAX];
data/yadifa-2.3.10/sbin/yadifad/config_main.c:345:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(filename, *dirp, pathlen);
data/yadifa-2.3.10/sbin/yadifad/config_main.c:368: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 tmp[PATH_MAX];
data/yadifa-2.3.10/sbin/yadifad/confs.c:490: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 configuration_file_path[PATH_MAX];
data/yadifa-2.3.10/sbin/yadifad/ctrl_query.c:604: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 view[32];
data/yadifa-2.3.10/sbin/yadifad/ctrl_query.c:752: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 view[32];
data/yadifa-2.3.10/sbin/yadifad/ctrl_query.c:832: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 view[32];
data/yadifa-2.3.10/sbin/yadifad/ctrl_query.c:897: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 view[32];
data/yadifa-2.3.10/sbin/yadifad/ctrl_query.c:960: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 view[32];
data/yadifa-2.3.10/sbin/yadifad/ctrl_query.c:1023: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 view[32];
data/yadifa-2.3.10/sbin/yadifad/database-service-zone-desc-load.c:316:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(&current->ac, &zone_desc->ac, sizeof(access_control));
data/yadifa-2.3.10/sbin/yadifad/database-service-zone-desc-load.c:322:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(&current->notify, &zone_desc->notify, sizeof(zone_notify_s));
data/yadifa-2.3.10/sbin/yadifad/database-service-zone-desc-load.c:328:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(&current->signature, &zone_desc->signature, sizeof(zone_signature_s));
data/yadifa-2.3.10/sbin/yadifad/database-service-zone-desc-load.c:342:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(&current->refresh, &zone_desc->refresh, sizeof(zone_refresh_s));
data/yadifa-2.3.10/sbin/yadifad/database-service-zone-desc-load.c:348:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(&current->dynamic_provisioning, &zone_desc->dynamic_provisioning, sizeof(dynamic_provisioning_s));
data/yadifa-2.3.10/sbin/yadifad/database-service-zone-download.c:443:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char file_name[PATH_MAX];
data/yadifa-2.3.10/sbin/yadifad/database-service-zone-load.c:205: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 file_name[PATH_MAX];
data/yadifa-2.3.10/sbin/yadifad/database-service-zone-load.c:206: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 zone_desc_file_name[PATH_MAX];
data/yadifa-2.3.10/sbin/yadifad/database-service-zone-load.c:965: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 file_name[PATH_MAX];
data/yadifa-2.3.10/sbin/yadifad/database-service-zone-load.c:966: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 zone_desc_file_name[PATH_MAX];
data/yadifa-2.3.10/sbin/yadifad/database-service-zone-save.c:196: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.
            char file_name[PATH_MAX];    
data/yadifa-2.3.10/sbin/yadifad/database-service-zone-unload.c:90:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(origin, "\004NULL", 6);
data/yadifa-2.3.10/sbin/yadifad/database-service.c:1508:13:  [2] (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, zone_desc->origin, name_len);
data/yadifa-2.3.10/sbin/yadifad/database.c:919:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(forward.buffer, mesg->buffer, mesg->received);
data/yadifa-2.3.10/sbin/yadifad/database.c:932:29:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                            memcpy(mesg->buffer, forward.buffer, forward.received);
data/yadifa-2.3.10/sbin/yadifad/dynupdate_query_service.c:381: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(mesg_clone, msg, sizeof(message_data));
data/yadifa-2.3.10/sbin/yadifad/log_query.c:87: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 tmp[8];    
data/yadifa-2.3.10/sbin/yadifad/log_query.c:98: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(dest, &tmp[idx], 8 - idx);
data/yadifa-2.3.10/sbin/yadifad/log_query.c:103: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 __hexa__[16] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};
data/yadifa-2.3.10/sbin/yadifad/log_query.c:127: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 query_text[1024];
data/yadifa-2.3.10/sbin/yadifad/log_query.c:130: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(buffer, "client ", 7);
data/yadifa-2.3.10/sbin/yadifad/log_query.c:165: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(buffer, ": query: ", 9);
data/yadifa-2.3.10/sbin/yadifad/log_query.c:180:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buffer, "CLASS", 5);
data/yadifa-2.3.10/sbin/yadifad/log_query.c:195:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buffer, "TYPE", 4);
data/yadifa-2.3.10/sbin/yadifad/log_query.c:258: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 query_text[1024];
data/yadifa-2.3.10/sbin/yadifad/log_query.c:261: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(buffer, "query [", 7);
data/yadifa-2.3.10/sbin/yadifad/log_query.c:294:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buffer, "CLASS", 5);
data/yadifa-2.3.10/sbin/yadifad/log_query.c:309:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buffer, "TYPE", 4);
data/yadifa-2.3.10/sbin/yadifad/main.c:359: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 tempfile[PATH_MAX];
data/yadifa-2.3.10/sbin/yadifad/notify.c:158:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(mqs->mac, mac, mac_size);
data/yadifa-2.3.10/sbin/yadifad/notify.c:986:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&ipv6, &sa->sa6.sin6_addr, 16);
data/yadifa-2.3.10/sbin/yadifad/notify.c:1171:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[MAX_DOMAIN_LENGTH + 1];
data/yadifa-2.3.10/sbin/yadifad/process_class_ch.c:88:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(tmp, chaos_txt_stub, 10);
data/yadifa-2.3.10/sbin/yadifad/process_class_ch.c:91:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&tmp[13], name, name_len);
data/yadifa-2.3.10/sbin/yadifad/process_class_ch.c:112:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(tmp, chaos_txt_stub, 10);
data/yadifa-2.3.10/sbin/yadifad/process_class_ch.c:115:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&tmp[13], name, name_len);
data/yadifa-2.3.10/sbin/yadifad/process_class_ch.c:136:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(tmp, chaos_txt_stub, 10);
data/yadifa-2.3.10/sbin/yadifad/process_class_ch.c:139:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&tmp[13], name, name_len);
data/yadifa-2.3.10/sbin/yadifad/process_class_ch.c:187:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(p, record_wire, record_wire_len);
data/yadifa-2.3.10/sbin/yadifad/process_class_ch.c:195:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(p, chaos_soa, sizeof(chaos_soa));
data/yadifa-2.3.10/sbin/yadifad/process_class_ch.c:203: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, chaos_ns, sizeof(chaos_ns));
data/yadifa-2.3.10/sbin/yadifad/process_class_ch.c:244:13:  [2] (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, edns0_rdatasize_nsid_option_wire, edns0_rdatasize_nsid_option_wire_size);
data/yadifa-2.3.10/sbin/yadifad/rrl.c:440: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(rrl->error_mask_ip_imputed_name, key, key_size);
data/yadifa-2.3.10/sbin/yadifad/rrl.c:474: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(a->error_mask_ip_imputed_name, b->error_mask_ip_imputed_name, rrl_item_size(a));
data/yadifa-2.3.10/sbin/yadifad/server-mt.c:1271:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(&server_statistics_sum, &server_statistics, sizeof(server_statistics_t));
data/yadifa-2.3.10/sbin/yadifad/server-rw.c:358:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(&cell->data.hdr.sa, &mesg->other.sa, mesg->addr_len);
data/yadifa-2.3.10/sbin/yadifad/server-rw.c:360:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(cell->data.hdr.ctrl, receiver_msghdr.msg_control, receiver_msghdr.msg_controllen);
data/yadifa-2.3.10/sbin/yadifad/server-rw.c:368:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(&cell->data.data, mesg->buffer, mesg->received);
data/yadifa-2.3.10/sbin/yadifad/server-rw.c:390:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(&cell->data.hdr.sa, &mesg->other.sa, mesg->addr_len);
data/yadifa-2.3.10/sbin/yadifad/server-rw.c:392:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(cell->data.hdr.ctrl, receiver_msghdr.msg_control, receiver_msghdr.msg_controllen);
data/yadifa-2.3.10/sbin/yadifad/server-rw.c:400:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(&cell->data.data, mesg->buffer, mesg->received);
data/yadifa-2.3.10/sbin/yadifad/server-rw.c:418:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(&cell->data.hdr.sa, &mesg->other.sa, mesg->addr_len);
data/yadifa-2.3.10/sbin/yadifad/server-rw.c:420:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(cell->data.hdr.ctrl, receiver_msghdr.msg_control, receiver_msghdr.msg_controllen);
data/yadifa-2.3.10/sbin/yadifad/server-rw.c:428:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(&cell->data.data, mesg->buffer, mesg->received);
data/yadifa-2.3.10/sbin/yadifad/server-rw.c:1032:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(&mesg->other.sa, &cell->data.hdr.sa, cell->data.hdr.sa_len);
data/yadifa-2.3.10/sbin/yadifad/server-rw.c:1035:21:  [2] (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->sender_msghdr.msg_control, cell->data.hdr.ctrl, cell->data.hdr.ctrl_len);
data/yadifa-2.3.10/sbin/yadifad/server-rw.c:1044:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(mesg->buffer, &cell->data.data, cell->data.hdr.msg_size);
data/yadifa-2.3.10/sbin/yadifad/server-rw.c:1077:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(&mesg->other.sa, &cell->data.hdr.sa, cell->data.hdr.sa_len);
data/yadifa-2.3.10/sbin/yadifad/server-rw.c:1080:17:  [2] (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->sender_msghdr.msg_control, cell->data.hdr.ctrl, cell->data.hdr.ctrl_len);
data/yadifa-2.3.10/sbin/yadifad/server-rw.c:1087:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(mesg->buffer, &cell->data.data, cell->data.hdr.msg_size);
data/yadifa-2.3.10/sbin/yadifad/server-rw.c:1381:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(&server_statistics_sum, &server_statistics, sizeof(server_statistics_t));
data/yadifa-2.3.10/sbin/yadifad/server.c:751: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(&mesg.other, &tcp_parm->sa, tcp_parm->addr_len);
data/yadifa-2.3.10/sbin/yadifad/server.c:840: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(&parm->sa, &addr, addr_len);
data/yadifa-2.3.10/sbin/yadifad/server_context.c:135: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[64];
data/yadifa-2.3.10/sbin/yadifad/server_context.c:145:17:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
                strcpy(buffer, "ipv4?"); // big enough
data/yadifa-2.3.10/sbin/yadifad/server_context.c:155:17:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
                strcpy(buffer, "ipv6?"); // big enough
data/yadifa-2.3.10/sbin/yadifad/server_context.c:185:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buffer, tmp->name, tmp->name_len);
data/yadifa-2.3.10/sbin/yadifad/signals.c:202: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 __HEXA__[16] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'};
data/yadifa-2.3.10/sbin/yadifad/signals.c:547:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char filepath[PATH_MAX];
data/yadifa-2.3.10/sbin/yadifad/signals.c:548:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char number[32];
data/yadifa-2.3.10/sbin/yadifad/signals.c:828:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 vec[1];
data/yadifa-2.3.10/sbin/yadifad/zone-signature-policy.c:868:13:  [2] (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_rule_definition, rule_definition, sizeof(zone_policy_rule_definition_s));
data/yadifa-2.3.10/sbin/yadifad/zone-signature-policy.c:932:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(date, from, sizeof(zone_policy_date));
data/yadifa-2.3.10/sbin/yadifad/zone-signature-policy.c:1343: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 domain[MAX_DOMAIN_LENGTH];
data/yadifa-2.3.10/sbin/yadifad/zone-signature-policy.c:1731:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(dd->salt, salt, salt_length);
data/yadifa-2.3.10/sbin/yadifad/zone.c:235: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(clone, zone_desc, sizeof(zone_desc_s));
data/yadifa-2.3.10/sbin/yadifad/zone.c:278: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 prefix[80];
data/yadifa-2.3.10/sbin/yadifad/zone.c:334:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char prefix[80];
data/yadifa-2.3.10/sbin/yadifad/zone.c:1304:37:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    zone_desc->notify.retry_count = atoi(S_NOTIFY_RETRY_COUNT);
data/yadifa-2.3.10/sbin/yadifad/zone.c:1305:38:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    zone_desc->notify.retry_period = atoi(S_NOTIFY_RETRY_PERIOD) * 60;
data/yadifa-2.3.10/sbin/yadifad/zone.c:1306:47:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    zone_desc->notify.retry_period_increase = atoi(S_NOTIFY_RETRY_PERIOD_INCREASE) * 60;
data/yadifa-2.3.10/sbin/yadifad/zone.c:1405:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&desc_zone_desc->dynamic_provisioning, &src_zone_desc->dynamic_provisioning, sizeof(dynamic_provisioning_s));
data/yadifa-2.3.10/sbin/yadifad/zone.c:1482: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 status_letters[32] = "IclL"
data/yadifa-2.3.10/sbin/yadifad/zone.c:1526: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 *status_words[32] =
data/yadifa-2.3.10/sbin/yadifad/zone.c:1825: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 *dnssec_to_name[4] =
data/yadifa-2.3.10/bin/yadifa/main.c:146:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        ssize_t home_env_length = strlen(home_env);
data/yadifa-2.3.10/bin/yadifa/main.c:147:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        ssize_t program_name_length = strlen(program_name);
data/yadifa-2.3.10/bin/yadifa/message-viewer-json.c:90: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 l = strlen(PRETTY_PRINT_WORD);
data/yadifa-2.3.10/bin/yadifa/message-viewer-json.c:91: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 length = strlen(pretty_print_tab);
data/yadifa-2.3.10/bin/yadifa/message-viewer-xml.c:90: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 l = strlen(PRETTY_PRINT_WORD);
data/yadifa-2.3.10/bin/yadifa/message-viewer-xml.c:91: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 length = strlen(pretty_print_tab);
data/yadifa-2.3.10/bin/yadifa/yadifa-config.c:280: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).
    s32 n = strlen(src);
data/yadifa-2.3.10/bin/yadifa/yadifa-config.c:700:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if(strlen(g_yadifa_main_settings.config_file) > 0)
data/yadifa-2.3.10/lib/dnscore/include/dnscore/input_stream.h:65:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    input_stream_read_method*  read;
data/yadifa-2.3.10/lib/dnscore/include/dnscore/input_stream.h:82:58:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define input_stream_read(is_,buffer_,len_) (is_)->vtbl->read(is_,buffer_,len_)
data/yadifa-2.3.10/lib/dnscore/include/dnscore/io_stream.h:71:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return ios->in.vtbl->read(&ios->in, buffer, len);
data/yadifa-2.3.10/lib/dnscore/include/dnscore/parsing.h: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).
    const char * const limit = &txt[MIN(strlen(txt), dst_size)];
data/yadifa-2.3.10/lib/dnscore/include/dnscore/sys_types.h:56: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 src_len = strlen(src) + 1;
data/yadifa-2.3.10/lib/dnscore/include/dnscore/sys_types.h:63: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 src_len = strlen(src) + 1;
data/yadifa-2.3.10/lib/dnscore/include/dnscore/sys_types.h:73:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
#define strncpy strncpy_freebsd
data/yadifa-2.3.10/lib/dnscore/src/chroot.c:86: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).
    int cl = strlen(cp) - 1;
data/yadifa-2.3.10/lib/dnscore/src/chroot.c:100: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).
        int pl = strlen(path);
data/yadifa-2.3.10/lib/dnscore/src/chroot.c:288:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            int new_path_len = strlen(new_path);
data/yadifa-2.3.10/lib/dnscore/src/cmdline.c:252:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        int arg_len = strlen(arg);
data/yadifa-2.3.10/lib/dnscore/src/config_file_reader.c:101: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 m = strlen(file_path);
data/yadifa-2.3.10/lib/dnscore/src/config_file_reader.c:116: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 m = strlen(file_path);
data/yadifa-2.3.10/lib/dnscore/src/config_file_reader.c:558:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        cfr->container_name_length = strlen(cfr->container_name);
data/yadifa-2.3.10/lib/dnscore/src/config_file_reader.c:579:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(cfgerr->file, file_name, sizeof(cfgerr->file));
data/yadifa-2.3.10/lib/dnscore/src/config_file_reader.c:581: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).
                size_t len = MIN(strlen(cfr->parser.line_buffer), sizeof(cfgerr->line) - 1);
data/yadifa-2.3.10/lib/dnscore/src/config_key.c:170: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).
    u32 len = strlen(csk->secret);
data/yadifa-2.3.10/lib/dnscore/src/config_settings.c:515: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 len = strlen(value);
data/yadifa-2.3.10/lib/dnscore/src/config_settings.c:567: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 n = strlen(*dest);
data/yadifa-2.3.10/lib/dnscore/src/config_settings.c:635: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 len = strlen(value);
data/yadifa-2.3.10/lib/dnscore/src/config_settings.c:639:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        int dest_len = strlen(*dest);
data/yadifa-2.3.10/lib/dnscore/src/config_settings.c:1212:62:  [1] (buffer) strlen:
  Does not handle 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_value = base64_decode(value, /*sizeoftarget._u32*/strlen(value), (u8*)dest);  
data/yadifa-2.3.10/lib/dnscore/src/config_settings.c:1371:25:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                        strncpy(cfgerr->file, "default values", sizeof(cfgerr->file));
data/yadifa-2.3.10/lib/dnscore/src/config_settings.c:1372:25:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                        strncpy(cfgerr->line, item->name, sizeof(cfgerr->line));
data/yadifa-2.3.10/lib/dnscore/src/config_settings.c:1397:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(configuration_file_path, the_configuration_file_path, sizeof(configuration_file_path));
data/yadifa-2.3.10/lib/dnscore/src/config_settings.c:1559:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(cfgerr->file, source->source.file_name.name, sizeof(cfgerr->file));
data/yadifa-2.3.10/lib/dnscore/src/config_settings.c:1560:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(cfgerr->line, "unable to open file", sizeof(cfgerr->line));
data/yadifa-2.3.10/lib/dnscore/src/config_settings.c:1785:29:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                            strncpy(cfgerr->file, STRNULL(item->default_value_string), sizeof(cfgerr->file));
data/yadifa-2.3.10/lib/dnscore/src/config_settings.c:1786:29:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                            strncpy(cfgerr->line, item->name, sizeof(cfgerr->line));
data/yadifa-2.3.10/lib/dnscore/src/config_settings.c:1801:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t name_len = strlen(name);
data/yadifa-2.3.10/lib/dnscore/src/config_settings.c:1939:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if((value == NULL) || (strlen(value) == 0))
data/yadifa-2.3.10/lib/dnscore/src/config_settings.c:1965:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if((value == NULL) || (strlen(value) == 0))
data/yadifa-2.3.10/lib/dnscore/src/debug.c:1282:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int l = strlen(str) + 1;
data/yadifa-2.3.10/lib/dnscore/src/debug.c:1636:7:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
void* memalign(size_t alignment, size_t size)
data/yadifa-2.3.10/lib/dnscore/src/dns-udp.c:1287:13:  [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(10);
data/yadifa-2.3.10/lib/dnscore/src/dns-udp.c:1719:13:  [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/yadifa-2.3.10/lib/dnscore/src/dnsformat.c:791: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).
                int n       = strlen(buffer);
data/yadifa-2.3.10/lib/dnscore/src/dnsformat.c:807: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).
                int n       = strlen(buffer);
data/yadifa-2.3.10/lib/dnscore/src/dnsformat.c:849:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    int n       = strlen(buffer);
data/yadifa-2.3.10/lib/dnscore/src/dnsformat.c:863:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    int n       = strlen(buffer);
data/yadifa-2.3.10/lib/dnscore/src/dnsformat.c:927: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).
                        p += strlen(p);
data/yadifa-2.3.10/lib/dnscore/src/dnsformat.c:935:25:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                        strncpy(src, strerror(errno), limit - src);
data/yadifa-2.3.10/lib/dnscore/src/dnsformat.c:943: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).
                        p += strlen(p);
data/yadifa-2.3.10/lib/dnscore/src/dnsformat.c:951:25:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                        strncpy(src, strerror(errno), limit - src);
data/yadifa-2.3.10/lib/dnscore/src/dnskey.c:431: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).
    int origin_len = strlen(origin);
data/yadifa-2.3.10/lib/dnscore/src/dnskey.c:568: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).
        ZFREE_ARRAY(key->origin, strlen(key->origin) + 1); // +1 because the 0 has to be taken in account too (duh!)
data/yadifa-2.3.10/lib/dnscore/src/dnskey.c:1282:8:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    if(sscanf(name, "K%255[^+]+%03d+%05d.%15s", domain, &algorithm, &tag, extension) != 4)
data/yadifa-2.3.10/lib/dnscore/src/dnskey.c:1294: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).
    path_len = strlen(filename);
data/yadifa-2.3.10/lib/dnscore/src/fdtools.c:114:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(track->name, name, sizeof(track->name));
data/yadifa-2.3.10/lib/dnscore/src/fdtools.c:233:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if((n = read(fd, current, count)) <= 0)
data/yadifa-2.3.10/lib/dnscore/src/fdtools.c:365:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if((n = read(fd, current, count)) <= 0)
data/yadifa-2.3.10/lib/dnscore/src/fdtools.c:436:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if((n = read(fd, current, 1)) > 0)
data/yadifa-2.3.10/lib/dnscore/src/fdtools.c:494: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).
    int l0 = strlen(folder);
data/yadifa-2.3.10/lib/dnscore/src/fdtools.c:495: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).
    int l1 = strlen(filename);
data/yadifa-2.3.10/lib/dnscore/src/fdtools.c:1010: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).
            p = s + strlen(s);
data/yadifa-2.3.10/lib/dnscore/src/fdtools.c:1186: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 basedir_len = strlen(basedir);
data/yadifa-2.3.10/lib/dnscore/src/fdtools.c:1228: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 name_len = strlen(tmp->d_name);
data/yadifa-2.3.10/lib/dnscore/src/file_input_stream.c:107:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ssize_t ret = read(stream->data.fd, buffer, MIN(len, SSIZE_MAX));
data/yadifa-2.3.10/lib/dnscore/src/file_input_stream.c:109:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ssize_t ret = read(stream->data.fd, buffer, len);
data/yadifa-2.3.10/lib/dnscore/src/format.c:471: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 val_len = strlen(val);
data/yadifa-2.3.10/lib/dnscore/src/format.c:1059:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return output_stream_write(stream, (const u8*)text, strlen(text));
data/yadifa-2.3.10/lib/dnscore/src/format.c:1065: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).
    ya_result n = strlen(text);
data/yadifa-2.3.10/lib/dnscore/src/format.c:1109:58:  [1] (buffer) strlen:
  Does not handle 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 output_stream_write(termout, (const u8*)text, strlen(text));
data/yadifa-2.3.10/lib/dnscore/src/format.c:1115: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).
    ya_result n = strlen(text);
data/yadifa-2.3.10/lib/dnscore/src/host_address.c:1124: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).
            p += strlen(p);
data/yadifa-2.3.10/lib/dnscore/src/host_address.c:1135: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).
            p += strlen(p);
data/yadifa-2.3.10/lib/dnscore/src/input_stream.c:59:56:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    input_stream_read_method* readfunc = stream->vtbl->read;
data/yadifa-2.3.10/lib/dnscore/src/input_stream.c:384:59:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    input_stream_read_method *read_method = stream->vtbl->read;
data/yadifa-2.3.10/lib/dnscore/src/limiter.c:248:9:  [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(time_to_wait_for_more + 10);
data/yadifa-2.3.10/lib/dnscore/src/logger_handle.c:436: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).
    memset((char*)handle->formatted_name, 0xfe, strlen(handle->formatted_name));
data/yadifa-2.3.10/lib/dnscore/src/logger_handle.c:440: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).
    memset((char*)handle->name, 0xfe, strlen(handle->name));
data/yadifa-2.3.10/lib/dnscore/src/logger_handle.c:708: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).
        int len = strlen(name);
data/yadifa-2.3.10/lib/dnscore/src/mutex.c:1135:17:  [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/yadifa-2.3.10/lib/dnscore/src/name.c:119: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 len = strlen(name) + 1;
data/yadifa-2.3.10/lib/dnscore/src/pace.c:127:9:  [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(current - elapsed);
data/yadifa-2.3.10/lib/dnscore/src/parser.c:71: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).
    u32 n = strlen(input);
data/yadifa-2.3.10/lib/dnscore/src/parser.c:94: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).
    u32 n = strlen(input);
data/yadifa-2.3.10/lib/dnscore/src/parsing.c:414: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).
    return_code = parse_yyyymmddhhmmss_check_range_len(src, strlen(src), dst);
data/yadifa-2.3.10/lib/dnscore/src/parsing.c:671: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).
        u32 word_len = strlen(word);
data/yadifa-2.3.10/lib/dnscore/src/pid.c:89: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(pid_file_path) > PATH_MAX)
data/yadifa-2.3.10/lib/dnscore/src/pid.c:160: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(pid_file_path) > PATH_MAX)
data/yadifa-2.3.10/lib/dnscore/src/pipe_stream.c:232:9:  [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/yadifa-2.3.10/lib/dnscore/src/rewind-input-stream.c:189:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ret = data->filtered.vtbl->read(&data->filtered, buffer, len);
data/yadifa-2.3.10/lib/dnscore/src/rewind-input-stream.c:222:44:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if(ISOK(ret = data->filtered.vtbl->read(&data->filtered, &data->buffer[data->buffer_offset], len)))
data/yadifa-2.3.10/lib/dnscore/src/rewind-input-stream.c:242:44:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if(ISOK(ret = data->filtered.vtbl->read(&data->filtered, buffer, len)))
data/yadifa-2.3.10/lib/dnscore/src/rewind-input-stream.c:309:44:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if(ISOK(ret = data->filtered.vtbl->read(&data->filtered, &data->buffer[data->buffer_offset], len)))
data/yadifa-2.3.10/lib/dnscore/src/rfc.c:636: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).
    s32 n = strlen(src);
data/yadifa-2.3.10/lib/dnscore/src/rfc.c:657: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).
    s32 n = strlen(src);
data/yadifa-2.3.10/lib/dnscore/src/rfc.c:680: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).
    s32 n = strlen(src);
data/yadifa-2.3.10/lib/dnscore/src/server-setup.c:152:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask(mask);
data/yadifa-2.3.10/lib/dnscore/src/service.c:117:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if(strlen(desc->name) >= 16)
data/yadifa-2.3.10/lib/dnscore/src/tcp_io_stream.c:408:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(tmp, tcp_flags_cfg, sizeof(tmp)-1);
data/yadifa-2.3.10/lib/dnscore/src/tcp_io_stream.c:410: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 tmp_len = strlen(tmp);
data/yadifa-2.3.10/lib/dnscore/src/tcp_io_stream.c:425:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            s32 word_len = parse_skip_word_specific(p, strlen(p), tcp_env_keywords, 4, &keyword);
data/yadifa-2.3.10/lib/dnscore/src/thread_pool.c:309:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(desc->info, categoryname, sizeof(desc->info));
data/yadifa-2.3.10/lib/dnscore/src/thread_pool.c:1418: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 prefix_len = strlen(prefix);
data/yadifa-2.3.10/lib/dnscore/src/threaded-qsl-cw.c:324:9:  [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/yadifa-2.3.10/lib/dnscore/src/threaded_dll_cw.c:324:9:  [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/yadifa-2.3.10/lib/dnscore/src/threaded_nb_mm.c:102:13:  [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(5);
data/yadifa-2.3.10/lib/dnscore/src/threaded_nb_mm.c:128:9:  [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(5);
data/yadifa-2.3.10/lib/dnscore/src/threaded_nbrb.c:102:9:  [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(t);              \
data/yadifa-2.3.10/lib/dnscore/src/threaded_ringbuffer.c:547:9:  [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(1);
data/yadifa-2.3.10/lib/dnscore/src/threaded_ringbuffer_cw.c:472:9:  [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/yadifa-2.3.10/lib/dnscore/src/threaded_ringlist.c:609:9:  [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(1);
data/yadifa-2.3.10/lib/dnscore/src/timems.c:169:9:  [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(MIN(1000 - (tms % 1000), 1));
data/yadifa-2.3.10/lib/dnscore/src/timems.c:209:9:  [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(us);
data/yadifa-2.3.10/lib/dnsdb/src/dnssec-keystore.c:1052: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 dlen = strlen(basedir);
data/yadifa-2.3.10/lib/dnsdb/src/dnssec-keystore.c:1053: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 flen = strlen(filename);
data/yadifa-2.3.10/lib/dnsdb/src/dnssec-keystore.c:1068:8:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    if(sscanf(filename, "K%255[^+]+%03d+%05d.%15s", domain, &algorithm, &tag, extension) == 4)
data/yadifa-2.3.10/lib/dnsdb/src/dnssec-keystore.c:1309: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).
    int origin_len = strlen(origin);
data/yadifa-2.3.10/lib/dnsdb/src/hash.c:169: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).
    u32 len = (u32)strlen(asciiz_name);
data/yadifa-2.3.10/lib/dnsdb/src/journal.c:359:13:  [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); // 0.1s
data/yadifa-2.3.10/lib/dnsdb/src/journal_ix.c:1093:9:  [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/yadifa-2.3.10/lib/dnsdb/src/journal_ix.c:1153:9:  [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/yadifa-2.3.10/lib/dnsdb/src/journal_ix.c:1233: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(serials) != 8 + 1 + 8 + 1 + IX_EXT_STRLEN)
data/yadifa-2.3.10/lib/dnsdb/src/journal_ix.c:1270: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).
        jix->journal_name_len = strlen(ctx->filename);
data/yadifa-2.3.10/lib/dnsdb/src/zdb-zone-dnssec.c:90: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 len = strlen(file);
data/yadifa-2.3.10/lib/dnsdb/src/zdb-zone-path-provider.c:368:13:  [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(500000);
data/yadifa-2.3.10/lib/dnsdb/src/zdb_zone_axfr_input_stream.c:133:9:  [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); // 10ms
data/yadifa-2.3.10/lib/dnsdb/src/zdb_zone_axfr_input_stream.c:261:9:  [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/yadifa-2.3.10/lib/dnsdb/src/zdb_zone_label_iterator.c:232: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).
    u32 real_len = strlen(buffer256);
data/yadifa-2.3.10/lib/dnsdb/src/zdb_zone_store_axfr.c:150:9:  [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(DEBUG_SLOW_STORAGE_MS * 1000);
data/yadifa-2.3.10/lib/dnsdb/src/zdb_zone_write_text.c:625: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).
    size_t output_file_len = strlen(output_file);
data/yadifa-2.3.10/lib/dnslg/src/resolv.c:115: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).
    if(FAIL(return_code = parse_ip_address(value, strlen(value), ip_buffer, sizeof(ip_buffer))))
data/yadifa-2.3.10/lib/dnszone/src/zone_file_reader.c:1905:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int n = strlen(text);
data/yadifa-2.3.10/sbin/yadifad/config-denial.c:232: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).
    size_t salt_length = (denial->salt != NULL) ? strlen(denial->salt) : 0;
data/yadifa-2.3.10/sbin/yadifad/config-denial.c:289:75:  [1] (buffer) strlen:
  Does not handle 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 (FAIL(salt_length = base16_decode(denial_desc->salt, (u32) strlen(denial_desc->salt), buffer)))
data/yadifa-2.3.10/sbin/yadifad/config-key-roll-parser.c:202:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if((strlen(src) == 1) && (*src == '*'))
data/yadifa-2.3.10/sbin/yadifad/config-key-roll-parser.c:226: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).
    *needle += strlen(key_roll_item);
data/yadifa-2.3.10/sbin/yadifad/config-key-roll-parser.c:297: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).
    *needle += strlen(key_roll_item);
data/yadifa-2.3.10/sbin/yadifad/config-key-roll-parser.c:320: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).
    u32 src_len = (u32)strlen(src);
data/yadifa-2.3.10/sbin/yadifad/config-key-roll-parser.c:408: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).
    needle += strlen(key_roll_item);
data/yadifa-2.3.10/sbin/yadifad/config-key-roll-parser.c:442: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).
        needle += strlen(key_roll_item);
data/yadifa-2.3.10/sbin/yadifad/config-nsid.c:111:65:  [1] (buffer) strlen:
  Does not handle 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_code = config_set_byte_array(dest, (const u8*)value, strlen(value));
data/yadifa-2.3.10/sbin/yadifad/config-nsid.c:121: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).
    u32 value_len = strlen(value);
data/yadifa-2.3.10/sbin/yadifad/config_main.c:315: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).
    char *e = p + strlen(p) - 1;
data/yadifa-2.3.10/sbin/yadifad/config_main.c:329:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(filename, e, sizeof(filename));
data/yadifa-2.3.10/sbin/yadifad/config_main.c:334:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(filename, e, sizeof(filename));
data/yadifa-2.3.10/sbin/yadifad/config_main.c:343: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).
            int pathlen = strlen(*dirp);
data/yadifa-2.3.10/sbin/yadifad/config_main.c:344: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).
            memmove(&filename[pathlen + 1], filename, strlen(filename) + 1);
data/yadifa-2.3.10/sbin/yadifad/confs.c:499:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(configuration_file_path, config_file, sizeof(configuration_file_path));
data/yadifa-2.3.10/sbin/yadifad/database-service-zone-load.c:216:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(zone_desc_file_name, zone_desc-> file_name, sizeof(zone_desc_file_name));
data/yadifa-2.3.10/sbin/yadifad/database-service-zone-load.c:980:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(zone_desc_file_name, zone_desc->file_name, sizeof(zone_desc_file_name));
data/yadifa-2.3.10/sbin/yadifad/log_query.c:143: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).
                buffer += strlen(buffer);
data/yadifa-2.3.10/sbin/yadifad/log_query.c:155: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).
                buffer += strlen(buffer);
data/yadifa-2.3.10/sbin/yadifad/log_query.c:176: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).
        buffer += strlen(class_name);
data/yadifa-2.3.10/sbin/yadifad/log_query.c:191: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).
        buffer += strlen(type_name);
data/yadifa-2.3.10/sbin/yadifad/log_query.c:290: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).
        buffer += strlen(class_name);
data/yadifa-2.3.10/sbin/yadifad/log_query.c:305: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).
        buffer += strlen(type_name);
data/yadifa-2.3.10/sbin/yadifad/log_query.c:327: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).
                buffer += strlen(buffer);
data/yadifa-2.3.10/sbin/yadifad/log_query.c:339: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).
                buffer += strlen(buffer);
data/yadifa-2.3.10/sbin/yadifad/process_class_ch.c:85:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t name_len = MIN(strlen(name), 255);
data/yadifa-2.3.10/sbin/yadifad/process_class_ch.c:109:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t name_len = MIN(strlen(name), 255);
data/yadifa-2.3.10/sbin/yadifad/process_class_ch.c:133:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t name_len = MIN(strlen(name), 255);
data/yadifa-2.3.10/sbin/yadifad/server-mt.c:306:9:  [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/yadifa-2.3.10/sbin/yadifad/server_context.c:129: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).
    tmp->name_len = strlen(text);
data/yadifa-2.3.10/sbin/yadifad/server_context.c:161:13:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
            strcpy(buffer, "?"); // big enough
data/yadifa-2.3.10/sbin/yadifad/zone.c:534: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).
        MALLOC_OR_DIE(u8*, zone_desc->origin, strlen(zone_desc->domain) + 2, ZDORIGIN_TAG);
data/yadifa-2.3.10/sbin/yadifad/zone.c:1583: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).
                output_stream_write(os, word, strlen(word));

ANALYSIS SUMMARY:

Hits = 707
Lines analyzed = 199434 in approximately 4.37 seconds (45688 lines/second)
Physical Source Lines of Code (SLOC) = 113808
Hits@level = [0]  60 [1] 167 [2] 506 [3]   4 [4]  28 [5]   2
Hits@level+ = [0+] 767 [1+] 707 [2+] 540 [3+]  34 [4+]  30 [5+]   2
Hits/KSLOC@level+ = [0+] 6.73942 [1+] 6.21222 [2+] 4.74483 [3+] 0.298749 [4+] 0.263602 [5+] 0.0175735
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.