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/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/base/macros.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/base/notification.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/base/notification.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/base/notification_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/base/time_support.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/client/async_log_client.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/client/async_log_client.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/client/client.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/client/client.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/client/ct.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/client/http_log_client.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/client/http_log_client.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/client/ssl_client.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/client/ssl_client.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/fetcher/continuous_fetcher.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/fetcher/continuous_fetcher.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/fetcher/fetcher.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/fetcher/fetcher.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/fetcher/mock_continuous_fetcher.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/fetcher/peer.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/fetcher/peer.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/fetcher/peer_group.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/fetcher/peer_group.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/fetcher/remote_peer.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/fetcher/remote_peer.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/fetcher/remote_peer_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/cert.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/cert.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/cert_checker.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/cert_checker.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/cert_checker_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/cert_submission_handler.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/cert_submission_handler.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/cert_submission_handler_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/cert_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/cluster_state_controller.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/cluster_state_controller.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/cluster_state_controller_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/cms_verifier.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/cms_verifier.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/cms_verifier_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/consistent_store.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/ct_extensions.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/ct_extensions.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/ct_extensions_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/database.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/database.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/database_large_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/database_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/etcd_consistent_store.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/etcd_consistent_store.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/etcd_consistent_store_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/file_db.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/file_db.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/file_storage.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/file_storage.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/file_storage_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/filesystem_ops.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/filesystem_ops.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/frontend.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/frontend.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/frontend_signer.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/frontend_signer.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/frontend_signer_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/frontend_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/leveldb_db.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/leveldb_db.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/log_lookup.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/log_lookup.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/log_lookup_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/log_signer.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/log_signer.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/log_signer_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/log_verifier.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/log_verifier.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/logged_entry.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/logged_entry.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/logged_entry_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/logged_test-inl.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/mock_consistent_store.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/signer.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/signer.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/signer_verifier_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/sqlite_db.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/sqlite_db.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/sqlite_statement.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/strict_consistent_store.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/strict_consistent_store.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/strict_consistent_store_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/test_db.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/test_signer.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/test_signer.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/tree_signer.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/tree_signer.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/tree_signer_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/verifier.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/verifier.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/merkletree/compact_merkle_tree.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/merkletree/compact_merkle_tree.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/merkletree/merkle_tree.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/merkletree/merkle_tree.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/merkletree/merkle_tree_interface.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/merkletree/merkle_tree_large_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/merkletree/merkle_tree_math.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/merkletree/merkle_tree_math.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/merkletree/merkle_tree_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/merkletree/merkle_verifier.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/merkletree/merkle_verifier.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/merkletree/serial_hasher.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/merkletree/serial_hasher.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/merkletree/serial_hasher_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/merkletree/sparse_merkle_tree.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/merkletree/sparse_merkle_tree.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/merkletree/sparse_merkle_tree_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/merkletree/tree_hasher.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/merkletree/tree_hasher.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/merkletree/tree_hasher_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/merkletree/verifiable_map.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/merkletree/verifiable_map.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/merkletree/verifiable_map_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/monitoring/counter.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/monitoring/counter_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/monitoring/event_metric.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/monitoring/gauge.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/monitoring/gauge_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/monitoring/gcm/exporter.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/monitoring/gcm/exporter.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/monitoring/gcm/exporter_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/monitoring/labelled_values.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/monitoring/latency.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/monitoring/metric.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/monitoring/monitoring.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/monitoring/monitoring.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/monitoring/prometheus/exporter.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/monitoring/prometheus/exporter.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/monitoring/registry.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/monitoring/registry.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/monitoring/registry_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/net/connection_pool.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/net/connection_pool.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/net/mock_url_fetcher.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/net/url.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/net/url.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/net/url_fetcher.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/net/url_fetcher.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/net/url_fetcher_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/proto/cert_serializer.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/proto/cert_serializer.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/proto/serializer.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/proto/serializer.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/proto/serializer_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/proto/serializer_v2.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/proto/serializer_v2.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/proto/serializer_v2_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/proto/tls_encoding.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/proto/tls_encoding.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/proto/xjson_serializer.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/proto/xjson_serializer.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/certificate_handler.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/certificate_handler.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/certificate_handler_v2.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/certificate_handler_v2.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/ct-dns-server.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/ct-mirror.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/ct-mirror_v2.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/ct-server.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/ct-server_v2.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/event.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/event.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/handler.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/handler.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/handler_v2.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/handler_v2.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/json_output.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/json_output.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/log_processes.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/log_processes.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/metrics.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/metrics.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/proxy.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/proxy.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/proxy_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/server.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/server.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/server_helper.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/server_helper.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/staleness_tracker.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/staleness_tracker.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/x_json_handler.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/x_json_handler.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/xjson-server.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/third_party/curl/hostcheck.c Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/third_party/curl/hostcheck.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/third_party/isec_partners/openssl_hostname_validation.c Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/third_party/isec_partners/openssl_hostname_validation.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/tools/clustertool.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/tools/clustertool.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/tools/clustertool_main.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/tools/db_tool.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/tools/dump_cert.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/tools/dump_sth.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/tools/etcd_watch.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/bench_etcd.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/bignum.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/bignum.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/bignum_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/cms_scoped_types.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/compare.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/etcd.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/etcd.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/etcd_delete.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/etcd_delete.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/etcd_delete_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/etcd_masterelection.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/etcd_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/executor.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/fake_etcd.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/fake_etcd.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/fake_etcd_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/init.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/init.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/json_wrapper.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/json_wrapper.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/json_wrapper_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/libevent_wrapper.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/libevent_wrapper.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/libevent_wrapper_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/masterelection.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/masterelection.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/masterelection_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/mock_etcd.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/mock_masterelection.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/openssl_scoped_ssl_types.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/openssl_scoped_types.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/openssl_util.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/openssl_util.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/periodic_closure.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/periodic_closure.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/protobuf_util.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/protobuf_util.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/read_key.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/read_key.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/status.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/status.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/status_test_util.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/statusor.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/sync_task.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/sync_task.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/sync_task_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/task.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/task.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/task_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/test_db.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/testing.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/testing.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/thread_pool.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/thread_pool.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/thread_pool_test.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/util.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/util.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/uuid.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/uuid.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/version.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/go/merkletree/merkle_tree_go.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/go/merkletree/merkle_tree_go.h Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/go/merkletree/wrap_merkle_tree.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/go/merkletree/wrap_merkle_tree_math.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/go/merkletree/wrap_serial_hasher.cc Examining data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/go/merkletree/wrap_tree_hasher.cc FINAL RESULTS: data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/file_storage.cc:187:17: [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 (file_op_->access(file_path, F_OK) == 0) data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/filesystem_ops.cc:27: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. int BasicFilesystemOps::access(const std::string& path, int amode) { data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/filesystem_ops.cc:28:12: [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(), amode); data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/filesystem_ops.cc:65:27: [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. int FailingFilesystemOps::access(const std::string& path, int amode) { data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/filesystem_ops.cc:70:30: [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 BasicFilesystemOps::access(path, amode); data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/filesystem_ops.h:22: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. virtual int access(const std::string& path, int amode) = 0; data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/filesystem_ops.h:40:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. int access(const std::string& path, int amode) override; data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/filesystem_ops.h:57:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. int access(const std::string& path, int amode) override; data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/net/url_fetcher_test.cc:96:5: [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(argv[0], const_cast<char**>(argv)); data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/ct-mirror.cc:140:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(path.c_str(), R_OK) != 0) { data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/ct-mirror_v2.cc:133:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(path.c_str(), R_OK) != 0) { data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/ct-server.cc:81:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(path.c_str(), R_OK) != 0) { data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/ct-server_v2.cc:83:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(path.c_str(), R_OK) != 0) { data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/server_helper.cc:40:21: [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 (path != "" && access(path.c_str(), W_OK) != 0) { data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/xjson-server.cc:80:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(path.c_str(), R_OK) != 0) { data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/test_db.h:30:15: [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. CHECK_ERR(system(command.c_str())) data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/logged_test-inl.h:103: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(time(NULL)); data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/test_signer.cc:184: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(counter_); data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/merkletree/merkle_tree_test.cc:143:5: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand(time(NULL)); data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/client/ct.cc:180:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[buf_len]; data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/client/ct.cc:378:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int cert_fd = open(cert_file.c_str(), O_CREAT | O_TRUNC | O_WRONLY, 0666); data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/client/ct.cc:425:25: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char bits[1] = {3}; data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/client/ct.cc:526:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE* out = fopen(FLAGS_tls_extension_data_out.c_str(), "w"); data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/client/ssl_client.cc:38:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pem_name[100]; data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/client/ssl_client.cc:39: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 ext_buf[4 + 65536]; data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/client/ssl_client.cc:46:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ext_buf + 4, in, inlen); data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/cert.cc:123: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 md_buffer[EVP_MAX_MD_SIZE]; data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/cert.cc:552: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 digest[EVP_MAX_MD_SIZE]; data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/cert.cc:614: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 digest[EVP_MAX_MD_SIZE]; data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/log_lookup.cc:111:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[kCtimeBufSize]; data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/merkletree/serial_hasher.cc:30: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 hash[SHA256_DIGEST_LENGTH]; data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/monitoring/gcm/exporter.cc:68:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/net/connection_pool.cc:166:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/net/url_fetcher_test.cc:80:13: [2] (race) vfork: On some old systems, vfork() permits race conditions, and it's very difficult to use correctly (CWE-362). Use fork() instead. pid_t pid(vfork()); data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/proto/serializer_v2.cc:82:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char output_buffer[kTextOIDMaxSize]; data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/ct-dns-server.cc:169: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). int index = atoi(index_str.c_str()); data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/ct-dns-server.cc:206:28: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (lookup_.AuditProof(atoi(index.c_str()), atoi(size.c_str()), &proof) != data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/ct-dns-server.cc:206:49: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (lookup_.AuditProof(atoi(index.c_str()), atoi(size.c_str()), &proof) != data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/ct-dns-server.cc:210:13: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int l = atoi(level.c_str()); data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/event.cc:193:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/event.cc:216:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[2048]; data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/event.cc:256: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(&server.sin_addr.s_addr, ip, 4); data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/libevent_wrapper.cc:150:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char addr_str[INET6_ADDRSTRLEN]; data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/openssl_util.cc:18:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char error_string[256]; data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/read_key.cc:24:40: [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). unique_ptr<FILE, void (*)(FILE*)> fp(fopen(file.c_str(), "r"), FileCloser); data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/read_key.cc:42:40: [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). unique_ptr<FILE, void (*)(FILE*)> fp(fopen(file.c_str(), "r"), FileCloser); data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/util.cc:126:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(template_buf, file_template.data(), file_template.size()); data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/util.cc:128:12: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). int fd = mkstemp(template_buf); data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/util.cc:149:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(template_buf, dir_template.data(), dir_template.size()); data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/go/merkletree/merkle_tree_go.cc:59:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(slice->data, hash.data(), nodesize); data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/go/merkletree/merkle_tree_go.cc:91:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(slice->data, hash.data(), nodesize); data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/go/merkletree/merkle_tree_go.cc:105:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(slice->data, hash.data(), nodesize); data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/go/merkletree/merkle_tree_go.cc:124:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(e, path[i].data(), nodesize); data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/client/ct.cc:500:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). proof_in.read(buf, proof_length); data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/frontend_signer_test.cc:162:3: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(2000); data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/frontend_signer_test.cc:188:3: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(2000); data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/frontend_signer_test.cc:225:3: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(2000); data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/frontend_signer_test.cc:231:3: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(2000); data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/leveldb_db.cc:75: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). key.remove_prefix(strlen(kEntryPrefix)); data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/log/leveldb_db.cc:385: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). key_slice.remove_prefix(strlen(kTreeHeadPrefix)); data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/event.cc:195:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t n = read(fd(), buf, sizeof buf); data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/server/metrics.cc:20: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). std::strlen(kPrometheusProtoContentType); data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/third_party/isec_partners/openssl_hostname_validation.c:87:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(common_name_str)) { data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/third_party/isec_partners/openssl_hostname_validation.c:135: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). strlen(dns_name)) { data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/util.cc:88:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). in.read(buf, file_length); data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/util.cc:125: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). char* template_buf = new char[strlen]; data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/util.cc:148: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). char* template_buf = new char[strlen]; data/golang-github-google-certificate-transparency-0.0~git20160709.0.0f6e3d1~ds1/cpp/util/util.cc:179: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 length = strlen(b64); ANALYSIS SUMMARY: Hits = 68 Lines analyzed = 49216 in approximately 1.16 seconds (42443 lines/second) Physical Source Lines of Code (SLOC) = 35503 Hits@level = [0] 2 [1] 15 [2] 34 [3] 3 [4] 16 [5] 0 Hits@level+ = [0+] 70 [1+] 68 [2+] 53 [3+] 19 [4+] 16 [5+] 0 Hits/KSLOC@level+ = [0+] 1.97166 [1+] 1.91533 [2+] 1.49283 [3+] 0.535166 [4+] 0.450666 [5+] 0 Dot directories skipped = 2 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.