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/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/compare_numbers.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/data_cursor.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/data_cursor_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/data_view.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/data_view_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/disallow_copying.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/encoded_value_storage.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/encoded_value_storage_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/global_initializer.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/global_initializer.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/global_initializer_registerer.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/global_initializer_registerer.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/init.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/init.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/initializer.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/initializer.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/initializer_context.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/initializer_context.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/initializer_dependency_graph.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/initializer_dependency_graph.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/initializer_function.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/initializer_functions.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/make_string_vector.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/make_string_vector.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/owned_pointer_vector.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/parse_number.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/parse_number.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/status-inl.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/status.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/status.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/status_with.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/string_data-inl.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/string_data.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/string_data.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/parse_number_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bson-inl.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bson.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bson_db.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bson_field.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bson_field_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bson_obj_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bson_validate.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bson_validate.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bson_validate_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bsondemo/bsondemo.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bsonelement.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bsonelement.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bsonmisc.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bsonmisc.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bsonobj.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bsonobj.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bsonobjbuilder.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bsonobjbuilder.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bsonobjbuilder_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bsonobjiterator.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bsonobjiterator.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bsontypes.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bsontypes.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/inline_decls.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/oid.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/oid.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/oid_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/ordering.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/timestamp.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/util/bson_extract.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/util/bson_extract.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/util/bson_extract_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/util/builder.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/util/builder_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/autolib.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/bulk_operation_builder.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/bulk_operation_builder.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/bulk_update_builder.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/bulk_update_builder.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/bulk_upsert_builder.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/bulk_upsert_builder.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/command_writer.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/command_writer.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/connection_string_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/constants.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/cyrus_sasl_client_session.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/cyrus_sasl_client_session.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/dbclient.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/dbclient_rs.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/dbclient_rs.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/dbclient_rs_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/dbclient_writer.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/dbclientcursor.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/dbclientcursor.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/dbclientcursorshim.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/dbclientcursorshimarray.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/dbclientcursorshimarray.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/dbclientcursorshimcursorid.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/dbclientcursorshimcursorid.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/dbclientcursorshimtransform.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/dbclientcursorshimtransform.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/dbclientinterface.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/dbclientmockcursor.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/delete_write_operation.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/delete_write_operation.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/examples/aggregation.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/examples/arrayExample.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/examples/authTest.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/examples/clientTest.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/examples/connect.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/examples/first.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/examples/geojson_demo.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/examples/initializeTest.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/examples/insert_demo.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/examples/loggingTest.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/examples/rs.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/examples/second.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/examples/simple_client_demo.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/examples/tail.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/examples/tutorial.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/examples/whereExample.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/exceptions.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/exceptions.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/export_macros.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/gridfs.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/gridfs.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/include_bsonh_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/include_dbclienth_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/index_spec.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/index_spec.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/index_spec_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/init.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/init.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/insert_write_operation.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/insert_write_operation.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/insert_write_operation_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/native_sasl_client_session.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/native_sasl_client_session.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/options.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/options.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/private/options.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/redef_macros.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/replica_set_monitor.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/replica_set_monitor.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/replica_set_monitor_internal.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/replica_set_monitor_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/sasl_client_authenticate.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/sasl_client_authenticate.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/sasl_client_authenticate_impl.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/sasl_client_conversation.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/sasl_client_conversation.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/sasl_client_session.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/sasl_client_session.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/sasl_plain_client_conversation.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/sasl_plain_client_conversation.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/sasl_scramsha1_client_conversation.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/sasl_scramsha1_client_conversation.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/sasl_sspi.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/undef_macros.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/update_write_operation.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/update_write_operation.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/wire_protocol_writer.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/wire_protocol_writer.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/write_concern.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/write_concern.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/write_concern_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/write_operation.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/write_operation_base.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/write_operation_base.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/write_options.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/write_result.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/write_result.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/dbclient.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/crypto/crypto.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/crypto/crypto_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/crypto/mechanism_scram.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/crypto/mechanism_scram.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/crypto/crypto_openssl.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/db/dbmessage.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/db/dbmessage.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/db/dbmessage_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/db/jsobj.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/db/json.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/db/json.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/db/namespace_string-inl.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/db/namespace_string.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/db/namespace_string_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/db/repl/member_state.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/dbtests/jsobjtests.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/dbtests/jsontests.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/dbtests/mock/mock_conn_registry.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/dbtests/mock/mock_conn_registry.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/dbtests/mock/mock_dbclient_connection.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/dbtests/mock/mock_dbclient_connection.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/dbtests/mock/mock_dbclient_cursor.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/dbtests/mock/mock_dbclient_cursor.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/dbtests/mock/mock_remote_db_server.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/dbtests/mock/mock_remote_db_server.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/dbtests/mock/mock_replica_set.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/dbtests/mock/mock_replica_set.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/dbtests/mock_dbclient_conn_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/dbtests/mock_replica_set_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/dbtests/replica_set_monitor_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/geo/boundingbox.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/geo/constants.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/geo/coordinates.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/geo/coordinates2d.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/geo/coordinates2d.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/geo/coordinates2dgeographic.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/geo/coordinates2dgeographic.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/geo/geo_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/geo/geometry.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/geo/geometrycollection.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/geo/geoobj.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/geo/interface.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/geo/linestring.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/geo/multilinestring.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/geo/multipoint.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/geo/multipolygon.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/geo/namespaces.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/geo/parser-impl.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/geo/parser.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/geo/point.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/geo/polygon.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/geo/queryutils.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/integration/integration_test.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/integration/integration_test_main.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/integration/replica_set/basic.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/integration/replica_set/read_preference.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/integration/standalone/bulk_operation_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/integration/standalone/dbclient_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/integration/standalone/dbclient_writer_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/integration/standalone/gridfs_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/integration/standalone/sasl_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/logger/appender.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/logger/component_message_log_domain.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/logger/component_message_log_domain.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/logger/encoder.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/logger/labeled_level.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/logger/log_component.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/logger/log_component.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/logger/log_component_settings.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/logger/log_component_settings.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/logger/log_domain-impl.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/logger/log_domain.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/logger/log_function_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/logger/log_manager.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/logger/log_manager.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/logger/log_severity-inl.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/logger/log_severity.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/logger/log_severity.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/logger/log_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/logger/log_test.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/logger/logger.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/logger/logger.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/logger/logstream_builder.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/logger/logstream_builder.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/logger/message_event.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/logger/message_event_utf8_encoder.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/logger/message_event_utf8_encoder.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/logger/message_log_domain.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/logger/message_log_domain.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/logger/tee.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/orchestration/mongo_resource.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/orchestration/mongo_resource.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/orchestration/replica_set.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/orchestration/replica_set.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/orchestration/resource.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/orchestration/server.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/orchestration/server.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/orchestration/service.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/orchestration/service.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/orchestration/sharded_cluster.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/orchestration/sharded_cluster.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/orchestration/resource.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/platform/atomic_intrinsics.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/platform/atomic_intrinsics_gcc_atomic.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/platform/atomic_intrinsics_gcc_intel.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/platform/atomic_intrinsics_gcc_sync.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/platform/atomic_intrinsics_win32.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/platform/atomic_word.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/platform/atomic_word_cxx11.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/platform/atomic_word_intrinsics.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/platform/atomic_word_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/platform/basic.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/platform/compiler.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/platform/compiler_gcc.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/platform/compiler_msvc.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/platform/cstdint.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/platform/endian.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/platform/endian_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/platform/float_utils.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/platform/hash_namespace.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/platform/random.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/platform/random.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/platform/random_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/platform/strnlen.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/platform/strnlen.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/platform/strtoll.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/platform/unordered_map.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/platform/unordered_set.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/platform/windows_basic.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/stdx/functional.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/unittest/connection_string_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/unittest/query_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/unittest/unit_test_main.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/unittest/unittest.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/unittest/unittest_helpers.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/unittest/unittest_helpers.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/assert_util.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/assert_util.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/background.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/background.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/base64.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/base64.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/concurrency/synchronization.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/concurrency/synchronization.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/concurrency/threadlocal.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/debug_util.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/embedded_builder.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/fail_point.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/fail_point.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/fail_point_registry.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/fail_point_registry.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/fail_point_service.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/fail_point_service.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/hex.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/hex.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/log.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/log.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/map_util.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/md5.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/md5.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/md5.hpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/mongoutils/str.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/mongoutils/str_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/net/hostandport.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/net/hostandport.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/net/hostandport_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/net/message.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/net/message.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/net/message_port.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/net/operation.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/net/sock.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/net/sock.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/net/sock_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/net/socket_poll.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/net/socket_poll.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/net/ssl_manager.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/net/ssl_manager.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/net/message_port.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/password_digest.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/password_digest.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/scopeguard.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/shared_buffer.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/string_map.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/string_map_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/stringutils.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/stringutils.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/stringutils_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/text.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/text.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/time_support.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/time_support.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/time_support_test.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/timer-generic-inl.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/timer-inl.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/timer-posixclock-inl.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/timer-win32-inl.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/timer.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/timer.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/unordered_fast_key_table.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/unordered_fast_key_table_internal.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/codegear/gtest_all.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/codegear/gtest_link.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest-all.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest_main.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/include/gtest/gtest-death-test.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/include/gtest/gtest-message.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/include/gtest/gtest-param-test.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/include/gtest/gtest-printers.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/include/gtest/gtest-spi.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/include/gtest/gtest-test-part.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/include/gtest/gtest-typed-test.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/include/gtest/gtest.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/include/gtest/gtest_pred_impl.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/include/gtest/gtest_prod.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/include/gtest/internal/gtest-death-test-internal.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/include/gtest/internal/gtest-filepath.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/include/gtest/internal/gtest-internal.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/include/gtest/internal/gtest-linked_ptr.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/include/gtest/internal/gtest-param-util-generated.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/include/gtest/internal/gtest-param-util.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/include/gtest/internal/gtest-port.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/include/gtest/internal/gtest-string.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/include/gtest/internal/gtest-tuple.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/include/gtest/internal/gtest-type-util.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/samples/prime_tables.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/samples/sample1.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/samples/sample1.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/samples/sample10_unittest.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/samples/sample1_unittest.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/samples/sample2.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/samples/sample2.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/samples/sample2_unittest.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/samples/sample3-inl.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/samples/sample3_unittest.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/samples/sample4.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/samples/sample4.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/samples/sample4_unittest.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/samples/sample5_unittest.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/samples/sample6_unittest.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/samples/sample7_unittest.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/samples/sample8_unittest.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/samples/sample9_unittest.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest-all.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest-death-test.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest-filepath.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest-internal-inl.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest-port.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest-printers.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest-test-part.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest-typed-test.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest_main.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest-death-test_ex_test.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest-death-test_test.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest-filepath_test.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest-linked_ptr_test.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest-listener_test.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest-message_test.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest-options_test.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest-param-test2_test.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest-param-test_test.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest-param-test_test.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest-port_test.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest-printers_test.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest-test-part_test.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest-tuple_test.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest-typed-test2_test.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest-typed-test_test.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest-typed-test_test.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest-unittest-api_test.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_all_test.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_break_on_failure_unittest_.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_catch_exceptions_test_.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_color_test_.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_env_var_test_.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_environment_test.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_filter_unittest_.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_help_test_.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_list_tests_unittest_.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_main_unittest.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_no_test_unittest.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_output_test_.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_pred_impl_unittest.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_premature_exit_test.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_prod_test.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_repeat_test.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_shuffle_test_.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_sole_header_test.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_stress_test.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_throw_on_failure_ex_test.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_throw_on_failure_test_.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_uninitialized_test_.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_unittest.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_xml_outfile1_test_.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_xml_outfile2_test_.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_xml_output_unittest_.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/production.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/production.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/xcode/Samples/FrameworkSample/widget.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/xcode/Samples/FrameworkSample/widget.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/xcode/Samples/FrameworkSample/widget_test.cc Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/jsoncpp/json.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/jsoncpp/jsoncpp.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/murmurhash3/MurmurHash3.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/murmurhash3/MurmurHash3.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/restclient/restclient.cpp Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/restclient/restclient.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/tz/timegm.c Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/tz/timegm_private.h Examining data/mongo-cxx-driver-legacy-1.1.3/src/third_party/tz/timegm_tzfile.h FINAL RESULTS: data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/util/builder.h:320:9: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf _snprintf data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/util/builder.h:320:18: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf _snprintf data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/util/builder.h:425:17: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. int z = snprintf(_buf.grow(maxSize), maxSize, macro, (val)); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/util/builder.h:437:8: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #undef snprintf data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/net/sock.cpp:186:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(as<sockaddr_un>().sun_path, target.c_str()); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/time_support.cpp:42:9: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf _snprintf data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/time_support.cpp:42:18: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf _snprintf data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:1623:10: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define vsnprintf _vsnprintf data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:4119:5: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vprintf(fmt, args); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:4138:3: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vprintf(fmt, args); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:4145:3: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vprintf(fmt, args); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest.h:2868:20: [4] (buffer) StrNCpy: 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). inline const char* StrNCpy(char* dest, const char* src, size_t n) { data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest.h:2940:26: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define GTEST_SNPRINTF_ _snprintf data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest.h:2942:26: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define GTEST_SNPRINTF_ snprintf data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest.h:8322:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(\ data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/include/gtest/internal/gtest-death-test-internal.h:165:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(\ data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/include/gtest/internal/gtest-port.h:1761:20: [4] (buffer) StrNCpy: 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). inline const char* StrNCpy(char* dest, const char* src, size_t n) { data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/include/gtest/internal/gtest-port.h:1833:26: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define GTEST_SNPRINTF_ _snprintf data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/include/gtest/internal/gtest-port.h:1835:26: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define GTEST_SNPRINTF_ snprintf data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest.cc:139:10: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define vsnprintf _vsnprintf data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest.cc:2635:5: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vprintf(fmt, args); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest.cc:2654:3: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vprintf(fmt, args); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest.cc:2661:3: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vprintf(fmt, args); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest-death-test_test.cc:1295:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, InDeathTestChild() ? "Inside" : "Outside"); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest-death-test_test.cc:1305:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, InDeathTestChild() ? "Inside" : "Outside"); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/jsoncpp/json.h:1955:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(reinterpret_cast<char *>(666), message); \ data/mongo-cxx-driver-legacy-1.1.3/src/third_party/jsoncpp/jsoncpp.cpp:768:13: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. count = sscanf(buffer, format, &value); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/jsoncpp/jsoncpp.cpp:771:13: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. count = sscanf(buffer.c_str(), format, &value); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/dbtests/jsontests.cpp:398:33: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char* _oldTimezonePtr = getenv("TZ"); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/fail_point.cpp:113:14: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. case random: data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/fail_point.h:59:32: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. enum Mode { off, alwaysOn, random, nTimes, numModes }; data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:712:37: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. void ShuffleRange(internal::Random* random, int begin, int end, data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:733:39: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. inline void Shuffle(internal::Random* random, std::vector<E>* v) { data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:734:16: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. ShuffleRange(random, 0, static_cast<int>(v->size()), v); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:1202:21: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. internal::Random* random() { return &random_; } data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:3947:47: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. void TestCase::ShuffleTests(internal::Random* random) { data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:3948:11: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. Shuffle(random, &test_indices_); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:5777:7: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. random()->Reseed(random_seed_); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:6087:16: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. ShuffleRange(random(), 0, last_death_test_case_ + 1, &test_case_indices_); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:6090:16: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. ShuffleRange(random(), last_death_test_case_ + 1, data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:6095:34: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. test_cases_[i]->ShuffleTests(random()); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest.h:2906:27: [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* const env = getenv(name); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest.h:2909:10: [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. return getenv(name); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest.h:18306:39: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. void ShuffleTests(internal::Random* random); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/include/gtest/gtest.h:893:39: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. void ShuffleTests(internal::Random* random); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/include/gtest/internal/gtest-port.h:1799:27: [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* const env = getenv(name); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/include/gtest/internal/gtest-port.h:1802:10: [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. return getenv(name); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest-internal-inl.h:311:37: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. void ShuffleRange(internal::Random* random, int begin, int end, data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest-internal-inl.h:332:39: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. inline void Shuffle(internal::Random* random, std::vector<E>* v) { data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest-internal-inl.h:333:16: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. ShuffleRange(random, 0, static_cast<int>(v->size()), v); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest-internal-inl.h:801:21: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. internal::Random* random() { return &random_; } data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest.cc:2463:47: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. void TestCase::ShuffleTests(internal::Random* random) { data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest.cc:2464:11: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. Shuffle(random, &test_indices_); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest.cc:4293:7: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. random()->Reseed(random_seed_); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest.cc:4603:16: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. ShuffleRange(random(), 0, last_death_test_case_ + 1, &test_case_indices_); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest.cc:4606:16: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. ShuffleRange(random(), last_death_test_case_ + 1, data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest.cc:4611:34: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. test_cases_[i]->ShuffleTests(random()); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_unittest.cc:426:9: [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 (getenv("TZ")) data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_unittest.cc:427:26: [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. saved_tz_ = strdup(getenv("TZ")); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_unittest.cc:430:9: [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 (getenv("TZ")) data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_unittest.cc:431:26: [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. saved_tz_ = strdup(getenv("TZ")); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_unittest.cc:720:29: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. testing::internal::Random random(42); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_unittest.cc:722:7: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. random.Generate(0), data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_unittest.cc:725:7: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. random.Generate(testing::internal::Random::kMaxRange + 1), data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_unittest.cc:732:29: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. testing::internal::Random random(12345); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_unittest.cc:734:15: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. EXPECT_LT(random.Generate(kRange), kRange) << " for iteration " << i; data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_unittest.cc:749:29: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. testing::internal::Random random(kSeed); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_unittest.cc:751:17: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. values[i] = random.Generate(kRange); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_unittest.cc:754:3: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. random.Reseed(kSeed); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_unittest.cc:756:26: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. EXPECT_EQ(values[i], random.Generate(kRange)) << " for iteration " << i; data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_unittest.cc:821:29: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. testing::internal::Random random(1); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_unittest.cc:824:21: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. ShuffleRange(&random, -1, 1, &a), data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_unittest.cc:827:21: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. ShuffleRange(&random, 4, 4, &a), data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_unittest.cc:830:21: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. ShuffleRange(&random, 3, 2, &a), data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_unittest.cc:833:21: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. ShuffleRange(&random, 3, 4, &a), data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/data_cursor_test.cpp:25: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[100]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/data_cursor_test.cpp:79: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[100]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/data_view.h:46:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(t, view(offset), sizeof(*t)); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/data_view.h:89:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(view(offset), &value, sizeof(value)); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/data_view_test.cpp:27: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[sizeof(uint32_t) * 3]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/data_view_test.cpp:32:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(buf, &native, sizeof(uint32_t)); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/data_view_test.cpp:33:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(buf + sizeof(uint32_t), &le, sizeof(uint32_t)); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/data_view_test.cpp:34:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(buf + sizeof(uint32_t) * 2, &be, sizeof(uint32_t)); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/data_view_test.cpp:47: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[sizeof(uint32_t) * 3]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/encoded_value_storage.h:68:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _data[sizeof(Layout)]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/encoded_value_storage_test.cpp:110: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[sizeof(EncodedValueStorageTest::Layout)] = {0}; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/string_data-inl.h:53:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dest, _data, size()); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bson_validate_test.cpp:155:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer.get(), original.objdata(), original.objsize()); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bson_validate_test.cpp:196: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[64]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bson_validate_test.cpp:199:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "foo%d", i); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bson_validate_test.cpp:201:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "bar%d", i); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bson_validate_test.cpp:211: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[64]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bson_validate_test.cpp:213:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "foo%d", i); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bson_validate_test.cpp:215:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "bar%d", i); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bsonobj.cpp:63: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(storage + sizeof(Holder), objdata(), objsize()); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bsonobjbuilder.cpp:200:27: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). append(fieldName, atoi(data.c_str())); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bsonobjbuilder.h:487:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[2 * sizeof(uint32_t)]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/oid.cpp:64:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(u.bytes, &rand, kInstanceUniqueSize); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/oid.cpp:97:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&v, _data + i, sizeof(uint32_t)); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/oid.cpp:115:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&ret, _instanceUnique.bytes, sizeof(uint32_t)); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/oid.cpp:142:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(_view().view(kInstanceUniqueOffset), &rest, kInstanceUniqueSize + kIncrementSize); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/oid.h:82:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(_data, arr, sizeof(arr)); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/oid.h:110:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(o._data, buf, OID::kOIDSize); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/oid.h:189:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _data[kOIDSize]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/util/builder.h:83:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(d, p, SZ); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/util/builder.h:94: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[SZ]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/util/builder.h:208:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(grow((int)len), src, len); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/util/builder.h:395:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(_buf.grow(len), buf, len); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/examples/rs.cpp:70:24: [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). nThreads = atoi(argv[++i]); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/gridfs.cpp:117:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = fopen(fileName.c_str(), "rb"); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/gridfs.cpp:320:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(_pendingData.get() + _pendingDataSize, data, size); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/gridfs.cpp:330:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(_pendingData.get() + _pendingDataSize, data, nsize); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/gridfs.cpp:342:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(_pendingData.get() + _pendingDataSize, data, size); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/sasl_scramsha1_client_conversation.h:70:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char _saltedPassword[scram::hashSize]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/sasl_sspi.cpp:201:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(message.get(), serverin, serverinlen); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/sasl_sspi.cpp:279: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(&plaintextMessage[4], pcctx->userPlusRealm.c_str(), pcctx->userPlusRealm.size()); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/sasl_sspi.cpp:309: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(newoutbuf, wrapBufs[0].pvBuffer, wrapBufs[0].cbBuffer); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/sasl_sspi.cpp:310: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(newoutbuf + wrapBufs[0].cbBuffer, wrapBufs[1].pvBuffer, wrapBufs[1].cbBuffer); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/sasl_sspi.cpp:311:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(newoutbuf + wrapBufs[0].cbBuffer + wrapBufs[1].cbBuffer, data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/sasl_sspi.cpp:393: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(newoutbuf, outBufs[0].pvBuffer, *clientoutlen); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/crypto/crypto_test.cpp:27:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char hash[digestLen]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/crypto/crypto_test.cpp:73:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sha1Result[digestLen]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/crypto/crypto_test.cpp:89:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char key[maxKeySize]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/crypto/crypto_test.cpp:91:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char data[maxDataSize]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/crypto/crypto_test.cpp:93:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char hash[digestLen]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/crypto/crypto_test.cpp:492:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char hmacSha1Result[digestLen]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/crypto/mechanism_scram.cpp:37:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char intermediateDigest[hashSize]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/crypto/mechanism_scram.cpp:38:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char startKey[hashSize]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/crypto/mechanism_scram.cpp:43: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(startKey, salt, saltLen); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/crypto/mechanism_scram.cpp:53: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(intermediateDigest, output, hashSize); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/crypto/mechanism_scram.cpp:57:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 intermediateOutput[hashSize]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/crypto/mechanism_scram.cpp:61:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(intermediateDigest, intermediateOutput, hashSize); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/crypto/mechanism_scram.cpp:73:38: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 saltedPassword[hashSize]) { data/mongo-cxx-driver-legacy-1.1.3/src/mongo/crypto/mechanism_scram.cpp:87:31: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 storedKey[hashSize], data/mongo-cxx-driver-legacy-1.1.3/src/mongo/crypto/mechanism_scram.cpp:88:31: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 serverKey[hashSize]) { data/mongo-cxx-driver-legacy-1.1.3/src/mongo/crypto/mechanism_scram.cpp:89:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char saltedPassword[hashSize]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/crypto/mechanism_scram.cpp:90:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char clientKey[hashSize]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/crypto/mechanism_scram.cpp:130:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char storedKey[hashSize]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/crypto/mechanism_scram.cpp:131:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char serverKey[hashSize]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/crypto/mechanism_scram.cpp:148:48: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. std::string generateClientProof(const unsigned char saltedPassword[hashSize], data/mongo-cxx-driver-legacy-1.1.3/src/mongo/crypto/mechanism_scram.cpp:151:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char clientKey[hashSize]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/crypto/mechanism_scram.cpp:162:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char storedKey[hashSize]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/crypto/mechanism_scram.cpp:166:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char clientSignature[hashSize]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/crypto/mechanism_scram.cpp:176:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char clientProof[hashSize]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/crypto/mechanism_scram.cpp:205:43: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. bool verifyServerSignature(const unsigned char saltedPassword[hashSize], data/mongo-cxx-driver-legacy-1.1.3/src/mongo/crypto/mechanism_scram.cpp:210:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char serverKey[hashSize]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/crypto/mechanism_scram.cpp:220:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char serverSignature[hashSize]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/crypto/mechanism_scram.h:42:38: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 saltedPassword[hashSize]); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/crypto/mechanism_scram.h:52:31: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 storedKey[hashSize], data/mongo-cxx-driver-legacy-1.1.3/src/mongo/crypto/mechanism_scram.h:53:31: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 serverKey[hashSize]); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/crypto/mechanism_scram.h:64:48: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. std::string generateClientProof(const unsigned char saltedPassword[hashSize], data/mongo-cxx-driver-legacy-1.1.3/src/mongo/crypto/mechanism_scram.h:79:43: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. bool verifyServerSignature(const unsigned char saltedPassword[hashSize], data/mongo-cxx-driver-legacy-1.1.3/src/mongo/db/namespace_string_test.cpp: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 buf[MaxDatabaseNameLen]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/dbtests/jsobjtests.cpp:2226:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(crap, x.objdata(), x.objsize()); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/dbtests/jsobjtests.cpp:2234:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(crap, x.objdata(), x.objsize()); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/dbtests/jsontests.cpp:302:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char OIDbytes[OID::kOIDSize]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/dbtests/jsontests.cpp:323:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char OIDbytes[OID::kOIDSize]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/dbtests/jsontests.cpp:338:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char OIDbytes[OID::kOIDSize]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/dbtests/jsontests.cpp:355:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char z[3]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/dbtests/jsontests.cpp:1045:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 u[7]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/dbtests/jsontests.cpp:1067:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 u[8]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/dbtests/jsontests.cpp:1093:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 u[6]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/dbtests/jsontests.cpp:1318:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char OIDbytes[OID::kOIDSize]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/dbtests/jsontests.cpp:1386:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char z[3]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/dbtests/jsontests.cpp:1401:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char z[3]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/dbtests/jsontests.cpp:1417:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char z[3]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/dbtests/jsontests.cpp:1433:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char z[3]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/dbtests/jsontests.cpp:1449:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char z[3]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/dbtests/jsontests.cpp:1465:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char z[3]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/dbtests/jsontests.cpp:1481:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char z[3]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/dbtests/jsontests.cpp:1497:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char z[2]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/dbtests/jsontests.cpp:1512:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char z[1]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/dbtests/jsontests.cpp:2482:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 u[6]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/integration/standalone/gridfs_test.cpp:148:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp_path[MAX_PATH - 14]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/integration/standalone/gridfs_test.cpp: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 tmp_name[MAX_PATH]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/integration/standalone/gridfs_test.cpp:154:18: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). int tmp_fd = mkstemp(tmp_name); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/integration/standalone/gridfs_test.cpp:169: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). written_file.open(tmp_name, ios::binary); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/logger/log_component_settings.h:80: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 _minimumLoggedSeverity[LogComponent::kNumLogComponents]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/platform/endian.h:339:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&temp, &t, sizeof(t)); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/platform/endian.h:347:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&temp, &t, sizeof(t)); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/platform/endian.h:355:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&temp, &t, sizeof(t)); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/platform/endian.h:363:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&temp, &t, sizeof(t)); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/platform/endian.h:378:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&temp, &t, sizeof(t)); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/platform/endian.h:386:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&temp, &t, sizeof(t)); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/platform/endian.h:394:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&temp, &t, sizeof(t)); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/platform/endian.h:402:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&temp, &t, sizeof(t)); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/assert_util.cpp:218: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(buf, msg, l); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/assert_util.cpp:227: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(buf, msg, l); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/assert_util.cpp:229:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(p, "%u", val); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/assert_util.h:79: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/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/base64.cpp:95:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[3]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/hex.cpp:31: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 outbuf[outbufSize]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/md5.cpp:175:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(xbuf, data, 64); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/md5.cpp:345:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pms->buf + offset, p, copy); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/md5.cpp:359:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pms->buf, p, left); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/md5.hpp:28:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef unsigned char md5digest[16]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/net/message.h:189:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char data[4]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/net/message.h:375:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, i->first, i->second); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/net/message.h:445:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(d.data(), msgdata, len); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/net/message_port.cpp:83:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(_cur, m.singleData().view2ptr(), m.header().getLen()); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/net/message_port.cpp:229:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(md.view2ptr(), &header, headerLen); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/net/sock.cpp:232: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(&sa, addrs->ai_addr, addrs->ai_addrlen); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/net/sock.cpp:285:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[buflen]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/net/sock.cpp:375: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/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/net/sock.cpp:886:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char testBuf[testBufLength]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/net/sock.h:72:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sun_path[108]; // length from unix header data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/net/ssl_manager.cpp:736: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[BUFFER_SIZE]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/net/ssl_manager.cpp:936: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 msg[msglen]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/string_map_test.cpp:76:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[64]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/string_map_test.cpp:79:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "foo%d", i); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/string_map_test.cpp:84:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "foo%d", i); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/string_map_test.cpp:106: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[64]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/string_map_test.cpp:125:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "foo%d", i); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/text.cpp:89:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char _leadingOnes[128] = { data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/text.cpp:199:22: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). int bufferSize = MultiByteToWideChar(CP_UTF8, // Code page data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/text.cpp:211:5: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_UTF8, // Code page data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/text.cpp:229:22: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). int bufferSize = MultiByteToWideChar(CP_UTF8, // Code page data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/text.cpp:240:5: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_UTF8, // Code page data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/time_support.cpp:83:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[64]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/time_support.cpp:94: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[64]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/time_support.cpp:114:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[32]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/time_support.cpp:125:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[32]; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/time_support.cpp:133:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char data[dataCapacity]; data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:2328:7: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_ACP, 0, ansi, length, data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:2331:3: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_ACP, 0, ansi, length, data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:2841: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_text[kBufSize] = { '\0' }; data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:2925: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 str[5]; // Big enough for the largest valid code point. data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:6808: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 buffer[256]; data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:7224: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 executable_path[_MAX_PATH + 1]; // NOLINT data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:7503: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 cwd_fd = open(".", O_RDONLY); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:7941: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 cwd[GTEST_PATH_MAX_ + 1] = { '\0' }; data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:7944: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 cwd[GTEST_PATH_MAX_ + 1] = { '\0' }; data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:8321: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). const int fd = open("/proc/self/as", O_RDONLY); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:8651: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(buffer, regex, len); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:8728: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 temp_dir_path[MAX_PATH + 1] = { '\0' }; // NOLINT data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:8729: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 temp_file_path[MAX_PATH + 1] = { '\0' }; // NOLINT data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:8766:29: [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 int captured_fd = mkstemp(name_template); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:9074: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 text[5] = ""; data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest.h:2880:10: [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). return fopen(path, mode); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/include/gtest/internal/gtest-port.h:1773:10: [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). return fopen(path, mode); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/samples/sample2.cc:44:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(clone, a_c_string, len + 1); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest-death-test.cc:314: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 buffer[256]; data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest-death-test.cc:730: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 executable_path[_MAX_PATH + 1]; // NOLINT data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest-death-test.cc:1009: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 cwd_fd = open(".", O_RDONLY); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest-filepath.cc:107: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 cwd[GTEST_PATH_MAX_ + 1] = { '\0' }; data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest-filepath.cc:110: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 cwd[GTEST_PATH_MAX_ + 1] = { '\0' }; data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest-port.cc:111: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). const int fd = open("/proc/self/as", O_RDONLY); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest-port.cc:441: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(buffer, regex, len); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest-port.cc:518: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 temp_dir_path[MAX_PATH + 1] = { '\0' }; // NOLINT data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest-port.cc:519:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp_file_path[MAX_PATH + 1] = { '\0' }; // NOLINT data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest-port.cc:556:29: [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 int captured_fd = mkstemp(name_template); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest-printers.cc:61: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 text[5] = ""; data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest.cc:844:7: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_ACP, 0, ansi, length, data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest.cc:847:3: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_ACP, 0, ansi, length, data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest.cc:1357: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_text[kBufSize] = { '\0' }; data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest.cc:1441: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 str[5]; // Big enough for the largest valid code point. data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest-filepath_test.cc:371: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 current_drive[_MAX_PATH]; // NOLINT data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest-filepath_test.cc:388:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char non_drive[_MAX_PATH]; // NOLINT data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest-printers_test.cc:127:32: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. UnprintableInFoo() : z_(0) { memcpy(xy_, "\xEF\x12\x0\x0\x34\xAB\x0\x0", 8); } data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest-printers_test.cc:129: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 xy_[8]; data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest-printers_test.cc:1062: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 array[257]; data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_unittest.cc:7301:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char a[3] = "hi"; data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest_unittest.cc:7385:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char a[2][3] = { "hi", "lo" }; data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/xcode/Samples/FrameworkSample/widget_test.cc:58: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 buffer[max_size]; data/mongo-cxx-driver-legacy-1.1.3/src/third_party/jsoncpp/json.h:980: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 *keys_[itemPerLink]; data/mongo-cxx-driver-legacy-1.1.3/src/third_party/jsoncpp/jsoncpp.cpp:138:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef char UIntToStringBuffer[uintToStringBufferSize]; data/mongo-cxx-driver-legacy-1.1.3/src/third_party/jsoncpp/jsoncpp.cpp:766:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, token.start_, length); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/jsoncpp/jsoncpp.cpp:966: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 buffer[18 + 16 + 16 + 1]; data/mongo-cxx-driver-legacy-1.1.3/src/third_party/jsoncpp/jsoncpp.cpp:1530:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char ALIGNAS(8) kNull[sizeof(Value)] = {0}; data/mongo-cxx-driver-legacy-1.1.3/src/third_party/jsoncpp/jsoncpp.cpp:1594: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(newString, value, length); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/jsoncpp/jsoncpp.cpp:3123: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 buffer[32]; data/mongo-cxx-driver-legacy-1.1.3/src/third_party/restclient/restclient.cpp:368:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(data, u->data, copy_size); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/tz/timegm.c:97:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char types[TZ_MAX_TIMES]; data/mongo-cxx-driver-legacy-1.1.3/src/third_party/tz/timegm.c:99:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char chars[BIGGEST(BIGGEST(TZ_MAX_CHARS + 1, sizeof gmt), data/mongo-cxx-driver-legacy-1.1.3/src/mongo/base/string_data.h:52:78: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). StringData(const char* str) : _data(str), _size((str == NULL) ? 0 : std::strlen(str)) {} data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bson_obj_test.cpp:162:49: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. invariant(static_cast<double>(minLL) == equal); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bson_obj_test.cpp:163:42: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. invariant(static_cast<long long>(equal) == minLL); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bson_obj_test.cpp:167:49: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. ASSERT_EQ(BSON("" << minLL), BSON("" << equal)); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bsonelement.cpp:488:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len1 = (maxLen == -1) ? strlen(p) : strnlen(p, remain); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bsonelement.cpp:493:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len2 = strlen(p); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bsonelement.cpp:563:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len1 = strlen(p); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bsonelement.cpp:566:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len2 = strlen(p); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bsonelement.h:203:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). fieldNameSize_ = (int)strlen(fieldName()) + 1; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bsonelement.h:365:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return codeWScopeCode() + strlen(codeWScopeCode()) + 1; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bsonelement.h:421:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return p + strlen(p) + 1; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bsonobj.cpp:33:15: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. bool BSONObj::equal(const BSONObj& rhs) const { data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bsonobj.cpp:333:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). name = name + strlen(name); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bsonobj.h:406:10: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. bool equal(const BSONObj& r) const; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bsonobj.h:483:16: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. return equal(other); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/bson/bsonobjbuilder.h:423:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return append(fieldName, str, (int)strlen(str) + 1); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/client/sasl_sspi.cpp:184:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (cparams->serverFQDN == NULL || strlen(cparams->serverFQDN) == 0) { data/mongo-cxx-driver-legacy-1.1.3/src/mongo/crypto/crypto_test.cpp:77:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(sha1Tests[i].msg), data/mongo-cxx-driver-legacy-1.1.3/src/mongo/db/dbmessage.cpp:150:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). T DbMessage::read() const { data/mongo-cxx-driver-legacy-1.1.3/src/mongo/db/dbmessage.cpp:158:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). T t = read<T>(); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/db/dbmessage.h:251:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). T read() const; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/dbtests/jsobjtests.cpp:800:23: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. ASSERT(!a.equal(b)); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/dbtests/jsobjtests.cpp:809:23: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. ASSERT(!a.equal(c)); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/dbtests/jsobjtests.cpp:813:23: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. ASSERT(!a.equal(d)); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/dbtests/jsobjtests.cpp:2078:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). l += strlen(j.next().fieldName()); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/platform/random.cpp:125:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _in->read(reinterpret_cast<char*>(&r), sizeof(r)); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/assert_util.cpp:216:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int l = strlen(msg); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/assert_util.cpp:225:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int l = strlen(msg); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/base64.cpp:34:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). verify(strlen((char*)encode) == 64); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/md5.hpp:38:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). md5(str, strlen(str), digest); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/mongoutils/str.h:88:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(s); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/mongoutils/str.h:92:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t a = strlen(p); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/mongoutils/str.h:93:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t b = strlen(suffix); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/mongoutils/str.h:116:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return (p != 0) ? p + strlen(x) : ""; data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/net/message.h:439:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). setData(operation, msgtxt, strlen(msgtxt) + 1); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/net/ssl_manager.cpp:826:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(certHostName) < 2) { data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/text.cpp:44: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). _big = foo + strlen(_splitter); data/mongo-cxx-driver-legacy-1.1.3/src/mongo/util/text.cpp:51:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). _big += strlen(_big); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:2326: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). const int length = strlen(ansi); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:2986:34: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). num_chars = static_cast<int>(wcslen(str)); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:4740: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). segment = next_segment + strlen("]]>"); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:4905:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). result.reserve(strlen(str) + 1); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:6148: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). const size_t prefix_len = strlen(prefix); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:8385: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). const size_t full_regex_len = strlen(regex) + 10; data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:8639: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). const size_t len = strlen(regex); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:9328: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). PrintCharsAsStringTo(s, strlen(s), os); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest-all.cc:9345:29: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). PrintCharsAsStringTo(s, wcslen(s), os); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest.h:2869:10: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). return strncpy(dest, src, n); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/fused-src/gtest/gtest.h:2891:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return static_cast<int>(read(fd, buf, count)); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/include/gtest/internal/gtest-port.h:1762:10: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). return strncpy(dest, src, n); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/include/gtest/internal/gtest-port.h:1784:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return static_cast<int>(read(fd, buf, count)); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/samples/sample2.cc:42: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). const size_t len = strlen(a_c_string); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/samples/sample2.h:77:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return c_string_ == NULL ? 0 : strlen(c_string_); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest-port.cc:175: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). const size_t full_regex_len = strlen(regex) + 10; data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest-port.cc:429: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). const size_t len = strlen(regex); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest-printers.cc:315: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). PrintCharsAsStringTo(s, strlen(s), os); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest-printers.cc:332:29: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). PrintCharsAsStringTo(s, wcslen(s), os); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest.cc:842: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). const int length = strlen(ansi); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest.cc:1502:34: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). num_chars = static_cast<int>(wcslen(str)); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest.cc:3256: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). segment = next_segment + strlen("]]>"); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest.cc:3421:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). result.reserve(strlen(str) + 1); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/src/gtest.cc:4664: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). const size_t prefix_len = strlen(prefix); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest-filepath_test.cc:524:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if (temp_dir[strlen(temp_dir) - 1] == '\\') data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/test/gtest-printers_test.cc:874:20: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. EXPECT_TRUE(std::equal(a, a + kSize, numbers.begin())); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/gtest-1.7.0/xcode/Samples/FrameworkSample/widget.cc:60:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buffer, name_.c_str(), max_size-1); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/jsoncpp/jsoncpp.cpp:1583:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). length = (unsigned int)strlen(value); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/jsoncpp/jsoncpp.cpp:3161:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). fixNumericLocale(buffer, buffer + strlen(buffer)); data/mongo-cxx-driver-legacy-1.1.3/src/third_party/jsoncpp/jsoncpp.cpp:3178: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(value) * 2 + 3; // allescaped+quotes+NULL ANALYSIS SUMMARY: Hits = 342 Lines analyzed = 162875 in approximately 3.74 seconds (43492 lines/second) Physical Source Lines of Code (SLOC) = 104015 Hits@level = [0] 247 [1] 68 [2] 199 [3] 47 [4] 28 [5] 0 Hits@level+ = [0+] 589 [1+] 342 [2+] 274 [3+] 75 [4+] 28 [5+] 0 Hits/KSLOC@level+ = [0+] 5.66264 [1+] 3.28799 [2+] 2.63424 [3+] 0.72105 [4+] 0.269192 [5+] 0 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.