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/opendnssec-2.1.7/libhsm/src/bin/hsmspeed.c
Examining data/opendnssec-2.1.7/libhsm/src/bin/confparser.c
Examining data/opendnssec-2.1.7/libhsm/src/bin/hsmtest.c
Examining data/opendnssec-2.1.7/libhsm/src/bin/hsmtest.h
Examining data/opendnssec-2.1.7/libhsm/src/bin/hsmutil.c
Examining data/opendnssec-2.1.7/libhsm/src/lib/cryptoki_compat/pkcs11.h
Examining data/opendnssec-2.1.7/libhsm/src/lib/pin.c
Examining data/opendnssec-2.1.7/libhsm/src/lib/libhsm.h
Examining data/opendnssec-2.1.7/libhsm/src/lib/libhsmdns.h
Examining data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c
Examining data/opendnssec-2.1.7/libhsm/checks/confparser.c
Examining data/opendnssec-2.1.7/libhsm/checks/hsmcheck.c
Examining data/opendnssec-2.1.7/enforcer/src/db/policy.c
Examining data/opendnssec-2.1.7/enforcer/src/db/db_enum.h
Examining data/opendnssec-2.1.7/enforcer/src/db/db_clause.c
Examining data/opendnssec-2.1.7/enforcer/src/db/db_backend.c
Examining data/opendnssec-2.1.7/enforcer/src/db/db_backend_mysql.c
Examining data/opendnssec-2.1.7/enforcer/src/db/zone_db_ext.h
Examining data/opendnssec-2.1.7/enforcer/src/db/zone_db_ext.c
Examining data/opendnssec-2.1.7/enforcer/src/db/db_join.c
Examining data/opendnssec-2.1.7/enforcer/src/db/hsm_key_ext.c
Examining data/opendnssec-2.1.7/enforcer/src/db/db_value.h
Examining data/opendnssec-2.1.7/enforcer/src/db/policy_ext.c
Examining data/opendnssec-2.1.7/enforcer/src/db/db_data_sqlite.h
Examining data/opendnssec-2.1.7/enforcer/src/db/key_state_ext.h
Examining data/opendnssec-2.1.7/enforcer/src/db/db_backend_mysql.h
Examining data/opendnssec-2.1.7/enforcer/src/db/db_schema_sqlite.h
Examining data/opendnssec-2.1.7/enforcer/src/db/hsm_key_ext.h
Examining data/opendnssec-2.1.7/enforcer/src/db/key_data_ext.h
Examining data/opendnssec-2.1.7/enforcer/src/db/db_connection.h
Examining data/opendnssec-2.1.7/enforcer/src/db/db_object.h
Examining data/opendnssec-2.1.7/enforcer/src/db/key_dependency_ext.h
Examining data/opendnssec-2.1.7/enforcer/src/db/db_object.c
Examining data/opendnssec-2.1.7/enforcer/src/db/db_error.h
Examining data/opendnssec-2.1.7/enforcer/src/db/policy.h
Examining data/opendnssec-2.1.7/enforcer/src/db/db_data_mysql.h
Examining data/opendnssec-2.1.7/enforcer/src/db/hsm_key.h
Examining data/opendnssec-2.1.7/enforcer/src/db/database_version.c
Examining data/opendnssec-2.1.7/enforcer/src/db/database_version.h
Examining data/opendnssec-2.1.7/enforcer/src/db/db_backend.h
Examining data/opendnssec-2.1.7/enforcer/src/db/db_backend_sqlite.h
Examining data/opendnssec-2.1.7/enforcer/src/db/db_data_mysql.c
Examining data/opendnssec-2.1.7/enforcer/src/db/key_state.h
Examining data/opendnssec-2.1.7/enforcer/src/db/database_version_ext.c
Examining data/opendnssec-2.1.7/enforcer/src/db/db_data_sqlite.c
Examining data/opendnssec-2.1.7/enforcer/src/db/db_result.c
Examining data/opendnssec-2.1.7/enforcer/src/db/db_schema_sqlite.c
Examining data/opendnssec-2.1.7/enforcer/src/db/zone_db.c
Examining data/opendnssec-2.1.7/enforcer/src/db/db_result.h
Examining data/opendnssec-2.1.7/enforcer/src/db/policy_ext.h
Examining data/opendnssec-2.1.7/enforcer/src/db/db_backend_sqlite.c
Examining data/opendnssec-2.1.7/enforcer/src/db/key_data_ext.c
Examining data/opendnssec-2.1.7/enforcer/src/db/key_data.h
Examining data/opendnssec-2.1.7/enforcer/src/db/key_dependency.c
Examining data/opendnssec-2.1.7/enforcer/src/db/db_schema_mysql.h
Examining data/opendnssec-2.1.7/enforcer/src/db/zone_db.h
Examining data/opendnssec-2.1.7/enforcer/src/db/key_state_ext.c
Examining data/opendnssec-2.1.7/enforcer/src/db/db_value.c
Examining data/opendnssec-2.1.7/enforcer/src/db/db_join.h
Examining data/opendnssec-2.1.7/enforcer/src/db/policy_key_ext.c
Examining data/opendnssec-2.1.7/enforcer/src/db/db_connection.c
Examining data/opendnssec-2.1.7/enforcer/src/db/test/test_initialization.c
Examining data/opendnssec-2.1.7/enforcer/src/db/test/test_policy.c
Examining data/opendnssec-2.1.7/enforcer/src/db/test/test_key_state.c
Examining data/opendnssec-2.1.7/enforcer/src/db/test/test_policy_key.c
Examining data/opendnssec-2.1.7/enforcer/src/db/test/test_policy_key.h
Examining data/opendnssec-2.1.7/enforcer/src/db/test/test_key_data.c
Examining data/opendnssec-2.1.7/enforcer/src/db/test/test_classes.c
Examining data/opendnssec-2.1.7/enforcer/src/db/test/test_policy.h
Examining data/opendnssec-2.1.7/enforcer/src/db/test/test_key_state.h
Examining data/opendnssec-2.1.7/enforcer/src/db/test/test_database_operations.c
Examining data/opendnssec-2.1.7/enforcer/src/db/test/test_key_dependency.c
Examining data/opendnssec-2.1.7/enforcer/src/db/test/test_zone.c
Examining data/opendnssec-2.1.7/enforcer/src/db/test/test_zone.h
Examining data/opendnssec-2.1.7/enforcer/src/db/test/test_hsm_key.c
Examining data/opendnssec-2.1.7/enforcer/src/db/test/test.h
Examining data/opendnssec-2.1.7/enforcer/src/db/test/test_database_version.c
Examining data/opendnssec-2.1.7/enforcer/src/db/test/test_key_data.h
Examining data/opendnssec-2.1.7/enforcer/src/db/test/test_database_version.h
Examining data/opendnssec-2.1.7/enforcer/src/db/test/test_hsm_key.h
Examining data/opendnssec-2.1.7/enforcer/src/db/test/test.c
Examining data/opendnssec-2.1.7/enforcer/src/db/test/test_key_dependency.h
Examining data/opendnssec-2.1.7/enforcer/src/db/db_configuration.c
Examining data/opendnssec-2.1.7/enforcer/src/db/db_configuration.h
Examining data/opendnssec-2.1.7/enforcer/src/db/policy_key.c
Examining data/opendnssec-2.1.7/enforcer/src/db/key_state.c
Examining data/opendnssec-2.1.7/enforcer/src/db/key_dependency_ext.c
Examining data/opendnssec-2.1.7/enforcer/src/db/key_dependency.h
Examining data/opendnssec-2.1.7/enforcer/src/db/db_schema_mysql.c
Examining data/opendnssec-2.1.7/enforcer/src/db/hsm_key.c
Examining data/opendnssec-2.1.7/enforcer/src/db/database_version_ext.h
Examining data/opendnssec-2.1.7/enforcer/src/db/policy_key.h
Examining data/opendnssec-2.1.7/enforcer/src/db/key_data.c
Examining data/opendnssec-2.1.7/enforcer/src/db/db_type.h
Examining data/opendnssec-2.1.7/enforcer/src/db/db_clause.h
Examining data/opendnssec-2.1.7/enforcer/src/db/policy_key_ext.h
Examining data/opendnssec-2.1.7/enforcer/src/signconf/signconf_task.c
Examining data/opendnssec-2.1.7/enforcer/src/signconf/signconf_cmd.h
Examining data/opendnssec-2.1.7/enforcer/src/signconf/signconf_task.h
Examining data/opendnssec-2.1.7/enforcer/src/signconf/signconf_cmd.c
Examining data/opendnssec-2.1.7/enforcer/src/signconf/signconf_xml.c
Examining data/opendnssec-2.1.7/enforcer/src/signconf/signconf_xml.h
Examining data/opendnssec-2.1.7/enforcer/src/ods-enforcer-db-setup.c
Examining data/opendnssec-2.1.7/enforcer/src/policy/policy_resalt_task.c
Examining data/opendnssec-2.1.7/enforcer/src/policy/policy_export_cmd.h
Examining data/opendnssec-2.1.7/enforcer/src/policy/policy_export.c
Examining data/opendnssec-2.1.7/enforcer/src/policy/policy_import_cmd.c
Examining data/opendnssec-2.1.7/enforcer/src/policy/policy_purge_cmd.c
Examining data/opendnssec-2.1.7/enforcer/src/policy/policy_resalt_cmd.h
Examining data/opendnssec-2.1.7/enforcer/src/policy/policy_import_cmd.h
Examining data/opendnssec-2.1.7/enforcer/src/policy/policy_resalt_cmd.c
Examining data/opendnssec-2.1.7/enforcer/src/policy/policy_export_cmd.c
Examining data/opendnssec-2.1.7/enforcer/src/policy/policy_import.h
Examining data/opendnssec-2.1.7/enforcer/src/policy/policy_resalt_task.h
Examining data/opendnssec-2.1.7/enforcer/src/policy/policy_purge_cmd.h
Examining data/opendnssec-2.1.7/enforcer/src/policy/policy_import.c
Examining data/opendnssec-2.1.7/enforcer/src/policy/policy_list_cmd.c
Examining data/opendnssec-2.1.7/enforcer/src/policy/policy_export.h
Examining data/opendnssec-2.1.7/enforcer/src/policy/policy_list_cmd.h
Examining data/opendnssec-2.1.7/enforcer/src/ods-enforcerd.c
Examining data/opendnssec-2.1.7/enforcer/src/daemon/queue_cmd.c
Examining data/opendnssec-2.1.7/enforcer/src/daemon/help_cmd.h
Examining data/opendnssec-2.1.7/enforcer/src/daemon/engine.h
Examining data/opendnssec-2.1.7/enforcer/src/daemon/time_leap_cmd.h
Examining data/opendnssec-2.1.7/enforcer/src/daemon/enforcercommands.c
Examining data/opendnssec-2.1.7/enforcer/src/daemon/verbosity_cmd.c
Examining data/opendnssec-2.1.7/enforcer/src/daemon/cfg.h
Examining data/opendnssec-2.1.7/enforcer/src/daemon/ctrl_cmd.c
Examining data/opendnssec-2.1.7/enforcer/src/daemon/ctrl_cmd.h
Examining data/opendnssec-2.1.7/enforcer/src/daemon/enforcercommands.h
Examining data/opendnssec-2.1.7/enforcer/src/daemon/verbosity_cmd.h
Examining data/opendnssec-2.1.7/enforcer/src/daemon/cfg.c
Examining data/opendnssec-2.1.7/enforcer/src/daemon/help_cmd.c
Examining data/opendnssec-2.1.7/enforcer/src/daemon/queue_cmd.h
Examining data/opendnssec-2.1.7/enforcer/src/daemon/engine.c
Examining data/opendnssec-2.1.7/enforcer/src/daemon/time_leap_cmd.c
Examining data/opendnssec-2.1.7/enforcer/src/enforcer/update_all_cmd.h
Examining data/opendnssec-2.1.7/enforcer/src/enforcer/repositorylist_cmd.h
Examining data/opendnssec-2.1.7/enforcer/src/enforcer/enforce_task.h
Examining data/opendnssec-2.1.7/enforcer/src/enforcer/enforcer.c
Examining data/opendnssec-2.1.7/enforcer/src/enforcer/update_conf_cmd.h
Examining data/opendnssec-2.1.7/enforcer/src/enforcer/update_all_cmd.c
Examining data/opendnssec-2.1.7/enforcer/src/enforcer/enforcer.h
Examining data/opendnssec-2.1.7/enforcer/src/enforcer/autostart_cmd.c
Examining data/opendnssec-2.1.7/enforcer/src/enforcer/update_conf_cmd.c
Examining data/opendnssec-2.1.7/enforcer/src/enforcer/update_repositorylist_cmd.h
Examining data/opendnssec-2.1.7/enforcer/src/enforcer/enforce_task.c
Examining data/opendnssec-2.1.7/enforcer/src/enforcer/repositorylist_cmd.c
Examining data/opendnssec-2.1.7/enforcer/src/enforcer/autostart_cmd.h
Examining data/opendnssec-2.1.7/enforcer/src/enforcer/update_repositorylist_cmd.c
Examining data/opendnssec-2.1.7/enforcer/src/enforcer/enforce_cmd.h
Examining data/opendnssec-2.1.7/enforcer/src/enforcer/enforce_cmd.c
Examining data/opendnssec-2.1.7/enforcer/src/utils/kc_helper.c
Examining data/opendnssec-2.1.7/enforcer/src/utils/kaspcheck.c
Examining data/opendnssec-2.1.7/enforcer/src/utils/kc_helper.h
Examining data/opendnssec-2.1.7/enforcer/src/parser/confparser.c
Examining data/opendnssec-2.1.7/enforcer/src/parser/confparser.h
Examining data/opendnssec-2.1.7/enforcer/src/keystate/zone_set_policy_cmd.c
Examining data/opendnssec-2.1.7/enforcer/src/keystate/key_purge.h
Examining data/opendnssec-2.1.7/enforcer/src/keystate/keystate_export_cmd.c
Examining data/opendnssec-2.1.7/enforcer/src/keystate/keystate_ds_submit_task.h
Examining data/opendnssec-2.1.7/enforcer/src/keystate/keystate_import_cmd.h
Examining data/opendnssec-2.1.7/enforcer/src/keystate/keystate_ds_submit_cmd.h
Examining data/opendnssec-2.1.7/enforcer/src/keystate/zone_del_cmd.c
Examining data/opendnssec-2.1.7/enforcer/src/keystate/keystate_ds_gone_cmd.h
Examining data/opendnssec-2.1.7/enforcer/src/keystate/keystate_ds_retract_cmd.c
Examining data/opendnssec-2.1.7/enforcer/src/keystate/keystate_ds_submit_task.c
Examining data/opendnssec-2.1.7/enforcer/src/keystate/keystate_rollover_cmd.c
Examining data/opendnssec-2.1.7/enforcer/src/keystate/keystate_ds_retract_task.h
Examining data/opendnssec-2.1.7/enforcer/src/keystate/keystate_ds_retract_task.c
Examining data/opendnssec-2.1.7/enforcer/src/keystate/keystate_ds_retract_cmd.h
Examining data/opendnssec-2.1.7/enforcer/src/keystate/zonelist_import.c
Examining data/opendnssec-2.1.7/enforcer/src/keystate/keystate_ds_seen_cmd.c
Examining data/opendnssec-2.1.7/enforcer/src/keystate/zone_add_cmd.h
Examining data/opendnssec-2.1.7/enforcer/src/keystate/zonelist_update.h
Examining data/opendnssec-2.1.7/enforcer/src/keystate/zone_list_cmd.h
Examining data/opendnssec-2.1.7/enforcer/src/keystate/keystate_ds_seen_cmd.h
Examining data/opendnssec-2.1.7/enforcer/src/keystate/zone_list_cmd.c
Examining data/opendnssec-2.1.7/enforcer/src/keystate/key_purge.c
Examining data/opendnssec-2.1.7/enforcer/src/keystate/zonelist_export.h
Examining data/opendnssec-2.1.7/enforcer/src/keystate/zonelist_import_cmd.h
Examining data/opendnssec-2.1.7/enforcer/src/keystate/keystate_ds.h
Examining data/opendnssec-2.1.7/enforcer/src/keystate/zone_set_policy_cmd.h
Examining data/opendnssec-2.1.7/enforcer/src/keystate/rollover_list_cmd.c
Examining data/opendnssec-2.1.7/enforcer/src/keystate/keystate_ds_gone_cmd.c
Examining data/opendnssec-2.1.7/enforcer/src/keystate/keystate_rollover_cmd.h
Examining data/opendnssec-2.1.7/enforcer/src/keystate/zonelist_export_cmd.c
Examining data/opendnssec-2.1.7/enforcer/src/keystate/zonelist_import_cmd.c
Examining data/opendnssec-2.1.7/enforcer/src/keystate/rollover_list_cmd.h
Examining data/opendnssec-2.1.7/enforcer/src/keystate/keystate_list_cmd.c
Examining data/opendnssec-2.1.7/enforcer/src/keystate/zonelist_update.c
Examining data/opendnssec-2.1.7/enforcer/src/keystate/keystate_list_cmd.h
Examining data/opendnssec-2.1.7/enforcer/src/keystate/key_purge_cmd.h
Examining data/opendnssec-2.1.7/enforcer/src/keystate/keystate_import_cmd.c
Examining data/opendnssec-2.1.7/enforcer/src/keystate/zonelist_export.c
Examining data/opendnssec-2.1.7/enforcer/src/keystate/key_purge_cmd.c
Examining data/opendnssec-2.1.7/enforcer/src/keystate/keystate_export_cmd.h
Examining data/opendnssec-2.1.7/enforcer/src/keystate/keystate_ds.c
Examining data/opendnssec-2.1.7/enforcer/src/keystate/zone_del_cmd.h
Examining data/opendnssec-2.1.7/enforcer/src/keystate/zonelist_export_cmd.h
Examining data/opendnssec-2.1.7/enforcer/src/keystate/keystate_ds_submit_cmd.c
Examining data/opendnssec-2.1.7/enforcer/src/keystate/zonelist_import.h
Examining data/opendnssec-2.1.7/enforcer/src/keystate/zone_add_cmd.c
Examining data/opendnssec-2.1.7/enforcer/src/hsmkey/hsm_key_factory.c
Examining data/opendnssec-2.1.7/enforcer/src/hsmkey/key_generate_cmd.h
Examining data/opendnssec-2.1.7/enforcer/src/hsmkey/backup_hsmkeys_cmd.c
Examining data/opendnssec-2.1.7/enforcer/src/hsmkey/backup_hsmkeys_cmd.h
Examining data/opendnssec-2.1.7/enforcer/src/hsmkey/key_generate_cmd.c
Examining data/opendnssec-2.1.7/enforcer/src/hsmkey/hsm_key_factory.h
Examining data/opendnssec-2.1.7/enforcer/src/ods-enforcer.c
Examining data/opendnssec-2.1.7/enforcer/src/ods-migrate.c
Examining data/opendnssec-2.1.7/signer/src/adapter/adutil.c
Examining data/opendnssec-2.1.7/signer/src/adapter/adapter.c
Examining data/opendnssec-2.1.7/signer/src/adapter/addns.c
Examining data/opendnssec-2.1.7/signer/src/adapter/adapi.c
Examining data/opendnssec-2.1.7/signer/src/adapter/adfile.c
Examining data/opendnssec-2.1.7/signer/src/adapter/addns.h
Examining data/opendnssec-2.1.7/signer/src/adapter/adapi.h
Examining data/opendnssec-2.1.7/signer/src/adapter/adutil.h
Examining data/opendnssec-2.1.7/signer/src/adapter/adfile.h
Examining data/opendnssec-2.1.7/signer/src/adapter/adapter.h
Examining data/opendnssec-2.1.7/signer/src/daemon/signertasks.h
Examining data/opendnssec-2.1.7/signer/src/daemon/dnshandler.h
Examining data/opendnssec-2.1.7/signer/src/daemon/xfrhandler.h
Examining data/opendnssec-2.1.7/signer/src/daemon/engine.h
Examining data/opendnssec-2.1.7/signer/src/daemon/signercommands.c
Examining data/opendnssec-2.1.7/signer/src/daemon/cfg.h
Examining data/opendnssec-2.1.7/signer/src/daemon/signertasks.c
Examining data/opendnssec-2.1.7/signer/src/daemon/xfrhandler.c
Examining data/opendnssec-2.1.7/signer/src/daemon/dnshandler.c
Examining data/opendnssec-2.1.7/signer/src/daemon/cfg.c
Examining data/opendnssec-2.1.7/signer/src/daemon/signercommands.h
Examining data/opendnssec-2.1.7/signer/src/daemon/engine.c
Examining data/opendnssec-2.1.7/signer/src/wire/axfr.c
Examining data/opendnssec-2.1.7/signer/src/wire/acl.c
Examining data/opendnssec-2.1.7/signer/src/wire/acl.h
Examining data/opendnssec-2.1.7/signer/src/wire/tcpset.h
Examining data/opendnssec-2.1.7/signer/src/wire/axfr.h
Examining data/opendnssec-2.1.7/signer/src/wire/listener.h
Examining data/opendnssec-2.1.7/signer/src/wire/notify.h
Examining data/opendnssec-2.1.7/signer/src/wire/tcpset.c
Examining data/opendnssec-2.1.7/signer/src/wire/tsig-openssl.c
Examining data/opendnssec-2.1.7/signer/src/wire/netio.h
Examining data/opendnssec-2.1.7/signer/src/wire/xfrd.h
Examining data/opendnssec-2.1.7/signer/src/wire/tsig.h
Examining data/opendnssec-2.1.7/signer/src/wire/edns.c
Examining data/opendnssec-2.1.7/signer/src/wire/sock.h
Examining data/opendnssec-2.1.7/signer/src/wire/xfrd.c
Examining data/opendnssec-2.1.7/signer/src/wire/edns.h
Examining data/opendnssec-2.1.7/signer/src/wire/tsig.c
Examining data/opendnssec-2.1.7/signer/src/wire/buffer.c
Examining data/opendnssec-2.1.7/signer/src/wire/listener.c
Examining data/opendnssec-2.1.7/signer/src/wire/netio.c
Examining data/opendnssec-2.1.7/signer/src/wire/tsig-openssl.h
Examining data/opendnssec-2.1.7/signer/src/wire/notify.c
Examining data/opendnssec-2.1.7/signer/src/wire/query.h
Examining data/opendnssec-2.1.7/signer/src/wire/query.c
Examining data/opendnssec-2.1.7/signer/src/wire/buffer.h
Examining data/opendnssec-2.1.7/signer/src/wire/sock.c
Examining data/opendnssec-2.1.7/signer/src/parser/confparser.c
Examining data/opendnssec-2.1.7/signer/src/parser/confparser.h
Examining data/opendnssec-2.1.7/signer/src/parser/signconfparser.c
Examining data/opendnssec-2.1.7/signer/src/parser/addnsparser.h
Examining data/opendnssec-2.1.7/signer/src/parser/zonelistparser.c
Examining data/opendnssec-2.1.7/signer/src/parser/signconfparser.h
Examining data/opendnssec-2.1.7/signer/src/parser/addnsparser.c
Examining data/opendnssec-2.1.7/signer/src/parser/zonelistparser.h
Examining data/opendnssec-2.1.7/signer/src/hsm.h
Examining data/opendnssec-2.1.7/signer/src/ods-signer.c
Examining data/opendnssec-2.1.7/signer/src/hsm.c
Examining data/opendnssec-2.1.7/signer/src/signer/denial.c
Examining data/opendnssec-2.1.7/signer/src/signer/tools.c
Examining data/opendnssec-2.1.7/signer/src/signer/tools.h
Examining data/opendnssec-2.1.7/signer/src/signer/stats.h
Examining data/opendnssec-2.1.7/signer/src/signer/rrset.c
Examining data/opendnssec-2.1.7/signer/src/signer/namedb.h
Examining data/opendnssec-2.1.7/signer/src/signer/stats.c
Examining data/opendnssec-2.1.7/signer/src/signer/domain.c
Examining data/opendnssec-2.1.7/signer/src/signer/nsec3params.c
Examining data/opendnssec-2.1.7/signer/src/signer/nsec3params.h
Examining data/opendnssec-2.1.7/signer/src/signer/domain.h
Examining data/opendnssec-2.1.7/signer/src/signer/zonelist.h
Examining data/opendnssec-2.1.7/signer/src/signer/namedb.c
Examining data/opendnssec-2.1.7/signer/src/signer/zonelist.c
Examining data/opendnssec-2.1.7/signer/src/signer/ixfr.c
Examining data/opendnssec-2.1.7/signer/src/signer/signconf.c
Examining data/opendnssec-2.1.7/signer/src/signer/signconf.h
Examining data/opendnssec-2.1.7/signer/src/signer/denial.h
Examining data/opendnssec-2.1.7/signer/src/signer/zone.h
Examining data/opendnssec-2.1.7/signer/src/signer/keys.h
Examining data/opendnssec-2.1.7/signer/src/signer/backup.h
Examining data/opendnssec-2.1.7/signer/src/signer/zone.c
Examining data/opendnssec-2.1.7/signer/src/signer/backup.c
Examining data/opendnssec-2.1.7/signer/src/signer/rrset.h
Examining data/opendnssec-2.1.7/signer/src/signer/keys.c
Examining data/opendnssec-2.1.7/signer/src/signer/ixfr.h
Examining data/opendnssec-2.1.7/signer/src/ods-signerd.c
Examining data/opendnssec-2.1.7/common/cmdhandler.c
Examining data/opendnssec-2.1.7/common/janitor.h
Examining data/opendnssec-2.1.7/common/log.h
Examining data/opendnssec-2.1.7/common/util.h
Examining data/opendnssec-2.1.7/common/pselect.c
Examining data/opendnssec-2.1.7/common/clientpipe.c
Examining data/opendnssec-2.1.7/common/datastructure.h
Examining data/opendnssec-2.1.7/common/locks.c
Examining data/opendnssec-2.1.7/common/strlcat.c
Examining data/opendnssec-2.1.7/common/clientpipe.h
Examining data/opendnssec-2.1.7/common/strlcpy.c
Examining data/opendnssec-2.1.7/common/cmdhandler.h
Examining data/opendnssec-2.1.7/common/compat.h
Examining data/opendnssec-2.1.7/common/file.h
Examining data/opendnssec-2.1.7/common/locks.h
Examining data/opendnssec-2.1.7/common/privdrop.c
Examining data/opendnssec-2.1.7/common/status.c
Examining data/opendnssec-2.1.7/common/duration.c
Examining data/opendnssec-2.1.7/common/status.h
Examining data/opendnssec-2.1.7/common/duration.h
Examining data/opendnssec-2.1.7/common/janitor.c
Examining data/opendnssec-2.1.7/common/str.h
Examining data/opendnssec-2.1.7/common/b64_ntop.c
Examining data/opendnssec-2.1.7/common/str.c
Examining data/opendnssec-2.1.7/common/datastructure.c
Examining data/opendnssec-2.1.7/common/scheduler/fifoq.h
Examining data/opendnssec-2.1.7/common/scheduler/task.h
Examining data/opendnssec-2.1.7/common/scheduler/worker.h
Examining data/opendnssec-2.1.7/common/scheduler/schedule.c
Examining data/opendnssec-2.1.7/common/scheduler/worker.c
Examining data/opendnssec-2.1.7/common/scheduler/schedule.h
Examining data/opendnssec-2.1.7/common/scheduler/fifoq.c
Examining data/opendnssec-2.1.7/common/scheduler/task.c
Examining data/opendnssec-2.1.7/common/privdrop.h
Examining data/opendnssec-2.1.7/common/file.c
Examining data/opendnssec-2.1.7/common/b64_pton.c
Examining data/opendnssec-2.1.7/common/log.c
Examining data/opendnssec-2.1.7/common/util.c

FINAL RESULTS:

data/opendnssec-2.1.7/common/file.c:515:13:  [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(file, uid, gid) != 0) {
data/opendnssec-2.1.7/common/file.c:522:13:  [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(dir, uid, gid) != 0) {
data/opendnssec-2.1.7/common/clientpipe.c:108:12:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		msglen = vsnprintf(buf, ODS_SE_MAXLINE, format, ap);
data/opendnssec-2.1.7/common/clientpipe.c:132:12:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		msglen = vsnprintf(buf, ODS_SE_MAXLINE, format, ap);
data/opendnssec-2.1.7/common/clientpipe.c:181:8:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	ok = (vsnprintf(buf, ODS_SE_MAXLINE, fmt,ap) < ODS_SE_MAXLINE);
data/opendnssec-2.1.7/common/clientpipe.h:38:30:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
     __attribute__ ((format (printf, 2, 3)))
data/opendnssec-2.1.7/common/clientpipe.h:44:30:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
     __attribute__ ((format (printf, 2, 3)))
data/opendnssec-2.1.7/common/file.h:123:30:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
     __attribute__ ((format (printf, 3, 4)))
data/opendnssec-2.1.7/common/janitor.h:41:30:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
     __attribute__ ((format (printf, 1, 2)))
data/opendnssec-2.1.7/common/locks.c:77:30:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
     __attribute__ ((format (printf, 2, 3)))
data/opendnssec-2.1.7/common/locks.c:82:30:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
     __attribute__ ((format (printf, 1, 2)))
data/opendnssec-2.1.7/common/log.c:247:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf(message, sizeof(message), s, args);
data/opendnssec-2.1.7/common/log.h:100:30:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
     __attribute__ ((format (printf, 1, 2)))
data/opendnssec-2.1.7/common/log.h:111:30:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
     __attribute__ ((format (printf, 1, 2)))
data/opendnssec-2.1.7/common/log.h:122:30:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
     __attribute__ ((format (printf, 1, 2)))
data/opendnssec-2.1.7/common/log.h:133:30:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
     __attribute__ ((format (printf, 1, 2)))
data/opendnssec-2.1.7/common/log.h:144:30:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
     __attribute__ ((format (printf, 1, 2)))
data/opendnssec-2.1.7/common/log.h:155:30:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
     __attribute__ ((format (printf, 1, 2)))
data/opendnssec-2.1.7/common/log.h:174:30:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
     __attribute__ ((format (printf, 1, 2)))
data/opendnssec-2.1.7/common/log.h:185:30:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
     __attribute__ ((format (printf, 1, 2)))
data/opendnssec-2.1.7/common/log.h:196:30:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
     __attribute__ ((format (printf, 1, 2)))
data/opendnssec-2.1.7/enforcer/src/keystate/keystate_ds.c:180:15:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			FILE *fp = popen(ds_command, "w");
data/opendnssec-2.1.7/enforcer/src/keystate/zone_add_cmd.c:258:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(zone_db_input_adapter_uri(zone), F_OK) == -1) {
data/opendnssec-2.1.7/enforcer/src/keystate/zone_add_cmd.c:262:14:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    else if (access(zone_db_input_adapter_uri(zone), R_OK)) {
data/opendnssec-2.1.7/enforcer/src/keystate/zone_add_cmd.c:322:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access(zone_db_output_adapter_uri(zone), F_OK) == -1) {
data/opendnssec-2.1.7/enforcer/src/keystate/zone_add_cmd.c:326:18:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        else if (access(zone_db_output_adapter_uri(zone), R_OK)) {
data/opendnssec-2.1.7/enforcer/src/keystate/zonelist_export.c:68:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(filename, W_OK)) {
data/opendnssec-2.1.7/enforcer/src/keystate/zonelist_export.c:73:25:  [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(dirname, W_OK)) {
data/opendnssec-2.1.7/enforcer/src/keystate/zonelist_import.c:220: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.
                        if(access(zone_db_input_adapter_uri(zone), F_OK) == -1) {
data/opendnssec-2.1.7/enforcer/src/keystate/zonelist_import.c:224:34:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                        else if (access(zone_db_input_adapter_uri(zone), R_OK)) {
data/opendnssec-2.1.7/enforcer/src/keystate/zonelist_update.c:63:10:  [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(filename, F_OK)) {
data/opendnssec-2.1.7/enforcer/src/keystate/zonelist_update.c:64:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access(filename, R_OK|W_OK)) {
data/opendnssec-2.1.7/enforcer/src/ods-enforcer.c:214:28:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                exitcode = system(ODS_EN_ENGINE);
data/opendnssec-2.1.7/enforcer/src/ods-enforcer.c:286:25:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                    if (system(ODS_EN_ENGINE) != 0) {
data/opendnssec-2.1.7/enforcer/src/ods-enforcer.c:348:22:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        FILE *cmd2 = popen("pgrep ods-enforcerd","r");
data/opendnssec-2.1.7/enforcer/src/policy/policy_export.c:431:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access(filename, W_OK)) {
data/opendnssec-2.1.7/enforcer/src/policy/policy_export.c:436:29:  [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(dirname, W_OK)) {
data/opendnssec-2.1.7/enforcer/src/policy/policy_export.c:548:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access(filename, W_OK)) {
data/opendnssec-2.1.7/enforcer/src/policy/policy_export.c:553:29:  [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(dirname, W_OK)) {
data/opendnssec-2.1.7/enforcer/src/signconf/signconf_task.c:67:12:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        || system(cmd))
data/opendnssec-2.1.7/enforcer/src/utils/kc_helper.c:78:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vprintf(format, args2);
data/opendnssec-2.1.7/enforcer/src/utils/kc_helper.c:135:33:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		(xmlRelaxNGValidityErrorFunc) fprintf,
data/opendnssec-2.1.7/enforcer/src/utils/kc_helper.c:136:35:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		(xmlRelaxNGValidityWarningFunc) fprintf,
data/opendnssec-2.1.7/enforcer/src/utils/kc_helper.c:166:33:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		(xmlRelaxNGValidityErrorFunc) fprintf,
data/opendnssec-2.1.7/enforcer/src/utils/kc_helper.c:167:35:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		(xmlRelaxNGValidityWarningFunc) fprintf,
data/opendnssec-2.1.7/enforcer/src/utils/kc_helper.h:59:30:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
     __attribute__ ((format (printf, 1, 2)))
data/opendnssec-2.1.7/libhsm/src/bin/hsmutil.c:151:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stdout, key_info_format, "Repository", "ID", "Type");
data/opendnssec-2.1.7/libhsm/src/bin/hsmutil.c:152:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stdout, key_info_format, "----------", "--", "----");
data/opendnssec-2.1.7/libhsm/src/bin/hsmutil.c:179:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(key_info_format, key->modulename, key_id, key_type);
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:217:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        vsnprintf(ctx->error_message, sizeof(ctx->error_message),
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.h:165:30:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
     __attribute__ ((format (printf, 4, 5)))
data/opendnssec-2.1.7/signer/src/daemon/signercommands.c:546:11:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    (void)snprintf(buf, ODS_SE_MAXLINE, ODS_SE_STOP_RESPONSE);
data/opendnssec-2.1.7/signer/src/ods-signer.c:213:28:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                exitcode = system(ODS_SE_ENGINE); 
data/opendnssec-2.1.7/signer/src/ods-signer.c:286:25:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                    if (system(ODS_EN_ENGINE) != 0) {
data/opendnssec-2.1.7/signer/src/ods-signer.c:348:22:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        FILE *cmd2 = popen("pgrep ods-signerd","r");
data/opendnssec-2.1.7/signer/src/signer/tools.c:236:17:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                execvp(zone->notify_ns, zone->notify_args);
data/opendnssec-2.1.7/common/duration.c:419:22:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    return (time_t) (random() % (unsigned) mod+1);
data/opendnssec-2.1.7/common/privdrop.c:192:17:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
       status = chroot(newroot);
data/opendnssec-2.1.7/enforcer/src/daemon/cfg.c:95:51:  [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.
            ecfg->chroot = strdup_or_null(oldcfg->chroot);
data/opendnssec-2.1.7/enforcer/src/daemon/cfg.c:233:58:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
        if (config->username || config->group || config->chroot) {
data/opendnssec-2.1.7/enforcer/src/daemon/cfg.c:241:25:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
            if (config->chroot) {
data/opendnssec-2.1.7/enforcer/src/daemon/cfg.c:243:29:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
                    config->chroot);
data/opendnssec-2.1.7/enforcer/src/daemon/cfg.c:295:26:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
    free((void*) config->chroot);
data/opendnssec-2.1.7/enforcer/src/daemon/cfg.h:67:17:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
    const char* chroot;
data/opendnssec-2.1.7/enforcer/src/daemon/engine.c:142:25:  [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 (engine->config->chroot) {
data/opendnssec-2.1.7/enforcer/src/daemon/engine.c:144:29:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
            engine->config->chroot);
data/opendnssec-2.1.7/enforcer/src/daemon/engine.c:147:25:  [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.
        engine->config->chroot, &uid, &gid);
data/opendnssec-2.1.7/enforcer/src/daemon/time_leap_cmd.c:112:16:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt_long(argc, (char* const*)argv, "t:a", long_options, &long_index)) != -1) {
data/opendnssec-2.1.7/enforcer/src/enforcer/enforce_cmd.c:113:16:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt_long(argc, (char* const*)argv, "z:", long_options, &long_index)) != -1) {
data/opendnssec-2.1.7/enforcer/src/hsmkey/backup_hsmkeys_cmd.c:30:10:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
#include<getopt.h>
data/opendnssec-2.1.7/enforcer/src/hsmkey/backup_hsmkeys_cmd.c:219:19:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((opt = getopt_long(argc, (char* const*)argv, "r:", long_options, &long_index)) != -1) {
data/opendnssec-2.1.7/enforcer/src/hsmkey/key_generate_cmd.c:106:19:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((opt = getopt_long(argc, (char* const*)argv, "p:ad:", long_options, &long_index)) != -1) {
data/opendnssec-2.1.7/enforcer/src/keystate/key_purge_cmd.c:86:16:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt_long(argc, (char* const*)argv, "z:p:", long_options, &long_index)) != -1) {
data/opendnssec-2.1.7/enforcer/src/keystate/keystate_ds.c:467:16:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt_long(argc, (char* const*)argv, "z:k:x:a", long_options, &long_index)) != -1) {
data/opendnssec-2.1.7/enforcer/src/keystate/keystate_export_cmd.c:325:19:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((opt = getopt_long(argc, (char* const*)argv, "z:t:e:k:ads", long_options, &long_index)) != -1) {
data/opendnssec-2.1.7/enforcer/src/keystate/keystate_import_cmd.c:431:19:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((opt = getopt_long(argc, (char* const*)argv, "z:k:r:b:g:t:e:w:", long_options, &long_index)) != -1) {
data/opendnssec-2.1.7/enforcer/src/keystate/keystate_list_cmd.c:399:19:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((opt = getopt_long(argc, (char* const*)argv, "vdfpz:t:e:a", long_options, &long_index) ) != -1) {
data/opendnssec-2.1.7/enforcer/src/keystate/keystate_rollover_cmd.c:199:16:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt_long(argc, (char* const*)argv, "p:z:t:", long_options, &long_index)) != -1) {
data/opendnssec-2.1.7/enforcer/src/keystate/rollover_list_cmd.c:200:16:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt_long(argc, (char* const*)argv, "z:", long_options, &long_index)) != -1) {
data/opendnssec-2.1.7/enforcer/src/keystate/zone_add_cmd.c:139:19:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((opt = getopt_long(argc, (char* const*)argv, "z:p:s:i:o:j:q:un", long_options, &long_index)) != -1) {
data/opendnssec-2.1.7/enforcer/src/keystate/zone_del_cmd.c:163:19:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((opt = getopt_long(argc, (char* const*)argv, "z:au", long_options, &long_index)) != -1) {
data/opendnssec-2.1.7/enforcer/src/keystate/zone_set_policy_cmd.c:133:16:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt_long(argc, (char* const*)argv, "z:p:u", long_options, &long_index)) != -1) {
data/opendnssec-2.1.7/enforcer/src/keystate/zonelist_import_cmd.c:112:19:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((opt = getopt_long(argc, (char* const*)argv, "rf:", long_options, &long_index)) != -1) {
data/opendnssec-2.1.7/enforcer/src/ods-enforcer-db-setup.c:248:15:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c=getopt_long(argc, argv, "hVf",
data/opendnssec-2.1.7/enforcer/src/ods-enforcer.c:397:15:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c=getopt_long(argc, argv, "+hVs:",
data/opendnssec-2.1.7/enforcer/src/ods-enforcerd.c:160:15:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c=getopt_long(argc, argv, "1c:dhivV",
data/opendnssec-2.1.7/enforcer/src/ods-migrate.c:343:15:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c=getopt_long(argc, argv, "c:hv", long_options, &options_index)) != -1) {
data/opendnssec-2.1.7/enforcer/src/policy/policy_export_cmd.c:100:19:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((opt = getopt_long(argc, (char* const*)argv, "p:a", long_options, &long_index)) != -1) {
data/opendnssec-2.1.7/enforcer/src/policy/policy_import_cmd.c:114:19:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((opt = getopt_long(argc, (char* const*)argv, "r", long_options, &long_index)) != -1 ) {
data/opendnssec-2.1.7/enforcer/src/policy/policy_resalt_task.c:142:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		srand(now);
data/opendnssec-2.1.7/enforcer/src/utils/kaspcheck.c:92:15:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt_long(argc, argv, "c:hk:Vvz:", long_options, &option_index)) != -1)
data/opendnssec-2.1.7/libhsm/checks/hsmcheck.c:80:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "hgsdrc:")) != -1) {
data/opendnssec-2.1.7/libhsm/src/bin/hsmspeed.c:154:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "c:i:r:s:t:")) != -1) {
data/opendnssec-2.1.7/libhsm/src/bin/hsmutil.c:619:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, "c:vVhf")) != -1) {
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:272:26:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
        HINSTANCE hDLL = LoadLibrary(_T(module->path));
data/opendnssec-2.1.7/signer/src/daemon/cfg.c:182:58:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
        if (config->username || config->group || config->chroot) {
data/opendnssec-2.1.7/signer/src/daemon/cfg.c:190:25:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
            if (config->chroot) {
data/opendnssec-2.1.7/signer/src/daemon/cfg.c:192:29:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
                    config->chroot);
data/opendnssec-2.1.7/signer/src/daemon/cfg.c:259:25:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
    free((void*)config->chroot);
data/opendnssec-2.1.7/signer/src/daemon/cfg.h:57:17:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
    const char* chroot;
data/opendnssec-2.1.7/signer/src/daemon/engine.c:200:25:  [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 (engine->config->chroot) {
data/opendnssec-2.1.7/signer/src/daemon/engine.c:202:29:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
            engine->config->chroot);
data/opendnssec-2.1.7/signer/src/daemon/engine.c:205:25:  [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.
        engine->config->chroot, &uid, &gid);
data/opendnssec-2.1.7/signer/src/ods-signer.c:407:15:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c=getopt_long(argc, argv, "+hVs:",
data/opendnssec-2.1.7/signer/src/ods-signerd.c:148:15:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c=getopt_long(argc, argv, "c:dhivV",
data/opendnssec-2.1.7/signer/src/wire/notify.c:86:13:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            random()%(extra-base);
data/opendnssec-2.1.7/signer/src/wire/xfrd.c:416:13:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            random()%(extra-base);
data/opendnssec-2.1.7/common/clientpipe.c:59:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&buf[1], &datalen, 2);
data/opendnssec-2.1.7/common/clientpipe.c:66:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ctrl[4];
data/opendnssec-2.1.7/common/clientpipe.c:76:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ctrl[3];
data/opendnssec-2.1.7/common/clientpipe.c:103:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[ODS_SE_MAXLINE];
data/opendnssec-2.1.7/common/clientpipe.c:127:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[ODS_SE_MAXLINE];
data/opendnssec-2.1.7/common/clientpipe.c:156:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fmt[128];
data/opendnssec-2.1.7/common/clientpipe.c: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 buf[ODS_SE_MAXLINE];
data/opendnssec-2.1.7/common/clientpipe.c:194:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[ODS_SE_MAXLINE];
data/opendnssec-2.1.7/common/cmdhandler.c:171: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[ODS_SE_MAXLINE+1], opc;
data/opendnssec-2.1.7/common/cmdhandler.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(&datalen, &buf[1], 2);
data/opendnssec-2.1.7/common/cmdhandler.c:192: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(data, buf+3, datalen);
data/opendnssec-2.1.7/common/cmdhandler.c:209: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(&buf[1], &datalen, 2);
data/opendnssec-2.1.7/common/cmdhandler.c:227:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[ODS_SE_MAXLINE+4]; /* enough space for hdr and \0 */
data/opendnssec-2.1.7/common/datastructure.c:108:23:  [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).
    (*klass)->store = fopen(fname, "w+");
data/opendnssec-2.1.7/common/datastructure.c:156: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(&collection->array[collection->size * collection->count], data, collection->size);
data/opendnssec-2.1.7/common/duration.c:137: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).
        duration->years = atoi(str+1);
data/opendnssec-2.1.7/common/duration.c:143:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        duration->months = atoi(str+1);
data/opendnssec-2.1.7/common/duration.c:149:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        duration->days = atoi(str+1);
data/opendnssec-2.1.7/common/duration.c:159: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).
        duration->hours = atoi(str+1);
data/opendnssec-2.1.7/common/duration.c:165:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        duration->minutes = atoi(str+1);
data/opendnssec-2.1.7/common/duration.c:171:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        duration->seconds = atoi(str+1);
data/opendnssec-2.1.7/common/duration.c:184:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            duration->weeks = atoi(str+1);
data/opendnssec-2.1.7/common/duration.c:485: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 outstr[32];
data/opendnssec-2.1.7/common/file.c:204:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            fd = fopen(openf, mode);
data/opendnssec-2.1.7/common/file.c:416:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[BUFFER_SIZE];
data/opendnssec-2.1.7/common/file.c:423:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fin = open(file1, O_RDONLY|O_NONBLOCK)) < 0) {
data/opendnssec-2.1.7/common/file.c:427:16:  [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).
        fout = open(file2, O_WRONLY|O_APPEND|O_CREAT, 0666);
data/opendnssec-2.1.7/common/file.c:429:16:  [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).
        fout = open(file2, O_WRONLY|O_TRUNC|O_CREAT, 0666);
data/opendnssec-2.1.7/common/file.c:555: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(*list, old, count * sizeof(char*));
data/opendnssec-2.1.7/common/janitor.c:504: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 symbol[256];
data/opendnssec-2.1.7/common/janitor.c:557: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 symbol[256];
data/opendnssec-2.1.7/common/locks.c:72: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/opendnssec-2.1.7/common/locks.c:195:9:  [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.buffer[buffer.index - strlen("...\n") -1], "...\n");
data/opendnssec-2.1.7/common/log.c:243: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 message[ODS_SE_MAXLINE];
data/opendnssec-2.1.7/common/log.c:244:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char nowstr[CTIME_LENGTH];
data/opendnssec-2.1.7/common/scheduler/schedule.c:569: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 ctimebuf[32]; /* at least 26 according to docs */
data/opendnssec-2.1.7/common/str.c:87: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(cat+pos, argv[i], strlen(argv[i]));
data/opendnssec-2.1.7/common/util.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 pidbuf[32];
data/opendnssec-2.1.7/common/util.c:134:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fd = open(file, O_RDONLY)) == -1) {
data/opendnssec-2.1.7/common/util.c:214: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 pidbuf[32];
data/opendnssec-2.1.7/common/util.c:307:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char pidbuf[32];
data/opendnssec-2.1.7/common/util.c:311:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(pidfile, O_RDONLY)) == -1) {
data/opendnssec-2.1.7/common/util.c:323:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		pid = atoi(pidbuf);
data/opendnssec-2.1.7/enforcer/src/daemon/engine.c:326: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 str[32];
data/opendnssec-2.1.7/enforcer/src/daemon/engine.c:499:31:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                    if ((fd = open("/dev/null", O_RDWR, 0)) != -1) {
data/opendnssec-2.1.7/enforcer/src/daemon/queue_cmd.c:72:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char strtime[64]; /* at least 26 according to docs plus a long integer */
data/opendnssec-2.1.7/enforcer/src/daemon/time_leap_cmd.c:79:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char strtime[64]; /* at least 26 according to docs plus a long integer */
data/opendnssec-2.1.7/enforcer/src/daemon/time_leap_cmd.c:80:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[ODS_SE_MAXLINE];
data/opendnssec-2.1.7/enforcer/src/daemon/time_leap_cmd.c:86:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *argv[MAX_ARGS];
data/opendnssec-2.1.7/enforcer/src/daemon/verbosity_cmd.c:65:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *argv[MAX_ARGS];
data/opendnssec-2.1.7/enforcer/src/daemon/verbosity_cmd.c:66:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[ODS_SE_MAXLINE];
data/opendnssec-2.1.7/enforcer/src/db/db_backend_mysql.c:718:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        port = atoi(db_configuration_value(port_configuration));
data/opendnssec-2.1.7/enforcer/src/db/db_backend_mysql.c:723:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        timeout = atoi(db_configuration_value(timeout_configuration));
data/opendnssec-2.1.7/enforcer/src/db/db_backend_mysql.c:1331: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 sql[4*1024];
data/opendnssec-2.1.7/enforcer/src/db/db_backend_mysql.c:1541: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 sql[4*1024];
data/opendnssec-2.1.7/enforcer/src/db/db_backend_mysql.c:1666: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 sql[4*1024];
data/opendnssec-2.1.7/enforcer/src/db/db_backend_mysql.c:1902: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 sql[4*1024];
data/opendnssec-2.1.7/enforcer/src/db/db_backend_mysql.c:2017: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 sql[4*1024];
data/opendnssec-2.1.7/enforcer/src/db/db_backend_sqlite.c:313:35:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        backend_sqlite->timeout = atoi(db_configuration_value(timeout));
data/opendnssec-2.1.7/enforcer/src/db/db_backend_sqlite.c:321:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        backend_sqlite->usleep = atoi(db_configuration_value(usleep));
data/opendnssec-2.1.7/enforcer/src/db/db_backend_sqlite.c:829: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 sql[4*1024];
data/opendnssec-2.1.7/enforcer/src/db/db_backend_sqlite.c:1116: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 sql[4*1024];
data/opendnssec-2.1.7/enforcer/src/db/db_backend_sqlite.c:1243: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 sql[4*1024];
data/opendnssec-2.1.7/enforcer/src/db/db_backend_sqlite.c:1547: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 sql[4*1024];
data/opendnssec-2.1.7/enforcer/src/db/db_backend_sqlite.c:1656: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 sql[4*1024];
data/opendnssec-2.1.7/enforcer/src/db/db_value.c:91: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, from_value, sizeof(db_value_t));
data/opendnssec-2.1.7/enforcer/src/db/policy_ext.c:535:94:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                                        if (policy_denial_algorithm(policy) != (unsigned int)atoi((char*)xml_text)) {
data/opendnssec-2.1.7/enforcer/src/db/policy_ext.c:541:95:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                                        if (policy_set_denial_algorithm(policy, (unsigned int)atoi((char*)xml_text))) {
data/opendnssec-2.1.7/enforcer/src/db/policy_ext.c:560:95:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                                        if (policy_denial_iterations(policy) != (unsigned int)atoi((char*)xml_text)) {
data/opendnssec-2.1.7/enforcer/src/db/policy_ext.c:566:96:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                                        if (policy_set_denial_iterations(policy, (unsigned int)atoi((char*)xml_text))) {
data/opendnssec-2.1.7/enforcer/src/db/policy_ext.c:585:96:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                                        if (policy_denial_salt_length(policy) != (unsigned int)atoi((char*)xml_text)) {
data/opendnssec-2.1.7/enforcer/src/db/policy_ext.c:591:97:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                                        if (policy_set_denial_salt_length(policy, (unsigned int)atoi((char*)xml_text))) {
data/opendnssec-2.1.7/enforcer/src/db/policy_key_ext.c:80:67:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                if (policy_key_set_bits(policy_key, (unsigned int)atoi((char*)xml_text))) {
data/opendnssec-2.1.7/enforcer/src/db/policy_key_ext.c:95:68:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            if (policy_key_set_algorithm(policy_key, (unsigned int)atoi((char*)xml_text))) {
data/opendnssec-2.1.7/enforcer/src/db/policy_key_ext.c:150:66:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            if (policy_key_set_standby(policy_key, (unsigned int)atoi((char*)xml_text))) {
data/opendnssec-2.1.7/enforcer/src/enforcer/enforce_cmd.c:83:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char const *argv[MAX_ARGS];
data/opendnssec-2.1.7/enforcer/src/hsmkey/backup_hsmkeys_cmd.c:194: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 *argv[NARGV];
data/opendnssec-2.1.7/enforcer/src/hsmkey/backup_hsmkeys_cmd.c:197:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[ODS_SE_MAXLINE];
data/opendnssec-2.1.7/enforcer/src/keystate/key_purge_cmd.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.
	const char *argv[MAX_ARGS];
data/opendnssec-2.1.7/enforcer/src/keystate/keystate_ds.c:442:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[ODS_SE_MAXLINE];
data/opendnssec-2.1.7/enforcer/src/keystate/keystate_ds.c:494:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		keytag = atoi(keytag_s);
data/opendnssec-2.1.7/enforcer/src/keystate/keystate_export_cmd.c:283:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[ODS_SE_MAXLINE];
data/opendnssec-2.1.7/enforcer/src/keystate/keystate_export_cmd.c:284: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 *argv[NARGV];
data/opendnssec-2.1.7/enforcer/src/keystate/keystate_import_cmd.c:384:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[ODS_SE_MAXLINE];
data/opendnssec-2.1.7/enforcer/src/keystate/keystate_import_cmd.c:385: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 *argv[NARGV];
data/opendnssec-2.1.7/enforcer/src/keystate/keystate_import_cmd.c:564:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    if (atoi(algorithm) != policy_key_algorithm(policy_key)) {
data/opendnssec-2.1.7/enforcer/src/keystate/keystate_import_cmd.c:576:76:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    if (perform_hsmkey_import(sockfd, dbconn, ckaid, repository, zonename, atoi(bits), atoi(algorithm), type, (unsigned int)inception)
data/opendnssec-2.1.7/enforcer/src/keystate/keystate_import_cmd.c:576:88:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    if (perform_hsmkey_import(sockfd, dbconn, ckaid, repository, zonename, atoi(bits), atoi(algorithm), type, (unsigned int)inception)
data/opendnssec-2.1.7/enforcer/src/keystate/keystate_import_cmd.c:577:80:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        || perform_keydata_import(sockfd, dbconn, ckaid, repository, zonename, atoi(algorithm), state, type, (unsigned int)inception, setmin, hsmkey_id)
data/opendnssec-2.1.7/enforcer/src/keystate/keystate_list_cmd.c:138:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ct[26];
data/opendnssec-2.1.7/enforcer/src/keystate/keystate_list_cmd.c:361:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[ODS_SE_MAXLINE];
data/opendnssec-2.1.7/enforcer/src/keystate/keystate_list_cmd.c:363: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 *argv[NARGV];
data/opendnssec-2.1.7/enforcer/src/keystate/keystate_rollover_cmd.c:167:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[ODS_SE_MAXLINE];
data/opendnssec-2.1.7/enforcer/src/keystate/keystate_rollover_cmd.c:169:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *argv[NARGV];
data/opendnssec-2.1.7/enforcer/src/keystate/rollover_list_cmd.c:56:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ct[26];
data/opendnssec-2.1.7/enforcer/src/keystate/rollover_list_cmd.c:173:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[ODS_SE_MAXLINE];
data/opendnssec-2.1.7/enforcer/src/keystate/rollover_list_cmd.c:174:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *argv[NARGV];
data/opendnssec-2.1.7/enforcer/src/keystate/zone_add_cmd.c:100: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/opendnssec-2.1.7/enforcer/src/keystate/zone_del_cmd.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 path[PATH_MAX];
data/opendnssec-2.1.7/enforcer/src/keystate/zone_list_cmd.c:70:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[32];
data/opendnssec-2.1.7/enforcer/src/keystate/zone_set_policy_cmd.c:111:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/opendnssec-2.1.7/enforcer/src/keystate/zonelist_export.c:58: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/opendnssec-2.1.7/enforcer/src/keystate/zonelist_import_cmd.c:73: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], buf[ODS_SE_MAXLINE];
data/opendnssec-2.1.7/enforcer/src/keystate/zonelist_import_cmd.c:77: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 *argv[NARGV];
data/opendnssec-2.1.7/enforcer/src/keystate/zonelist_update.c:53: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/opendnssec-2.1.7/enforcer/src/ods-enforcer-db-setup.c:209: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 sql[4096];
data/opendnssec-2.1.7/enforcer/src/ods-enforcer.c:121:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char data[ODS_SE_MAXLINE+1], opc;
data/opendnssec-2.1.7/enforcer/src/ods-enforcer.c:139: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(data, buf+3, datalen);
data/opendnssec-2.1.7/enforcer/src/ods-enforcer.c:198: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 userbuf[ODS_SE_MAXLINE], inbuf[ODS_SE_MAXLINE];
data/opendnssec-2.1.7/enforcer/src/ods-enforcer.c:347:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char line[80];
data/opendnssec-2.1.7/enforcer/src/ods-migrate.c:314:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    *id = atoi(argv[0]);
data/opendnssec-2.1.7/enforcer/src/ods-migrate.c:315:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    algorithm = atoi(argv[1]);
data/opendnssec-2.1.7/enforcer/src/ods-migrate.c:316:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    sep = KEY_DATA_ROLE_SEP(atoi(argv[2]));
data/opendnssec-2.1.7/enforcer/src/ods-migrate.c:317: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).
    *keytag = atoi(argv[3]);
data/opendnssec-2.1.7/enforcer/src/parser/confparser.c:625:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        	verbosity = atoi(str);
data/opendnssec-2.1.7/enforcer/src/parser/confparser.c:642:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            numwt = atoi(str);
data/opendnssec-2.1.7/enforcer/src/parser/confparser.c:671:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            port = atoi(str);
data/opendnssec-2.1.7/enforcer/src/policy/policy_export.c:67: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[1024];
data/opendnssec-2.1.7/enforcer/src/policy/policy_export.c:419: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/opendnssec-2.1.7/enforcer/src/policy/policy_export.c:536: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/opendnssec-2.1.7/enforcer/src/policy/policy_import_cmd.c:83:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[ODS_SE_MAXLINE];
data/opendnssec-2.1.7/enforcer/src/policy/policy_import_cmd.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 const *argv[NARGV];
data/opendnssec-2.1.7/enforcer/src/policy/policy_resalt_task.c:110:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char salt[255], salthex[511];
data/opendnssec-2.1.7/enforcer/src/signconf/signconf_task.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 cmd[SYSTEM_MAXLEN];
data/opendnssec-2.1.7/enforcer/src/signconf/signconf_xml.c:158: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/opendnssec-2.1.7/enforcer/src/signconf/signconf_xml.c:169: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[1024];
data/opendnssec-2.1.7/enforcer/src/utils/kc_helper.c:415:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char my_policy[KC_NAME_LENGTH];
data/opendnssec-2.1.7/enforcer/src/utils/kc_helper.c:518:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
									hash_algo = atoi(temp_char);
data/opendnssec-2.1.7/libhsm/src/bin/hsmspeed.c:160:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            iterations = atoi(optarg);
data/opendnssec-2.1.7/libhsm/src/bin/hsmspeed.c:166:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            keysize = atoi(optarg);
data/opendnssec-2.1.7/libhsm/src/bin/hsmspeed.c:169:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            threads = atoi(optarg);
data/opendnssec-2.1.7/libhsm/src/bin/hsmtest.c:82: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.
    unsigned char rnd_buf[1024];
data/opendnssec-2.1.7/libhsm/src/bin/hsmutil.c:157: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 key_type[HSM_MAX_ALGONAME + 8];
data/opendnssec-2.1.7/libhsm/src/bin/hsmutil.c:221:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        keysize = atoi(argv[2]);
data/opendnssec-2.1.7/libhsm/src/bin/hsmutil.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 confirm[16];
data/opendnssec-2.1.7/libhsm/src/bin/hsmutil.c:411:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    type = atoi(argv[2]);
data/opendnssec-2.1.7/libhsm/src/bin/hsmutil.c:412:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    algo = atoi(argv[3]);
data/opendnssec-2.1.7/libhsm/src/lib/cryptoki_compat/pkcs11.h:198:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char manufacturer_id[32];
data/opendnssec-2.1.7/libhsm/src/lib/cryptoki_compat/pkcs11.h:200:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char library_description[32];
data/opendnssec-2.1.7/libhsm/src/lib/cryptoki_compat/pkcs11.h:215:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char slot_description[64];
data/opendnssec-2.1.7/libhsm/src/lib/cryptoki_compat/pkcs11.h:216:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char manufacturer_id[32];
data/opendnssec-2.1.7/libhsm/src/lib/cryptoki_compat/pkcs11.h:231:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char label[32];
data/opendnssec-2.1.7/libhsm/src/lib/cryptoki_compat/pkcs11.h:232:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char manufacturer_id[32];
data/opendnssec-2.1.7/libhsm/src/lib/cryptoki_compat/pkcs11.h:233:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char model[16];
data/opendnssec-2.1.7/libhsm/src/lib/cryptoki_compat/pkcs11.h:234:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char serial_number[16];
data/opendnssec-2.1.7/libhsm/src/lib/cryptoki_compat/pkcs11.h:248:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char utc_time[16];
data/opendnssec-2.1.7/libhsm/src/lib/cryptoki_compat/pkcs11.h:473:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char year[4];
data/opendnssec-2.1.7/libhsm/src/lib/cryptoki_compat/pkcs11.h:474:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char month[2];
data/opendnssec-2.1.7/libhsm/src/lib/cryptoki_compat/pkcs11.h:475:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char day[2];
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:347: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_name_bytes[HSM_TOKEN_LABEL_LENGTH];
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:359: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_name_bytes, token_name, strlen(token_name));
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:361: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_name_bytes, token_name, HSM_TOKEN_LABEL_LENGTH);
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.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(module->config, config, sizeof(hsm_config_t));
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:1093: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(data, value + header_len, *data_len);
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:1229: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(data, value + header_len, *data_len);
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:1763: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(&data[1], public_exponent, public_exponent_len);
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:1764: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(&data[1 + public_exponent_len], modulus, modulus_len);
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:1777: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(&data[3], public_exponent, public_exponent_len);
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:1778: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(&data[3 + public_exponent_len], modulus, modulus_len);
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:1894: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(&data[1], subprime, subprime_len);
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:1895: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(&data[1 + subprime_len], prime, prime_len);
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:1896: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(&data[1 + subprime_len + prime_len], base, base_len);
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:1897: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(&data[1 + subprime_len + prime_len + base_len], value, value_len);
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:2027: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(data, RSA_MD5_ID, sizeof(RSA_MD5_ID));
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:2033: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(data, RSA_SHA1_ID, sizeof(RSA_SHA1_ID));
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:2038: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(data, RSA_SHA256_ID, sizeof(RSA_SHA256_ID));
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:2043: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(data, RSA_SHA512_ID, sizeof(RSA_SHA512_ID));
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:2193: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(data + data_len - digest_len, digest, digest_len);
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:2641: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.
    unsigned char id[16];
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:2643: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 id_str[33];
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:2735: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.
    unsigned char id[16];
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:2737: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 id_str[33];
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:2848: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.
    unsigned char id[16];
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:2850: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 id_str[33];
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:2929: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.
    unsigned char id[16];
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:2931: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 id_str[33];
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:3025: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.
    unsigned char id[16];
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:3027: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 id_str[33];
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:3432: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.
    unsigned char rnd_buf[4];
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:3435: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(&rnd, rnd_buf, 4);
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:3447: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.
    unsigned char rnd_buf[8];
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:3450: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(&rnd, rnd_buf, 8);
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.h:143: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 error_message[HSM_ERROR_MSGSIZE];
data/opendnssec-2.1.7/libhsm/src/lib/pin.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 pin[HSM_MAX_PIN_LENGTH+1];
data/opendnssec-2.1.7/libhsm/src/lib/pin.c:72:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char pass[HSM_MAX_PIN_LENGTH+1];
data/opendnssec-2.1.7/libhsm/src/lib/pin.c:237: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 prompt[64];
data/opendnssec-2.1.7/libhsm/src/lib/pin.c:274: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(pin, &pins[index], size);
data/opendnssec-2.1.7/libhsm/src/lib/pin.c:301: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(pin, prompt_pin, size);
data/opendnssec-2.1.7/libhsm/src/lib/pin.c:308: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(&pins[index], pin, HSM_MAX_PIN_LENGTH+1);
data/opendnssec-2.1.7/libhsm/src/lib/pin.c:399: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(pin, &pins[index], size);
data/opendnssec-2.1.7/signer/src/adapter/addns.c: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 line[SE_ADFILE_MAXLINE];
data/opendnssec-2.1.7/signer/src/adapter/adfile.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 line[SE_ADFILE_MAXLINE];
data/opendnssec-2.1.7/signer/src/daemon/signercommands.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 buf[ODS_SE_MAXLINE];
data/opendnssec-2.1.7/signer/src/daemon/signercommands.c:95:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[ODS_SE_MAXLINE];
data/opendnssec-2.1.7/signer/src/daemon/signercommands.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 buf[ODS_SE_MAXLINE];
data/opendnssec-2.1.7/signer/src/daemon/signercommands.c:216:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[ODS_SE_MAXLINE];
data/opendnssec-2.1.7/signer/src/daemon/signercommands.c:290:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[ODS_SE_MAXLINE];
data/opendnssec-2.1.7/signer/src/daemon/signercommands.c:383:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[ODS_SE_MAXLINE];
data/opendnssec-2.1.7/signer/src/daemon/signercommands.c:450:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[ODS_SE_MAXLINE];
data/opendnssec-2.1.7/signer/src/daemon/signercommands.c:499:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[ODS_SE_MAXLINE];
data/opendnssec-2.1.7/signer/src/daemon/signercommands.c:519:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[ODS_SE_MAXLINE];
data/opendnssec-2.1.7/signer/src/daemon/signercommands.c:540:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[ODS_SE_MAXLINE];
data/opendnssec-2.1.7/signer/src/daemon/signercommands.c:559:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[ODS_SE_MAXLINE];
data/opendnssec-2.1.7/signer/src/daemon/signercommands.c:573:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[ODS_SE_MAXLINE];
data/opendnssec-2.1.7/signer/src/daemon/signercommands.c:587:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[ODS_SE_MAXLINE];
data/opendnssec-2.1.7/signer/src/daemon/signercommands.c:589:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    val = atoi(cmdargument(cmd, NULL, "1"));
data/opendnssec-2.1.7/signer/src/daemon/signercommands.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 buf[ODS_SE_MAXLINE];
data/opendnssec-2.1.7/signer/src/daemon/signercommands.c:617:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[ODS_SE_MAXLINE];
data/opendnssec-2.1.7/signer/src/daemon/signercommands.c:632: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 strtime[64]; /* at least 26 according to docs plus a long integer */
data/opendnssec-2.1.7/signer/src/ods-signer.c:120: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[ODS_SE_MAXLINE+1], opc;
data/opendnssec-2.1.7/signer/src/ods-signer.c:138: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(data, buf+3, datalen);
data/opendnssec-2.1.7/signer/src/ods-signer.c:197: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 userbuf[ODS_SE_MAXLINE], inbuf[ODS_SE_MAXLINE];
data/opendnssec-2.1.7/signer/src/ods-signer.c:347:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char line[80];
data/opendnssec-2.1.7/signer/src/parser/confparser.c:438: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(dup, str, sizeof(char)*(lwd+1));
data/opendnssec-2.1.7/signer/src/parser/confparser.c:444: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(dup, str, sizeof(char)*(lwd+1));
data/opendnssec-2.1.7/signer/src/parser/confparser.c:632:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        	verbosity = atoi(str);
data/opendnssec-2.1.7/signer/src/parser/confparser.c:649:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            numwt = atoi(str);
data/opendnssec-2.1.7/signer/src/parser/confparser.c:666:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            numwt = atoi(str);
data/opendnssec-2.1.7/signer/src/parser/signconfparser.c:138:53:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    new_key->algorithm == (uint8_t) atoi(algorithm) &&
data/opendnssec-2.1.7/signer/src/parser/signconfparser.c:139:50:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    new_key->flags == (uint32_t) atoi(flags) &&
data/opendnssec-2.1.7/signer/src/parser/signconfparser.c:148:35:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                        (uint8_t) atoi(algorithm), (uint32_t) atoi(flags),
data/opendnssec-2.1.7/signer/src/parser/signconfparser.c:148:63:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                        (uint8_t) atoi(algorithm), (uint32_t) atoi(flags),
data/opendnssec-2.1.7/signer/src/parser/signconfparser.c:465:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            ret = atoi(str);
data/opendnssec-2.1.7/signer/src/parser/signconfparser.c:482:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            ret = atoi(str);
data/opendnssec-2.1.7/signer/src/signer/backup.c:55:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buf[4000];
data/opendnssec-2.1.7/signer/src/signer/backup.c:128:8:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    *v=atol(p);
data/opendnssec-2.1.7/signer/src/signer/backup.c:165:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    *v=(ldns_rr_type) atoi(p);
data/opendnssec-2.1.7/signer/src/signer/backup.c:182:8:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    *v=atoi(p);
data/opendnssec-2.1.7/signer/src/signer/backup.c:199:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    *v= (uint8_t)atoi(p);
data/opendnssec-2.1.7/signer/src/signer/backup.c:216:19:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    *v= (uint32_t)atol(p);
data/opendnssec-2.1.7/signer/src/signer/backup.c: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 line[SE_ADFILE_MAXLINE];
data/opendnssec-2.1.7/signer/src/signer/backup.c:437:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            flags = (uint32_t) atoi(str+6);
data/opendnssec-2.1.7/signer/src/signer/backup.c:508: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[SE_ADFILE_MAXLINE];
data/opendnssec-2.1.7/signer/src/signer/keys.c:109: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(kl->keys, keys_old, (kl->count) * sizeof(key_type));
data/opendnssec-2.1.7/signer/src/signer/rrset.c:314: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(rrset->rrs, rrs_old, (rrset->rr_count) * sizeof(rr_type));
data/opendnssec-2.1.7/signer/src/signer/rrset.c:355: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(rrset->rrs, rrs_orig, (rrset->rr_count -1) * sizeof(rr_type));
data/opendnssec-2.1.7/signer/src/signer/zone.c:1057:10:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if (!tmpfile || !filename) {
data/opendnssec-2.1.7/signer/src/signer/zone.c:1058:14:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        free(tmpfile);
data/opendnssec-2.1.7/signer/src/signer/zone.c:1062:20:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    fd = ods_fopen(tmpfile, NULL, "w");
data/opendnssec-2.1.7/signer/src/signer/zone.c:1092:22:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        ret = rename(tmpfile, filename);
data/opendnssec-2.1.7/signer/src/signer/zone.c:1095:39:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
                zone_str, zone->name, tmpfile, filename, strerror(errno));
data/opendnssec-2.1.7/signer/src/signer/zone.c:1102:18:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    free((void*) tmpfile);
data/opendnssec-2.1.7/signer/src/wire/acl.c:77:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int subnet_bits = atoi(p);
data/opendnssec-2.1.7/signer/src/wire/acl.c:147:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        acl->port = atoi((const char*) port);
data/opendnssec-2.1.7/signer/src/wire/axfr.c:62: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[SE_ADFILE_MAXLINE];
data/opendnssec-2.1.7/signer/src/wire/axfr.c:162: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[SE_ADFILE_MAXLINE];
data/opendnssec-2.1.7/signer/src/wire/axfr.c:399: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[SE_ADFILE_MAXLINE];
data/opendnssec-2.1.7/signer/src/wire/buffer.c:542: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->data + buffer->position, data, count);
data/opendnssec-2.1.7/signer/src/wire/buffer.c:696: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(data, buffer->data + buffer->position, count);
data/opendnssec-2.1.7/signer/src/wire/edns.h:55: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.
    unsigned char ok[OPT_LEN];
data/opendnssec-2.1.7/signer/src/wire/edns.h:56: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.
    unsigned char error[OPT_LEN];
data/opendnssec-2.1.7/signer/src/wire/edns.h:57: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.
    unsigned char rdata_none[OPT_RDATA];
data/opendnssec-2.1.7/signer/src/wire/listener.c:68: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(listener->interfaces, ifs_old,
data/opendnssec-2.1.7/signer/src/wire/netio.c:207: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(&minimum_timeout, timeout, sizeof(struct timespec));
data/opendnssec-2.1.7/signer/src/wire/query.c:272: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 address[128];
data/opendnssec-2.1.7/signer/src/wire/sock.c:490: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(&tcp_data->query->addr, &addr, addrlen);
data/opendnssec-2.1.7/signer/src/wire/tsig.c:406: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(trr->mac_data, (const void*) buffer_current(buffer), trr->mac_size);
data/opendnssec-2.1.7/signer/src/wire/tsig.c:423: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(trr->other_data, (const void*) buffer_current(buffer), trr->other_size);
data/opendnssec-2.1.7/signer/src/wire/tsig.c:780:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char message[1000];
data/opendnssec-2.1.7/signer/src/wire/xfrd.c:543: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).
    port = acl->port ? acl->port : (unsigned) atoi(DNS_PORT_STRING);
data/opendnssec-2.1.7/common/clientpipe.c:195:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int n = read(fileno(stdin), data, ODS_SE_MAXLINE);
data/opendnssec-2.1.7/common/cmdhandler.c:72: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).
    int len = strlen(cmdname);
data/opendnssec-2.1.7/common/cmdhandler.c:124:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(cmd) == 0) return 0;
data/opendnssec-2.1.7/common/cmdhandler.c:233:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        numread = read(context->sockfd, &buf[bufpos], ODS_SE_MAXLINE - bufpos + 3);
data/opendnssec-2.1.7/common/cmdhandler.c:337:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(servaddr.sun_path, filename, sizeof(servaddr.sun_path) - 1);
data/opendnssec-2.1.7/common/cmdhandler.c:339: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).
    servaddr.sun_len = strlen(servaddr.sun_path);
data/opendnssec-2.1.7/common/cmdhandler.c:510: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 ncmd = strlen(scmd);
data/opendnssec-2.1.7/common/duration.c:269:15:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
        str = strncat(str, num, count+2);
data/opendnssec-2.1.7/common/duration.c:280:15:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
        str = strncat(str, num, count+2);
data/opendnssec-2.1.7/common/duration.c:291:19:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
            str = strncat(str, num, count+2);
data/opendnssec-2.1.7/common/duration.c:302:15:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
        str = strncat(str, num, count+2);
data/opendnssec-2.1.7/common/duration.c:309:15:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
        str = strncat(str, "T", 1);
data/opendnssec-2.1.7/common/duration.c:316:15:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
        str = strncat(str, num, count+2);
data/opendnssec-2.1.7/common/duration.c:327:15:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
        str = strncat(str, num, count+2);
data/opendnssec-2.1.7/common/duration.c:339:15:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
        str = strncat(str, num, count+2);
data/opendnssec-2.1.7/common/file.c:87:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    c = fgetc(fd);
data/opendnssec-2.1.7/common/file.c:112:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len_file = strlen(file);
data/opendnssec-2.1.7/common/file.c:114: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).
            len_suffix = strlen(suffix);
data/opendnssec-2.1.7/common/file.c:128:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(openf, file, len_file);
data/opendnssec-2.1.7/common/file.c:146:17:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
                strncat(openf, suffix, len_suffix);
data/opendnssec-2.1.7/common/file.c:149:17:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
                strncat(openf, "/", 1);
data/opendnssec-2.1.7/common/file.c:178: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).
        len_dir= strlen(dir);
data/opendnssec-2.1.7/common/file.c:181: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).
        len_file= strlen(file);
data/opendnssec-2.1.7/common/file.c:193:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
           strncpy(openf, dir, len_dir);
data/opendnssec-2.1.7/common/file.c:196:16:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
               strncat(openf, file, len_file);
data/opendnssec-2.1.7/common/file.c:199:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
           strncpy(openf, file, len_file);
data/opendnssec-2.1.7/common/file.c:263: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(str);
data/opendnssec-2.1.7/common/file.c:311:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    } else if (strlen(s1) != strlen(s2)) {
data/opendnssec-2.1.7/common/file.c:311: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).
    } else if (strlen(s1) != strlen(s2)) {
data/opendnssec-2.1.7/common/file.c:312:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strncmp(s1, s2, strlen(s1)) == 0) {
data/opendnssec-2.1.7/common/file.c:313: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).
            return strlen(s1) - strlen(s2);
data/opendnssec-2.1.7/common/file.c:313:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            return strlen(s1) - strlen(s2);
data/opendnssec-2.1.7/common/file.c:316:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return strncmp(s1, s2, strlen(s1));
data/opendnssec-2.1.7/common/file.c:378:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    part2_len = strlen(newstr);
data/opendnssec-2.1.7/common/file.c:379:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    part3_len = strlen(ch+strlen(oldstr));
data/opendnssec-2.1.7/common/file.c:379: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).
    part3_len = strlen(ch+strlen(oldstr));
data/opendnssec-2.1.7/common/file.c:386:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(buffer, str, part1_len);
data/opendnssec-2.1.7/common/file.c:390:13:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
            strncat(buffer, str, part2_len);
data/opendnssec-2.1.7/common/file.c:394:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(buffer, newstr, part2_len);
data/opendnssec-2.1.7/common/file.c:399:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
        strncat(buffer, ch+strlen(oldstr), part3_len);
data/opendnssec-2.1.7/common/file.c:399:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        strncat(buffer, ch+strlen(oldstr), part3_len);
data/opendnssec-2.1.7/common/file.c:404: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).
    snprintf(buffer+(ch-str), SYSTEM_MAXLEN, "%s%s", newstr, ch+strlen(oldstr));
data/opendnssec-2.1.7/common/file.c:442:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        read_size = read(fin, buf, sizeof(buf));
data/opendnssec-2.1.7/common/file.c:473: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(file);
data/opendnssec-2.1.7/common/file.c:491:19:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            dir = strncpy(dir, file, l);
data/opendnssec-2.1.7/common/janitor.c:484: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).
    int len = strlen(msg);
data/opendnssec-2.1.7/common/janitor.c:648: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).
            len = strlen(*ptr);
data/opendnssec-2.1.7/common/locks.c:195:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        strcpy(&buffer.buffer[buffer.index - strlen("...\n") -1], "...\n");
data/opendnssec-2.1.7/common/locks.c:197: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).
    (void)write(2, buffer.buffer, strlen(buffer.buffer));
data/opendnssec-2.1.7/common/log.c:184:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen(facility);
data/opendnssec-2.1.7/common/scheduler/schedule.c:578: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).
            strtime[strlen(strtime)-1] = '\0';
data/opendnssec-2.1.7/common/scheduler/task.c:219: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).
            strtime[strlen(strtime)-1] = '\0';
data/opendnssec-2.1.7/common/str.c:83: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).
        len += strlen(argv[i]) + 1;
data/opendnssec-2.1.7/common/str.c:87: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).
        memcpy(cat+pos, argv[i], strlen(argv[i]));
data/opendnssec-2.1.7/common/str.c:88:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        pos += strlen(argv[i]) + 1;
data/opendnssec-2.1.7/common/str.c:104: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).
        end = str + strlen(str); /* points at \0 */
data/opendnssec-2.1.7/common/str.c:144: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).
        char *pend = pbeg ? (pbeg+strlen(pbeg)) : pbeg;
data/opendnssec-2.1.7/common/strlcat.c:50: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).
        return(dlen + strlen(s));
data/opendnssec-2.1.7/common/util.c:137:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (((l = read(fd, pidbuf, sizeof(pidbuf)))) == -1) {
data/opendnssec-2.1.7/common/util.c:227: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).
    size = strlen(pidbuf);
data/opendnssec-2.1.7/common/util.c:314:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = read(fd, pidbuf, 32);
data/opendnssec-2.1.7/enforcer/src/daemon/engine.c:510:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    while (read(pipefd[0], &buff, 1) != -1) {
data/opendnssec-2.1.7/enforcer/src/daemon/engine.c:526:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                ods_writen(pipefd[1], err, strlen(err));
data/opendnssec-2.1.7/enforcer/src/daemon/help_cmd.c:74:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(cmd) < 6) {
data/opendnssec-2.1.7/enforcer/src/daemon/time_leap_cmd.c:102:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, cmd, sizeof(buf));
data/opendnssec-2.1.7/enforcer/src/daemon/verbosity_cmd.c:71:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, cmd, sizeof(buf));
data/opendnssec-2.1.7/enforcer/src/db/db_backend_mysql.c:1019:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                (*bind)->bind->buffer_length = strlen(text);
data/opendnssec-2.1.7/enforcer/src/db/db_backend_mysql.c:1132:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        bind->bind->buffer_length = strlen(text);
data/opendnssec-2.1.7/enforcer/src/db/db_backend_mysql.c:1493:68:  [1] (buffer) strlen:
  Does not handle 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 (__db_backend_mysql_prepare(backend_mysql, &statement, sql, strlen(sql), db_object_object_field_list(object))
data/opendnssec-2.1.7/enforcer/src/db/db_backend_mysql.c:1625:68:  [1] (buffer) strlen:
  Does not handle 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 (__db_backend_mysql_prepare(backend_mysql, &statement, sql, strlen(sql), db_object_object_field_list(object))
data/opendnssec-2.1.7/enforcer/src/db/db_backend_mysql.c:1831:68:  [1] (buffer) strlen:
  Does not handle 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 (__db_backend_mysql_prepare(backend_mysql, &statement, sql, strlen(sql), db_object_object_field_list(object))
data/opendnssec-2.1.7/enforcer/src/db/db_backend_mysql.c:1978:68:  [1] (buffer) strlen:
  Does not handle 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 (__db_backend_mysql_prepare(backend_mysql, &statement, sql, strlen(sql), db_object_object_field_list(object))
data/opendnssec-2.1.7/enforcer/src/db/db_backend_mysql.c:2096:68:  [1] (buffer) strlen:
  Does not handle 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 (__db_backend_mysql_prepare(backend_mysql, &statement, sql, strlen(sql), object_field_list)
data/opendnssec-2.1.7/enforcer/src/db/db_backend_mysql.c:2166:68:  [1] (buffer) strlen:
  Does not handle 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 (__db_backend_mysql_prepare(backend_mysql, &statement, sql, strlen(sql), NULL)) {
data/opendnssec-2.1.7/enforcer/src/db/db_backend_mysql.c:2195:68:  [1] (buffer) strlen:
  Does not handle 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 (__db_backend_mysql_prepare(backend_mysql, &statement, sql, strlen(sql), NULL)) {
data/opendnssec-2.1.7/enforcer/src/db/db_backend_mysql.c:2224:68:  [1] (buffer) strlen:
  Does not handle 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 (__db_backend_mysql_prepare(backend_mysql, &statement, sql, strlen(sql), NULL)) {
data/opendnssec-2.1.7/enforcer/src/db/db_backend_sqlite.c:71:10:  [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.
    long usleep;
data/opendnssec-2.1.7/enforcer/src/db/db_backend_sqlite.c:112:40:  [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.
    busy_ts.tv_nsec += backend_sqlite->usleep * 1000;
data/opendnssec-2.1.7/enforcer/src/db/db_backend_sqlite.c:291:31:  [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.
    const db_configuration_t* usleep;
data/opendnssec-2.1.7/enforcer/src/db/db_backend_sqlite.c:321:62:  [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.
        backend_sqlite->usleep = atoi(db_configuration_value(usleep));
data/opendnssec-2.1.7/enforcer/src/db/db_backend_sqlite.c:322:29:  [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.
        if (backend_sqlite->usleep < 1) {
data/opendnssec-2.1.7/enforcer/src/db/db_backend_sqlite.c:1778:70:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (__db_backend_sqlite_prepare(backend_sqlite, &statement, sql, strlen(sql))) {
data/opendnssec-2.1.7/enforcer/src/db/db_backend_sqlite.c:1807:70:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (__db_backend_sqlite_prepare(backend_sqlite, &statement, sql, strlen(sql))) {
data/opendnssec-2.1.7/enforcer/src/db/db_backend_sqlite.c:1836:70:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (__db_backend_sqlite_prepare(backend_sqlite, &statement, sql, strlen(sql))) {
data/opendnssec-2.1.7/enforcer/src/hsmkey/backup_hsmkeys_cmd.c:207:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(buf, cmd, ODS_SE_MAXLINE);
data/opendnssec-2.1.7/enforcer/src/keystate/keystate_ds.c:160: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).
                        rrstr[strlen(rrstr)-1] = '\0';
data/opendnssec-2.1.7/enforcer/src/keystate/keystate_ds.c:456:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, cmd, ODS_SE_MAXLINE);
data/opendnssec-2.1.7/enforcer/src/keystate/keystate_export_cmd.c:312:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(buf, cmd, sizeof(buf));
data/opendnssec-2.1.7/enforcer/src/keystate/keystate_import_cmd.c:418:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(buf, cmd, sizeof(buf));
data/opendnssec-2.1.7/enforcer/src/keystate/keystate_list_cmd.c:387:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(buf, cmd, sizeof (buf));
data/opendnssec-2.1.7/enforcer/src/keystate/keystate_rollover_cmd.c:186:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, cmd, sizeof(buf));
data/opendnssec-2.1.7/enforcer/src/keystate/rollover_list_cmd.c:187:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, cmd,sizeof(buf));
data/opendnssec-2.1.7/enforcer/src/keystate/zone_del_cmd.c:201: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).
        signconf_del = (char*) calloc(strlen(zone_db_signconf_path(zone)) +
data/opendnssec-2.1.7/enforcer/src/keystate/zone_del_cmd.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).
            strlen(".ZONE_DELETED") + 1, sizeof(char));
data/opendnssec-2.1.7/enforcer/src/keystate/zone_del_cmd.c:209:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(signconf_del, zone_db_signconf_path(zone), strlen(zone_db_signconf_path(zone)));
data/opendnssec-2.1.7/enforcer/src/keystate/zone_del_cmd.c:209:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        strncpy(signconf_del, zone_db_signconf_path(zone), strlen(zone_db_signconf_path(zone)));
data/opendnssec-2.1.7/enforcer/src/keystate/zone_del_cmd.c:210:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
        strncat(signconf_del, ".ZONE_DELETED", strlen(".ZONE_DELETED"));
data/opendnssec-2.1.7/enforcer/src/keystate/zone_del_cmd.c:210:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        strncat(signconf_del, ".ZONE_DELETED", strlen(".ZONE_DELETED"));
data/opendnssec-2.1.7/enforcer/src/keystate/zone_del_cmd.c:235:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            signconf_del = (char*) calloc(strlen(zone_db_signconf_path(zone)) +
data/opendnssec-2.1.7/enforcer/src/keystate/zone_del_cmd.c:236:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                strlen(".ZONE_DELETED") + 1, sizeof(char));
data/opendnssec-2.1.7/enforcer/src/keystate/zone_del_cmd.c:244:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(signconf_del, zone_db_signconf_path(zone), strlen(zone_db_signconf_path(zone)));
data/opendnssec-2.1.7/enforcer/src/keystate/zone_del_cmd.c:244:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            strncpy(signconf_del, zone_db_signconf_path(zone), strlen(zone_db_signconf_path(zone)));
data/opendnssec-2.1.7/enforcer/src/keystate/zone_del_cmd.c:245:13:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
            strncat(signconf_del, ".ZONE_DELETED", strlen(".ZONE_DELETED"));
data/opendnssec-2.1.7/enforcer/src/keystate/zone_del_cmd.c:245:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            strncat(signconf_del, ".ZONE_DELETED", strlen(".ZONE_DELETED"));
data/opendnssec-2.1.7/enforcer/src/keystate/zonelist_import_cmd.c:99:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(buf, cmd, sizeof(buf));
data/opendnssec-2.1.7/enforcer/src/ods-enforcer-db-setup.c:268:24:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        user_certain = getchar();
data/opendnssec-2.1.7/enforcer/src/ods-enforcer.c:209:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(servaddr.sun_path, servsock_filename, sizeof(servaddr.sun_path) - 1);
data/opendnssec-2.1.7/enforcer/src/ods-enforcer.c:250: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 (cmd) client_stdin(sockfd, cmd, strlen(cmd)+1);
data/opendnssec-2.1.7/enforcer/src/ods-enforcer.c:264:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(userbuf) > 0) add_history(userbuf);
data/opendnssec-2.1.7/enforcer/src/ods-enforcer.c:268:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            n = read(fileno(stdin), userbuf, ODS_SE_MAXLINE);
data/opendnssec-2.1.7/enforcer/src/ods-enforcer.c:283:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (!client_stdin(sockfd, userbuf, strlen(userbuf))) {
data/opendnssec-2.1.7/enforcer/src/ods-enforcer.c:312:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                n = read(sockfd, inbuf+inbuf_pos, ODS_SE_MAXLINE-inbuf_pos);
data/opendnssec-2.1.7/enforcer/src/ods-enforcer.c:332: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).
                    else if (strlen(userbuf) != 0)
data/opendnssec-2.1.7/enforcer/src/ods-enforcer.c:340: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(userbuf) != 0 && !strncmp(userbuf, "stop", 4))
data/opendnssec-2.1.7/enforcer/src/ods-enforcer.c:346:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        (strlen(userbuf) != 0 && !strncmp(userbuf, "stop", 4))) {
data/opendnssec-2.1.7/enforcer/src/ods-migrate.c:173:92:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    CHECKSQLITE(dblayer_sqlite3.sqlite3_prepare_v2(dblayer_sqlite3.handle, updateQueryStr, strlen(updateQueryStr)+1, &operation.updateStmt, &queryEnd));
data/opendnssec-2.1.7/enforcer/src/ods-migrate.c:226:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    mysql_stmt_prepare(updateStmt, updateQueryStr, strlen(updateQueryStr) + 1);
data/opendnssec-2.1.7/enforcer/src/parser/confparser.c:449:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(dup) >= sizeof(((struct sockaddr_un*)0)->sun_path)) {
data/opendnssec-2.1.7/enforcer/src/parser/confparser.c:624: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(str) > 0) {
data/opendnssec-2.1.7/enforcer/src/parser/confparser.c:641: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(str) > 0) {
data/opendnssec-2.1.7/enforcer/src/parser/confparser.c:670: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(str) > 0) {
data/opendnssec-2.1.7/enforcer/src/parser/confparser.c:710: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(str) > 0) {
data/opendnssec-2.1.7/enforcer/src/parser/confparser.c:731: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(str) > 0) {
data/opendnssec-2.1.7/enforcer/src/policy/policy_import_cmd.c:101:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(buf, cmd, sizeof(buf));
data/opendnssec-2.1.7/enforcer/src/utils/kc_helper.c:1036:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen(text);
data/opendnssec-2.1.7/enforcer/src/utils/kc_helper.c:1321:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int textlen = strlen(text);
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:358:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(token_name) < HSM_TOKEN_LABEL_LENGTH) {
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:359:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        memcpy(token_name_bytes, token_name, strlen(token_name));
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:610:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                   strlen((char *)pin));
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:1360: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).
    hex_len = strlen(hex);
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:2418: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).
                        memset(module_pin, 0, strlen(module_pin));
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:2671:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        { CKA_LABEL,(CK_UTF8CHAR*) id_str,   strlen(id_str)   },
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:2683:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        { CKA_LABEL,(CK_UTF8CHAR *) id_str, strlen (id_str) },
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:2770:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        { CKA_LABEL,(CK_UTF8CHAR*) id_str,   strlen(id_str)  },
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:2780:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        { CKA_LABEL,(CK_UTF8CHAR*) id_str,   strlen (id_str) },
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:2873:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        { CKA_LABEL,(CK_UTF8CHAR*) id_str,   strlen(id_str)  },
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:2883:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        { CKA_LABEL,(CK_UTF8CHAR*) id_str,   strlen (id_str) },
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:2953:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        { CKA_LABEL,(CK_UTF8CHAR*) id_str,   strlen(id_str)  },
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:2963:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        { CKA_LABEL,(CK_UTF8CHAR*) id_str,   strlen (id_str) },
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:3049:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        { CKA_LABEL,(CK_UTF8CHAR*) id_str,   strlen(id_str)  },
data/opendnssec-2.1.7/libhsm/src/lib/libhsm.c:3059:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        { CKA_LABEL,(CK_UTF8CHAR*) id_str,   strlen (id_str) },
data/opendnssec-2.1.7/libhsm/src/lib/pin.c:89:13:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        c = fgetc(stdin);
data/opendnssec-2.1.7/libhsm/src/lib/pin.c:272: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 = strlen(&pins[index]);
data/opendnssec-2.1.7/libhsm/src/lib/pin.c:298: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 = strlen(prompt_pin);
data/opendnssec-2.1.7/libhsm/src/lib/pin.c:304: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).
            memset(prompt_pin, '\0', strlen(prompt_pin));
data/opendnssec-2.1.7/libhsm/src/lib/pin.c:397: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).
    size = strlen(&pins[index]);
data/opendnssec-2.1.7/signer/src/adapter/adapi.c:327: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).
            str[(strlen(str))-1] = '\0';
data/opendnssec-2.1.7/signer/src/adapter/adapi.c:329: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).
            for (int i = 0; i < strlen(str); i++) {
data/opendnssec-2.1.7/signer/src/adapter/adutil.c:156: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 i = strlen(line), nl = 0;
data/opendnssec-2.1.7/signer/src/daemon/dnshandler.c:262:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    received = read(dnshandler->xfrhandler.fd, &buf, MAX_PACKET_SIZE);
data/opendnssec-2.1.7/signer/src/daemon/engine.c:410:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                while (read(pipefd[0], &buff, 1) != -1) {
data/opendnssec-2.1.7/signer/src/daemon/engine.c:426: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).
            ods_writen(pipefd[1], err, strlen(err));
data/opendnssec-2.1.7/signer/src/daemon/engine.c:687:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            (uint8_t*) ODS_SE_NOTIFY_CMD, strlen(ODS_SE_NOTIFY_CMD));
data/opendnssec-2.1.7/signer/src/daemon/signercommands.c:245:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            (uint8_t*) ODS_SE_NOTIFY_CMD, strlen(ODS_SE_NOTIFY_CMD));
data/opendnssec-2.1.7/signer/src/daemon/xfrhandler.c:183:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    received = read(xfrhandler->dnshandler.fd, &buf, MAX_PACKET_SIZE);
data/opendnssec-2.1.7/signer/src/ods-signer.c:208:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(servaddr.sun_path, servsock_filename, sizeof(servaddr.sun_path) - 1);
data/opendnssec-2.1.7/signer/src/ods-signer.c:248: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 (cmd) client_stdin(sockfd, cmd, strlen(cmd)+1);
data/opendnssec-2.1.7/signer/src/ods-signer.c:264:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(userbuf) > 0) add_history(userbuf);
data/opendnssec-2.1.7/signer/src/ods-signer.c:268:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            n = read(fileno(stdin), userbuf, ODS_SE_MAXLINE);
data/opendnssec-2.1.7/signer/src/ods-signer.c:283:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (!client_stdin(sockfd, userbuf, strlen(userbuf))) {
data/opendnssec-2.1.7/signer/src/ods-signer.c:312:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                n = read(sockfd, inbuf+inbuf_pos, ODS_SE_MAXLINE-inbuf_pos);
data/opendnssec-2.1.7/signer/src/ods-signer.c:332: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).
                    else if (strlen(userbuf) != 0)
data/opendnssec-2.1.7/signer/src/ods-signer.c:340: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(userbuf) != 0 && !strncmp(userbuf, "stop", 4))
data/opendnssec-2.1.7/signer/src/ods-signer.c:346:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        (strlen(userbuf) != 0 && !strncmp(userbuf, "stop", 4))) {
data/opendnssec-2.1.7/signer/src/parser/confparser.c:434:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    lwd = strlen(str);
data/opendnssec-2.1.7/signer/src/parser/confparser.c:435:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    lzl = strlen(OPENDNSSEC_ENFORCER_ZONELIST);
data/opendnssec-2.1.7/signer/src/parser/confparser.c:527:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(dup) >= sizeof(((struct sockaddr_un*)0)->sun_path)) {
data/opendnssec-2.1.7/signer/src/parser/confparser.c:631: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(str) > 0) {
data/opendnssec-2.1.7/signer/src/parser/confparser.c:648: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(str) > 0) {
data/opendnssec-2.1.7/signer/src/parser/confparser.c:665: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(str) > 0) {
data/opendnssec-2.1.7/signer/src/parser/signconfparser.c:464: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(str) > 0) {
data/opendnssec-2.1.7/signer/src/parser/signconfparser.c:481: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(str) > 0) {
data/opendnssec-2.1.7/signer/src/parser/zonelistparser.c:207:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (!zone_name || strlen(zone_name) <= 0) {
data/opendnssec-2.1.7/signer/src/signer/backup.c:59:13:  [1] (buffer) fscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
        if (fscanf(in, "%3990s", buf) != 1) {
data/opendnssec-2.1.7/signer/src/signer/backup.c:288:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    i = strlen(str);
data/opendnssec-2.1.7/signer/src/signer/denial.c:131:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (next_owner_string[strlen(next_owner_string)-1] == '.') {
data/opendnssec-2.1.7/signer/src/signer/denial.c:132: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).
        next_owner_string[strlen(next_owner_string)-1] = '\0';
data/opendnssec-2.1.7/signer/src/signer/nsec3params.c:63: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).
    *salt_len = (uint8_t) strlen(salt_str);
data/opendnssec-2.1.7/signer/src/signer/rrset.c:62:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    str[(strlen(str))-1] = '\0';
data/opendnssec-2.1.7/signer/src/signer/rrset.c:64: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).
    for (i=0; i < strlen(str); i++) {
data/opendnssec-2.1.7/signer/src/signer/rrset.c:111:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    str[(strlen(str))-1] = '\0';
data/opendnssec-2.1.7/signer/src/signer/rrset.c:113: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).
    for (i=0; i < strlen(str); i++) {
data/opendnssec-2.1.7/signer/src/signer/rrset.c:960:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            fprintf(fd, "%.*s; {locator %s flags %u}\n", (int)strlen(str)-1, str,
data/opendnssec-2.1.7/signer/src/signer/signconf.c:254:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(serial) == 4 && strncmp(serial, "keep", 4) == 0) {
data/opendnssec-2.1.7/signer/src/signer/signconf.c:257:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(serial) == 7 && strncmp(serial, "counter", 7) == 0) {
data/opendnssec-2.1.7/signer/src/signer/signconf.c:260:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(serial) == 8 && strncmp(serial, "unixtime", 8) == 0) {
data/opendnssec-2.1.7/signer/src/signer/signconf.c:263:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(serial) == 11 && strncmp(serial, "datecounter", 11) == 0) {
data/opendnssec-2.1.7/signer/src/signer/tools.c:277:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            strlen(ODS_SE_NOTIFY_CMD));
data/opendnssec-2.1.7/signer/src/signer/zone.c:65:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(name) > 1 && name[strlen(name)-1] == '.') {
data/opendnssec-2.1.7/signer/src/signer/zone.c:65:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(name) > 1 && name[strlen(name)-1] == '.') {
data/opendnssec-2.1.7/signer/src/signer/zone.c:66: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).
        name[strlen(name)-1] = '\0';
data/opendnssec-2.1.7/signer/src/signer/zone.c:589: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).
            str[(strlen(str)) - 1] = '\0';
data/opendnssec-2.1.7/signer/src/signer/zone.c:590: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).
            for (int i = 0; i < strlen(str); i++) {
data/opendnssec-2.1.7/signer/src/wire/listener.c:84:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        strlen(listener->interfaces[listener->count -1].address) > 0) {
data/opendnssec-2.1.7/signer/src/wire/listener.c:93:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        strlen(listener->interfaces[listener->count -1].address) > 0) {
data/opendnssec-2.1.7/signer/src/wire/sock.c:315: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(listener->interfaces[i].address) > 0) {
data/opendnssec-2.1.7/signer/src/wire/sock.c:538:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        received = read(handler->fd,
data/opendnssec-2.1.7/signer/src/wire/sock.c:585:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    received = read(handler->fd, buffer_current(data->query->buffer),
data/opendnssec-2.1.7/signer/src/wire/tcpset.c:110:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        received = read(tcp->fd, (char*) &tcp->msglen + tcp->total_bytes,
data/opendnssec-2.1.7/signer/src/wire/tcpset.c:143:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    received = read(tcp->fd, buffer_current(tcp->packet),
data/opendnssec-2.1.7/signer/src/wire/tsig.c:184:77:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    CHECKALLOC(data = malloc(sizeof(uint8_t) * util_b64_pton_calculate_size(strlen(tsig->secret))));
data/opendnssec-2.1.7/signer/src/wire/tsig.c:186: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).
        util_b64_pton_calculate_size(strlen(tsig->secret)));

ANALYSIS SUMMARY:

Hits = 569
Lines analyzed = 107830 in approximately 2.66 seconds (40610 lines/second)
Physical Source Lines of Code (SLOC) = 73814
Hits@level = [0] 660 [1] 202 [2] 260 [3]  51 [4]  54 [5]   2
Hits@level+ = [0+] 1229 [1+] 569 [2+] 367 [3+] 107 [4+]  56 [5+]   2
Hits/KSLOC@level+ = [0+] 16.65 [1+] 7.70856 [2+] 4.97196 [3+] 1.44959 [4+] 0.758664 [5+] 0.0270951
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.