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-c-driver-1.17.2/src/common/common-b64-private.h
Examining data/mongo-c-driver-1.17.2/src/common/common-b64.c
Examining data/mongo-c-driver-1.17.2/src/common/common-md5-private.h
Examining data/mongo-c-driver-1.17.2/src/common/common-md5.c
Examining data/mongo-c-driver-1.17.2/src/common/common-prelude.h
Examining data/mongo-c-driver-1.17.2/src/common/common-thread-private.h
Examining data/mongo-c-driver-1.17.2/src/common/common-thread.c
Examining data/mongo-c-driver-1.17.2/src/kms-message/src/hexlify.c
Examining data/mongo-c-driver-1.17.2/src/kms-message/src/hexlify.h
Examining data/mongo-c-driver-1.17.2/src/kms-message/src/kms_b64.c
Examining data/mongo-c-driver-1.17.2/src/kms-message/src/kms_caller_identity_request.c
Examining data/mongo-c-driver-1.17.2/src/kms-message/src/kms_crypto.h
Examining data/mongo-c-driver-1.17.2/src/kms-message/src/kms_crypto_apple.c
Examining data/mongo-c-driver-1.17.2/src/kms-message/src/kms_crypto_libcrypto.c
Examining data/mongo-c-driver-1.17.2/src/kms-message/src/kms_crypto_none.c
Examining data/mongo-c-driver-1.17.2/src/kms-message/src/kms_crypto_windows.c
Examining data/mongo-c-driver-1.17.2/src/kms-message/src/kms_decrypt_request.c
Examining data/mongo-c-driver-1.17.2/src/kms-message/src/kms_encrypt_request.c
Examining data/mongo-c-driver-1.17.2/src/kms-message/src/kms_kv_list.c
Examining data/mongo-c-driver-1.17.2/src/kms-message/src/kms_kv_list.h
Examining data/mongo-c-driver-1.17.2/src/kms-message/src/kms_message.c
Examining data/mongo-c-driver-1.17.2/src/kms-message/src/kms_message/kms_b64.h
Examining data/mongo-c-driver-1.17.2/src/kms-message/src/kms_message/kms_caller_identity_request.h
Examining data/mongo-c-driver-1.17.2/src/kms-message/src/kms_message/kms_decrypt_request.h
Examining data/mongo-c-driver-1.17.2/src/kms-message/src/kms_message/kms_encrypt_request.h
Examining data/mongo-c-driver-1.17.2/src/kms-message/src/kms_message/kms_message.h
Examining data/mongo-c-driver-1.17.2/src/kms-message/src/kms_message/kms_message_defines.h
Examining data/mongo-c-driver-1.17.2/src/kms-message/src/kms_message/kms_request.h
Examining data/mongo-c-driver-1.17.2/src/kms-message/src/kms_message/kms_request_opt.h
Examining data/mongo-c-driver-1.17.2/src/kms-message/src/kms_message/kms_response.h
Examining data/mongo-c-driver-1.17.2/src/kms-message/src/kms_message/kms_response_parser.h
Examining data/mongo-c-driver-1.17.2/src/kms-message/src/kms_message_private.h
Examining data/mongo-c-driver-1.17.2/src/kms-message/src/kms_port.c
Examining data/mongo-c-driver-1.17.2/src/kms-message/src/kms_port.h
Examining data/mongo-c-driver-1.17.2/src/kms-message/src/kms_request.c
Examining data/mongo-c-driver-1.17.2/src/kms-message/src/kms_request_opt.c
Examining data/mongo-c-driver-1.17.2/src/kms-message/src/kms_request_opt_private.h
Examining data/mongo-c-driver-1.17.2/src/kms-message/src/kms_request_str.c
Examining data/mongo-c-driver-1.17.2/src/kms-message/src/kms_request_str.h
Examining data/mongo-c-driver-1.17.2/src/kms-message/src/kms_response.c
Examining data/mongo-c-driver-1.17.2/src/kms-message/src/kms_response_parser.c
Examining data/mongo-c-driver-1.17.2/src/kms-message/src/sort.c
Examining data/mongo-c-driver-1.17.2/src/kms-message/src/sort.h
Examining data/mongo-c-driver-1.17.2/src/kms-message/test/test_kms_request.c
Examining data/mongo-c-driver-1.17.2/src/kms-message/test/windows/dirent.h
Examining data/mongo-c-driver-1.17.2/src/libbson/examples/bcon-col-view.c
Examining data/mongo-c-driver-1.17.2/src/libbson/examples/bcon-speed.c
Examining data/mongo-c-driver-1.17.2/src/libbson/examples/bson-check-depth.c
Examining data/mongo-c-driver-1.17.2/src/libbson/examples/bson-metrics.c
Examining data/mongo-c-driver-1.17.2/src/libbson/examples/bson-streaming-reader.c
Examining data/mongo-c-driver-1.17.2/src/libbson/examples/bson-to-json.c
Examining data/mongo-c-driver-1.17.2/src/libbson/examples/bson-validate.c
Examining data/mongo-c-driver-1.17.2/src/libbson/examples/hello_bson.c
Examining data/mongo-c-driver-1.17.2/src/libbson/examples/json-to-bson.c
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bcon.c
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bcon.h
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-atomic.c
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-atomic.h
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-clock.c
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-clock.h
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-compat.h
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-context-private.h
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-context.c
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-context.h
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-decimal128.c
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-decimal128.h
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-endian.h
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-error.c
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-error.h
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-iso8601-private.h
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-iso8601.c
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-iter.c
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-iter.h
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-json.c
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-json.h
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-keys.c
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-keys.h
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-macros.h
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-md5.c
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-md5.h
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-memory.c
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-memory.h
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-oid.c
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-oid.h
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-prelude.h
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-private.h
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-reader.c
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-reader.h
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-string.c
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-string.h
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-timegm-private.h
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-timegm.c
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-types.h
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-utf8.c
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-utf8.h
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-value.c
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-value.h
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-version-functions.c
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-version-functions.h
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-writer.c
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-writer.h
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.h
Examining data/mongo-c-driver-1.17.2/src/libbson/src/bson/forwarding/bson.h
Examining data/mongo-c-driver-1.17.2/src/libbson/src/jsonsl/jsonsl.c
Examining data/mongo-c-driver-1.17.2/src/libbson/src/jsonsl/jsonsl.h
Examining data/mongo-c-driver-1.17.2/src/libbson/tests/corpus-test.c
Examining data/mongo-c-driver-1.17.2/src/libbson/tests/corpus-test.h
Examining data/mongo-c-driver-1.17.2/src/libbson/tests/test-atomic.c
Examining data/mongo-c-driver-1.17.2/src/libbson/tests/test-b64.c
Examining data/mongo-c-driver-1.17.2/src/libbson/tests/test-bcon-basic.c
Examining data/mongo-c-driver-1.17.2/src/libbson/tests/test-bcon-extract.c
Examining data/mongo-c-driver-1.17.2/src/libbson/tests/test-bson-corpus.c
Examining data/mongo-c-driver-1.17.2/src/libbson/tests/test-bson-error.c
Examining data/mongo-c-driver-1.17.2/src/libbson/tests/test-bson-version.c
Examining data/mongo-c-driver-1.17.2/src/libbson/tests/test-bson.c
Examining data/mongo-c-driver-1.17.2/src/libbson/tests/test-clock.c
Examining data/mongo-c-driver-1.17.2/src/libbson/tests/test-decimal128.c
Examining data/mongo-c-driver-1.17.2/src/libbson/tests/test-endian.c
Examining data/mongo-c-driver-1.17.2/src/libbson/tests/test-iso8601.c
Examining data/mongo-c-driver-1.17.2/src/libbson/tests/test-iter.c
Examining data/mongo-c-driver-1.17.2/src/libbson/tests/test-json.c
Examining data/mongo-c-driver-1.17.2/src/libbson/tests/test-oid.c
Examining data/mongo-c-driver-1.17.2/src/libbson/tests/test-reader.c
Examining data/mongo-c-driver-1.17.2/src/libbson/tests/test-string.c
Examining data/mongo-c-driver-1.17.2/src/libbson/tests/test-utf8.c
Examining data/mongo-c-driver-1.17.2/src/libbson/tests/test-value.c
Examining data/mongo-c-driver-1.17.2/src/libbson/tests/test-writer.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/aggregation/aggregation1.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/basic_aggregation/basic-aggregation.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/basic_aggregation/constants.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/basic_aggregation/distinct.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/basic_aggregation/map-reduce-advanced.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/basic_aggregation/map-reduce-basic.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/bulk/bulk-collation.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/bulk/bulk1.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/bulk/bulk2.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/bulk/bulk3.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/bulk/bulk4.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/bulk/bulk5.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/bulk/bulk6.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/client-side-encryption-auto-decryption.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/client-side-encryption-explicit.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/client-side-encryption-helpers.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/client-side-encryption-helpers.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/client-side-encryption-schema-map.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/client-side-encryption-server-schema.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/common_operations/common-operations.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/common_operations/explain.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/doc-common-insert.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/example-client.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/example-collection-watch.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/example-command-monitoring.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/example-command-with-opts.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/example-create-indexes.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/example-gridfs-bucket.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/example-gridfs.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/example-pool.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/example-resume.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/example-scram.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/example-sdam-monitoring.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/example-session.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/example-start-at-optime.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/example-transaction.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/example-update.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/example-with-transaction-cb.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/find-and-modify.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/find_and_modify_with_opts/fam.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/hello_mongoc.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/mongoc-dump.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/mongoc-ping.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/examples/mongoc-tail.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/forwarding/mongoc.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-aggregate-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-aggregate.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-apm-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-apm.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-apm.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-array-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-array.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-async-cmd-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-async-cmd.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-async-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-async.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-buffer-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-buffer.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-bulk-operation-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-bulk-operation.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-bulk-operation.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-change-stream-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-change-stream.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-change-stream.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-client-pool-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-client-pool.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-client-pool.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-client-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-client-session-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-client-session.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-client-session.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-client-side-encryption-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-client-side-encryption.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-client-side-encryption.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-client.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-client.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster-aws-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster-aws.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster-cyrus-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster-cyrus.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster-sasl-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster-sasl.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster-sspi-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster-sspi.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cmd-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cmd.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-collection-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-collection.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-collection.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-compression-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-compression.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-counters-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-counters.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-crypt-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-crypt.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-crypto-cng-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-crypto-cng.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-crypto-common-crypto-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-crypto-common-crypto.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-crypto-openssl-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-crypto-openssl.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-crypto-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-crypto.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cursor-array.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cursor-change-stream.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cursor-cmd-deprecated.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cursor-cmd.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cursor-find-cmd.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cursor-find-opquery.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cursor-find.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cursor-legacy.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cursor-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cursor.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cursor.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cyrus-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cyrus.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-database-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-database.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-database.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-errno-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-error-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-error.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-error.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-find-and-modify-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-find-and-modify.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-find-and-modify.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-flags-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-flags.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-gridfs-bucket-file-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-gridfs-bucket-file.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-gridfs-bucket-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-gridfs-bucket.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-gridfs-bucket.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-gridfs-file-list-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-gridfs-file-list.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-gridfs-file-list.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-gridfs-file-page-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-gridfs-file-page.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-gridfs-file-page.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-gridfs-file-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-gridfs-file.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-gridfs-file.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-gridfs-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-gridfs.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-gridfs.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-handshake-compiler-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-handshake-os-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-handshake-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-handshake.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-handshake.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-host-list-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-host-list.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-host-list.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-http-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-http.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-index.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-index.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-init.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-init.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-interrupt-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-interrupt.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-iovec.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-libressl-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-libressl.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-linux-distro-scanner-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-linux-distro-scanner.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-list-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-list.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-log-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-log.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-log.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-macros.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-matcher-op-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-matcher-op.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-matcher-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-matcher.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-matcher.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-memcmp-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-memcmp.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-ocsp-cache-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-ocsp-cache.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-opcode.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-openssl-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-openssl.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-opts-helpers-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-opts-helpers.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-opts-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-opts.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-prelude.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-queue-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-queue.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-rand-cng.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-rand-common-crypto.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-rand-openssl.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-rand-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-rand.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-read-concern-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-read-concern.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-read-concern.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-read-prefs-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-read-prefs.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-read-prefs.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-rpc-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-rpc.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-sasl-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-sasl.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-scram-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-scram.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-secure-channel-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-secure-channel.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-secure-transport-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-secure-transport.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-server-description-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-server-description.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-server-description.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-server-monitor-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-server-monitor.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-server-stream-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-server-stream.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-set-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-set.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-socket-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-socket.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-socket.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-ssl-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-ssl.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-ssl.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-sspi-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-sspi.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-buffered.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-buffered.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-file.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-file.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-gridfs-download-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-gridfs-download.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-gridfs-upload-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-gridfs-upload.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-gridfs.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-gridfs.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-socket.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-socket.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-libressl-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-libressl.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-libressl.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-openssl-bio-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-openssl-bio.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-openssl-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-openssl.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-openssl.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-secure-channel-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-secure-channel.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-secure-channel.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-secure-transport-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-secure-transport.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-secure-transport.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-thread-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-topology-background-monitoring-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-topology-background-monitoring.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-topology-description-apm-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-topology-description-apm.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-topology-description-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-topology-description.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-topology-description.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-topology-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-topology-scanner-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-topology-scanner.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-topology.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-trace-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-uri-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-uri.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-uri.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-util-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-util.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-version-functions.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-version-functions.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-write-command-legacy-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-write-command-legacy.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-write-command-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-write-command.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-write-concern-private.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-write-concern.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-write-concern.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/utlist.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/debug-stream.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/json-test-monitoring.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/json-test-monitoring.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/json-test-operations.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/json-test-operations.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/json-test.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/json-test.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/mock_server/future-functions.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/mock_server/future-functions.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/mock_server/future-value.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/mock_server/future-value.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/mock_server/future.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/mock_server/future.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/mock_server/mock-rs.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/mock_server/mock-rs.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/mock_server/mock-server.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/mock_server/mock-server.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/mock_server/request.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/mock_server/request.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/mock_server/sync-queue.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/mock_server/sync-queue.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/ssl-test.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/ssl-test.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-conveniences.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-conveniences.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-happy-eyeballs.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-libmongoc.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-libmongoc.h
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-aggregate.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-array.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-async.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-aws.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-background-monitoring.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-buffer.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-bulk.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-cache.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-change-stream.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-client-pool.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-client-session.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-client-side-encryption.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-client.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-cluster.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-cmd.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-collection-find-with-opts.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-collection-find.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-collection.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-command-monitoring.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-connection-uri.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-counters.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-crud.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-cursor.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-cyrus.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-database.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-dns.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-error.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-exhaust.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-find-and-modify.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-gridfs-bucket.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-gridfs-file-page.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-gridfs.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-gssapi.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-handshake.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-hedged-reads.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-http.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-interrupt.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-linux-distro-scanner.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-list.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-log.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-long-namespace.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-matcher.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-max-staleness.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-mongos-pinning.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-ocsp-cache.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-opts.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-primary-stepdown.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-queue.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-read-concern.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-read-prefs.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-read-write-concern.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-retryable-reads.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-retryable-writes.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-rpc.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-sample-commands.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-scram.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-sdam-monitoring.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-sdam.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-server-description.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-server-selection-errors.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-server-selection.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-set.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-socket.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-speculative-auth.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-stream-tls-error.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-stream-tls.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-stream.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-streamable-ismaster.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-thread.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-topology-description.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-topology-reconcile.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-topology-scanner.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-topology.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-transactions.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-uri.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-usleep.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-util.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-version.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-with-transaction.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-write-commands.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-write-concern.c
Examining data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-x509.c
Examining data/mongo-c-driver-1.17.2/src/tools/mongoc-stat.c

FINAL RESULTS:

data/mongo-c-driver-1.17.2/src/kms-message/src/kms_message.c:32:11:  [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.
   (void) vsnprintf (error, size, fmt, va);
data/mongo-c-driver-1.17.2/src/kms-message/src/kms_request_str.c:267:11:  [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.
      n = vsnprintf (&str->str[str->len], remaining, format, args);
data/mongo-c-driver-1.17.2/src/kms-message/test/test_kms_request.c:50:10:  [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,                                                    \
data/mongo-c-driver-1.17.2/src/libbson/examples/bson-streaming-reader.c:151:10:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
         strcpy (port, optarg);
data/mongo-c-driver-1.17.2/src/libbson/examples/bson-streaming-reader.c:156:10:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
         strcpy (hostname, optarg);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-decimal128.c:176:10:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
         strcpy (str_out, BSON_DECIMAL128_INF);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-decimal128.c:180:10:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
         strcpy (str, BSON_DECIMAL128_NAN);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-decimal128.c:580:16:  [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.
#define SSCANF sscanf
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-json.c:43:16:  [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.
#define SSCANF sscanf
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-macros.h:190:10:  [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,                                  \
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-macros.h:204:10:  [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,                                                          \
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-macros.h:259:56:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define BSON_GNUC_PRINTF(f, v) __attribute__ ((format (printf, f, v)))
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-string.c:616:8:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
   r = vsnprintf (str, size, format, ap);
data/mongo-c-driver-1.17.2/src/libbson/src/jsonsl/jsonsl.c:921: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(my_copy, path);
data/mongo-c-driver-1.17.2/src/libbson/src/jsonsl/jsonsl.c:959: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(ret->orig, path);
data/mongo-c-driver-1.17.2/src/libbson/tests/corpus-test.c:26:16:  [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.
#define SSCANF sscanf
data/mongo-c-driver-1.17.2/src/libbson/tests/test-json.c:2733:4:  [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 (copy, json);
data/mongo-c-driver-1.17.2/src/libmongoc/examples/example-resume.c:70:14:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
   if (-1 == access (RESUME_TOKEN_PATH, R_OK)) {
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-client-side-encryption.c:678:65:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
   if (!_mongoc_crypt_auto_encrypt (client_encrypted->topology->crypt,
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-client-side-encryption.c:761:65:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
   if (!_mongoc_crypt_auto_decrypt (client_encrypted->topology->crypt,
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-client-side-encryption.c:986:8:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
   if (execvp (to_exec, args) < 0) {
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-client-side-encryption.c:1249:27:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
   if (!client->topology->crypt) {
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-client-side-encryption.c:1377:19:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
   if (!topology->crypt) {
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-client-side-encryption.c:1418:21:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
   _mongoc_crypt_t *crypt;
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-client-side-encryption.c:1459:28:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
   if (!client_encryption->crypt) {
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-client-side-encryption.c:1479:46:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
   _mongoc_crypt_destroy (client_encryption->crypt);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-client-side-encryption.c:1514:58:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
   if (!_mongoc_crypt_create_datakey (client_encryption->crypt,
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-client-side-encryption.c:1596:60:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
   if (!_mongoc_crypt_explicit_encrypt (client_encryption->crypt,
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-client-side-encryption.c:1645:60:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
   if (!_mongoc_crypt_explicit_decrypt (client_encryption->crypt,
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-crypt-private.h:42:41:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
_mongoc_crypt_destroy (_mongoc_crypt_t *crypt);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-crypt-private.h:50:46:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
_mongoc_crypt_auto_encrypt (_mongoc_crypt_t *crypt,
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-crypt-private.h:65:46:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
_mongoc_crypt_auto_decrypt (_mongoc_crypt_t *crypt,
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-crypt-private.h:79:50:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
_mongoc_crypt_explicit_encrypt (_mongoc_crypt_t *crypt,
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-crypt-private.h:94:50:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
_mongoc_crypt_explicit_decrypt (_mongoc_crypt_t *crypt,
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-crypt-private.h:106:48:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
_mongoc_crypt_create_datakey (_mongoc_crypt_t *crypt,
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-crypt.c:150:35:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
_crypt_check_error (mongocrypt_t *crypt,
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-crypt.c:157:28:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
   if (!mongocrypt_status (crypt, status)) {
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-crypt.c:671:21:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
   _mongoc_crypt_t *crypt;
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-crypt.c:678:35:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
   crypt = bson_malloc0 (sizeof (*crypt));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-crypt.c:771:30:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
      _mongoc_crypt_destroy (crypt);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-crypt.c:775:11:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
   return crypt;
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-crypt.c:779:41:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
_mongoc_crypt_destroy (_mongoc_crypt_t *crypt)
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-crypt.c:781:9:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
   if (!crypt) {
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-crypt.c:785:15:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
   bson_free (crypt);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-crypt.c:789:46:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
_mongoc_crypt_auto_encrypt (_mongoc_crypt_t *crypt,
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-crypt.c:836:46:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
_mongoc_crypt_auto_decrypt (_mongoc_crypt_t *crypt,
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-crypt.c:876:50:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
_mongoc_crypt_explicit_encrypt (_mongoc_crypt_t *crypt,
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-crypt.c:987:50:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
_mongoc_crypt_explicit_decrypt (_mongoc_crypt_t *crypt,
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-crypt.c:1047:48:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
_mongoc_crypt_create_datakey (_mongoc_crypt_t *crypt,
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cyrus.c:108:4:  [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 (out, in);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-linux-distro-scanner.c:167:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
   if (access (path, R_OK)) {
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-linux-distro-scanner.c:220:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      if (access (*p, F_OK)) {
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-linux-distro-scanner.c:225:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      if (access (*p, R_OK)) {
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-ssl.c:69:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
   if (access (filename, R_OK) != 0) {
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls.c:214:37:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
   if (!host || (host[0] == '/' && !access (host, F_OK))) {
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-topology-private.h:90:21:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
   _mongoc_crypt_t *crypt;
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-topology.c:514:37:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
   _mongoc_crypt_destroy (topology->crypt);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-write-command.c:1587:7:  [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 (cmd_err->message, replacement);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.c:75:4:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
   vprintf (format, ap);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.c:88:4:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
   vfprintf (stderr, format, ap);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.c:491:10:  [4] (shell) execle:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
         execle (suite->prgname,
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.c:505:10:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
         execl (suite->prgname,
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.h:134:10:  [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,                                                     \
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.h:170:10:  [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,                             \
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.h:187:13:  [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,                           \
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.h:194:13:  [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,                           \
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.h:212:10:  [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,                           \
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.h:222:10:  [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,                           \
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.h:240:10:  [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,                                          \
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.h:279:10:  [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,                                            \
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.h:300:10:  [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,                                \
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.h:321:10:  [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,                                              \
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.h:340:10:  [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,                                                     \
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.h:371:10:  [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,                                      \
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.h:393:10:  [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,                                   \
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.h:410:10:  [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,                                     \
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.h:429:10:  [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,                                          \
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.h:443:10:  [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,                                                   \
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.h:455:10:  [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,                                                   \
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.h:472:10:  [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,                                       \
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.h:487:10:  [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,                                            \
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.h:501:10:  [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,                                                \
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.h:512:10:  [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-c-driver-1.17.2/src/libmongoc/tests/TestSuite.h:550:10:  [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-c-driver-1.17.2/src/libmongoc/tests/TestSuite.h:569:10:  [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,                                               \
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.h:590:10:  [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,                                                \
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.h:607:13:  [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,                                           \
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.h:623:10:  [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,                       \
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.h:629:10:  [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, __VA_ARGS__);         \
data/mongo-c-driver-1.17.2/src/libmongoc/tests/json-test.c:573:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   strcat (dst, parent_path);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/json-test.c:575:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   strcat (dst, child_name);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-conveniences.c:968:7:  [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 (ctx->errmsg, derived.errmsg);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-libmongoc.c:1968:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
   ret = access (path, R_OK | W_OK) == 0 ? 1 : 0;
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-client-session.c:1523:7:  [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,                                            \
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-uri.c:15: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-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-uri.c:15: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-c-driver-1.17.2/src/common/common-thread-private.h:54:25:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
#define bson_mutex_init InitializeCriticalSection
data/mongo-c-driver-1.17.2/src/common/common-thread-private.h:55:25:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
#define bson_mutex_lock EnterCriticalSection
data/mongo-c-driver-1.17.2/src/libbson/examples/bson-streaming-reader.c:140:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
   while ((opt = getopt (argc, argv, "hs:p:")) != -1) {
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-context.c:303:4:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
   srand (seed);
data/mongo-c-driver-1.17.2/src/libbson/tests/test-json.c:753:4:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
   srand (*seed);
data/mongo-c-driver-1.17.2/src/libmongoc/examples/client-side-encryption-auto-decryption.c:54:19:  [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.
      hex_to_bin (getenv ("LOCAL_MASTERKEY"), &local_masterkey_len);
data/mongo-c-driver-1.17.2/src/libmongoc/examples/client-side-encryption-explicit.c:51:19:  [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.
      hex_to_bin (getenv ("LOCAL_MASTERKEY"), &local_masterkey_len);
data/mongo-c-driver-1.17.2/src/libmongoc/examples/client-side-encryption-schema-map.c:139:19:  [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.
      hex_to_bin (getenv ("LOCAL_MASTERKEY"), &local_masterkey_len);
data/mongo-c-driver-1.17.2/src/libmongoc/examples/client-side-encryption-server-schema.c:124:19:  [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.
      hex_to_bin (getenv ("LOCAL_MASTERKEY"), &local_masterkey_len);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-counters.c:88:12:  [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 ("MONGOC_DISABLE_SHM");
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-util.c:589:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
   if (getenv (name) && strlen (getenv (name))) {
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-util.c:589: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.
   if (getenv (name) && strlen (getenv (name))) {
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-util.c:590: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.
      return bson_strdup (getenv (name));
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.c:419:9:  [3] (shell) CreateProcess:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Specify the application path in the first argument, NOT as part
  of the second, or embedded spaces could allow an attacker to force a
  different program to run.
   if (!CreateProcess (NULL,
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.c:419:9:  [3] (shell) CreateProcess:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Specify the application path in the first argument, NOT as part
  of the second, or embedded spaces could allow an attacker to force a
  different program to run.
   if (!CreateProcess (NULL,
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.c:596:7:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
      srand (test->seed);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.c:768:11:  [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) ? getenv (name) : "";
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.c:768: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.
   return getenv (name) ? getenv (name) : "";
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.c:829:13:  [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.
            getenv ("MONGOC_TEST_MONITORING_VERBOSE") ? "true" : "false",
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-conveniences.h:49:9:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
#define realpath(path, expanded) \
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-libmongoc.c:2383:9:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
   if (!realpath (path, resolved)) {
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-client-session.c:3068:12:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
   ASSERT (realpath (JSON_DIR "/sessions", resolved));
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-client-side-encryption.c:1947:12:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
   ASSERT (realpath (JSON_DIR "/client_side_encryption", resolved));
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-gssapi.c:41:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
   if (getenv (name) && strlen (getenv (name))) {
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-gssapi.c:41: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.
   if (getenv (name) && strlen (getenv (name))) {
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-gssapi.c:42: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.
      return bson_strdup (getenv (name));
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-read-write-concern.c:278:7:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
      realpath (JSON_DIR "/read_write_concern/connection-string", resolved));
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-sdam-monitoring.c:540:12:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
   ASSERT (realpath (JSON_DIR "/server_discovery_and_monitoring/monitoring",
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-sdam.c:451:7:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
      realpath (JSON_DIR "/server_discovery_and_monitoring/single", resolved));
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-sdam.c:461:7:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
      realpath (JSON_DIR "/server_discovery_and_monitoring/sharded", resolved));
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-sdam.c:465:7:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
      realpath (JSON_DIR "/server_discovery_and_monitoring/errors", resolved));
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-sdam.c:469:12:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
   ASSERT (realpath (JSON_DIR "/server_discovery_and_monitoring/supplemental",
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-sdam.c:474:12:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
   ASSERT (realpath (JSON_DIR "/server_discovery_and_monitoring/integration",
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-transactions.c:1170:12:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
   ASSERT (realpath (JSON_DIR "/transactions", resolved));
data/mongo-c-driver-1.17.2/src/common/common-md5.c:358:7:  [2] (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-c-driver-1.17.2/src/common/common-md5.c:372:7:  [2] (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-c-driver-1.17.2/src/kms-message/src/hexlify.c:33:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      p += sprintf (p, "%02x", buf[i]);
data/mongo-c-driver-1.17.2/src/kms-message/src/kms_message_private.h:28:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[512];
data/mongo-c-driver-1.17.2/src/kms-message/src/kms_message_private.h:62:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[512];
data/mongo-c-driver-1.17.2/src/kms-message/src/kms_port.c:26:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (dst, src, len);
data/mongo-c-driver-1.17.2/src/kms-message/src/kms_request.c:107:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&request->crypto, &opt->crypto, sizeof (opt->crypto));
data/mongo-c-driver-1.17.2/src/kms-message/src/kms_request.c:145:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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 AMZ_DT_FORMAT];
data/mongo-c-driver-1.17.2/src/kms-message/src/kms_request.c:575: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.
   unsigned char k_date[32];
data/mongo-c-driver-1.17.2/src/kms-message/src/kms_request.c:576: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.
   unsigned char k_region[32];
data/mongo-c-driver-1.17.2/src/kms-message/src/kms_request.c:577: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.
   unsigned char k_service[32];
data/mongo-c-driver-1.17.2/src/kms-message/src/kms_request.c:623: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.
   unsigned char signing_key[32];
data/mongo-c-driver-1.17.2/src/kms-message/src/kms_request.c:624: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.
   unsigned char signature[32];
data/mongo-c-driver-1.17.2/src/kms-message/src/kms_request_str.c:79:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (s->str, chars, actual_len);
data/mongo-c-driver-1.17.2/src/kms-message/src/kms_request_str.c:177:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (str->str, chars, actual_len + 1);
data/mongo-c-driver-1.17.2/src/kms-message/src/kms_request_str.c:199:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (str->str + str->len, appended->str, appended->len);
data/mongo-c-driver-1.17.2/src/kms-message/src/kms_request_str.c:223:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (str->str + str->len, appended, (size_t) len);
data/mongo-c-driver-1.17.2/src/kms-message/src/kms_request_str.c:307:10:  [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 ((char *) out, "%%%02X", *in);
data/mongo-c-driver-1.17.2/src/kms-message/test/test_kms_request.c:120:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char file_path[PATH_MAX];
data/mongo-c-driver-1.17.2/src/kms-message/test/test_kms_request.c:200:8:  [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).
   f = fopen (file_path, "r");
data/mongo-c-driver-1.17.2/src/kms-message/test/test_kms_request.c:267:8:  [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).
   f = fopen (file_path, "r");
data/mongo-c-driver-1.17.2/src/kms-message/test/test_kms_request.c:441:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char sub[PATH_MAX];
data/mongo-c-driver-1.17.2/src/kms-message/test/test_kms_request.c:493: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.
   unsigned char signing[32];
data/mongo-c-driver-1.17.2/src/kms-message/test/test_kms_request.c:765:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char encoded[9];
data/mongo-c-driver-1.17.2/src/kms-message/test/test_kms_request.c:786:20:  [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).
   response_file = fopen ("./test/example-response.bin", "rb");
data/mongo-c-driver-1.17.2/src/kms-message/test/windows/dirent.h:230:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t d_name[PATH_MAX+1];
data/mongo-c-driver-1.17.2/src/kms-message/test/windows/dirent.h:270:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char d_name[PATH_MAX+1];
data/mongo-c-driver-1.17.2/src/kms-message/test/windows/dirent.h:680:9:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        wchar_t wname[PATH_MAX + 1];
data/mongo-c-driver-1.17.2/src/kms-message/test/windows/dirent.h:1095:9:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    n = MultiByteToWideChar(
data/mongo-c-driver-1.17.2/src/libbson/examples/bcon-speed.c:56:8:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   n = atoi (argv[1]);
data/mongo-c-driver-1.17.2/src/libbson/examples/bson-check-depth.c:113:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   max_depth = atoi (argv[2]);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bcon.c:432:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (val->ITER, iter, sizeof *iter);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bcon.c:715:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char i_str[16];
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bcon.c:759:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char i_str[16];
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bcon.c:852:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char i_str[16];
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bcon.c:887: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.
         memcpy (&current_iter, STACK_ITER_CHILD, sizeof current_iter);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-context.c:86:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&oid->bytes[9], ((uint8_t *) &seq) + 1, 3);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-context.c:113:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&oid->bytes[9], ((uint8_t *) &seq) + 1, 3);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-context.c:143:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&oid->bytes[4], &seq, sizeof (seq));
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-context.c:170:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&oid->bytes[4], &seq, sizeof (seq));
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-context.c:207:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&oid->bytes[4], &context->rand, sizeof (context->rand));
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-context.c:273:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char hostname[HOST_NAME_MAX];
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-context.c:296:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&hostname_chunk, ptr, to_copy);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-decimal128.c:136:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char significand_str[35]; /* decoded significand digits */
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-endian.h:217:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&uv, &v, sizeof (v));
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-iso8601.c:305:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-c-driver-1.17.2/src/libbson/src/bson/bson-iter.c:677:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&val, iter->raw + iter->d1, 1);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-iter.c:912: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.
         memcpy (binary_len, (iter->raw + iter->d1), sizeof (*binary_len));
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-iter.c:1356:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (ret, str, local_length);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-iter.c:1528: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.
         memcpy (
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-iter.c:1794:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (document_len, (iter->raw + iter->d1), sizeof (*document_len));
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-iter.c:1856:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (array_len, (iter->raw + iter->d1), sizeof (*array_len));
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-iter.c:2182:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy ((void *) (iter->raw + iter->d1), &value, 1);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-iter.c:2193:7:  [2] (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/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-iter.c:2210:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy ((void *) (iter->raw + iter->d1), &value, sizeof (value));
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-iter.c:2222:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy ((void *) (iter->raw + iter->d1), &value, sizeof (value));
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-iter.c:2254:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy ((void *) (iter->raw + iter->d1), &value, sizeof (value));
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-iter.c:2286:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy ((void *) (iter->raw + iter->d1), &value, sizeof (value));
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-iter.c:2316:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy ((void *) (iter->raw + iter->d1), &value, sizeof (value));
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-iter.c:2348:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy ((void *) (iter->raw + iter->d1), data, sizeof (data));
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-iter.c:2350:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy ((void *) (iter->raw + iter->d1), value, sizeof (*value));
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-iter.h:461:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&val, iter->raw + iter->d1, 1);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-json.c:466:4:  [2] (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->buf, from, len);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-json.c:484:4:  [2] (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->buf + buf->len, from, len);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-json.c:2213:4:  [2] (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, ctx->data + ctx->bytes_parsed, bytes);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-json.c:2388:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char errmsg_buf[BSON_ERROR_BUFFER_SIZE];
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-json.c:2397:9:  [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).
   fd = open (path, O_RDONLY);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-oid.c:102:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&oid->bytes[0], &now, sizeof (now));
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-oid.c:120:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&oid->bytes[0], &now, sizeof (now));
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-oid.c:134:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (oid, data, 12);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-oid.c:160:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char str[BSON_ENSURE_ARRAY_PARAM_SIZE (25)]) /* OUT */
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-oid.h:57:44:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
bson_oid_to_string (const bson_oid_t *oid, char str[25]);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-oid.h:138:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (dst, src, sizeof *src);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-reader.c:471:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&blen, &reader->data[reader->offset], sizeof blen);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-reader.c:574:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&blen, &reader->data[reader->offset], sizeof blen);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-reader.c:787:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char errmsg_buf[BSON_ERROR_BUFFER_SIZE];
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-reader.c:798:9:  [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).
   fd = open (path, O_RDONLY);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-string.c:78:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (ret->str, str, ret->len);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-string.c:143:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (string->str + string->len, str, len);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-string.c:172:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char cc[2];
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-string.c:209:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[8];
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-string.c:335:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (out, str, len + 1);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-timegm.c:205: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.
   unsigned char types[TZ_MAX_TIMES];
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-timegm.c:207:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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 (TZ_MAX_CHARS + 1, (2 * (MY_TZNAME_MAX + 1)))];
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-types.h:518:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char message[BSON_ERROR_BUFFER_SIZE];
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-utf8.c:432:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char utf8[BSON_ENSURE_ARRAY_PARAM_SIZE (6)], /* OUT */
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-utf8.h:40:49:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
bson_utf8_from_unichar (bson_unichar_t unichar, char utf8[6], uint32_t *len);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-value.c:40:7:  [2] (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/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-value.c:48:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (dst->value.v_doc.data,
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-value.c:57: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.
         memcpy (dst->value.v_binary.data, src->value.v_binary.data,
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-value.c:79:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (dst->value.v_dbpointer.collection,
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-value.c:89:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (dst->value.v_code.code,
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-value.c:97:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (dst->value.v_symbol.symbol,
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-value.c:106:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (dst->value.v_codewscope.code,
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-value.c:113:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (dst->value.v_codewscope.scope_data,
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:133:7:  [2] (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, impl->data, impl->len);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:280:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (_bson_data (bson), &bson->len, sizeof (bson->len));
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:283:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (_bson_data (bson), &length_le, sizeof (length_le));
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:343: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.
         memcpy (buf, data, data_len);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:2119:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (_bson_data (bson), data, length);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:2152:7:  [2] (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, &len_le, sizeof (len_le));
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:2206:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (dst->padding, src->padding, sizeof dst->padding);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:2208:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (dst, src, sizeof *dst);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:2229:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (adst->alloc, data, src->len);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:2384:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (dst_inline->data, src_inline->data, sizeof src_inline->data);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:2395:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (dst, src, sizeof (bson_t));
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:2437:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (ret, inl->data, bson->len);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:2602:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char decimal128_string[BSON_DECIMAL128_STRING];
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:2693:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[25];
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:2849:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[25];
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:3501:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (error, &state.error, sizeof *error);
data/mongo-c-driver-1.17.2/src/libbson/src/jsonsl/jsonsl.c:1144: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(jsn->jprs, jprs, sizeof(jsonsl_jpr_t) * njprs);
data/mongo-c-driver-1.17.2/src/libbson/src/jsonsl/jsonsl.c:1324: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.
size_t jsonsl_util_unescape_ex(const char *in,
data/mongo-c-driver-1.17.2/src/libbson/src/jsonsl/jsonsl.c:1325:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                               char *out,
data/mongo-c-driver-1.17.2/src/libbson/src/jsonsl/jsonsl.c:1609:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char Escape_Equivs[0x100] = {
data/mongo-c-driver-1.17.2/src/libbson/src/jsonsl/jsonsl.h:986: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.
size_t jsonsl_util_unescape_ex(const char *in,
data/mongo-c-driver-1.17.2/src/libbson/src/jsonsl/jsonsl.h:987:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                               char *out,
data/mongo-c-driver-1.17.2/src/libbson/tests/test-b64.c:48:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char output[32];
data/mongo-c-driver-1.17.2/src/libbson/tests/test-bson.c:37:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char real_filename[256];
data/mongo-c-driver-1.17.2/src/libbson/tests/test-bson.c:814:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&oid, bytes, sizeof oid);
data/mongo-c-driver-1.17.2/src/libbson/tests/test-bson.c:1137:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char filename[64];
data/mongo-c-driver-1.17.2/src/libbson/tests/test-bson.c:1321:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char key[12];
data/mongo-c-driver-1.17.2/src/libbson/tests/test-bson.c:1357:4:  [2] (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, &len_le, sizeof (len_le));
data/mongo-c-driver-1.17.2/src/libbson/tests/test-bson.c:1813:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[16];
data/mongo-c-driver-1.17.2/src/libbson/tests/test-bson.c:1882:4:  [2] (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, &len_le, sizeof (len_le));
data/mongo-c-driver-1.17.2/src/libbson/tests/test-bson.c:1918:4:  [2] (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, ((bson_impl_inline_t *) &src)->data, src.len);
data/mongo-c-driver-1.17.2/src/libbson/tests/test-bson.c:1929:4:  [2] (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, ((bson_impl_alloc_t *) &src)->alloc, src.len);
data/mongo-c-driver-1.17.2/src/libbson/tests/test-bson.c:1942:4:  [2] (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, ((bson_impl_inline_t *) &src)->data, src.len);
data/mongo-c-driver-1.17.2/src/libbson/tests/test-bson.c:1952:4:  [2] (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, ((bson_impl_alloc_t *) &src)->alloc, src.len);
data/mongo-c-driver-1.17.2/src/libbson/tests/test-bson.c:1975:4:  [2] (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, &len_le, sizeof (len_le));
data/mongo-c-driver-1.17.2/src/libbson/tests/test-decimal128.c:48:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char bid_string[BSON_DECIMAL128_STRING];
data/mongo-c-driver-1.17.2/src/libbson/tests/test-decimal128.c:71:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char bid_string[BSON_DECIMAL128_STRING];
data/mongo-c-driver-1.17.2/src/libbson/tests/test-decimal128.c:99:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char bid_string[BSON_DECIMAL128_STRING];
data/mongo-c-driver-1.17.2/src/libbson/tests/test-decimal128.c:172:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char bid_string[BSON_DECIMAL128_STRING];
data/mongo-c-driver-1.17.2/src/libbson/tests/test-decimal128.c:245:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char bid_string[BSON_DECIMAL128_STRING];
data/mongo-c-driver-1.17.2/src/libbson/tests/test-iter.c:219:7:  [2] (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, &len_le, sizeof (len_le));
data/mongo-c-driver-1.17.2/src/libbson/tests/test-iter.c:223: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.
         memcpy (&data[i], &r, sizeof (r));
data/mongo-c-driver-1.17.2/src/libbson/tests/test-json.c:15:7:  [2] (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, string, BSON_MIN (str_size, len));
data/mongo-c-driver-1.17.2/src/libbson/tests/test-json.c:794:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char key[25];
data/mongo-c-driver-1.17.2/src/libbson/tests/test-json.c:795:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char val[25];
data/mongo-c-driver-1.17.2/src/libbson/tests/test-json.c:2670: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.
   typedef const char *test_bson_json_error_t[2];
data/mongo-c-driver-1.17.2/src/libbson/tests/test-oid.c:82:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[25];
data/mongo-c-driver-1.17.2/src/libbson/tests/test-oid.c:101: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 oid_lower[25];
data/mongo-c-driver-1.17.2/src/libbson/tests/test-oid.c:386:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[25];
data/mongo-c-driver-1.17.2/src/libbson/tests/test-oid.c:418:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&out->timestamp, oid->bytes, 4);
data/mongo-c-driver-1.17.2/src/libbson/tests/test-oid.c:423:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&out->rand, oid->bytes + 1, 8);
data/mongo-c-driver-1.17.2/src/libbson/tests/test-oid.c:427:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&out->counter, oid->bytes + 8, 4);
data/mongo-c-driver-1.17.2/src/libbson/tests/test-oid.c:546:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char max_len_host[HOST_NAME_MAX] = {0};
data/mongo-c-driver-1.17.2/src/libbson/tests/test-string.c:276:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[5];
data/mongo-c-driver-1.17.2/src/libbson/tests/test-utf8.c:163:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[6];
data/mongo-c-driver-1.17.2/src/libbson/tests/test-writer.c:68:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char keystr[32];
data/mongo-c-driver-1.17.2/src/libmongoc/examples/client-side-encryption-schema-map.c:79: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).
   outfile = fopen ("jsonSchema.json", "w");
data/mongo-c-driver-1.17.2/src/libmongoc/examples/example-gridfs.c:23:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[4096];
data/mongo-c-driver-1.17.2/src/libmongoc/examples/example-resume.c:33:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   file_stream = fopen (RESUME_TOKEN_PATH, "w+");
data/mongo-c-driver-1.17.2/src/libmongoc/examples/mongoc-dump.c:59:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   stream = fopen (path, "w");
data/mongo-c-driver-1.17.2/src/libmongoc/examples/mongoc-dump.c:220:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
         port = atoi (argv[++i]);
data/mongo-c-driver-1.17.2/src/libmongoc/examples/mongoc-ping.c:43:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   port = (argc == 3) ? atoi (argv[2]) : 27017;
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-aggregate.c:46:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&next, iter, sizeof (bson_iter_t));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-aggregate.c:246:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&cursor->error, &opts_err, sizeof (bson_error_t));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-aggregate.c:252:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&cursor->error, &create_cmd_err, sizeof (bson_error_t));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-apm.c:351:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (error, event->error, sizeof *event->error);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-apm.c:636:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (error, event->error, sizeof *event->error);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-array.c:59:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (dst->data, src->data, dst->allocated);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-array.c:92:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy ((uint8_t *) array->data + off, data, len);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-async-cmd.c:322:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (iovec, acmd->iovec + i, niovec * sizeof (mongoc_iovec_t));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-async-cmd.c:323:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      iovec[0].iov_base = (char *) iovec[0].iov_base + offset;
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-async-cmd.c:391:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&msg_len, acmd->buffer.data, 4);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-buffer.c:149:4:  [2] (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, data, data_size);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-bulk-operation.c:756: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.
         memcpy (error, &bulk->result.error, sizeof (bson_error_t));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-change-stream.c:191: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 buf[16];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-client-pool.c:89:4:  [2] (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/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-client-pool.c:451:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&topology->description.apm_callbacks,
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-client-pool.c:454:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&pool->apm_callbacks, callbacks, sizeof (mongoc_apm_callbacks_t));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-client-side-encryption.c:654:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (encrypted_cmd, cmd, sizeof (mongoc_cmd_t));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-client-side-encryption.c:714:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (encrypted_cmd, cmd, sizeof (mongoc_cmd_t));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-client-side-encryption.c:956:9:  [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).
   fd = open ("/dev/null", O_RDONLY);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-client-side-encryption.c:964:9:  [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).
   fd = open ("/dev/null", O_WRONLY);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-client-side-encryption.c:973:9:  [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).
   fd = open ("/dev/null", O_RDWR);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-client.c:310:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char name[1024];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-client.c:351:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char s[256];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-client.c:370:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&len, data + pos, sizeof (uint8_t));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-client.c:634:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char portstr[8];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-client.c:1043:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (client->ssl_opts.internal,
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-client.c:2740:7:  [2] (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/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster-aws.c:174:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (*http_response_body, res.body, res.body_len);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster-aws.c:777:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (server_nonce, reply_nonce_data, 64);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster-cyrus.c:133:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (inbuf, tmpstr, inbuf_len + 1);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster-sspi.c:44:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char real_name[BSON_HOST_NAME_MAX + 1];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster-sspi.c:75:18:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
   service_len = MultiByteToWideChar (CP_UTF8,
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster-sspi.c:89:18:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
      pass_len = MultiByteToWideChar (CP_UTF8,
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster-sspi.c:103:18:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
      user_len = MultiByteToWideChar (CP_UTF8,
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster-sspi.c:270:7:  [2] (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, tmpstr, buflen);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster.c:177:7:  [2] (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 + buffer_offset,
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster.c:178:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
              ((char *) iov[n].iov_base) + difference,
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster.c:192:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char error_message[sizeof error->message];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster.c:336:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&msg_len, reply_header_buf, 4);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster.c:360:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (reply_buf, reply_header_buf, reply_header_size);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster.c:927:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (error, &sd->error, sizeof (bson_error_t));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster.c:1151:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[4096];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster.c:1609:4:  [2] (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, tmpstr, *buflen);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster.c:2172:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (error, &sd->error, sizeof *error);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster.c:2197: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.
         memcpy (error, &sd->error, sizeof *error);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster.c:2409:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (error, &sd->error, sizeof *error);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster.c:2435: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.
         memcpy (error, &sd->error, sizeof *error);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster.c:3229:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&msg_len, &buffer->data[pos], 4);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster.c:3450:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&msg_len, buffer.data, 4);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster.c:3514:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&msg_len, rpc.msg.sections[0].payload.bson_document, 4);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cmd.c:1087:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[16];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-collection.c:405:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&cursor->error, &error, sizeof (error));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-collection.c:3133:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&bulk->result.error, &err, sizeof (bson_error_t));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-compression.c:215:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (uncompressed, compressed, compressed_len);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-compression.c:284:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (compressed, uncompressed, uncompressed_len);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-counters.c:41:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char category[24];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-counters.c:42:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char name[32];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-counters.c:43:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char description[64];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-counters.c:136: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 name[32];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-counters.c:163:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char name[32];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-crypt.c:69:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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 (error->message)];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-crypt.c:72:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (error->message, buf, sizeof (buf));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-crypt.c:78:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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 (error->message)];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-crypt.c:81:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (error->message, buf, sizeof (buf));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-crypt.c:432:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&ssl_opts, mongoc_ssl_opt_get_default (), sizeof ssl_opts);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cursor-change-stream.c:155:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&iter_copy, iter, sizeof (bson_iter_t));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cursor.c:579:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (error, &error_local, sizeof (bson_error_t));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cursor.c:731:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[16];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cursor.c:1380:4:  [2] (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->impl, &cursor->impl, sizeof (cursor->impl));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cyrus.c:150:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&sasl->callbacks, callbacks, sizeof callbacks);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cyrus.c:171:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char real_name[BSON_HOST_NAME_MAX + 1];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-error.c:216:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[16];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-gridfs-bucket-file.c:312:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (file->buffer, data, data_len);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-gridfs-bucket-file.c:368: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.
         memcpy (file->buffer + file->in_buffer,
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-gridfs-bucket-file.c:421: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.
         memcpy (
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-gridfs-bucket.c:90:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buf[128];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-gridfs-bucket.c:239:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[512];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-gridfs-bucket.c:380:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[512];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-gridfs-bucket.c:497:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (error, stream_err, sizeof (*stream_err));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-gridfs-file-list.c:66:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&cursor->error, &error, sizeof (bson_error_t));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-gridfs-file-page.c:83:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (dst, src + page->offset, bytes_read);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-gridfs-file-page.c:119:7:  [2] (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/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-gridfs-file-page.c:124:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (page->buf + page->offset, src, bytes_written);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-gridfs-file-page.c:161:7:  [2] (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/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-gridfs.c:101:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buf[128];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-gridfs.c:385:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char keybuf[16];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-gridfs.c:462: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.
         memcpy (error, &files_error, sizeof *error);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-gridfs.c:464: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.
         memcpy (error, &chunks_error, sizeof *error);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-host-list.c:108:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (link, new_host, sizeof (mongoc_host_list_t));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-host-list.c:125:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (tail, src_iter, sizeof (mongoc_host_list_t));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-host-list.h:40:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char host[BSON_HOST_NAME_MAX + 1];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-host-list.h:41:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char host_and_port[BSON_HOST_NAME_MAX + 7];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-http.c:200:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (res->body, ptr + strlen (header_delimiter), res->body_len);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-index.c:83:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (opt, &gMongocIndexOptDefault, sizeof *opt);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-index.c:91:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (opt, &gMongocIndexOptGeoDefault, sizeof *opt);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-index.c:99:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (opt, &gMongocIndexOptWTDefault, sizeof *opt);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-interrupt.c:56:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buf[128] = {0};
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-linux-distro-scanner.c:150:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[LINE_BUFFER_SIZE];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-linux-distro-scanner.c:172:8:  [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).
   f = fopen (path, "r");
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-linux-distro-scanner.c:295:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[LINE_BUFFER_SIZE];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-linux-distro-scanner.c:309:8:  [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).
   f = fopen (path, "r");
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-log.c:140:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char nowstr[32];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-log.c:299: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.
      _b = (char *) _iov[_j].iov_base;
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-matcher-op.c:171:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&op->compare.iter, iter, sizeof *iter);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-openssl.c:303: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.
   unsigned char addr4[sizeof (struct in_addr)];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-openssl.c:304: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.
   unsigned char addr6[sizeof (struct in6_addr)];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-read-prefs.c:83:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[16];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-rpc.c:65:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&__l, rpc->_name, 4);             \
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-rpc.c:105: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 (&__l, rpc->_name[_i].payload.bson_document, 4);           \
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-rpc.c:286:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&__l, rpc->_name, 4);                         \
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-rpc.c:331:16:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
               memcpy (&__l, rpc->_name[_i].payload.bson_document, 4);      \
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-rpc.c:424:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&rpc->_name, buf, 1); \
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-rpc.c:431:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&rpc->_name, buf, 4); \
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-rpc.c:439:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&rpc->_name, buf, 8); \
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-rpc.c:448:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&rpc->_len, buf, 4);                  \
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-rpc.c:482:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&__l, buf, 4);           \
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-rpc.c:514:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&__l, buf, 4);                                                \
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-rpc.c:793:4:  [2] (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, (void *) (&msg_len), 4);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-rpc.c:794:4:  [2] (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 + 4, (void *) (&rpc_le->header.request_id), 4);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-rpc.c:795:4:  [2] (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 + 8, (void *) (&rpc_le->header.response_to), 4);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-rpc.c:796:4:  [2] (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 + 12, (void *) (&rpc_le->compressed.original_opcode), 4);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-rpc.c:1005:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&len, reply->documents, 4);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-scram-private.h:62:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char encoded_nonce[48];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-scram.c:243:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (outbuf + *outbuflen, src, src_len);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-scram.c:417:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (start_key, salt, salt_len);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-scram.c:431:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (intermediate_digest, output, _scram_hash_size (scram));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-scram.c:458: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.
   unsigned char client_proof[MONGOC_SCRAM_HASH_MAX_SIZE];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-scram.c:635:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (*current_val, ptr, *current_val_len);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-scram.c:819:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char encoded_server_signature[MONGOC_SCRAM_B64_HASH_MAX_SIZE];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-scram.c:923:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (*current_val, ptr, *current_val_len);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-secure-channel.c:61:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   file = fopen (filename, "rb");
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-secure-channel.c:316:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   file = fopen (opt->ca_file, "rb");
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-secure-channel.c:409:12:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
   chars = MultiByteToWideChar (CP_ACP, 0, opt->crl_file, -1, NULL, 0);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-secure-channel.c:415:4:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
   MultiByteToWideChar (CP_ACP, 0, opt->crl_file, -1, str, chars);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-secure-channel.c:737:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (inbuf[0].pvBuffer,
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-server-description.c:485:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&sd->error, error, sizeof (bson_error_t));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-server-description.c:781:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&copy->error, &description->error, sizeof copy->error);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-server-monitor.c:275:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&reply_len, buffer.data, 4);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-server-monitor.c:524:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&msg_len, buffer.data, 4);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-server-monitor.c:565:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&msg_len, rpc.msg.sections[0].payload.bson_document, 4);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-server-monitor.c:708:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&server_monitor->apm_callbacks,
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-set.c:198:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (old_set, set->items, sizeof (*old_set) * items_len);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-socket.c:1378:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (iov, in_iov, sizeof (*iov) * iovcnt);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-socket.c:1430:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
         iov[cur].iov_base = ((char *) iov[cur].iov_base) + sent;
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-socket.c:1484:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char host[BSON_HOST_NAME_MAX + 1];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-socket.c:1508:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[1];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-socket.c:1552:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char tmp[256];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-ssl.c:141: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.
         memcpy (
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-buffered.c:252:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (iov[i].iov_base, buffered->buffer.data + off, iov[i].iov_len);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-file.c:241:9:  [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).
   fd = open (path, flags, mode);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-socket.c:182:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      iov[cur].iov_base = ((char *) iov[cur].iov_base) + nread;
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-libressl.c:172:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[MONGOC_STREAM_TLS_BUFFER_SIZE];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-libressl.c:219:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (buf_tail, (char *) iov[i].iov_base + iov_pos, bytes);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-libressl.c:219:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            memcpy (buf_tail, (char *) iov[i].iov_base + iov_pos, bytes);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-libressl.c:234:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            to_write = (char *) iov[i].iov_base + iov_pos;
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-libressl.c:323:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                              (char *) iov[i].iov_base + iov_pos,
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-libressl.c:500:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&tls->ssl_opts, opt, sizeof tls->ssl_opts);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-openssl.c:266:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[MONGOC_STREAM_TLS_OPENSSL_BUFFER_SIZE];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-openssl.c:313:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (buf_tail, (char *) iov[i].iov_base + iov_pos, bytes);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-openssl.c:313:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            memcpy (buf_tail, (char *) iov[i].iov_base + iov_pos, bytes);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-openssl.c:328:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            to_write = (char *) iov[i].iov_base + iov_pos;
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-openssl.c:442:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                              (char *) iov[i].iov_base + iov_pos,
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-openssl.c:818:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&tls->ssl_opts, opt, sizeof tls->ssl_opts);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-secure-channel.c:306:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (outbuf[1].pvBuffer, buf, buf_len);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-secure-channel.c:345:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[MONGOC_STREAM_TLS_BUFFER_SIZE];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-secure-channel.c:396:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (buf_tail, (char *) iov[i].iov_base + iov_pos, bytes);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-secure-channel.c:396:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            memcpy (buf_tail, (char *) iov[i].iov_base + iov_pos, bytes);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-secure-channel.c:411:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            to_write = (char *) iov[i].iov_base + iov_pos;
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-secure-channel.c:471:4:  [2] (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, secure_channel->decdata_buffer, s);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-secure-channel.c:548:16:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
               memcpy (secure_channel->decdata_buffer +
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-secure-channel.c:733: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.
            (char *) iov[i].iov_base + iov_pos,
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-secure-channel.c:958:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&tls->ssl_opts, opt, sizeof tls->ssl_opts);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-secure-transport.c:172:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[MONGOC_STREAM_TLS_BUFFER_SIZE];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-secure-transport.c:219:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (buf_tail, (char *) iov[i].iov_base + iov_pos, bytes);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-secure-transport.c:219:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            memcpy (buf_tail, (char *) iov[i].iov_base + iov_pos, bytes);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-secure-transport.c:234:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            to_write = (char *) iov[i].iov_base + iov_pos;
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-secure-transport.c:335: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.
                                    (char *) iov[i].iov_base + iov_pos,
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-secure-transport.c:699:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&tls->ssl_opts, opt, sizeof tls->ssl_opts);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream.c:446:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
         char buf[128];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-topology-description.c:147:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&dst->compatibility_error,
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-topology-description.c:152:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&dst->apm_callbacks,
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-topology-scanner.c:227:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[16];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-topology-scanner.c:425:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&node->host, host, sizeof (*host));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-topology-scanner.c:788:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char portstr[8];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-topology-scanner.c:882: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 buf[128];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-topology-scanner.c:1167:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (error, &ts->error, sizeof (bson_error_t));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-topology.c:469:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&topology->description.apm_callbacks,
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-topology.c:472:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&topology->scanner->apm_callbacks,
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-topology.c:813: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.
         memcpy (error, &td->compatibility_error, sizeof (bson_error_t));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-topology.c:1216:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (host, &sd->host, sizeof (mongoc_host_list_t));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-topology.c:1547:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[16];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-uri.c:43:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char srv[BSON_HOST_NAME_MAX + 1];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-util.c:68:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char digest_str[33];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-util.c:444:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[16];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-util.c:579:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buf[1024];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-write-command.c:531:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&len,
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-write-command.c:675:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[16];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-write-command.c:751:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[16];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-write-command.c:1145:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char key[12];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-write-command.c:1177:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char key[12];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-write-command.c:1306: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 str[16];
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-write-command.c:1515:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (error, &result->error, sizeof *error);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.c:100:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   int fd = open ("/dev/urandom", O_RDONLY);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.c:164:30:  [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).
            suite->outfile = fopen (filename, "w");
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.c:462:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[4096];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.c:501:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
         fd = open ("/dev/null", O_WRONLY);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.c:550:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char name[MAX_TEST_NAME_LENGTH];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.c:890:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char name[128];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.h:80:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#define bson_open open
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.h:389:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
         char oid_a[25];                                    \
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.h:390:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
         char oid_b[25];                                    \
data/mongo-c-driver-1.17.2/src/libmongoc/tests/json-test-monitoring.c:90:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[16];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/json-test-monitoring.c:148:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[16];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/json-test-monitoring.c:193:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[16];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/json-test-monitoring.c:258:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&ctx->primary_host, &sd->host, sizeof (mongoc_host_list_t));
data/mongo-c-driver-1.17.2/src/libmongoc/tests/json-test-operations.c:324:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
               char key[12];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/json-test-operations.c:1380:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char key[12];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/json-test-operations.c:1884:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[512];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/json-test.c:596:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
collect_tests_from_dir (char (*paths)[MAX_TEST_NAME_LENGTH] /* OUT */,
data/mongo-c-driver-1.17.2/src/libmongoc/tests/json-test.c:606:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char child_path[MAX_TEST_NAME_LENGTH];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/json-test.c:643:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char child_path[MAX_TEST_NAME_LENGTH];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/json-test.c:700:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   file = fopen (filename, "rb");
data/mongo-c-driver-1.17.2/src/libmongoc/tests/json-test.c:1789:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char test_paths[MAX_NUM_TESTS][MAX_TEST_NAME_LENGTH];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/json-test.h:52:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
collect_tests_from_dir (char (*paths)[MAX_TEST_NAME_LENGTH] /* OUT */,
data/mongo-c-driver-1.17.2/src/libmongoc/tests/mock_server/mock-server.c:296:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&server->ssl_opts, opts, sizeof *opts);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/mock_server/mock-server.c:1733:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&msg_len, buffer.data, 4);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/mock_server/mock-server.c:1925:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (ptr, bson_get_data (&docs[i]), docs[i].len);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/mock_server/request.c:71:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (data, buffer->data, (size_t) msg_len);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/mock_server/request.c:790:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&len, rpc->query.query, 4);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/mock_server/request.c:815:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&len, rpc->query.fields, 4);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/mock_server/request.c:960:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&len, rpc->update.selector, 4);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/mock_server/request.c:972:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&len, rpc->update.update, 4);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/mock_server/request.c:1011:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&len, rpc->delete_.selector, 4);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/ssl-test.c:42:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[4 * NUM_IOVECS];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/ssl-test.c:138:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&len, iov.iov_base, r);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/ssl-test.c:174:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buf[1024];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-conveniences.c:87:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (value->value.v_doc.data, bson_get_data (doc), (size_t) doc->len);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-conveniences.c:1008:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (iter_out, &descendent, sizeof (bson_iter_t));
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-conveniences.c:1018:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (iter_out, &iter, sizeof (bson_iter_t));
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-conveniences.h:125:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char errmsg[1000];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-conveniences.h:134:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char path[1000];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-libmongoc.c:1691:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&gSSLOptions, mongoc_ssl_opt_get_default (), sizeof gSSLOptions);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-libmongoc.c:2419:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char MONGOC_TEST_UNIQUE[32];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-libmongoc.c:2438:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char exception_string[128];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-libmongoc.c:2446:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char address_string[32];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-async.c:259: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 buf[11];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-background-monitoring.c:80:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char nowstr[32];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-change-stream.c:2590:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char resolved[PATH_MAX];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-client-session.c:2715:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char resolved[PATH_MAX];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-client-side-encryption.c:1945:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char resolved[PATH_MAX];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-client.c:532:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (client->cluster.scram_cache->client_key, "foo", 3);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-client.c:3009:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char big_string[BUFFER_SIZE];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-collection-find.c:72:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[16];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-collection-find.c:189:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[16];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-collection.c:955:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[16];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-command-monitoring.c:106:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char resolved[PATH_MAX];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-command-monitoring.c:759:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char db[100];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-command-monitoring.c:760:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char cmd_name[100];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-connection-uri.c:358:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char resolved[PATH_MAX];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-counters.c:354:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[16] = {0};
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-crud.c:36:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char resolved[PATH_MAX];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-cyrus.c:73:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char real_name[BSON_HOST_NAME_MAX + 1] = {'\0'};
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-dns.c:316:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char resolved[PATH_MAX];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-gridfs-bucket.c:100:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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] = {0};
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-gridfs-bucket.c:607:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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] = {0};
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-gridfs-bucket.c:857:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char resolved[PATH_MAX];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-gridfs-file-page.c:98:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-gridfs.c:21:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char n[48];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-gridfs.c:223:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char name[32];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-gridfs.c:264:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-gridfs.c:287:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-gridfs.c:654:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[10], buf2[10];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-gridfs.c:748:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buf3[1000];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-gridfs.c:749:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char expected[1000] = {0};
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-gridfs.c:862:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char read_buf[2000];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-gridfs.c:934:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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] = {'h', 'i'};
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-gridfs.c:991:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[4096];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-gridfs.c:1044:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[16 * 1024]; /* nothing special about 16k, just a buffer */
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-gridfs.c:1170:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[16 * 1024]; /* nothing special about 16k, just a buffer */
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-gridfs.c:1238:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-gssapi.c:32:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buf[1024];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-handshake.c:50:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char long_string[MONGOC_HANDSHAKE_APPNAME_MAX + 2];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-handshake.c:177:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char big_string[HANDSHAKE_MAX_SIZE];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-handshake.c:385:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char big_string[BUFFER_SIZE];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-handshake.c:458:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char big_string[HANDSHAKE_MAX_SIZE];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-handshake.c:552:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char big_string[HANDSHAKE_MAX_SIZE];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-handshake.c:628:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char byte_str[3];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-max-staleness.c:340:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char resolved[PATH_MAX];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-read-write-concern.c:275:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char resolved[PATH_MAX];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-retryable-reads.c:286:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char resolved[PATH_MAX];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-retryable-writes.c:563:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char resolved[PATH_MAX];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-rpc.c:18:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char real_filename[256];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-rpc.c:27:9:  [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).
   fd = open (real_filename, O_RDONLY);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-rpc.c:580:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&len, rpc.update.selector, 4);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-rpc.c:589:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (&len, rpc.update.update, 4);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-rpc.c:648:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (matching_opcode, full_opcode, 16);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-rpc.c:649:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy (matching_opcode + 16, no_header, 32);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-scram.c:70:4:  [2] (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, server_response, strlen (server_response) + 1);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-sdam-monitoring.c:73:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[16];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-sdam-monitoring.c:135:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[16];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-sdam-monitoring.c:538:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char resolved[PATH_MAX];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-sdam.c:198:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
               char expected_oid_str[25];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-sdam.c:199:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
               char actual_oid_str[25];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-sdam.c:447:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char resolved[PATH_MAX];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-server-selection.c:56:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char resolved[PATH_MAX];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-socket.c:41:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[5];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-socket.c:80:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
   strcpy (buf, "pong");
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-socket.c:108:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[5];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-socket.c:137:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
   strcpy (buf, "ping");
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-stream.c:17:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[16236];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-stream.c:31: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 msg[100];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-stream.c:53:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[16236];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-stream.c:67: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 msg[100];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-stream.c:125:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char bufa[20];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-stream.c:126:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char bufb[80];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-topology.c:288:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *uri_strings[3] = {"mongodb://a",
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-transactions.c:1168:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char resolved[PATH_MAX];
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-uri.c:1617:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char url_buffer[2048];
data/mongo-c-driver-1.17.2/src/tools/mongoc-stat.c:37:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char category[24];
data/mongo-c-driver-1.17.2/src/tools/mongoc-stat.c:38:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char name[32];
data/mongo-c-driver-1.17.2/src/tools/mongoc-stat.c:39:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char description[64];
data/mongo-c-driver-1.17.2/src/tools/mongoc-stat.c:92:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char name[32];
data/mongo-c-driver-1.17.2/src/kms-message/src/kms_request_str.c:74: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).
   actual_len = len < 0 ? strlen (chars) : (size_t) len;
data/mongo-c-driver-1.17.2/src/kms-message/src/kms_request_str.c:100: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).
   s->len = len < 0 ? strlen (chars) : (size_t) len;
data/mongo-c-driver-1.17.2/src/kms-message/src/kms_request_str.c:175:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   size_t actual_len = len < 0 ? strlen (chars) : (size_t) len;
data/mongo-c-driver-1.17.2/src/kms-message/src/kms_request_str.c:220: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).
      len = strlen (appended);
data/mongo-c-driver-1.17.2/src/kms-message/src/kms_response_parser.c:97:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy (num_str, str + start, end - start);
data/mongo-c-driver-1.17.2/src/kms-message/test/test_kms_request.c:90:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   size_t str_len = strlen (str);
data/mongo-c-driver-1.17.2/src/kms-message/test/test_kms_request.c:91:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   size_t suf_len = strlen (suffix);
data/mongo-c-driver-1.17.2/src/kms-message/test/test_kms_request.c:104: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).
   const char *p = str + strlen (str);
data/mongo-c-driver-1.17.2/src/kms-message/test/test_kms_request.c:157:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      int c = fgetc (stream);
data/mongo-c-driver-1.17.2/src/kms-message/test/test_kms_request.c:277: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).
      kms_strndup (line + strlen (method) + 1,
data/mongo-c-driver-1.17.2/src/kms-message/test/test_kms_request.c:278:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                   line_len - strlen (method) - 1 - strlen (" HTTP/1.1\n"));
data/mongo-c-driver-1.17.2/src/kms-message/test/test_kms_request.c:278:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                   line_len - strlen (method) - 1 - strlen (" HTTP/1.1\n"));
data/mongo-c-driver-1.17.2/src/kms-message/test/test_kms_request.c:329:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   size_t len = strlen (x) > strlen (y) ? strlen (x) : strlen (y);
data/mongo-c-driver-1.17.2/src/kms-message/test/test_kms_request.c:329:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   size_t len = strlen (x) > strlen (y) ? strlen (x) : strlen (y);
data/mongo-c-driver-1.17.2/src/kms-message/test/test_kms_request.c:329:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   size_t len = strlen (x) > strlen (y) ? strlen (x) : strlen (y);
data/mongo-c-driver-1.17.2/src/kms-message/test/test_kms_request.c:329:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   size_t len = strlen (x) > strlen (y) ? strlen (x) : strlen (y);
data/mongo-c-driver-1.17.2/src/kms-message/test/test_kms_request.c:338:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (strlen (x) > strlen (y)) {
data/mongo-c-driver-1.17.2/src/kms-message/test/test_kms_request.c:338:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (strlen (x) > strlen (y)) {
data/mongo-c-driver-1.17.2/src/kms-message/test/test_kms_request.c:339:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      return strlen (y) + 1;
data/mongo-c-driver-1.17.2/src/kms-message/test/test_kms_request.c:342:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (strlen (y) > strlen (x)) {
data/mongo-c-driver-1.17.2/src/kms-message/test/test_kms_request.c:342:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (strlen (y) > strlen (x)) {
data/mongo-c-driver-1.17.2/src/kms-message/test/test_kms_request.c:343:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      return strlen (x) + 1;
data/mongo-c-driver-1.17.2/src/kms-message/test/test_kms_request.c:360: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).
               strlen (expect),
data/mongo-c-driver-1.17.2/src/kms-message/test/test_kms_request.c:362: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).
               strlen (actual),
data/mongo-c-driver-1.17.2/src/kms-message/test/test_kms_request.c:593:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   kms_request_append_payload (request, payload, strlen (payload));
data/mongo-c-driver-1.17.2/src/kms-message/test/test_kms_request.c:719:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      (uint8_t *) plaintext, strlen (plaintext), "alias/1", NULL);
data/mongo-c-driver-1.17.2/src/kms-message/test/windows/dirent.h:372:17:  [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).
            n = wcslen(dirname);
data/mongo-c-driver-1.17.2/src/libbson/examples/bson-metrics.c:121:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   s->key_size_tally += strlen (key); /* TODO - filter out array keys(?) */
data/mongo-c-driver-1.17.2/src/libbson/examples/bson-streaming-reader.c:67: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).
      getaddrinfo ((!hostname || !strlen (hostname)) ? DEFAULT_HOST : hostname,
data/mongo-c-driver-1.17.2/src/libbson/examples/bson-streaming-reader.c:68:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                   (!port || !strlen (port)) ? DEFAULT_PORT : port,
data/mongo-c-driver-1.17.2/src/libbson/examples/bson-streaming-reader.c:150:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         port = (char *) malloc (strlen (optarg) + 1);
data/mongo-c-driver-1.17.2/src/libbson/examples/bson-streaming-reader.c:155:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         hostname = (char *) malloc (strlen (optarg) + 1);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-context.c:290: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).
   hostname_chars_left = strlen (hostname);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-iter.c:297: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).
      keylen = (int) strlen (key);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-iter.c:410: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).
      sublen = strlen (dotkey);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-iter.c:1905:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (*key && !bson_utf8_validate (key, strlen (key), false)) {
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-iter.c:2012:42:  [1] (buffer) strlen:
  Does not handle 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 (!bson_utf8_validate (regex, strlen (regex), true)) {
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-iter.c:2144: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).
          bson_utf8_validate (key, strlen (key), false)) {
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-json.c:379: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).
   (len == strlen (_key) && strncmp ((const char *) val, (_key), len) == 0)    \
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-json.c:1095: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).
#define IS_KEY(k) (len == strlen (k) && (0 == memcmp (k, key, len)))
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-json.c:2258: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).
      len = (ssize_t) strlen ((const char *) data);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-json.c:2296: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).
      len = strlen (data);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-json.c:2353:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      ret = read (fd->fd, buf, len);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-reader.c:260:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      ret = read (fd->fd, buf, len);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-string.c:66: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).
   ret->len = str ? (int) strlen (str) : 0;
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-string.c:132:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   len = (uint32_t) strlen (str);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-string.c:328:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   len = (long) strlen (str);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-string.c:556:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy (dst, src, size);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson-utf8.c:277: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).
      utf8_len = strlen (utf8);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:464: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).
      key_length = (int) strlen (key);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:750: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).
      key_length = (int) strlen (key);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:825: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).
      key_length = (int) strlen (key);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:903: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).
      key_length = (int) strlen (key);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:957: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).
      key_length = (int) strlen (key);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:960:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   length = (int) strlen (javascript) + 1;
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:1018: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).
      key_length = (int) strlen (key);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:1021: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).
   js_length = (int) strlen (javascript) + 1;
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:1082: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).
      key_length = (int) strlen (key);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:1085:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   length = (int) strlen (collection) + 1;
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:1141: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).
      key_length = (int) strlen (key);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:1167: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).
      key_length = (int) strlen (key);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:1198: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).
      key_length = (int) strlen (key);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:1227: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).
      key_length = (int) strlen (key);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:1260: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).
      key_length = (int) strlen (key);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:1446: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).
      key_length = (int) strlen (key);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:1463: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).
      key_length = (int) strlen (key);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:1480: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).
      key_length = (int) strlen (key);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:1501: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).
      key_length = (int) strlen (key);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:1580: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).
      key_length = (int) strlen (key);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:1584: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).
      regex_length = (int) strlen (regex);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:1637: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).
      key_length = (int) strlen (key);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:1641: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).
      length = (int) strlen (value);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:1679: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).
      key_length = (int) strlen (key);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:1683: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).
      length = (int) strlen (value);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:1736: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).
      key_length = (int) strlen (key);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:1780: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).
      key_length = (int) strlen (key);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.c:1826: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).
      key_length = (int) strlen (key);
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.h:103: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).
   bson_append_array (b, key, (int) strlen (key), val)
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.h:106:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   bson_append_array_begin (b, key, (int) strlen (key), child)
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.h:109:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   bson_append_binary (b, key, (int) strlen (key), subtype, val, len)
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.h:112: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).
   bson_append_bool (b, key, (int) strlen (key), val)
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.h:115: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).
   bson_append_code (b, key, (int) strlen (key), val)
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.h:118:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   bson_append_code_with_scope (b, key, (int) strlen (key), val, scope)
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.h:121:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   bson_append_dbpointer (b, key, (int) strlen (key), coll, oid)
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.h:124:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   bson_append_document_begin (b, key, (int) strlen (key), child)
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.h:127:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   bson_append_double (b, key, (int) strlen (key), val)
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.h:130: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).
   bson_append_document (b, key, (int) strlen (key), val)
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.h:133: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).
   bson_append_int32 (b, key, (int) strlen (key), val)
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.h:136: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).
   bson_append_int64 (b, key, (int) strlen (key), val)
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.h:139:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   bson_append_minkey (b, key, (int) strlen (key))
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.h:142:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   bson_append_decimal128 (b, key, (int) strlen (key), val)
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.h:145:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   bson_append_maxkey (b, key, (int) strlen (key))
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.h:147:66:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define BSON_APPEND_NULL(b, key) bson_append_null (b, key, (int) strlen (key))
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.h:150: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).
   bson_append_oid (b, key, (int) strlen (key), val)
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.h:153: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).
   bson_append_regex (b, key, (int) strlen (key), val, opt)
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.h:156: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).
   bson_append_utf8 (b, key, (int) strlen (key), val, (int) strlen (val))
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.h:156:61:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   bson_append_utf8 (b, key, (int) strlen (key), val, (int) strlen (val))
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.h:159:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   bson_append_symbol (b, key, (int) strlen (key), val, (int) strlen (val))
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.h:159:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   bson_append_symbol (b, key, (int) strlen (key), val, (int) strlen (val))
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.h:162:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   bson_append_time_t (b, key, (int) strlen (key), val)
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.h:165:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   bson_append_timeval (b, key, (int) strlen (key), val)
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.h:168:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   bson_append_date_time (b, key, (int) strlen (key), val)
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.h:171:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   bson_append_timestamp (b, key, (int) strlen (key), val, inc)
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.h:174:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   bson_append_undefined (b, key, (int) strlen (key))
data/mongo-c-driver-1.17.2/src/libbson/src/bson/bson.h:177: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).
   bson_append_value (b, key, (int) strlen (key), (val))
data/mongo-c-driver-1.17.2/src/libbson/src/jsonsl/jsonsl.c:804:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        input_len = strlen(in);
data/mongo-c-driver-1.17.2/src/libbson/src/jsonsl/jsonsl.c:867: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).
        component->len = strlen(component->pstr);
data/mongo-c-driver-1.17.2/src/libbson/src/jsonsl/jsonsl.c:916:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    my_copy = (char *)malloc(strlen(path) + 1);
data/mongo-c-driver-1.17.2/src/libbson/src/jsonsl/jsonsl.c:946:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    origlen = strlen(path) + 1;
data/mongo-c-driver-1.17.2/src/libbson/tests/test-b64.c:91:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      COMMON_PREFIX (bson_b64_pton_calculate_target_size (strlen (input)));
data/mongo-c-driver-1.17.2/src/libbson/tests/test-bson.c:2318: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).
      ASSERT_WITH_MSG (strlen (bson_iter_key (&iter)) ==
data/mongo-c-driver-1.17.2/src/libbson/tests/test-bson.c:2323:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                       (int) strlen (bson_iter_key (&iter)),
data/mongo-c-driver-1.17.2/src/libbson/tests/test-iso8601.c:14: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 (!_bson_iso8601_date_parse (str, strlen (str), &v, &error)) {
data/mongo-c-driver-1.17.2/src/libbson/tests/test-iso8601.c:59:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (_bson_iso8601_date_parse (str, strlen (str), &v, &error)) {
data/mongo-c-driver-1.17.2/src/libbson/tests/test-json.c:13:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   size_t str_size = strlen ((char *) string);
data/mongo-c-driver-1.17.2/src/libbson/tests/test-json.c:879:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   bson_json_data_reader_ingest (reader, (uint8_t *) json, strlen (json));
data/mongo-c-driver-1.17.2/src/libbson/tests/test-json.c:1262:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   bson = bson_new_from_json ((const uint8_t *) json, strlen (json), &error);
data/mongo-c-driver-1.17.2/src/libbson/tests/test-json.c:2701:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   bson_t *bs = bson_new_from_json ((const uint8_t *) sd, strlen (sd), &err);
data/mongo-c-driver-1.17.2/src/libbson/tests/test-json.c:2732:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   char *to_ret = copy = bson_malloc (strlen (json) + 1);
data/mongo-c-driver-1.17.2/src/libbson/tests/test-json.c:2758:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   bson_json_data_reader_ingest (reader, (uint8_t *) json, strlen (json));
data/mongo-c-driver-1.17.2/src/libbson/tests/test-string.c:182:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   ASSERT_CMPINT ((int) strlen (s), ==, (int) bson_strnlen (s, 100));
data/mongo-c-driver-1.17.2/src/libbson/tests/test-utf8.c:239:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (bson_utf8_validate (tests[i], strlen (tests[i]), false)) {
data/mongo-c-driver-1.17.2/src/libbson/tests/test-utf8.c:246:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (!bson_utf8_validate (valid_tests[i], strlen (valid_tests[i]), true)) {
data/mongo-c-driver-1.17.2/src/libmongoc/examples/client-side-encryption-auto-decryption.c:177:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   to_encrypt.value.v_utf8.len = strlen (to_encrypt.value.v_utf8.str);
data/mongo-c-driver-1.17.2/src/libmongoc/examples/client-side-encryption-explicit.c:148:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   to_encrypt.value.v_utf8.len = strlen (to_encrypt.value.v_utf8.str);
data/mongo-c-driver-1.17.2/src/libmongoc/examples/client-side-encryption-helpers.c:10:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   hex_len = strlen (hex);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-change-stream.c:114:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         command, "aggregate", 9, stream->coll, (int) strlen (stream->coll));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-client-side-encryption.c:953:4:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
   umask (0);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster-aws.c:204:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   bool has_access_key_id = access_key_id && strlen (access_key_id) != 0;
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster-aws.c:206: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).
      secret_access_key && strlen (secret_access_key) != 0;
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster-aws.c:207:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   bool has_session_token = session_token && strlen (session_token) != 0;
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster-aws.c:317:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (!relative_ecs_uri || strlen (relative_ecs_uri) == 0) {
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster-aws.c:335:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      (const uint8_t *) http_response_body, strlen (http_response_body), error);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster-aws.c:406:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (0 == strlen (token)) {
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster-aws.c:430:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (0 == strlen (role_name)) {
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster-aws.c:454:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      (const uint8_t *) http_response_body, strlen (http_response_body), error);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster-aws.c:619:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (strlen (ptr_prev + 1) == 0) {
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster-sspi.c:71: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).
   service_ascii_len = strlen (service_ascii);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster-sspi.c:85: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).
      tmp_creds_len = strlen (state->sasl.pass);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster-sspi.c:99: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).
      tmp_creds_len = strlen (state->sasl.user);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster-sspi.c:184: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).
         size_t tmp_creds_len = strlen (state->sasl.user);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster-sspi.c:211:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                           (uint32_t) strlen (state->response));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster-sspi.c:218: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).
               (uint32_t) strlen (state->response));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster.c:1176:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   len = strlen (username) + strlen (password) + 2;
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster.c:1176:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   len = strlen (username) + strlen (password) + 2;
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cluster.c:3391:42:  [1] (buffer) strlen:
  Does not handle 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 (cmd->payload_identifier) + 1 +
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-collection.c:193: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).
   col->collectionlen = (uint32_t) strlen (col->collection);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-collection.c:194: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).
   col->nslen = (uint32_t) strlen (col->ns);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-collection.c:3001:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      collection->collectionlen = (int) strlen (collection->collection);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-collection.c:3005: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).
      collection->nslen = (int) strlen (collection->ns);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cursor.c:360:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         cursor, db_and_collection, (uint32_t) strlen (db_and_collection));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cyrus.c:88: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).
                       ? (unsigned) strlen (sasl->credentials.pass)
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-cyrus.c:128: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).
                       ? (unsigned) strlen (sasl->credentials.user)
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-gridfs-bucket.c:102:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (strlen (gridfs_opts.bucketName) + strlen (".chunks") + 1 >
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-gridfs-bucket.c:102:42:  [1] (buffer) strlen:
  Does not handle 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 (gridfs_opts.bucketName) + strlen (".chunks") + 1 >
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-gridfs-bucket.c:109:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                      (int) (sizeof (buf) - (strlen (".chunks") + 1)));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-gridfs-bucket.c:175:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   len = strlen (filename);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-gridfs.c:117: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).
   prefix_len = (uint32_t) strlen (prefix);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-handshake.c:416:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (strlen (MONGOC_EVALUATE_STR (MONGOC_USER_SET_CFLAGS)) > 0) {
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-handshake.c:421:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (strlen (MONGOC_EVALUATE_STR (MONGOC_USER_SET_LDFLAGS)) > 0) {
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-handshake.c:476:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            (int) strlen (HANDSHAKE_PLATFORM_FIELD) +
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-handshake.c:491: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).
       combined_platform->len + strlen (compiler_info) + 1) {
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-handshake.c:494:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (max_platform_str_size > combined_platform->len + strlen (flags) + 1) {
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-handshake.c:582: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).
   const int delim_len = (int) strlen (" / ");
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-handshake.c:593:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   space_for_suffix = max_len - (int) strlen (prefix) - delim_len;
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-handshake.c:601:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   BSON_ASSERT (strlen (*s) <= max_len);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-handshake.c:633:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      HANDSHAKE_MAX_SIZE - (int) strlen (_mongoc_handshake_get ()->platform);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-handshake.c:669:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   return strlen (appname) <= MONGOC_HANDSHAKE_APPNAME_MAX;
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-host-list.c:324:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   size_t host_len = strlen (host);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-http.c:197:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      http_response_buf.len - res->headers_len - strlen (header_delimiter);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-http.c:200: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).
   memcpy (res->body, ptr + strlen (header_delimiter), res->body_len);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-interrupt.c:39:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         mongoc_socket_t *read;
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-interrupt.c:115:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   if (!interrupt->impl.socket_pair.read) {
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-interrupt.c:121:61:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   ret = mongoc_socket_connect (interrupt->impl.socket_pair.read,
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-interrupt.c:127:60:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          mongoc_socket_errno (interrupt->impl.socket_pair.read))) {
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-interrupt.c:129:68:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                  mongoc_socket_errno (interrupt->impl.socket_pair.read));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-interrupt.c:164:55:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   mongoc_socket_destroy (interrupt->impl.socket_pair.read);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-interrupt.c:176:48:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                   interrupt->impl.socket_pair.read, buf, sizeof (buf), 0, 0)) {
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-interrupt.c:183:74:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        mongoc_socket_errno (interrupt->impl.socket_pair.read));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-interrupt.c:276:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if (read (interrupt->impl.pipe_fds[0], &c, 1) == -1) {
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-linux-distro-scanner.c:56:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   len = strlen (buffer);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-linux-distro-scanner.c:109:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   value = equal_sign + strlen (needle);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-linux-distro-scanner.c:110: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).
   value_len = strlen (value);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-linux-distro-scanner.c:160: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).
      name_key_len = strlen (name_key);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-linux-distro-scanner.c:164:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      version_key_len = strlen (version_key);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-linux-distro-scanner.c:259: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).
      line_len = strlen (line);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-linux-distro-scanner.c:275:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   version_string = needle_loc + strlen (needle);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-openssl.c:113:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   int pass_len = (int) strlen (pass);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-opts-helpers.c:67: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).
      bson, key, strlen (key), timestamp->timestamp, timestamp->increment);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-rpc.c:59: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).
   iov.iov_len = strlen (rpc->_name) + 1;    \
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-rpc.c:120: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).
               strlen (rpc->_name[_i].payload.sequence.identifier) + 1;       \
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-rpc.c:343: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).
                      strlen (rpc->_name[_i].payload.sequence.identifier) - \
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-rpc.c:522:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         section_buf += strlen ((const char *) section_buf) + 1;            \
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-scram.c:96:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      bson_zero_free (cache->hashed_password, strlen (cache->hashed_password));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-scram.c:148: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).
      bson_zero_free (scram->pass, strlen (scram->pass));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-scram.c:184: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).
      bson_zero_free (scram->pass, strlen (scram->pass));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-scram.c:188:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      bson_zero_free (scram->hashed_password, strlen (scram->hashed_password));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-scram.c:236: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).
      src_len = (int32_t) strlen (src);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-scram.c:468: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).
                          (int) strlen (MONGOC_SCRAM_CLIENT_KEY),
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-scram.c:558: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).
      bson_zero_free (tmp, strlen (tmp));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-scram.c:564:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         _mongoc_sasl_prep (scram->pass, (int) strlen (scram->pass), error);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-scram.c:771:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                   (uint32_t) strlen (hashed_password),
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-scram.c:807: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).
      bson_zero_free (hashed_password, strlen (hashed_password));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-scram.c:829: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).
                          strlen (MONGOC_SCRAM_SERVER_KEY),
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-secure-channel.c:97: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).
   public_blob.cbData = (DWORD) strlen (pem_public);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-secure-transport.c:250:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      kCFAllocatorDefault, (const UInt8 *) filename, strlen (filename), false);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-sspi.c:449:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                strlen (user));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-openssl-bio.c:368:62:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   return mongoc_stream_tls_openssl_bio_write (b, str, (int) strlen (str));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-stream-tls-secure-transport.c:742:66:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      SSLSetPeerDomainName (secure_transport->ssl_ctx_ref, host, strlen (host));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-uri.c:138:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   size_t len = strlen (s);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-uri.c:165:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (strlen (host) < strlen (service_root)) {
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-uri.c:165: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).
   if (strlen (host) < strlen (service_root)) {
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-uri.c:296:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   size_t str_len = strlen (str);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-uri.c:297:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   size_t suffix_len = strlen (suffix);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-uri.c:557: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).
      *end = str + strlen (str);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-uri.c:640:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   } else if (strlen (str)) {
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-uri.c:813:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (errno || endptr < value + strlen (value)) {
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-uri.c:1061: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).
         if (0 < strlen (value)) {
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-uri.c:1074: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).
         if (0 < strlen (value)) {
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-uri.c:1099: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).
         if (0 < strlen (value)) {
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-uri.c:1504:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (!bson_utf8_validate (str, strlen (str), false /* allow_null */)) {
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-uri.c:1520:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      str += strlen (before_slash);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-uri.c:1632:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   len = strlen (value);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-uri.c:1959:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   len = strlen (username);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-uri.c:1989:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   len = strlen (password);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-uri.c:2018:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   len = strlen (database);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-uri.c:2075:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   len = strlen (value);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-uri.c:2102: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).
   if (!bson_utf8_validate (value, strlen (value), false)) {
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-uri.c:2125:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (value && !bson_utf8_validate (value, strlen (value), false)) {
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-uri.c:2217:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         bson_zero_free (uri->password, strlen (uri->password));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-uri.c:2293:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   len = strlen (escaped_string);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-uri.c:3020:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   len = strlen (value);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-util.c:73:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      &md5, (const uint8_t *) input, (uint32_t) strlen (input)));
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-util.c:101:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
   usleep ((useconds_t) usec);
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-util.c:589:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (getenv (name) && strlen (getenv (name))) {
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-write-command-legacy.c:286:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   size = (uint32_t) (sizeof (mongoc_rpc_header_t) + 4 + strlen (database) + 1 +
data/mongo-c-driver-1.17.2/src/libmongoc/src/mongoc/mongoc-write-command-legacy.c:287: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).
                      strlen (collection) + 1);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.c:104:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      n_read = read (fd, &seed, 4);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.c:518:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      while ((nread = read (pipefd[0], buf, sizeof (buf) - 1)) > 0) {
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.c:891: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).
   bool star = strlen (testname) && testname[strlen (testname) - 1] == '*';
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.c:891:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   bool star = strlen (testname) && testname[strlen (testname) - 1] == '*';
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.c:897:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      return (0 == strncmp (name, testname, strlen (testname) - 1));
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.h:81:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define bson_read read
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.h:356:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      char *__aa = bson_malloc0 (strlen (__a) + 1);            \
data/mongo-c-driver-1.17.2/src/libmongoc/tests/TestSuite.h:357:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      char *__bb = bson_malloc0 (strlen (__b) + 1);            \
data/mongo-c-driver-1.17.2/src/libmongoc/tests/json-test-monitoring.c:55: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).
   s_len = strlen (s);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/json-test-monitoring.c:56:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   suffix_len = strlen (suffix);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/json-test-monitoring.c:351:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
             strlen (bson_iter_utf8 (doc_iter, NULL)) == 0) {
data/mongo-c-driver-1.17.2/src/libmongoc/tests/json-test.c:567:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   int path_len = (int) strlen (parent_path);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/json-test.c:568:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   int name_len = (int) strlen (child_name);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/json-test.c:574:4:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
   strcat (dst, "/");
data/mongo-c-driver-1.17.2/src/libmongoc/tests/json-test.c:1805: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).
      skip_json += strlen ("/json");
data/mongo-c-driver-1.17.2/src/libmongoc/tests/mock_server/request.c:718:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   size_t len = strlen (ns);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/mock_server/request.c:720:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   size_t cmd_len = strlen (cmd);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/mock_server/request.c:1114: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).
         id_len = (int32_t) strlen (identifier);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-conveniences.c:817:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (strlen (ctx->path) > 0) {
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-conveniences.c:967:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (strlen (derived.errmsg) > 0) {
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-libmongoc.c:727: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).
      if (port_str && strlen (port_str)) {
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-libmongoc.c:899:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      "mongodb://%s:%s@%s", user, password, uri_str + strlen ("mongodb://"));
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-libmongoc.c:1175: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).
   after_scheme = uri_string->str + strlen ("mongodb://");
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-aws.c:191: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).
#define WITH_LEN(s) s, strlen (s)
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-aws.c:257:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      large, strlen (large), &region, &error);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-bulk.c:3773: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).
                       strlen ("$clusterTime") + 2;
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-bulk.c:3780:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         mongoc_client_session_get_lsid (cs)->len + strlen ("lsid") + 2;
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-bulk.c:3785: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).
         filler_string -= strlen ("txnNumber") + 10;
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-client-side-encryption.c:482:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   to_encrypt.value.v_utf8.len = strlen (to_encrypt.value.v_utf8.str);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-client.c:2862:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   const size_t ca_bufsize = strlen (CERT_CA) + 1;
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-collection.c:1831: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).
   ASSERT (strlen (error.message) > 0);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-collection.c:1838: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).
   ASSERT (strlen (error.message) > 0);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-cyrus.c:84: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).
   ASSERT_CMPSIZE_T (strlen (real_name), >, (size_t) 0);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-database.c:1114:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    strncmp (curname, system_prefix, strlen (system_prefix))) {
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-gridfs-bucket.c:138:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      mongoc_stream_write (upload_stream, (void *) str, strlen (str), 0),
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-gridfs-bucket.c:140: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 (str));
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-gridfs-bucket.c:204:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   len = strlen (hex_str);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-gridfs-bucket.c:1039: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).
   memset (bucket_name, 'a', 128 - strlen ("chunks"));
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-gridfs-bucket.c:1050:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   *(bucket_name + ((int) (128 - strlen ("chunks") - 1))) = '\0';
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-gridfs.c:821: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).
   bson_snprintf (expected, strlen ("fo bazr baz") + 1, "fo bazr baz");
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-gridfs.c:822:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   bson_snprintf (expected + strlen ("fo bazr baz") + seek_len,
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-gridfs.c:823:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  strlen ("foo bar baz") + 1,
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-gssapi.c:41:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (getenv (name) && strlen (getenv (name))) {
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-handshake.c:138: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).
   ASSERT (strlen (arch) > 0);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-handshake.c:148: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).
   ASSERT (strlen (os_version) > 0);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-handshake.c:240: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).
   ASSERT (strlen (val) > 0);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-handshake.c:262:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (strlen (val) <
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-handshake.c:489:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      (strlen (md->os_type) + strlen (md->os_name) + strlen (md->os_version) +
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-handshake.c:489:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      (strlen (md->os_type) + strlen (md->os_name) + strlen (md->os_version) +
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-handshake.c:489:54:  [1] (buffer) strlen:
  Does not handle 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 (md->os_type) + strlen (md->os_name) + strlen (md->os_version) +
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-handshake.c:490:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
       strlen (md->os_architecture) + strlen (md->driver_name) +
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-handshake.c:490:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
       strlen (md->os_architecture) + strlen (md->driver_name) +
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-handshake.c:491:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
       strlen (md->driver_version) + strlen (md->compiler_info) +
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-handshake.c:491:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
       strlen (md->driver_version) + strlen (md->compiler_info) +
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-handshake.c:492:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
       strlen (md->flags) + handshake_bson_size);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-handshake.c:498:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         strlen (md->flags) + strlen (md->compiler_info);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-handshake.c:498:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         strlen (md->flags) + strlen (md->compiler_info);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-handshake.c:501: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).
      handshake_remaining_space += strlen (md->flags);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-handshake.c:631: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).
   char_loc = (uint32_t) strlen (config_str) - 2 - (byte * 2);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-handshake.c:651:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   ASSERT_CMPINT ((int) strlen (config_str), ==, 2 + (2 * total_bytes));
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-linux-distro-scanner.c:274: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).
   ASSERT (strlen (name) > 0);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-linux-distro-scanner.c:279: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).
   ASSERT (strlen (version));
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-long-namespace.c:110:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      test_fixture->coll->collectionlen, ==, strlen (test_fixture->ns_coll));
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-long-namespace.c:113:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   ASSERT_CMPINT (test_fixture->coll->nslen, ==, strlen (test_fixture->ns));
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-long-namespace.c:130:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      test_fixture->coll->collectionlen, ==, strlen (test_fixture->ns_coll));
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-long-namespace.c:133:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   ASSERT_CMPINT (test_fixture->coll->nslen, ==, strlen (test_fixture->ns));
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-long-namespace.c:483:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   ASSERT_CMPINT (test_fixture->coll->nslen, ==, strlen (new_ns));
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-long-namespace.c:484:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   ASSERT_CMPINT (test_fixture->coll->collectionlen, ==, strlen (new_coll));
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-rpc.c:40:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   len = read (fd, buf, (uint32_t) len);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-scram.c:66: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).
   scram.encoded_nonce_len = (int32_t) strlen (client_nonce);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-scram.c:70:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   memcpy (buf, server_response, strlen (server_response) + 1);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-scram.c:71: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).
   buflen = (int32_t) strlen (server_response);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-scram.c:120: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).
         tests[i].original, strlen (tests[i].original), &err);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-streamable-ismaster.c:123: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).
      (const uint8_t *) tv1_quoted, strlen (tv1_quoted), &error);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-streamable-ismaster.c:127: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).
      (const uint8_t *) tv2_quoted, strlen (tv2_quoted), &error);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-util.c:54:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   char *buf = bson_malloc0 (strlen (snowman) + 1);
data/mongo-c-driver-1.17.2/src/libmongoc/tests/test-mongoc-util.c:60: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).
   buf = bson_malloc0 (strlen (letters) + 1);

ANALYSIS SUMMARY:

Hits = 923
Lines analyzed = 223766 in approximately 4.61 seconds (48566 lines/second)
Physical Source Lines of Code (SLOC) = 158708
Hits@level = [0] 596 [1] 314 [2] 479 [3]  34 [4]  96 [5]   0
Hits@level+ = [0+] 1519 [1+] 923 [2+] 609 [3+] 130 [4+]  96 [5+]   0
Hits/KSLOC@level+ = [0+] 9.57104 [1+] 5.81571 [2+] 3.83724 [3+] 0.819114 [4+] 0.604884 [5+]   0
Dot directories skipped = 3 (--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.