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/kyua-0.13/bootstrap/atf_helpers.cpp Examining data/kyua-0.13/bootstrap/plain_helpers.cpp Examining data/kyua-0.13/cli/cmd_about.cpp Examining data/kyua-0.13/cli/cmd_about.hpp Examining data/kyua-0.13/cli/cmd_config.cpp Examining data/kyua-0.13/cli/cmd_config.hpp Examining data/kyua-0.13/cli/cmd_db_exec.cpp Examining data/kyua-0.13/cli/cmd_db_exec.hpp Examining data/kyua-0.13/cli/cmd_db_migrate.cpp Examining data/kyua-0.13/cli/cmd_db_migrate.hpp Examining data/kyua-0.13/cli/cmd_debug.cpp Examining data/kyua-0.13/cli/cmd_debug.hpp Examining data/kyua-0.13/cli/cmd_help.cpp Examining data/kyua-0.13/cli/cmd_help.hpp Examining data/kyua-0.13/cli/cmd_list.cpp Examining data/kyua-0.13/cli/cmd_list.hpp Examining data/kyua-0.13/cli/cmd_report.cpp Examining data/kyua-0.13/cli/cmd_report.hpp Examining data/kyua-0.13/cli/cmd_report_html.cpp Examining data/kyua-0.13/cli/cmd_report_html.hpp Examining data/kyua-0.13/cli/cmd_report_junit.cpp Examining data/kyua-0.13/cli/cmd_report_junit.hpp Examining data/kyua-0.13/cli/cmd_test.cpp Examining data/kyua-0.13/cli/cmd_test.hpp Examining data/kyua-0.13/cli/common.cpp Examining data/kyua-0.13/cli/common.hpp Examining data/kyua-0.13/cli/config.cpp Examining data/kyua-0.13/cli/config.hpp Examining data/kyua-0.13/cli/main.cpp Examining data/kyua-0.13/cli/main.hpp Examining data/kyua-0.13/cli/cmd_about_test.cpp Examining data/kyua-0.13/cli/cmd_config_test.cpp Examining data/kyua-0.13/cli/cmd_db_exec_test.cpp Examining data/kyua-0.13/cli/cmd_debug_test.cpp Examining data/kyua-0.13/cli/cmd_help_test.cpp Examining data/kyua-0.13/cli/cmd_list_test.cpp Examining data/kyua-0.13/cli/cmd_test_test.cpp Examining data/kyua-0.13/cli/common_test.cpp Examining data/kyua-0.13/cli/config_test.cpp Examining data/kyua-0.13/cli/main_test.cpp Examining data/kyua-0.13/drivers/debug_test.cpp Examining data/kyua-0.13/drivers/debug_test.hpp Examining data/kyua-0.13/drivers/list_tests.cpp Examining data/kyua-0.13/drivers/list_tests.hpp Examining data/kyua-0.13/drivers/report_junit.cpp Examining data/kyua-0.13/drivers/report_junit.hpp Examining data/kyua-0.13/drivers/run_tests.cpp Examining data/kyua-0.13/drivers/run_tests.hpp Examining data/kyua-0.13/drivers/scan_results.cpp Examining data/kyua-0.13/drivers/scan_results.hpp Examining data/kyua-0.13/drivers/list_tests_helpers.cpp Examining data/kyua-0.13/drivers/list_tests_test.cpp Examining data/kyua-0.13/drivers/report_junit_test.cpp Examining data/kyua-0.13/drivers/scan_results_test.cpp Examining data/kyua-0.13/engine/atf.cpp Examining data/kyua-0.13/engine/atf.hpp Examining data/kyua-0.13/engine/atf_list.cpp Examining data/kyua-0.13/engine/atf_list.hpp Examining data/kyua-0.13/engine/atf_result.cpp Examining data/kyua-0.13/engine/atf_result.hpp Examining data/kyua-0.13/engine/atf_result_fwd.hpp Examining data/kyua-0.13/engine/config.cpp Examining data/kyua-0.13/engine/config.hpp Examining data/kyua-0.13/engine/config_fwd.hpp Examining data/kyua-0.13/engine/exceptions.cpp Examining data/kyua-0.13/engine/exceptions.hpp Examining data/kyua-0.13/engine/filters.cpp Examining data/kyua-0.13/engine/filters.hpp Examining data/kyua-0.13/engine/filters_fwd.hpp Examining data/kyua-0.13/engine/kyuafile.cpp Examining data/kyua-0.13/engine/kyuafile.hpp Examining data/kyua-0.13/engine/kyuafile_fwd.hpp Examining data/kyua-0.13/engine/plain.cpp Examining data/kyua-0.13/engine/plain.hpp Examining data/kyua-0.13/engine/tap.cpp Examining data/kyua-0.13/engine/requirements.cpp Examining data/kyua-0.13/engine/requirements.hpp Examining data/kyua-0.13/engine/scanner.cpp Examining data/kyua-0.13/engine/scanner.hpp Examining data/kyua-0.13/engine/scanner_fwd.hpp Examining data/kyua-0.13/engine/tap.hpp Examining data/kyua-0.13/engine/tap_parser.cpp Examining data/kyua-0.13/engine/tap_parser.hpp Examining data/kyua-0.13/engine/tap_parser_fwd.hpp Examining data/kyua-0.13/engine/scheduler.cpp Examining data/kyua-0.13/engine/scheduler.hpp Examining data/kyua-0.13/engine/scheduler_fwd.hpp Examining data/kyua-0.13/engine/atf_helpers.cpp Examining data/kyua-0.13/engine/atf_list_test.cpp Examining data/kyua-0.13/engine/atf_result_test.cpp Examining data/kyua-0.13/engine/atf_test.cpp Examining data/kyua-0.13/engine/config_test.cpp Examining data/kyua-0.13/engine/exceptions_test.cpp Examining data/kyua-0.13/engine/filters_test.cpp Examining data/kyua-0.13/engine/kyuafile_test.cpp Examining data/kyua-0.13/engine/plain_helpers.cpp Examining data/kyua-0.13/engine/plain_test.cpp Examining data/kyua-0.13/engine/requirements_test.cpp Examining data/kyua-0.13/engine/scanner_test.cpp Examining data/kyua-0.13/engine/scheduler_test.cpp Examining data/kyua-0.13/engine/tap_helpers.cpp Examining data/kyua-0.13/engine/tap_parser_test.cpp Examining data/kyua-0.13/engine/tap_test.cpp Examining data/kyua-0.13/examples/syntax_test.cpp Examining data/kyua-0.13/integration/helpers/bad_test_program.cpp Examining data/kyua-0.13/integration/helpers/bogus_test_cases.cpp Examining data/kyua-0.13/integration/helpers/config.cpp Examining data/kyua-0.13/integration/helpers/dump_env.cpp Examining data/kyua-0.13/integration/helpers/expect_all_pass.cpp Examining data/kyua-0.13/integration/helpers/expect_some_fail.cpp Examining data/kyua-0.13/integration/helpers/interrupts.cpp Examining data/kyua-0.13/integration/helpers/metadata.cpp Examining data/kyua-0.13/integration/helpers/race.cpp Examining data/kyua-0.13/integration/helpers/simple_all_pass.cpp Examining data/kyua-0.13/integration/helpers/simple_some_fail.cpp Examining data/kyua-0.13/model/context.cpp Examining data/kyua-0.13/model/context.hpp Examining data/kyua-0.13/model/context_fwd.hpp Examining data/kyua-0.13/model/exceptions.cpp Examining data/kyua-0.13/model/exceptions.hpp Examining data/kyua-0.13/model/metadata.cpp Examining data/kyua-0.13/model/metadata.hpp Examining data/kyua-0.13/model/metadata_fwd.hpp Examining data/kyua-0.13/model/test_case.cpp Examining data/kyua-0.13/model/test_case.hpp Examining data/kyua-0.13/model/test_case_fwd.hpp Examining data/kyua-0.13/model/test_program.cpp Examining data/kyua-0.13/model/test_program.hpp Examining data/kyua-0.13/model/test_program_fwd.hpp Examining data/kyua-0.13/model/test_result.cpp Examining data/kyua-0.13/model/test_result.hpp Examining data/kyua-0.13/model/test_result_fwd.hpp Examining data/kyua-0.13/model/types.hpp Examining data/kyua-0.13/model/context_test.cpp Examining data/kyua-0.13/model/exceptions_test.cpp Examining data/kyua-0.13/model/metadata_test.cpp Examining data/kyua-0.13/model/test_case_test.cpp Examining data/kyua-0.13/model/test_program_test.cpp Examining data/kyua-0.13/model/test_result_test.cpp Examining data/kyua-0.13/store/dbtypes.cpp Examining data/kyua-0.13/store/dbtypes.hpp Examining data/kyua-0.13/store/exceptions.cpp Examining data/kyua-0.13/store/exceptions.hpp Examining data/kyua-0.13/store/layout.cpp Examining data/kyua-0.13/store/layout.hpp Examining data/kyua-0.13/store/layout_fwd.hpp Examining data/kyua-0.13/store/metadata.cpp Examining data/kyua-0.13/store/metadata.hpp Examining data/kyua-0.13/store/metadata_fwd.hpp Examining data/kyua-0.13/store/migrate.cpp Examining data/kyua-0.13/store/migrate.hpp Examining data/kyua-0.13/store/read_backend.cpp Examining data/kyua-0.13/store/read_backend.hpp Examining data/kyua-0.13/store/read_backend_fwd.hpp Examining data/kyua-0.13/store/write_backend.cpp Examining data/kyua-0.13/store/read_transaction.cpp Examining data/kyua-0.13/store/read_transaction.hpp Examining data/kyua-0.13/store/read_transaction_fwd.hpp Examining data/kyua-0.13/store/write_backend.hpp Examining data/kyua-0.13/store/write_backend_fwd.hpp Examining data/kyua-0.13/store/write_transaction.cpp Examining data/kyua-0.13/store/write_transaction.hpp Examining data/kyua-0.13/store/write_transaction_fwd.hpp Examining data/kyua-0.13/store/dbtypes_test.cpp Examining data/kyua-0.13/store/exceptions_test.cpp Examining data/kyua-0.13/store/layout_test.cpp Examining data/kyua-0.13/store/metadata_test.cpp Examining data/kyua-0.13/store/migrate_test.cpp Examining data/kyua-0.13/store/read_backend_test.cpp Examining data/kyua-0.13/store/read_transaction_test.cpp Examining data/kyua-0.13/store/schema_inttest.cpp Examining data/kyua-0.13/store/transaction_test.cpp Examining data/kyua-0.13/store/write_backend_test.cpp Examining data/kyua-0.13/store/write_transaction_test.cpp Examining data/kyua-0.13/utils/cmdline/base_command.cpp Examining data/kyua-0.13/utils/cmdline/base_command.hpp Examining data/kyua-0.13/utils/cmdline/base_command_fwd.hpp Examining data/kyua-0.13/utils/cmdline/commands_map.hpp Examining data/kyua-0.13/utils/cmdline/commands_map_fwd.hpp Examining data/kyua-0.13/utils/cmdline/exceptions.cpp Examining data/kyua-0.13/utils/cmdline/exceptions.hpp Examining data/kyua-0.13/utils/cmdline/globals.cpp Examining data/kyua-0.13/utils/cmdline/globals.hpp Examining data/kyua-0.13/utils/cmdline/options.cpp Examining data/kyua-0.13/utils/cmdline/options.hpp Examining data/kyua-0.13/utils/cmdline/options_fwd.hpp Examining data/kyua-0.13/utils/cmdline/parser.cpp Examining data/kyua-0.13/utils/cmdline/parser.hpp Examining data/kyua-0.13/utils/cmdline/parser_fwd.hpp Examining data/kyua-0.13/utils/cmdline/ui.cpp Examining data/kyua-0.13/utils/cmdline/ui.hpp Examining data/kyua-0.13/utils/cmdline/ui_fwd.hpp Examining data/kyua-0.13/utils/cmdline/ui_mock.hpp Examining data/kyua-0.13/utils/cmdline/ui_mock.cpp Examining data/kyua-0.13/utils/cmdline/base_command_test.cpp Examining data/kyua-0.13/utils/cmdline/commands_map_test.cpp Examining data/kyua-0.13/utils/cmdline/exceptions_test.cpp Examining data/kyua-0.13/utils/cmdline/globals_test.cpp Examining data/kyua-0.13/utils/cmdline/options_test.cpp Examining data/kyua-0.13/utils/cmdline/parser_test.cpp Examining data/kyua-0.13/utils/cmdline/ui_test.cpp Examining data/kyua-0.13/utils/config/exceptions.cpp Examining data/kyua-0.13/utils/config/exceptions.hpp Examining data/kyua-0.13/utils/config/keys.cpp Examining data/kyua-0.13/utils/config/keys.hpp Examining data/kyua-0.13/utils/config/keys_fwd.hpp Examining data/kyua-0.13/utils/config/lua_module.cpp Examining data/kyua-0.13/utils/config/lua_module.hpp Examining data/kyua-0.13/utils/config/nodes.cpp Examining data/kyua-0.13/utils/config/nodes.hpp Examining data/kyua-0.13/utils/config/nodes_fwd.hpp Examining data/kyua-0.13/utils/config/parser.cpp Examining data/kyua-0.13/utils/config/parser.hpp Examining data/kyua-0.13/utils/config/parser_fwd.hpp Examining data/kyua-0.13/utils/config/tree.cpp Examining data/kyua-0.13/utils/config/tree.hpp Examining data/kyua-0.13/utils/config/tree_fwd.hpp Examining data/kyua-0.13/utils/config/exceptions_test.cpp Examining data/kyua-0.13/utils/config/keys_test.cpp Examining data/kyua-0.13/utils/config/lua_module_test.cpp Examining data/kyua-0.13/utils/config/nodes_test.cpp Examining data/kyua-0.13/utils/config/parser_test.cpp Examining data/kyua-0.13/utils/config/tree_test.cpp Examining data/kyua-0.13/utils/format/containers.hpp Examining data/kyua-0.13/utils/format/exceptions.cpp Examining data/kyua-0.13/utils/format/exceptions.hpp Examining data/kyua-0.13/utils/format/formatter.cpp Examining data/kyua-0.13/utils/format/formatter.hpp Examining data/kyua-0.13/utils/format/formatter_fwd.hpp Examining data/kyua-0.13/utils/format/macros.hpp Examining data/kyua-0.13/utils/format/containers_test.cpp Examining data/kyua-0.13/utils/format/exceptions_test.cpp Examining data/kyua-0.13/utils/format/formatter_test.cpp Examining data/kyua-0.13/utils/fs/auto_cleaners.cpp Examining data/kyua-0.13/utils/fs/auto_cleaners.hpp Examining data/kyua-0.13/utils/fs/auto_cleaners_fwd.hpp Examining data/kyua-0.13/utils/fs/directory.cpp Examining data/kyua-0.13/utils/fs/directory.hpp Examining data/kyua-0.13/utils/fs/directory_fwd.hpp Examining data/kyua-0.13/utils/fs/exceptions.cpp Examining data/kyua-0.13/utils/fs/exceptions.hpp Examining data/kyua-0.13/utils/fs/lua_module.cpp Examining data/kyua-0.13/utils/fs/lua_module.hpp Examining data/kyua-0.13/utils/fs/operations.cpp Examining data/kyua-0.13/utils/fs/operations.hpp Examining data/kyua-0.13/utils/fs/path.cpp Examining data/kyua-0.13/utils/fs/path.hpp Examining data/kyua-0.13/utils/fs/path_fwd.hpp Examining data/kyua-0.13/utils/fs/auto_cleaners_test.cpp Examining data/kyua-0.13/utils/fs/directory_test.cpp Examining data/kyua-0.13/utils/fs/exceptions_test.cpp Examining data/kyua-0.13/utils/fs/lua_module_test.cpp Examining data/kyua-0.13/utils/fs/operations_test.cpp Examining data/kyua-0.13/utils/fs/path_test.cpp Examining data/kyua-0.13/utils/logging/macros.hpp Examining data/kyua-0.13/utils/logging/operations.cpp Examining data/kyua-0.13/utils/logging/operations.hpp Examining data/kyua-0.13/utils/logging/operations_fwd.hpp Examining data/kyua-0.13/utils/logging/macros_test.cpp Examining data/kyua-0.13/utils/logging/operations_test.cpp Examining data/kyua-0.13/utils/process/child.cpp Examining data/kyua-0.13/utils/process/child.hpp Examining data/kyua-0.13/utils/process/child_fwd.hpp Examining data/kyua-0.13/utils/process/deadline_killer.cpp Examining data/kyua-0.13/utils/process/deadline_killer.hpp Examining data/kyua-0.13/utils/process/deadline_killer_fwd.hpp Examining data/kyua-0.13/utils/process/exceptions.cpp Examining data/kyua-0.13/utils/process/exceptions.hpp Examining data/kyua-0.13/utils/process/executor.cpp Examining data/kyua-0.13/utils/process/executor.hpp Examining data/kyua-0.13/utils/process/executor_fwd.hpp Examining data/kyua-0.13/utils/process/fdstream.cpp Examining data/kyua-0.13/utils/process/fdstream.hpp Examining data/kyua-0.13/utils/process/fdstream_fwd.hpp Examining data/kyua-0.13/utils/process/isolation.cpp Examining data/kyua-0.13/utils/process/isolation.hpp Examining data/kyua-0.13/utils/process/status.cpp Examining data/kyua-0.13/utils/process/operations.cpp Examining data/kyua-0.13/utils/process/operations.hpp Examining data/kyua-0.13/utils/process/operations_fwd.hpp Examining data/kyua-0.13/utils/process/status.hpp Examining data/kyua-0.13/utils/process/status_fwd.hpp Examining data/kyua-0.13/utils/process/system.cpp Examining data/kyua-0.13/utils/process/system.hpp Examining data/kyua-0.13/utils/process/systembuf.cpp Examining data/kyua-0.13/utils/process/systembuf.hpp Examining data/kyua-0.13/utils/process/systembuf_fwd.hpp Examining data/kyua-0.13/utils/process/child_test.cpp Examining data/kyua-0.13/utils/process/deadline_killer_test.cpp Examining data/kyua-0.13/utils/process/exceptions_test.cpp Examining data/kyua-0.13/utils/process/executor_test.cpp Examining data/kyua-0.13/utils/process/fdstream_test.cpp Examining data/kyua-0.13/utils/process/helpers.cpp Examining data/kyua-0.13/utils/process/isolation_test.cpp Examining data/kyua-0.13/utils/process/operations_test.cpp Examining data/kyua-0.13/utils/process/status_test.cpp Examining data/kyua-0.13/utils/process/systembuf_test.cpp Examining data/kyua-0.13/utils/signals/exceptions.cpp Examining data/kyua-0.13/utils/signals/exceptions.hpp Examining data/kyua-0.13/utils/signals/interrupts.cpp Examining data/kyua-0.13/utils/signals/interrupts.hpp Examining data/kyua-0.13/utils/signals/interrupts_fwd.hpp Examining data/kyua-0.13/utils/signals/misc.cpp Examining data/kyua-0.13/utils/signals/misc.hpp Examining data/kyua-0.13/utils/signals/programmer.cpp Examining data/kyua-0.13/utils/signals/programmer.hpp Examining data/kyua-0.13/utils/signals/programmer_fwd.hpp Examining data/kyua-0.13/utils/signals/timer.cpp Examining data/kyua-0.13/utils/signals/timer.hpp Examining data/kyua-0.13/utils/signals/timer_fwd.hpp Examining data/kyua-0.13/utils/signals/exceptions_test.cpp Examining data/kyua-0.13/utils/signals/interrupts_test.cpp Examining data/kyua-0.13/utils/signals/misc_test.cpp Examining data/kyua-0.13/utils/signals/programmer_test.cpp Examining data/kyua-0.13/utils/signals/timer_test.cpp Examining data/kyua-0.13/utils/sqlite/c_gate.cpp Examining data/kyua-0.13/utils/sqlite/c_gate.hpp Examining data/kyua-0.13/utils/sqlite/c_gate_fwd.hpp Examining data/kyua-0.13/utils/sqlite/database.cpp Examining data/kyua-0.13/utils/sqlite/database.hpp Examining data/kyua-0.13/utils/sqlite/database_fwd.hpp Examining data/kyua-0.13/utils/sqlite/exceptions.cpp Examining data/kyua-0.13/utils/sqlite/exceptions.hpp Examining data/kyua-0.13/utils/sqlite/statement.cpp Examining data/kyua-0.13/utils/sqlite/statement.hpp Examining data/kyua-0.13/utils/sqlite/statement_fwd.hpp Examining data/kyua-0.13/utils/sqlite/transaction.cpp Examining data/kyua-0.13/utils/sqlite/transaction.hpp Examining data/kyua-0.13/utils/sqlite/transaction_fwd.hpp Examining data/kyua-0.13/utils/sqlite/c_gate_test.cpp Examining data/kyua-0.13/utils/sqlite/test_utils.hpp Examining data/kyua-0.13/utils/sqlite/database_test.cpp Examining data/kyua-0.13/utils/sqlite/exceptions_test.cpp Examining data/kyua-0.13/utils/sqlite/statement_test.cpp Examining data/kyua-0.13/utils/sqlite/transaction_test.cpp Examining data/kyua-0.13/utils/text/exceptions.cpp Examining data/kyua-0.13/utils/text/exceptions.hpp Examining data/kyua-0.13/utils/text/operations.cpp Examining data/kyua-0.13/utils/text/operations.hpp Examining data/kyua-0.13/utils/text/regex.cpp Examining data/kyua-0.13/utils/text/regex.hpp Examining data/kyua-0.13/utils/text/regex_fwd.hpp Examining data/kyua-0.13/utils/text/table.cpp Examining data/kyua-0.13/utils/text/table.hpp Examining data/kyua-0.13/utils/text/table_fwd.hpp Examining data/kyua-0.13/utils/text/templates.cpp Examining data/kyua-0.13/utils/text/templates.hpp Examining data/kyua-0.13/utils/text/templates_fwd.hpp Examining data/kyua-0.13/utils/text/exceptions_test.cpp Examining data/kyua-0.13/utils/text/operations_test.cpp Examining data/kyua-0.13/utils/text/regex_test.cpp Examining data/kyua-0.13/utils/text/table_test.cpp Examining data/kyua-0.13/utils/text/templates_test.cpp Examining data/kyua-0.13/utils/auto_array.hpp Examining data/kyua-0.13/utils/auto_array_fwd.hpp Examining data/kyua-0.13/utils/datetime.cpp Examining data/kyua-0.13/utils/datetime.hpp Examining data/kyua-0.13/utils/datetime_fwd.hpp Examining data/kyua-0.13/utils/env.hpp Examining data/kyua-0.13/utils/env.cpp Examining data/kyua-0.13/utils/memory.hpp Examining data/kyua-0.13/utils/memory.cpp Examining data/kyua-0.13/utils/noncopyable.hpp Examining data/kyua-0.13/utils/optional.hpp Examining data/kyua-0.13/utils/optional_fwd.hpp Examining data/kyua-0.13/utils/passwd.cpp Examining data/kyua-0.13/utils/passwd.hpp Examining data/kyua-0.13/utils/passwd_fwd.hpp Examining data/kyua-0.13/utils/sanity.cpp Examining data/kyua-0.13/utils/sanity.hpp Examining data/kyua-0.13/utils/sanity_fwd.hpp Examining data/kyua-0.13/utils/shared_ptr.hpp Examining data/kyua-0.13/utils/stacktrace.cpp Examining data/kyua-0.13/utils/stacktrace.hpp Examining data/kyua-0.13/utils/stream.cpp Examining data/kyua-0.13/utils/stream.hpp Examining data/kyua-0.13/utils/units.cpp Examining data/kyua-0.13/utils/units.hpp Examining data/kyua-0.13/utils/units_fwd.hpp Examining data/kyua-0.13/utils/auto_array_test.cpp Examining data/kyua-0.13/utils/datetime_test.cpp Examining data/kyua-0.13/utils/env_test.cpp Examining data/kyua-0.13/utils/memory_test.cpp Examining data/kyua-0.13/utils/optional_test.cpp Examining data/kyua-0.13/utils/passwd_test.cpp Examining data/kyua-0.13/utils/sanity_test.cpp Examining data/kyua-0.13/utils/stacktrace_helper.cpp Examining data/kyua-0.13/utils/stacktrace_test.cpp Examining data/kyua-0.13/utils/stream_test.cpp Examining data/kyua-0.13/utils/units_test.cpp Examining data/kyua-0.13/main.cpp FINAL RESULTS: data/kyua-0.13/engine/atf_test.cpp:256:19: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. ATF_REQUIRE(::chmod("not-valid", 0755) != -1); data/kyua-0.13/store/migrate_test.cpp:86:19: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. ATF_REQUIRE(::chmod("dir", 0111) != -1); data/kyua-0.13/store/migrate_test.cpp:93:11: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. if (::chmod("dir", 0755) == -1) { data/kyua-0.13/utils/fs/operations.cpp:567:11: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. if (::chmod(path.c_str(), 0755) == -1) { data/kyua-0.13/utils/fs/operations_test.cpp:140:19: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. ATF_REQUIRE(::chmod(target.c_str(), 0444) != -1); data/kyua-0.13/utils/fs/operations_test.cpp:349:11: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. if (::chmod("dir", 0755) == -1) { data/kyua-0.13/utils/fs/operations_test.cpp:417:19: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. ATF_REQUIRE(::chmod("a/b", 0555) != -1); data/kyua-0.13/utils/fs/operations_test.cpp:515:19: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. ATF_REQUIRE(::chmod(".", 0755) != -1); data/kyua-0.13/utils/process/isolation.cpp:98:11: [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.c_str(), uid, gid) == -1) data/kyua-0.13/utils/stacktrace_test.cpp:231:19: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. ATF_REQUIRE(::chmod(script, 0755) != -1); data/kyua-0.13/utils/stacktrace_test.cpp:299:19: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. ATF_REQUIRE(::chmod("custom-name", 0755) != -1); data/kyua-0.13/engine/scheduler_test.cpp:160:33: [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. const int exit_code = ::system("rm *") == -1 data/kyua-0.13/utils/auto_array_test.cpp:287:15: [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. ATF_TEST_CASE(access); data/kyua-0.13/utils/auto_array_test.cpp:288:20: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. ATF_TEST_CASE_HEAD(access) data/kyua-0.13/utils/auto_array_test.cpp:293:20: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. ATF_TEST_CASE_BODY(access) data/kyua-0.13/utils/auto_array_test.cpp:315: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. ATF_ADD_TEST_CASE(tcs, access); data/kyua-0.13/utils/fs/auto_cleaners_test.cpp:54:23: [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. ATF_REQUIRE(::access("root", X_OK) == 0); data/kyua-0.13/utils/fs/auto_cleaners_test.cpp:60:23: [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. ATF_REQUIRE(::access("root", X_OK) == 0); data/kyua-0.13/utils/fs/auto_cleaners_test.cpp:62:19: [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. ATF_REQUIRE(::access("root", X_OK) == -1); data/kyua-0.13/utils/fs/auto_cleaners_test.cpp:75:19: [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. ATF_REQUIRE(::access("root", X_OK) == 0); data/kyua-0.13/utils/fs/auto_cleaners_test.cpp:78:19: [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. ATF_REQUIRE(::access("root", X_OK) == -1); data/kyua-0.13/utils/fs/auto_cleaners_test.cpp:92:23: [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. ATF_REQUIRE(::access((fs::path("tmp") / path_template).c_str(), data/kyua-0.13/utils/fs/auto_cleaners_test.cpp:96:23: [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. ATF_REQUIRE(::access(auto_directory.directory().c_str(), X_OK) == 0); data/kyua-0.13/utils/fs/auto_cleaners_test.cpp:111:23: [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. ATF_REQUIRE(::access(file.c_str(), R_OK) == 0); data/kyua-0.13/utils/fs/auto_cleaners_test.cpp:117:23: [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. ATF_REQUIRE(::access(file.c_str(), R_OK) == 0); data/kyua-0.13/utils/fs/auto_cleaners_test.cpp:119:19: [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. ATF_REQUIRE(::access(file.c_str(), R_OK) == -1); data/kyua-0.13/utils/fs/auto_cleaners_test.cpp:132:19: [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. ATF_REQUIRE(::access(file.c_str(), R_OK) == 0); data/kyua-0.13/utils/fs/auto_cleaners_test.cpp:135:19: [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. ATF_REQUIRE(::access(file.c_str(), R_OK) == -1); data/kyua-0.13/utils/fs/auto_cleaners_test.cpp:148:23: [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. ATF_REQUIRE(::access((fs::path("tmp") / path_template).c_str(), data/kyua-0.13/utils/fs/auto_cleaners_test.cpp:152:23: [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. ATF_REQUIRE(::access(auto_file.file().c_str(), R_OK) == 0); data/kyua-0.13/utils/fs/operations.cpp:228:23: [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. const int ret = ::execvp(mount_args[0], data/kyua-0.13/utils/fs/operations.cpp:274:27: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. const int ret = ::execlp(UMOUNT, "umount", mount_point.c_str(), NULL); data/kyua-0.13/utils/fs/operations.cpp:395: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. return ::access(path.c_str(), F_OK) == 0; data/kyua-0.13/utils/fs/operations.cpp:558:10: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). std::strcpy(buf.get(), full_template.c_str()); data/kyua-0.13/utils/fs/operations.cpp:610:10: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). std::strcpy(buf.get(), full_template.c_str()); data/kyua-0.13/utils/fs/operations_test.cpp:671:19: [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. ATF_REQUIRE(::access("foo", X_OK) == 0); data/kyua-0.13/utils/fs/operations_test.cpp:673:19: [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. ATF_REQUIRE(::access("foo", X_OK) == -1); data/kyua-0.13/utils/fs/operations_test.cpp:717:19: [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. ATF_REQUIRE(::access("foo", R_OK) == 0); data/kyua-0.13/utils/fs/operations_test.cpp:719:19: [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. ATF_REQUIRE(::access("foo", R_OK) == -1); data/kyua-0.13/utils/process/executor_test.cpp:155:29: [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. const int exit_code = ::system("rm *") == -1 data/kyua-0.13/utils/process/isolation_test.cpp:264:7: [4] (shell) execv: 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. ::execv("/bin/sh", UTILS_UNCONST(char*, args)); data/kyua-0.13/utils/process/operations.cpp:166:27: [4] (shell) execv: 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. const int ret = ::execv(program.c_str(), data/kyua-0.13/bootstrap/atf_helpers.cpp:59:30: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char* tests = std::getenv("TESTS"); data/kyua-0.13/bootstrap/plain_helpers.cpp:132:32: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char* command = std::getenv("HELPER"); data/kyua-0.13/cli/main.cpp:242:47: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const optional< std::string > home(utils::getenv("HOME")); data/kyua-0.13/cli/main.cpp:247:53: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const optional< std::string > tmpdir(utils::getenv("TMPDIR")); data/kyua-0.13/drivers/list_tests_helpers.cpp:84:30: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char* tests = std::getenv("TESTS"); data/kyua-0.13/engine/atf_helpers.cpp:351:24: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. ATF_REQUIRE(utils::getenv("HOME").get() != "fake-value"); data/kyua-0.13/engine/atf_helpers.cpp:352:25: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. ATF_REQUIRE(!utils::getenv("LANG")); data/kyua-0.13/engine/atf_helpers.cpp:381:54: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const optional< std::string > names_raw = utils::getenv("TEST_CASES"); data/kyua-0.13/engine/plain_helpers.cpp:70:58: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const optional< std::string > test_case_env = utils::getenv("TEST_CASE"); data/kyua-0.13/engine/plain_helpers.cpp:148:47: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const fs::path name = fs::path(utils::getenv("CONTROL_DIR").get()) / data/kyua-0.13/engine/plain_helpers.cpp:167:50: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const fs::path control_dir = fs::path(utils::getenv("CONTROL_DIR").get()); data/kyua-0.13/engine/plain_helpers.cpp:182:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (utils::getenv("HOME").get() == "fake-value") data/kyua-0.13/engine/plain_helpers.cpp:184:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (utils::getenv("LANG")) data/kyua-0.13/engine/tap_helpers.cpp:148:50: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const fs::path control_dir = fs::path(utils::getenv("CONTROL_DIR").get()); data/kyua-0.13/integration/helpers/bad_test_program.cpp:40:31: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char* cookie = std::getenv("CREATE_COOKIE"); data/kyua-0.13/integration/helpers/config.cpp:37:28: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char* output = ::getenv("CONFIG_VAR_FILE"); data/kyua-0.13/integration/helpers/race.cpp:63:56: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const optional< std::string > shared_file = utils::getenv( data/kyua-0.13/utils/cmdline/parser.cpp:338:24: [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(mutable_argc, mutable_argv, data/kyua-0.13/utils/cmdline/parser_test.cpp:209:21: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((opt = ::getopt_long(argc, argv, "+:", long_options, NULL)) != -1) { data/kyua-0.13/utils/cmdline/ui.cpp:136:56: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const optional< std::string > columns = utils::getenv("COLUMNS"); data/kyua-0.13/utils/env.cpp:85:8: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. utils::getenv(const std::string& name) data/kyua-0.13/utils/env.cpp:87:30: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char* value = std::getenv(name.c_str()); data/kyua-0.13/utils/env.cpp:108:30: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char* value = std::getenv(name.c_str()); data/kyua-0.13/utils/env.cpp:127:49: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const optional< std::string > home = utils::getenv("HOME"); data/kyua-0.13/utils/env.hpp:49:25: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. optional< std::string > getenv(const std::string&); data/kyua-0.13/utils/env_test.cpp:70:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (utils::getenv("PATH")) { data/kyua-0.13/utils/env_test.cpp:74:31: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. ATF_REQUIRE_EQ(utils::getenv("PATH").get(), (*iter).second); data/kyua-0.13/utils/env_test.cpp:79:28: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. ATF_TEST_CASE_WITHOUT_HEAD(getenv); data/kyua-0.13/utils/env_test.cpp:80:20: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. ATF_TEST_CASE_BODY(getenv) data/kyua-0.13/utils/env_test.cpp:82:49: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const optional< std::string > path = utils::getenv("PATH"); data/kyua-0.13/utils/env_test.cpp:86:25: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. ATF_REQUIRE(!utils::getenv("__UNDEFINED_VARIABLE__")); data/kyua-0.13/utils/env_test.cpp:131:24: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. ATF_REQUIRE(utils::getenv("PATH")); data/kyua-0.13/utils/env_test.cpp:132:39: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const std::string oldval = utils::getenv("PATH").get(); data/kyua-0.13/utils/env_test.cpp:134:24: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. ATF_REQUIRE(utils::getenv("PATH").get() != oldval); data/kyua-0.13/utils/env_test.cpp:135:38: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. ATF_REQUIRE_EQ("foo-bar", utils::getenv("PATH").get()); data/kyua-0.13/utils/env_test.cpp:137:25: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. ATF_REQUIRE(!utils::getenv("__UNDEFINED_VARIABLE__")); data/kyua-0.13/utils/env_test.cpp:139:40: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. ATF_REQUIRE_EQ("foo2-bar2", utils::getenv("__UNDEFINED_VARIABLE__").get()); data/kyua-0.13/utils/env_test.cpp:146:24: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. ATF_REQUIRE(utils::getenv("PATH")); data/kyua-0.13/utils/env_test.cpp:148:25: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. ATF_REQUIRE(!utils::getenv("PATH")); data/kyua-0.13/utils/env_test.cpp:156:28: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. ATF_ADD_TEST_CASE(tcs, getenv); data/kyua-0.13/utils/fs/operations.cpp:408:57: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const optional< std::string > current_path = utils::getenv("PATH"); data/kyua-0.13/utils/process/executor_test.cpp:289:47: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const fs::path name = fs::path(utils::getenv("CONTROL_DIR").get()) / data/kyua-0.13/utils/process/executor_test.cpp:313:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (utils::getenv("HOME").get() == "fake-value") { data/kyua-0.13/utils/process/executor_test.cpp:317:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (utils::getenv("LANG")) { data/kyua-0.13/utils/process/isolation_test.cpp:108:20: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (utils::getenv(*iter)) { data/kyua-0.13/utils/units.cpp:154:19: [3] (random) setstate: 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. input.setstate(std::ios::badbit); data/kyua-0.13/store/read_backend.cpp:60:55: [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). sqlite::database database = sqlite::database::open(file, flags); data/kyua-0.13/store/read_backend_test.cpp:51:49: [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). sqlite::database db = sqlite::database::open( data/kyua-0.13/store/read_backend_test.cpp:87:49: [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). sqlite::database db = sqlite::database::open( data/kyua-0.13/store/read_backend_test.cpp:115:49: [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). sqlite::database db = sqlite::database::open( data/kyua-0.13/store/read_transaction_test.cpp:88:15: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 buffer[10] = "foo bar"; data/kyua-0.13/store/read_transaction_test.cpp:114:15: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 buffer[10] = "foo bar"; data/kyua-0.13/store/read_transaction_test.cpp:135:15: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 buffer[10] = "foo bar"; data/kyua-0.13/store/schema_inttest.cpp:424:49: [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). sqlite::database db = sqlite::database::open( \ data/kyua-0.13/store/schema_inttest.cpp:464:49: [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). sqlite::database db = sqlite::database::open( \ data/kyua-0.13/store/write_backend_test.cpp:133:49: [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). sqlite::database db = sqlite::database::open( data/kyua-0.13/store/write_backend_test.cpp:151:49: [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). sqlite::database db = sqlite::database::open( data/kyua-0.13/utils/cmdline/parser_test.cpp:146:22: [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). const int fd = ::open(file, O_WRONLY | O_CREAT | O_TRUNC, 0644); data/kyua-0.13/utils/cmdline/ui_test.cpp:75:22: [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). const int fd = ::open("/dev/tty", O_WRONLY); data/kyua-0.13/utils/cmdline/ui_test.cpp:165:22: [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). const int fd = ::open("test.txt", O_WRONLY | O_CREAT | O_TRUNC, 0755); data/kyua-0.13/utils/datetime.cpp:395: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[128]; data/kyua-0.13/utils/datetime_test.cpp:320:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/kyua-0.13/utils/fs/auto_cleaners.cpp:229:16: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). fs::auto_file::mkstemp(const std::string& path_template) data/kyua-0.13/utils/fs/auto_cleaners.cpp:232:32: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). const fs::path file_ = fs::mkstemp(path_template); data/kyua-0.13/utils/fs/auto_cleaners.hpp:79:22: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). static auto_file mkstemp(const std::string&); data/kyua-0.13/utils/fs/auto_cleaners_test.cpp:147:50: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). fs::auto_file auto_file = fs::auto_file::mkstemp(path_template); data/kyua-0.13/utils/fs/operations.cpp:343: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/kyua-0.13/utils/fs/operations.cpp:602:5: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). fs::mkstemp(const std::string& path_template) data/kyua-0.13/utils/fs/operations.cpp:611:11: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). if (::mkstemp(buf.get()) == -1) { data/kyua-0.13/utils/fs/operations.hpp:59:10: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). fs::path mkstemp(const std::string&); data/kyua-0.13/utils/fs/operations_test.cpp:554:28: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). ATF_TEST_CASE_WITHOUT_HEAD(mkstemp) data/kyua-0.13/utils/fs/operations_test.cpp:555:20: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). ATF_TEST_CASE_BODY(mkstemp) data/kyua-0.13/utils/fs/operations_test.cpp:562:35: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). const fs::path tempfile = fs::mkstemp(file_template); data/kyua-0.13/utils/fs/operations_test.cpp:806:28: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). ATF_ADD_TEST_CASE(tcs, mkstemp); data/kyua-0.13/utils/process/child_test.cpp:247:18: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return ::open(path, flags, mode); data/kyua-0.13/utils/process/child_test.cpp:289:26: [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). const int fd = ::open(child_file, O_CREAT | O_WRONLY | O_TRUNC, 0644); data/kyua-0.13/utils/process/system.cpp:51:62: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int (*detail::syscall_open)(const char*, const int, ...) = ::open; data/kyua-0.13/utils/process/systembuf_test.cpp:84: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). int fd = ::open("test_read.txt", O_RDONLY); data/kyua-0.13/utils/process/systembuf_test.cpp:97: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). int fd = ::open("test_write.txt", O_WRONLY | O_CREAT | O_TRUNC, data/kyua-0.13/utils/sqlite/database.cpp:193:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). sqlite::database::open(const fs::path& file, int open_flags) data/kyua-0.13/utils/sqlite/database.hpp:93:21: [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). static database open(const fs::path&, int); data/kyua-0.13/utils/sqlite/database_test.cpp:68:49: [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). sqlite::database db = sqlite::database::open(fs::path("test.db"), data/kyua-0.13/utils/sqlite/database_test.cpp:79:27: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). sqlite::database::open(fs::path("missing.db"), sqlite::open_readonly)); data/kyua-0.13/utils/sqlite/database_test.cpp:88:49: [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). sqlite::database db = sqlite::database::open(fs::path("test.db"), data/kyua-0.13/utils/sqlite/database_test.cpp:112:27: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). sqlite::database::open(fs::path("protected/test.db"), data/kyua-0.13/utils/sqlite/database_test.cpp:168:51: [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). const sqlite::database db = sqlite::database::open(fs::path("test.db"), data/kyua-0.13/utils/sqlite/database_test.cpp:186:45: [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). sqlite::database db = sqlite::database::open(fs::path("test.db"), data/kyua-0.13/utils/sqlite/exceptions_test.cpp:65:51: [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). const sqlite::database db = sqlite::database::open( data/kyua-0.13/utils/sqlite/exceptions_test.cpp:88:45: [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). sqlite::database db = sqlite::database::open( data/kyua-0.13/utils/stream.cpp:140:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[1024]; data/kyua-0.13/utils/text/regex.cpp:65: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/kyua-0.13/cli/cmd_db_exec_test.cpp:82: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). "BLOB", sqlite::blob(contents, std::strlen(contents)), data/kyua-0.13/cli/cmd_db_exec_test.cpp:83: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). F("BLOB of %s bytes") % strlen(contents)); data/kyua-0.13/cli/cmd_db_exec_test.cpp:143:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). insert.bind(":v2", sqlite::blob(memory, std::strlen(memory))); data/kyua-0.13/cli/cmd_db_exec_test.cpp:149: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). (F("A string,BLOB of %s bytes") % std::strlen(memory)).str(), data/kyua-0.13/integration/helpers/bad_test_program.cpp:41:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (cookie != NULL && std::strlen(cookie) > 0) { data/kyua-0.13/integration/helpers/race.cpp:88:7: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. ::usleep(10000); data/kyua-0.13/store/write_transaction_test.cpp:285:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ATF_REQUIRE(std::strlen(contents) == static_cast< std::size_t >(blob.size)); data/kyua-0.13/utils/datetime_test.cpp:333:7: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. ::usleep(1); data/kyua-0.13/utils/fs/operations.cpp:345:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). input.read(buffer, sizeof(buffer)); data/kyua-0.13/utils/process/executor_test.cpp:395:15: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. ::usleep(100000); data/kyua-0.13/utils/process/isolation.cpp:149:13: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). (void)::umask(0022); data/kyua-0.13/utils/process/isolation_test.cpp:290:17: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). std::exit(::umask(0) == 0022 ? EXIT_SUCCESS : EXIT_FAILURE); data/kyua-0.13/utils/process/operations_test.cpp:283:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (::read(first_fds[0], &dummy, sizeof(dummy)) <= 0 || data/kyua-0.13/utils/process/operations_test.cpp:284:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ::read(second_fds[0], &dummy, sizeof(dummy)) <= 0) { data/kyua-0.13/utils/process/operations_test.cpp:290:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (::read(first_fds[0], &dummy, sizeof(dummy)) > 0 || data/kyua-0.13/utils/process/operations_test.cpp:291:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ::read(second_fds[0], &dummy, sizeof(dummy)) > 0) { data/kyua-0.13/utils/process/systembuf.cpp:101:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t cnt = ::read(_pimpl->_fd, _pimpl->_read_buf.get(), data/kyua-0.13/utils/signals/interrupts.cpp:101:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (::write(STDERR_FILENO, message, std::strlen(message)) == -1) { data/kyua-0.13/utils/signals/timer_test.cpp:114:11: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. ::usleep(100); data/kyua-0.13/utils/signals/timer_test.cpp:132:11: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. ::usleep(1000); data/kyua-0.13/utils/signals/timer_test.cpp:146:11: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. ::usleep(1000); data/kyua-0.13/utils/signals/timer_test.cpp:353:11: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. ::usleep(1000); data/kyua-0.13/utils/signals/timer_test.cpp:371:5: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(500000); data/kyua-0.13/utils/signals/timer_test.cpp:404:11: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. ::usleep(1000); data/kyua-0.13/utils/sqlite/exceptions_test.cpp:97: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). (void)::sqlite3_prepare_v2(gate.c_database(), query, std::strlen(query), data/kyua-0.13/utils/stacktrace.cpp:181:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (std::strlen(builtin_gdb) == 0) { data/kyua-0.13/utils/stream.cpp:142:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). input.read(tmp, sizeof(tmp)); ANALYSIS SUMMARY: Hits = 160 Lines analyzed = 77087 in approximately 2.45 seconds (31506 lines/second) Physical Source Lines of Code (SLOC) = 42564 Hits@level = [0] 0 [1] 27 [2] 45 [3] 46 [4] 31 [5] 11 Hits@level+ = [0+] 160 [1+] 160 [2+] 133 [3+] 88 [4+] 42 [5+] 11 Hits/KSLOC@level+ = [0+] 3.75905 [1+] 3.75905 [2+] 3.12471 [3+] 2.06747 [4+] 0.986749 [5+] 0.258434 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.