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/tiledb-1.7.7/examples/c_api/array_metadata.c
Examining data/tiledb-1.7.7/examples/c_api/async.c
Examining data/tiledb-1.7.7/examples/c_api/config.c
Examining data/tiledb-1.7.7/examples/c_api/encryption.c
Examining data/tiledb-1.7.7/examples/c_api/errors.c
Examining data/tiledb-1.7.7/examples/c_api/filters.c
Examining data/tiledb-1.7.7/examples/c_api/fragments_consolidation.c
Examining data/tiledb-1.7.7/examples/c_api/multi_attribute.c
Examining data/tiledb-1.7.7/examples/c_api/multi_range_subarray.c
Examining data/tiledb-1.7.7/examples/c_api/object.c
Examining data/tiledb-1.7.7/examples/c_api/quickstart_dense.c
Examining data/tiledb-1.7.7/examples/c_api/quickstart_sparse.c
Examining data/tiledb-1.7.7/examples/c_api/reading_dense_layouts.c
Examining data/tiledb-1.7.7/examples/c_api/reading_incomplete.c
Examining data/tiledb-1.7.7/examples/c_api/reading_sparse_layouts.c
Examining data/tiledb-1.7.7/examples/c_api/using_tiledb_stats.c
Examining data/tiledb-1.7.7/examples/c_api/variable_length.c
Examining data/tiledb-1.7.7/examples/c_api/vfs.c
Examining data/tiledb-1.7.7/examples/c_api/writing_dense_global.c
Examining data/tiledb-1.7.7/examples/c_api/writing_dense_global_expansion.c
Examining data/tiledb-1.7.7/examples/c_api/writing_dense_multiple.c
Examining data/tiledb-1.7.7/examples/c_api/writing_dense_padding.c
Examining data/tiledb-1.7.7/examples/c_api/writing_dense_sparse.c
Examining data/tiledb-1.7.7/examples/c_api/writing_sparse_global.c
Examining data/tiledb-1.7.7/examples/c_api/writing_sparse_multiple.c
Examining data/tiledb-1.7.7/examples/cmake_project/src/main.cc
Examining data/tiledb-1.7.7/examples/cpp_api/array_metadata.cc
Examining data/tiledb-1.7.7/examples/cpp_api/async.cc
Examining data/tiledb-1.7.7/examples/cpp_api/config.cc
Examining data/tiledb-1.7.7/examples/cpp_api/encryption.cc
Examining data/tiledb-1.7.7/examples/cpp_api/errors.cc
Examining data/tiledb-1.7.7/examples/cpp_api/filters.cc
Examining data/tiledb-1.7.7/examples/cpp_api/fragments_consolidation.cc
Examining data/tiledb-1.7.7/examples/cpp_api/multi_attribute.cc
Examining data/tiledb-1.7.7/examples/cpp_api/multi_range_subarray.cc
Examining data/tiledb-1.7.7/examples/cpp_api/object.cc
Examining data/tiledb-1.7.7/examples/cpp_api/quickstart_dense.cc
Examining data/tiledb-1.7.7/examples/cpp_api/quickstart_sparse.cc
Examining data/tiledb-1.7.7/examples/cpp_api/reading_dense_layouts.cc
Examining data/tiledb-1.7.7/examples/cpp_api/reading_incomplete.cc
Examining data/tiledb-1.7.7/examples/cpp_api/reading_sparse_layouts.cc
Examining data/tiledb-1.7.7/examples/cpp_api/using_tiledb_stats.cc
Examining data/tiledb-1.7.7/examples/cpp_api/variable_length.cc
Examining data/tiledb-1.7.7/examples/cpp_api/vfs.cc
Examining data/tiledb-1.7.7/examples/cpp_api/writing_dense_global.cc
Examining data/tiledb-1.7.7/examples/cpp_api/writing_dense_global_expansion.cc
Examining data/tiledb-1.7.7/examples/cpp_api/writing_dense_multiple.cc
Examining data/tiledb-1.7.7/examples/cpp_api/writing_dense_padding.cc
Examining data/tiledb-1.7.7/examples/cpp_api/writing_dense_sparse.cc
Examining data/tiledb-1.7.7/examples/cpp_api/writing_sparse_global.cc
Examining data/tiledb-1.7.7/examples/cpp_api/writing_sparse_multiple.cc
Examining data/tiledb-1.7.7/examples/png_ingestion/src/main.cc
Examining data/tiledb-1.7.7/external/include/bitshuffle/bitshuffle_core.h
Examining data/tiledb-1.7.7/external/include/bitshuffle/bitshuffle_internals.h
Examining data/tiledb-1.7.7/external/include/bitshuffle/iochain.h
Examining data/tiledb-1.7.7/external/include/blosc/blosc-common.h
Examining data/tiledb-1.7.7/external/include/blosc/shuffle-avx2.h
Examining data/tiledb-1.7.7/external/include/blosc/shuffle-generic.h
Examining data/tiledb-1.7.7/external/include/blosc/shuffle-sse2.h
Examining data/tiledb-1.7.7/external/include/blosc/shuffle.h
Examining data/tiledb-1.7.7/external/include/boost/interprocess/streams/bufferstream.hpp
Examining data/tiledb-1.7.7/external/include/hadoop/hdfs.h
Examining data/tiledb-1.7.7/external/include/md5/md5.h
Examining data/tiledb-1.7.7/external/src/bitshuffle/bitshuffle_core.cc
Examining data/tiledb-1.7.7/external/src/bitshuffle/iochain.cc
Examining data/tiledb-1.7.7/external/src/blosc/shuffle-avx2.cc
Examining data/tiledb-1.7.7/external/src/blosc/shuffle-generic.cc
Examining data/tiledb-1.7.7/external/src/blosc/shuffle-sse2.cc
Examining data/tiledb-1.7.7/external/src/blosc/shuffle.cc
Examining data/tiledb-1.7.7/external/src/md5/md5.cc
Examining data/tiledb-1.7.7/test/benchmarking/src/bench_dense_read_large_tile.cc
Examining data/tiledb-1.7.7/test/benchmarking/src/bench_dense_read_small_tile.cc
Examining data/tiledb-1.7.7/test/benchmarking/src/bench_dense_write_large_tile.cc
Examining data/tiledb-1.7.7/test/benchmarking/src/bench_dense_write_small_tile.cc
Examining data/tiledb-1.7.7/test/benchmarking/src/bench_sparse_read_large_tile.cc
Examining data/tiledb-1.7.7/test/benchmarking/src/bench_sparse_read_small_tile.cc
Examining data/tiledb-1.7.7/test/benchmarking/src/bench_sparse_write_large_tile.cc
Examining data/tiledb-1.7.7/test/benchmarking/src/bench_sparse_write_small_tile.cc
Examining data/tiledb-1.7.7/test/benchmarking/src/benchmark.cc
Examining data/tiledb-1.7.7/test/benchmarking/src/benchmark.h
Examining data/tiledb-1.7.7/test/src/helpers.h
Examining data/tiledb-1.7.7/test/src/unit-CellSlabIter.cc
Examining data/tiledb-1.7.7/test/src/unit-Reader.cc
Examining data/tiledb-1.7.7/test/src/unit-ResultCellSlabIter.cc
Examining data/tiledb-1.7.7/test/src/unit-Subarray.cc
Examining data/tiledb-1.7.7/test/src/unit-SubarrayPartitioner-dense.cc
Examining data/tiledb-1.7.7/test/src/unit-SubarrayPartitioner-error.cc
Examining data/tiledb-1.7.7/test/src/unit-SubarrayPartitioner-sparse.cc
Examining data/tiledb-1.7.7/test/src/unit-TileDomain.cc
Examining data/tiledb-1.7.7/test/src/unit-backwards_compat.cc
Examining data/tiledb-1.7.7/test/src/unit-buffer.cc
Examining data/tiledb-1.7.7/test/src/unit-bufferlist.cc
Examining data/tiledb-1.7.7/test/src/unit-capi-any.cc
Examining data/tiledb-1.7.7/test/src/unit-capi-async.cc
Examining data/tiledb-1.7.7/test/src/unit-capi-buffer.cc
Examining data/tiledb-1.7.7/test/src/unit-capi-config.cc
Examining data/tiledb-1.7.7/test/src/unit-capi-consolidation.cc
Examining data/tiledb-1.7.7/test/src/unit-capi-dense_array_2.cc
Examining data/tiledb-1.7.7/test/src/unit-capi-enum_values.cc
Examining data/tiledb-1.7.7/test/src/unit-capi-error.cc
Examining data/tiledb-1.7.7/test/src/unit-capi-filter.cc
Examining data/tiledb-1.7.7/test/src/unit-capi-incomplete-2.cc
Examining data/tiledb-1.7.7/test/src/unit-capi-incomplete.cc
Examining data/tiledb-1.7.7/test/src/unit-capi-metadata.cc
Examining data/tiledb-1.7.7/test/src/unit-capi-query_2.cc
Examining data/tiledb-1.7.7/test/src/unit-capi-serialized_queries.cc
Examining data/tiledb-1.7.7/test/src/unit-capi-stats.cc
Examining data/tiledb-1.7.7/test/src/unit-capi-string.cc
Examining data/tiledb-1.7.7/test/src/unit-capi-uri.cc
Examining data/tiledb-1.7.7/test/src/unit-capi-version.cc
Examining data/tiledb-1.7.7/test/src/unit-compression-dd.cc
Examining data/tiledb-1.7.7/test/src/unit-compression-rle.cc
Examining data/tiledb-1.7.7/test/src/unit-cppapi-array.cc
Examining data/tiledb-1.7.7/test/src/unit-cppapi-checksum.cc
Examining data/tiledb-1.7.7/test/src/unit-cppapi-config.cc
Examining data/tiledb-1.7.7/test/src/unit-cppapi-consolidation.cc
Examining data/tiledb-1.7.7/test/src/unit-cppapi-datetimes.cc
Examining data/tiledb-1.7.7/test/src/unit-cppapi-filter.cc
Examining data/tiledb-1.7.7/test/src/unit-cppapi-metadata.cc
Examining data/tiledb-1.7.7/test/src/unit-cppapi-query.cc
Examining data/tiledb-1.7.7/test/src/unit-cppapi-schema.cc
Examining data/tiledb-1.7.7/test/src/unit-cppapi-subarray.cc
Examining data/tiledb-1.7.7/test/src/unit-cppapi-type.cc
Examining data/tiledb-1.7.7/test/src/unit-cppapi-updates.cc
Examining data/tiledb-1.7.7/test/src/unit-cppapi-util.cc
Examining data/tiledb-1.7.7/test/src/unit-cppapi-vfs.cc
Examining data/tiledb-1.7.7/test/src/unit-ctx.cc
Examining data/tiledb-1.7.7/test/src/unit-encryption.cc
Examining data/tiledb-1.7.7/test/src/unit-filter-buffer.cc
Examining data/tiledb-1.7.7/test/src/unit-filter-pipeline.cc
Examining data/tiledb-1.7.7/test/src/unit-hdfs-filesystem.cc
Examining data/tiledb-1.7.7/test/src/unit-lru_cache.cc
Examining data/tiledb-1.7.7/test/src/unit-rtree.cc
Examining data/tiledb-1.7.7/test/src/unit-s3-no-multipart.cc
Examining data/tiledb-1.7.7/test/src/unit-s3.cc
Examining data/tiledb-1.7.7/test/src/unit-status.cc
Examining data/tiledb-1.7.7/test/src/unit-tbb.cc
Examining data/tiledb-1.7.7/test/src/unit-threadpool.cc
Examining data/tiledb-1.7.7/test/src/unit-uri.cc
Examining data/tiledb-1.7.7/test/src/unit-uuid.cc
Examining data/tiledb-1.7.7/test/src/unit-vfs.cc
Examining data/tiledb-1.7.7/test/src/unit-win-filesystem.cc
Examining data/tiledb-1.7.7/test/src/unit-Consolidator.cc
Examining data/tiledb-1.7.7/test/src/helpers.cc
Examining data/tiledb-1.7.7/test/src/unit-capi-array.cc
Examining data/tiledb-1.7.7/test/src/unit-capi-array_schema.cc
Examining data/tiledb-1.7.7/test/src/unit-capi-dense_array.cc
Examining data/tiledb-1.7.7/test/src/unit-capi-dense_neg.cc
Examining data/tiledb-1.7.7/test/src/unit-capi-dense_vector.cc
Examining data/tiledb-1.7.7/test/src/unit-capi-object_mgmt.cc
Examining data/tiledb-1.7.7/test/src/unit-capi-query.cc
Examining data/tiledb-1.7.7/test/src/unit-capi-rest-dense_array.cc
Examining data/tiledb-1.7.7/test/src/unit-capi-sparse_array.cc
Examining data/tiledb-1.7.7/test/src/unit-capi-sparse_neg.cc
Examining data/tiledb-1.7.7/test/src/unit-capi-sparse_neg_2.cc
Examining data/tiledb-1.7.7/test/src/unit-capi-sparse_real.cc
Examining data/tiledb-1.7.7/test/src/unit-capi-sparse_real_2.cc
Examining data/tiledb-1.7.7/test/src/unit-capi-vfs.cc
Examining data/tiledb-1.7.7/test/src/unit.cc
Examining data/tiledb-1.7.7/tiledb/sm/array/array.cc
Examining data/tiledb-1.7.7/tiledb/sm/array/array.h
Examining data/tiledb-1.7.7/tiledb/sm/array_schema/array_schema.cc
Examining data/tiledb-1.7.7/tiledb/sm/array_schema/array_schema.h
Examining data/tiledb-1.7.7/tiledb/sm/array_schema/attribute.cc
Examining data/tiledb-1.7.7/tiledb/sm/array_schema/attribute.h
Examining data/tiledb-1.7.7/tiledb/sm/array_schema/dimension.cc
Examining data/tiledb-1.7.7/tiledb/sm/array_schema/dimension.h
Examining data/tiledb-1.7.7/tiledb/sm/array_schema/domain.cc
Examining data/tiledb-1.7.7/tiledb/sm/array_schema/domain.h
Examining data/tiledb-1.7.7/tiledb/sm/array_schema/tile_domain.h
Examining data/tiledb-1.7.7/tiledb/sm/buffer/buffer.cc
Examining data/tiledb-1.7.7/tiledb/sm/buffer/buffer.h
Examining data/tiledb-1.7.7/tiledb/sm/buffer/buffer_list.cc
Examining data/tiledb-1.7.7/tiledb/sm/buffer/buffer_list.h
Examining data/tiledb-1.7.7/tiledb/sm/buffer/const_buffer.cc
Examining data/tiledb-1.7.7/tiledb/sm/buffer/const_buffer.h
Examining data/tiledb-1.7.7/tiledb/sm/buffer/preallocated_buffer.cc
Examining data/tiledb-1.7.7/tiledb/sm/buffer/preallocated_buffer.h
Examining data/tiledb-1.7.7/tiledb/sm/c_api/tiledb.cc
Examining data/tiledb-1.7.7/tiledb/sm/c_api/tiledb.h
Examining data/tiledb-1.7.7/tiledb/sm/c_api/tiledb_enum.h
Examining data/tiledb-1.7.7/tiledb/sm/c_api/tiledb_serialization.h
Examining data/tiledb-1.7.7/tiledb/sm/c_api/tiledb_struct_def.h
Examining data/tiledb-1.7.7/tiledb/sm/c_api/tiledb_version.h
Examining data/tiledb-1.7.7/tiledb/sm/cache/lru_cache.cc
Examining data/tiledb-1.7.7/tiledb/sm/cache/lru_cache.h
Examining data/tiledb-1.7.7/tiledb/sm/compressors/bzip_compressor.cc
Examining data/tiledb-1.7.7/tiledb/sm/compressors/bzip_compressor.h
Examining data/tiledb-1.7.7/tiledb/sm/compressors/dd_compressor.cc
Examining data/tiledb-1.7.7/tiledb/sm/compressors/dd_compressor.h
Examining data/tiledb-1.7.7/tiledb/sm/compressors/gzip_compressor.cc
Examining data/tiledb-1.7.7/tiledb/sm/compressors/gzip_compressor.h
Examining data/tiledb-1.7.7/tiledb/sm/compressors/lz4_compressor.cc
Examining data/tiledb-1.7.7/tiledb/sm/compressors/lz4_compressor.h
Examining data/tiledb-1.7.7/tiledb/sm/compressors/rle_compressor.cc
Examining data/tiledb-1.7.7/tiledb/sm/compressors/rle_compressor.h
Examining data/tiledb-1.7.7/tiledb/sm/compressors/zstd_compressor.cc
Examining data/tiledb-1.7.7/tiledb/sm/compressors/zstd_compressor.h
Examining data/tiledb-1.7.7/tiledb/sm/config/config.cc
Examining data/tiledb-1.7.7/tiledb/sm/config/config.h
Examining data/tiledb-1.7.7/tiledb/sm/config/config_iter.cc
Examining data/tiledb-1.7.7/tiledb/sm/config/config_iter.h
Examining data/tiledb-1.7.7/tiledb/sm/cpp_api/array.h
Examining data/tiledb-1.7.7/tiledb/sm/cpp_api/array_schema.h
Examining data/tiledb-1.7.7/tiledb/sm/cpp_api/attribute.h
Examining data/tiledb-1.7.7/tiledb/sm/cpp_api/config.h
Examining data/tiledb-1.7.7/tiledb/sm/cpp_api/context.h
Examining data/tiledb-1.7.7/tiledb/sm/cpp_api/core_interface.h
Examining data/tiledb-1.7.7/tiledb/sm/cpp_api/deleter.h
Examining data/tiledb-1.7.7/tiledb/sm/cpp_api/dimension.h
Examining data/tiledb-1.7.7/tiledb/sm/cpp_api/domain.h
Examining data/tiledb-1.7.7/tiledb/sm/cpp_api/exception.h
Examining data/tiledb-1.7.7/tiledb/sm/cpp_api/filter.h
Examining data/tiledb-1.7.7/tiledb/sm/cpp_api/filter_list.h
Examining data/tiledb-1.7.7/tiledb/sm/cpp_api/group.h
Examining data/tiledb-1.7.7/tiledb/sm/cpp_api/object.h
Examining data/tiledb-1.7.7/tiledb/sm/cpp_api/object_iter.h
Examining data/tiledb-1.7.7/tiledb/sm/cpp_api/query.h
Examining data/tiledb-1.7.7/tiledb/sm/cpp_api/schema_base.h
Examining data/tiledb-1.7.7/tiledb/sm/cpp_api/stats.h
Examining data/tiledb-1.7.7/tiledb/sm/cpp_api/type.h
Examining data/tiledb-1.7.7/tiledb/sm/cpp_api/utils.h
Examining data/tiledb-1.7.7/tiledb/sm/cpp_api/version.h
Examining data/tiledb-1.7.7/tiledb/sm/cpp_api/vfs.h
Examining data/tiledb-1.7.7/tiledb/sm/encryption/encryption.cc
Examining data/tiledb-1.7.7/tiledb/sm/encryption/encryption.h
Examining data/tiledb-1.7.7/tiledb/sm/encryption/encryption_key.cc
Examining data/tiledb-1.7.7/tiledb/sm/encryption/encryption_key.h
Examining data/tiledb-1.7.7/tiledb/sm/encryption/encryption_key_validation.cc
Examining data/tiledb-1.7.7/tiledb/sm/encryption/encryption_key_validation.h
Examining data/tiledb-1.7.7/tiledb/sm/encryption/encryption_openssl.cc
Examining data/tiledb-1.7.7/tiledb/sm/encryption/encryption_openssl.h
Examining data/tiledb-1.7.7/tiledb/sm/encryption/encryption_win32.cc
Examining data/tiledb-1.7.7/tiledb/sm/encryption/encryption_win32.h
Examining data/tiledb-1.7.7/tiledb/sm/enums/array_type.h
Examining data/tiledb-1.7.7/tiledb/sm/enums/compressor.h
Examining data/tiledb-1.7.7/tiledb/sm/enums/datatype.h
Examining data/tiledb-1.7.7/tiledb/sm/enums/encryption_type.h
Examining data/tiledb-1.7.7/tiledb/sm/enums/filesystem.h
Examining data/tiledb-1.7.7/tiledb/sm/enums/filter_option.h
Examining data/tiledb-1.7.7/tiledb/sm/enums/filter_type.h
Examining data/tiledb-1.7.7/tiledb/sm/enums/layout.h
Examining data/tiledb-1.7.7/tiledb/sm/enums/object_type.h
Examining data/tiledb-1.7.7/tiledb/sm/enums/query_status.h
Examining data/tiledb-1.7.7/tiledb/sm/enums/query_type.h
Examining data/tiledb-1.7.7/tiledb/sm/enums/serialization_type.h
Examining data/tiledb-1.7.7/tiledb/sm/enums/vfs_mode.h
Examining data/tiledb-1.7.7/tiledb/sm/enums/walk_order.h
Examining data/tiledb-1.7.7/tiledb/sm/filesystem/filelock.h
Examining data/tiledb-1.7.7/tiledb/sm/filesystem/hdfs_filesystem.cc
Examining data/tiledb-1.7.7/tiledb/sm/filesystem/hdfs_filesystem.h
Examining data/tiledb-1.7.7/tiledb/sm/filesystem/posix.h
Examining data/tiledb-1.7.7/tiledb/sm/filesystem/s3.cc
Examining data/tiledb-1.7.7/tiledb/sm/filesystem/s3.h
Examining data/tiledb-1.7.7/tiledb/sm/filesystem/s3_thread_pool_executor.cc
Examining data/tiledb-1.7.7/tiledb/sm/filesystem/s3_thread_pool_executor.h
Examining data/tiledb-1.7.7/tiledb/sm/filesystem/vfs.cc
Examining data/tiledb-1.7.7/tiledb/sm/filesystem/vfs.h
Examining data/tiledb-1.7.7/tiledb/sm/filesystem/vfs_file_handle.cc
Examining data/tiledb-1.7.7/tiledb/sm/filesystem/vfs_file_handle.h
Examining data/tiledb-1.7.7/tiledb/sm/filesystem/win.cc
Examining data/tiledb-1.7.7/tiledb/sm/filesystem/win.h
Examining data/tiledb-1.7.7/tiledb/sm/filesystem/posix.cc
Examining data/tiledb-1.7.7/tiledb/sm/filter/bit_width_reduction_filter.cc
Examining data/tiledb-1.7.7/tiledb/sm/filter/bit_width_reduction_filter.h
Examining data/tiledb-1.7.7/tiledb/sm/filter/bitshuffle_filter.cc
Examining data/tiledb-1.7.7/tiledb/sm/filter/bitshuffle_filter.h
Examining data/tiledb-1.7.7/tiledb/sm/filter/byteshuffle_filter.cc
Examining data/tiledb-1.7.7/tiledb/sm/filter/byteshuffle_filter.h
Examining data/tiledb-1.7.7/tiledb/sm/filter/checksum_md5_filter.cc
Examining data/tiledb-1.7.7/tiledb/sm/filter/checksum_md5_filter.h
Examining data/tiledb-1.7.7/tiledb/sm/filter/checksum_sha256_filter.cc
Examining data/tiledb-1.7.7/tiledb/sm/filter/checksum_sha256_filter.h
Examining data/tiledb-1.7.7/tiledb/sm/filter/compression_filter.cc
Examining data/tiledb-1.7.7/tiledb/sm/filter/compression_filter.h
Examining data/tiledb-1.7.7/tiledb/sm/filter/encryption_aes256gcm_filter.cc
Examining data/tiledb-1.7.7/tiledb/sm/filter/encryption_aes256gcm_filter.h
Examining data/tiledb-1.7.7/tiledb/sm/filter/filter.cc
Examining data/tiledb-1.7.7/tiledb/sm/filter/filter.h
Examining data/tiledb-1.7.7/tiledb/sm/filter/filter_buffer.cc
Examining data/tiledb-1.7.7/tiledb/sm/filter/filter_buffer.h
Examining data/tiledb-1.7.7/tiledb/sm/filter/filter_pipeline.cc
Examining data/tiledb-1.7.7/tiledb/sm/filter/filter_pipeline.h
Examining data/tiledb-1.7.7/tiledb/sm/filter/filter_storage.cc
Examining data/tiledb-1.7.7/tiledb/sm/filter/filter_storage.h
Examining data/tiledb-1.7.7/tiledb/sm/filter/noop_filter.cc
Examining data/tiledb-1.7.7/tiledb/sm/filter/noop_filter.h
Examining data/tiledb-1.7.7/tiledb/sm/filter/positive_delta_filter.cc
Examining data/tiledb-1.7.7/tiledb/sm/filter/positive_delta_filter.h
Examining data/tiledb-1.7.7/tiledb/sm/fragment/fragment_info.h
Examining data/tiledb-1.7.7/tiledb/sm/fragment/fragment_metadata.cc
Examining data/tiledb-1.7.7/tiledb/sm/fragment/fragment_metadata.h
Examining data/tiledb-1.7.7/tiledb/sm/fragment/written_fragment_info.h
Examining data/tiledb-1.7.7/tiledb/sm/global_state/global_state.cc
Examining data/tiledb-1.7.7/tiledb/sm/global_state/global_state.h
Examining data/tiledb-1.7.7/tiledb/sm/global_state/libcurl_state.cc
Examining data/tiledb-1.7.7/tiledb/sm/global_state/libcurl_state.h
Examining data/tiledb-1.7.7/tiledb/sm/global_state/openssl_state.cc
Examining data/tiledb-1.7.7/tiledb/sm/global_state/openssl_state.h
Examining data/tiledb-1.7.7/tiledb/sm/global_state/signal_handlers.cc
Examining data/tiledb-1.7.7/tiledb/sm/global_state/signal_handlers.h
Examining data/tiledb-1.7.7/tiledb/sm/global_state/tbb_state.cc
Examining data/tiledb-1.7.7/tiledb/sm/global_state/tbb_state.h
Examining data/tiledb-1.7.7/tiledb/sm/global_state/unit_test_config.h
Examining data/tiledb-1.7.7/tiledb/sm/global_state/watchdog.cc
Examining data/tiledb-1.7.7/tiledb/sm/global_state/watchdog.h
Examining data/tiledb-1.7.7/tiledb/sm/metadata/metadata.cc
Examining data/tiledb-1.7.7/tiledb/sm/metadata/metadata.h
Examining data/tiledb-1.7.7/tiledb/sm/misc/cancelable_tasks.cc
Examining data/tiledb-1.7.7/tiledb/sm/misc/cancelable_tasks.h
Examining data/tiledb-1.7.7/tiledb/sm/misc/comparators.h
Examining data/tiledb-1.7.7/tiledb/sm/misc/constants.cc
Examining data/tiledb-1.7.7/tiledb/sm/misc/constants.h
Examining data/tiledb-1.7.7/tiledb/sm/misc/logger.h
Examining data/tiledb-1.7.7/tiledb/sm/misc/macros.h
Examining data/tiledb-1.7.7/tiledb/sm/misc/parallel_functions.h
Examining data/tiledb-1.7.7/tiledb/sm/misc/stats.cc
Examining data/tiledb-1.7.7/tiledb/sm/misc/stats.h
Examining data/tiledb-1.7.7/tiledb/sm/misc/stats_counters.h
Examining data/tiledb-1.7.7/tiledb/sm/misc/status.cc
Examining data/tiledb-1.7.7/tiledb/sm/misc/status.h
Examining data/tiledb-1.7.7/tiledb/sm/misc/thread_pool.cc
Examining data/tiledb-1.7.7/tiledb/sm/misc/thread_pool.h
Examining data/tiledb-1.7.7/tiledb/sm/misc/tile_overlap.h
Examining data/tiledb-1.7.7/tiledb/sm/misc/uri.cc
Examining data/tiledb-1.7.7/tiledb/sm/misc/uri.h
Examining data/tiledb-1.7.7/tiledb/sm/misc/utils.cc
Examining data/tiledb-1.7.7/tiledb/sm/misc/utils.h
Examining data/tiledb-1.7.7/tiledb/sm/misc/uuid.cc
Examining data/tiledb-1.7.7/tiledb/sm/misc/uuid.h
Examining data/tiledb-1.7.7/tiledb/sm/misc/win_constants.cc
Examining data/tiledb-1.7.7/tiledb/sm/misc/win_constants.h
Examining data/tiledb-1.7.7/tiledb/sm/misc/work_arounds.cc
Examining data/tiledb-1.7.7/tiledb/sm/misc/logger.cc
Examining data/tiledb-1.7.7/tiledb/sm/query/dense_cell_range_iter.cc
Examining data/tiledb-1.7.7/tiledb/sm/query/dense_cell_range_iter.h
Examining data/tiledb-1.7.7/tiledb/sm/query/query.cc
Examining data/tiledb-1.7.7/tiledb/sm/query/query.h
Examining data/tiledb-1.7.7/tiledb/sm/query/query_macros.h
Examining data/tiledb-1.7.7/tiledb/sm/query/reader.cc
Examining data/tiledb-1.7.7/tiledb/sm/query/reader.h
Examining data/tiledb-1.7.7/tiledb/sm/query/result_cell_slab.h
Examining data/tiledb-1.7.7/tiledb/sm/query/result_cell_slab_iter.cc
Examining data/tiledb-1.7.7/tiledb/sm/query/result_cell_slab_iter.h
Examining data/tiledb-1.7.7/tiledb/sm/query/result_coords.h
Examining data/tiledb-1.7.7/tiledb/sm/query/result_space_tile.h
Examining data/tiledb-1.7.7/tiledb/sm/query/result_tile.h
Examining data/tiledb-1.7.7/tiledb/sm/query/types.h
Examining data/tiledb-1.7.7/tiledb/sm/query/writer.cc
Examining data/tiledb-1.7.7/tiledb/sm/query/writer.h
Examining data/tiledb-1.7.7/tiledb/sm/rest/curl.cc
Examining data/tiledb-1.7.7/tiledb/sm/rest/curl.h
Examining data/tiledb-1.7.7/tiledb/sm/rest/rest_client.cc
Examining data/tiledb-1.7.7/tiledb/sm/rest/rest_client.h
Examining data/tiledb-1.7.7/tiledb/sm/rtree/rtree.cc
Examining data/tiledb-1.7.7/tiledb/sm/rtree/rtree.h
Examining data/tiledb-1.7.7/tiledb/sm/serialization/array_schema.cc
Examining data/tiledb-1.7.7/tiledb/sm/serialization/array_schema.h
Examining data/tiledb-1.7.7/tiledb/sm/serialization/capnp_utils.h
Examining data/tiledb-1.7.7/tiledb/sm/serialization/query.cc
Examining data/tiledb-1.7.7/tiledb/sm/serialization/query.h
Examining data/tiledb-1.7.7/tiledb/sm/serialization/tiledb-rest.capnp.c++
Examining data/tiledb-1.7.7/tiledb/sm/serialization/tiledb-rest.capnp.h
Examining data/tiledb-1.7.7/tiledb/sm/storage_manager/consolidator.cc
Examining data/tiledb-1.7.7/tiledb/sm/storage_manager/consolidator.h
Examining data/tiledb-1.7.7/tiledb/sm/storage_manager/context.cc
Examining data/tiledb-1.7.7/tiledb/sm/storage_manager/context.h
Examining data/tiledb-1.7.7/tiledb/sm/storage_manager/open_array.cc
Examining data/tiledb-1.7.7/tiledb/sm/storage_manager/open_array.h
Examining data/tiledb-1.7.7/tiledb/sm/storage_manager/storage_manager.cc
Examining data/tiledb-1.7.7/tiledb/sm/storage_manager/storage_manager.h
Examining data/tiledb-1.7.7/tiledb/sm/subarray/cell_slab.h
Examining data/tiledb-1.7.7/tiledb/sm/subarray/cell_slab_iter.cc
Examining data/tiledb-1.7.7/tiledb/sm/subarray/cell_slab_iter.h
Examining data/tiledb-1.7.7/tiledb/sm/subarray/subarray.cc
Examining data/tiledb-1.7.7/tiledb/sm/subarray/subarray.h
Examining data/tiledb-1.7.7/tiledb/sm/subarray/subarray_partitioner.cc
Examining data/tiledb-1.7.7/tiledb/sm/subarray/subarray_partitioner.h
Examining data/tiledb-1.7.7/tiledb/sm/tile/tile.cc
Examining data/tiledb-1.7.7/tiledb/sm/tile/tile.h
Examining data/tiledb-1.7.7/tiledb/sm/tile/tile_io.cc
Examining data/tiledb-1.7.7/tiledb/sm/tile/tile_io.h
Examining data/tiledb-1.7.7/tools/src/commands/command.h
Examining data/tiledb-1.7.7/tools/src/commands/help_command.cc
Examining data/tiledb-1.7.7/tools/src/commands/help_command.h
Examining data/tiledb-1.7.7/tools/src/commands/info_command.cc
Examining data/tiledb-1.7.7/tools/src/commands/info_command.h
Examining data/tiledb-1.7.7/tools/src/main/tiledb.cc
Examining data/tiledb-1.7.7/tools/src/misc/common.h

FINAL RESULTS:

data/tiledb-1.7.7/examples/c_api/vfs.c:77:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  printf(format_buf, file_size);
data/tiledb-1.7.7/test/src/unit-capi-array_schema.cc:780:10:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  CHECK(!system("FC gold_fout.txt fout.txt > nul"));
data/tiledb-1.7.7/test/src/unit-capi-array_schema.cc:782:10:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  CHECK(!system("diff gold_fout.txt fout.txt"));
data/tiledb-1.7.7/tiledb/sm/misc/stats.h:105:3:  [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/tiledb-1.7.7/tiledb/sm/misc/stats.h:129:3:  [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/tiledb-1.7.7/tiledb/sm/misc/utils.cc:238:5:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
    sscanf(
data/tiledb-1.7.7/tiledb/sm/misc/utils.cc:245:5:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
    sscanf(
data/tiledb-1.7.7/external/src/blosc/shuffle.cc:246: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.
  envvar = getenv("BLOSC_PRINT_SHUFFLE_ACCEL");
data/tiledb-1.7.7/test/src/unit-capi-dense_array.cc:334:8:  [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.
  std::srand(0);
data/tiledb-1.7.7/test/src/unit-capi-dense_array.cc:670:8:  [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.
  std::srand(seed);
data/tiledb-1.7.7/test/src/unit-capi-rest-dense_array.cc:282:8:  [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.
  std::srand(0);
data/tiledb-1.7.7/test/src/unit-capi-sparse_array.cc:261:8:  [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.
  std::srand(0);
data/tiledb-1.7.7/test/src/unit-compression-dd.cc:186:8:  [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.
  std::srand(std::time(nullptr));
data/tiledb-1.7.7/test/src/unit.cc:51:14:  [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 (std::getenv("AGENT_NAME") != nullptr) {
data/tiledb-1.7.7/tiledb/sm/filesystem/hdfs_filesystem.cc:176:29:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char* hdfs_home = getenv("HADOOP_HOME");
data/tiledb-1.7.7/tiledb/sm/filesystem/posix.cc:116:23:  [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.
  auto env_home_ptr = getenv("HOME");
data/tiledb-1.7.7/examples/c_api/async.c:115:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char s[100] = "Callback: Write query completed";
data/tiledb-1.7.7/examples/c_api/async.c:170:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char s[100] = "Callback: Read query completed";
data/tiledb-1.7.7/examples/c_api/encryption.c:42: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.
const char encryption_key[32 + 1] = "0123456789abcdeF0123456789abcdeF";
data/tiledb-1.7.7/examples/c_api/multi_attribute.c:159:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char a1[6];
data/tiledb-1.7.7/examples/c_api/multi_attribute.c:204:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char a1[6];
data/tiledb-1.7.7/examples/c_api/vfs.c:71:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char format_buf[256];
data/tiledb-1.7.7/examples/c_api/vfs.c:148:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char s1[13];
data/tiledb-1.7.7/examples/cpp_api/encryption.cc:44: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.
const char encryption_key[32 + 1] = "0123456789abcdeF0123456789abcdeF";
data/tiledb-1.7.7/examples/cpp_api/vfs.cc:84:8:  [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).
  fbuf.open("tiledb_vfs.bin", std::ios::out);
data/tiledb-1.7.7/examples/cpp_api/vfs.cc:96:8:  [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).
  fbuf.open("tiledb_vfs.bin", std::ios::out);
data/tiledb-1.7.7/examples/cpp_api/vfs.cc:107:8:  [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).
  fbuf.open("tiledb_vfs.bin", std::ios::app);
data/tiledb-1.7.7/examples/cpp_api/vfs.cc:126:10:  [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).
    sbuf.open("tiledb_vfs.bin", std::ios::in);
data/tiledb-1.7.7/examples/png_ingestion/src/main.cc:60: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).
  auto fp = fopen(path.c_str(), "rb");
data/tiledb-1.7.7/examples/png_ingestion/src/main.cc:126: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).
  FILE* fp = fopen(path.c_str(), "wb");
data/tiledb-1.7.7/external/include/md5/md5.h:53:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char in[64];     /* input buffer */
data/tiledb-1.7.7/external/include/md5/md5.h:54:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char digest[16]; /* actual digest after MD5Final call */
data/tiledb-1.7.7/external/src/bitshuffle/bitshuffle_core.cc:123: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(out_b, in_b, size * elem_size);
data/tiledb-1.7.7/external/src/bitshuffle/bitshuffle_core.cc:221: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(&out_b[(jj*lda + ii) * elem_size],
data/tiledb-1.7.7/external/src/bitshuffle/bitshuffle_core.cc:1245: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(last_out, last_in, leftover_bytes);
data/tiledb-1.7.7/external/src/blosc/shuffle-generic.cc:34:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(_dest + (blocksize - neblock_rem), _src + (blocksize - neblock_rem), neblock_rem);
data/tiledb-1.7.7/external/src/blosc/shuffle-generic.cc:56:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(_dest + (blocksize - neblock_rem), _src + (blocksize - neblock_rem), neblock_rem);
data/tiledb-1.7.7/external/src/md5/md5.cc:42: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 PADDING[64] = {
data/tiledb-1.7.7/test/src/unit-Reader.cc:129:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(&tile_coords_el[0], &tile_coords_1_0[0], coords_size);
data/tiledb-1.7.7/test/src/unit-Reader.cc:131:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(&tile_coords_el[0], &tile_coords_1_2[0], coords_size);
data/tiledb-1.7.7/test/src/unit-Reader.cc:133:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(&tile_coords_el[0], &tile_coords_2_0[0], coords_size);
data/tiledb-1.7.7/test/src/unit-Reader.cc:135:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(&tile_coords_el[0], &tile_coords_2_2[0], coords_size);
data/tiledb-1.7.7/test/src/unit-Reader.cc:137:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(&tile_coords_el[0], &tile_coords_3_0[0], coords_size);
data/tiledb-1.7.7/test/src/unit-Reader.cc:139:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(&tile_coords_el[0], &tile_coords_3_2[0], coords_size);
data/tiledb-1.7.7/test/src/unit-Subarray.cc:146:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(&tile_coords_el[0], &tile_coords_0, sizeof(uint64_t));
data/tiledb-1.7.7/test/src/unit-Subarray.cc:148:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(&tile_coords_el[0], &tile_coords_1, sizeof(uint64_t));
data/tiledb-1.7.7/test/src/unit-Subarray.cc:150:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(&tile_coords_el[0], &tile_coords_3, sizeof(uint64_t));
data/tiledb-1.7.7/test/src/unit-Subarray.cc:152:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(&tile_coords_el[0], &tile_coords_4, sizeof(uint64_t));
data/tiledb-1.7.7/test/src/unit-Subarray.cc:196:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(&tile_coords_el[0], tile_coords_0_0, 2 * sizeof(uint64_t));
data/tiledb-1.7.7/test/src/unit-Subarray.cc:198:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(&tile_coords_el[0], tile_coords_0_1, 2 * sizeof(uint64_t));
data/tiledb-1.7.7/test/src/unit-Subarray.cc:200:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(&tile_coords_el[0], tile_coords_2_0, 2 * sizeof(uint64_t));
data/tiledb-1.7.7/test/src/unit-Subarray.cc:202:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(&tile_coords_el[0], tile_coords_2_1, 2 * sizeof(uint64_t));
data/tiledb-1.7.7/test/src/unit-Subarray.cc:204:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(&tile_coords_el[0], tile_coords_3_0, 2 * sizeof(uint64_t));
data/tiledb-1.7.7/test/src/unit-Subarray.cc:206:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(&tile_coords_el[0], tile_coords_3_1, 2 * sizeof(uint64_t));
data/tiledb-1.7.7/test/src/unit-Subarray.cc:208:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(&tile_coords_el[0], tile_coords_4_0, 2 * sizeof(uint64_t));
data/tiledb-1.7.7/test/src/unit-Subarray.cc:210:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(&tile_coords_el[0], tile_coords_4_1, 2 * sizeof(uint64_t));
data/tiledb-1.7.7/test/src/unit-Subarray.cc:217:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(&tile_coords_el[0], tile_coords_0_0, 2 * sizeof(uint64_t));
data/tiledb-1.7.7/test/src/unit-Subarray.cc:219:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(&tile_coords_el[0], tile_coords_2_0, 2 * sizeof(uint64_t));
data/tiledb-1.7.7/test/src/unit-Subarray.cc:221:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(&tile_coords_el[0], tile_coords_3_0, 2 * sizeof(uint64_t));
data/tiledb-1.7.7/test/src/unit-Subarray.cc: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.
    std::memcpy(&tile_coords_el[0], tile_coords_4_0, 2 * sizeof(uint64_t));
data/tiledb-1.7.7/test/src/unit-Subarray.cc:225:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(&tile_coords_el[0], tile_coords_0_1, 2 * sizeof(uint64_t));
data/tiledb-1.7.7/test/src/unit-Subarray.cc:227:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(&tile_coords_el[0], tile_coords_2_1, 2 * sizeof(uint64_t));
data/tiledb-1.7.7/test/src/unit-Subarray.cc:229:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(&tile_coords_el[0], tile_coords_3_1, 2 * sizeof(uint64_t));
data/tiledb-1.7.7/test/src/unit-Subarray.cc:231:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(&tile_coords_el[0], tile_coords_4_1, 2 * sizeof(uint64_t));
data/tiledb-1.7.7/test/src/unit-buffer.cc:44:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char data[3] = {1, 2, 3};
data/tiledb-1.7.7/test/src/unit-buffer.cc:64:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char readtwo[2] = {0, 0};
data/tiledb-1.7.7/test/src/unit-buffer.cc:103:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char data1[3] = {1, 2, 3};
data/tiledb-1.7.7/test/src/unit-buffer.cc:113:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char data2[5] = {4, 5, 6, 7, 8};
data/tiledb-1.7.7/test/src/unit-buffer.cc:152:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char data1[3] = {1, 2, 3};
data/tiledb-1.7.7/test/src/unit-bufferlist.cc:45:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  const char data1[3] = {1, 2, 3}, data2[4] = {4, 5, 6, 7};
data/tiledb-1.7.7/test/src/unit-bufferlist.cc:81:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  const char data1[3] = {1, 2, 3}, data2[4] = {4, 5, 6, 7};
data/tiledb-1.7.7/test/src/unit-bufferlist.cc:156:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  const char data1[3] = {1, 2, 3}, data2[4] = {4, 5, 6, 7};
data/tiledb-1.7.7/test/src/unit-capi-any.cc:127:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer_a1[28];
data/tiledb-1.7.7/test/src/unit-capi-any.cc:131:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(&buffer_a1[1], &C1, sizeof(int));
data/tiledb-1.7.7/test/src/unit-capi-any.cc:136:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(&buffer_a1[buffer_a1_offsets[1] + 1], &C2, sizeof(uint64_t));
data/tiledb-1.7.7/test/src/unit-capi-any.cc:142:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(&buffer_a1[buffer_a1_offsets[2] + 1], &C3, sizeof(float));
data/tiledb-1.7.7/test/src/unit-capi-any.cc:147:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(&buffer_a1[buffer_a1_offsets[3] + 1], &C4, sizeof(double));
data/tiledb-1.7.7/test/src/unit-capi-array.cc:419:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char path[MAX_PATH];
data/tiledb-1.7.7/test/src/unit-capi-array.cc:554: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 bad_key[32];
data/tiledb-1.7.7/test/src/unit-capi-array.cc:684: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 key[32];
data/tiledb-1.7.7/test/src/unit-capi-array_schema.cc:772:21:  [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* gold_fout = fopen("gold_fout.txt", "w");
data/tiledb-1.7.7/test/src/unit-capi-array_schema.cc:776:16:  [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* fout = fopen("fout.txt", "w");
data/tiledb-1.7.7/test/src/unit-capi-dense_array.cc:2770:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(buff1_copy, buff1_data, buff1_size);
data/tiledb-1.7.7/test/src/unit-capi-dense_array.cc:2906:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(buff3_copy, buff3_data, buff3_size);
data/tiledb-1.7.7/test/src/unit-capi-incomplete-2.cc:653:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer_a2_var[1];
data/tiledb-1.7.7/test/src/unit-capi-incomplete-2.cc:717:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer_a2_var[2];
data/tiledb-1.7.7/test/src/unit-capi-incomplete-2.cc:751:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char c_buffer_a2_var[2] = {'b', 'b'};
data/tiledb-1.7.7/test/src/unit-capi-incomplete-2.cc:988:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer_a2_var[1];
data/tiledb-1.7.7/test/src/unit-capi-incomplete-2.cc:1051:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer_a2_var[2];
data/tiledb-1.7.7/test/src/unit-capi-incomplete-2.cc:1091:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char c_buffer_a2_var[2] = {'b', 'b'};
data/tiledb-1.7.7/test/src/unit-capi-incomplete.cc:753:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer_a2_var[1];
data/tiledb-1.7.7/test/src/unit-capi-incomplete.cc:817:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer_a2_var[2];
data/tiledb-1.7.7/test/src/unit-capi-incomplete.cc:851:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char c_buffer_a2_var[2] = {'b', 'b'};
data/tiledb-1.7.7/test/src/unit-capi-incomplete.cc:1089:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer_a2_var[1];
data/tiledb-1.7.7/test/src/unit-capi-incomplete.cc:1150:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer_a2_var[2];
data/tiledb-1.7.7/test/src/unit-capi-incomplete.cc:1184:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char c_buffer_a2_var[2] = {'b', 'b'};
data/tiledb-1.7.7/test/src/unit-capi-sparse_array.cc:1161:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char r_buffer_a2_var[40];
data/tiledb-1.7.7/test/src/unit-capi-sparse_array.cc:1335:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char r_buffer_a2_var[40];
data/tiledb-1.7.7/test/src/unit-capi-sparse_array.cc:1672:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char r_buffer_a2_var[40];
data/tiledb-1.7.7/test/src/unit-capi-sparse_array.cc:1850:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char r_buffer_a2_var[40];
data/tiledb-1.7.7/test/src/unit-capi-sparse_array.cc:2916:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char a2[6];
data/tiledb-1.7.7/test/src/unit-capi-sparse_array.cc:2995:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char a2[2];
data/tiledb-1.7.7/test/src/unit-capi-sparse_array.cc:3071:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char a2[6];
data/tiledb-1.7.7/test/src/unit-capi-sparse_array.cc:3512:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char b_a2_val[20];
data/tiledb-1.7.7/test/src/unit-capi-sparse_array.cc:3675:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char b_a2_val[20];
data/tiledb-1.7.7/test/src/unit-capi-sparse_array.cc:3838:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char b_a2_val[20];
data/tiledb-1.7.7/test/src/unit-capi-sparse_array.cc:4021:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char b_a2_val[20];
data/tiledb-1.7.7/test/src/unit-capi-sparse_array.cc:4204:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char b_a2_val[20];
data/tiledb-1.7.7/test/src/unit-capi-sparse_array.cc:4427:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char b_a2_val[20];
data/tiledb-1.7.7/test/src/unit-capi-sparse_array.cc:4650:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char b_a2_val[20];
data/tiledb-1.7.7/test/src/unit-capi-sparse_array.cc:4913:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char b_a2_val[20];
data/tiledb-1.7.7/test/src/unit-capi-sparse_array.cc:5216:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char b_a2_val[20];
data/tiledb-1.7.7/test/src/unit-capi-sparse_array.cc:5519:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char b_a2_val[20];
data/tiledb-1.7.7/test/src/unit-capi-sparse_array.cc:5641:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char b_a2_val[20];
data/tiledb-1.7.7/test/src/unit-capi-sparse_array.cc:5763:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char a2[1];
data/tiledb-1.7.7/test/src/unit-capi-string.cc:158:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(buffer_a1, UTF8_STRINGS, sizeof(UTF8_STRINGS) - UTF8_NULL_SIZE);
data/tiledb-1.7.7/test/src/unit-capi-string.cc:159:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(
data/tiledb-1.7.7/test/src/unit-capi-string.cc:161:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(
data/tiledb-1.7.7/test/src/unit-capi-uri.cc:55:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char path[PLATFORM_PATH_MAX];
data/tiledb-1.7.7/test/src/unit-cppapi-array.cc:145: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).
      array.open(TILEDB_WRITE);
data/tiledb-1.7.7/test/src/unit-cppapi-array.cc:314:11:  [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).
    array.open(TILEDB_READ);
data/tiledb-1.7.7/test/src/unit-cppapi-array.cc:569:27:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  REQUIRE_THROWS_AS(array.open(TILEDB_WRITE), tiledb::TileDBError);
data/tiledb-1.7.7/test/src/unit-cppapi-array.cc:570: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).
  array.open(TILEDB_WRITE, TILEDB_AES_256_GCM, key, key_len);
data/tiledb-1.7.7/test/src/unit-cppapi-array.cc:595: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).
  array.open(TILEDB_READ, TILEDB_AES_256_GCM, key, key_len);
data/tiledb-1.7.7/test/src/unit-cppapi-array.cc:665:27:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  REQUIRE_THROWS_AS(array.open(TILEDB_WRITE), tiledb::TileDBError);
data/tiledb-1.7.7/test/src/unit-cppapi-array.cc:666: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).
  array.open(TILEDB_WRITE, TILEDB_AES_256_GCM, key);
data/tiledb-1.7.7/test/src/unit-cppapi-array.cc:693: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).
  array.open(TILEDB_READ, TILEDB_AES_256_GCM, key);
data/tiledb-1.7.7/test/src/unit-cppapi-array.cc:791:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    array_r_at_0.open(TILEDB_READ, 0);
data/tiledb-1.7.7/test/src/unit-cppapi-array.cc:815:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    array_r_at.open(TILEDB_READ, timestamp);
data/tiledb-1.7.7/test/src/unit-cppapi-array.cc:898:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    array_r_at_0.open(TILEDB_READ, TILEDB_AES_256_GCM, key, key_len, 0);
data/tiledb-1.7.7/test/src/unit-cppapi-array.cc:929:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    array_r_at.open(TILEDB_READ, TILEDB_AES_256_GCM, key, key_len, timestamp);
data/tiledb-1.7.7/test/src/unit-cppapi-checksum.cc:104: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).
  array.open(TILEDB_READ);
data/tiledb-1.7.7/test/src/unit-cppapi-checksum.cc:137: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).
  array.open(TILEDB_READ);
data/tiledb-1.7.7/test/src/unit-cppapi-checksum.cc:159:8:  [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).
  fbuf.open(file_a, std::ios::in | std::ios::out | std::ios::binary);
data/tiledb-1.7.7/test/src/unit-cppapi-checksum.cc:175: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).
  array.open(TILEDB_READ);
data/tiledb-1.7.7/test/src/unit-cppapi-filter.cc:192: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).
  array.open(TILEDB_READ);
data/tiledb-1.7.7/test/src/unit-cppapi-filter.cc:219: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).
  array.open(TILEDB_READ);
data/tiledb-1.7.7/test/src/unit-cppapi-metadata.cc:173: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).
  array.open(TILEDB_WRITE);
data/tiledb-1.7.7/test/src/unit-cppapi-metadata.cc:185:22:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  CHECK_THROWS(array.open(TILEDB_READ, enc_type_, key_, key_len_));
data/tiledb-1.7.7/test/src/unit-cppapi-metadata.cc:212: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).
  array.open(TILEDB_READ);
data/tiledb-1.7.7/test/src/unit-cppapi-metadata.cc:285: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).
  array.open(TILEDB_READ);
data/tiledb-1.7.7/test/src/unit-cppapi-metadata.cc:330: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).
  array.open(TILEDB_WRITE);
data/tiledb-1.7.7/test/src/unit-cppapi-metadata.cc:336: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).
  array.open(TILEDB_READ);
data/tiledb-1.7.7/test/src/unit-cppapi-metadata.cc:394: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).
  array.open(TILEDB_WRITE);
data/tiledb-1.7.7/test/src/unit-cppapi-metadata.cc:401: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).
  array.open(TILEDB_READ);
data/tiledb-1.7.7/test/src/unit-cppapi-metadata.cc:440: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).
  array.open(TILEDB_READ);
data/tiledb-1.7.7/test/src/unit-cppapi-metadata.cc:449: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).
  array.open(TILEDB_WRITE);
data/tiledb-1.7.7/test/src/unit-cppapi-metadata.cc:462: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).
  array.open(TILEDB_READ);
data/tiledb-1.7.7/test/src/unit-cppapi-metadata.cc:504: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).
  array.open(TILEDB_WRITE);
data/tiledb-1.7.7/test/src/unit-cppapi-metadata.cc:509: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).
  array.open(TILEDB_READ, timestamp);
data/tiledb-1.7.7/test/src/unit-cppapi-metadata.cc:550: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).
  array.open(TILEDB_WRITE);
data/tiledb-1.7.7/test/src/unit-cppapi-metadata.cc:555: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).
  array.open(TILEDB_READ, timestamp);
data/tiledb-1.7.7/test/src/unit-cppapi-metadata.cc:607: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).
  array.open(TILEDB_WRITE, enc_type_, key_, key_len_);
data/tiledb-1.7.7/test/src/unit-cppapi-metadata.cc:614: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).
  array.open(TILEDB_READ, enc_type_, key_, key_len_);
data/tiledb-1.7.7/test/src/unit-cppapi-metadata.cc:657: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).
  array.open(TILEDB_READ, enc_type_, key_, key_len_);
data/tiledb-1.7.7/test/src/unit-cppapi-metadata.cc:666: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).
  array.open(TILEDB_WRITE, enc_type_, key_, key_len_);
data/tiledb-1.7.7/test/src/unit-cppapi-metadata.cc:680: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).
  array.open(TILEDB_READ, enc_type_, key_, key_len_);
data/tiledb-1.7.7/test/src/unit-cppapi-vfs.cc:136:8:  [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).
  fbuf.open(file, std::ios::out);
data/tiledb-1.7.7/test/src/unit-cppapi-vfs.cc:143:8:  [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).
  fbuf.open(file2, std::ios::out);
data/tiledb-1.7.7/test/src/unit-cppapi-vfs.cc:150:8:  [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).
  fbuf.open(subdir_file, std::ios::out);
data/tiledb-1.7.7/test/src/unit-cppapi-vfs.cc:157:8:  [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).
  fbuf.open(subdir_file2, std::ios::out);
data/tiledb-1.7.7/test/src/unit-encryption.cc:57: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 tag_array[16], iv_array[12];
data/tiledb-1.7.7/test/src/unit-encryption.cc:78: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 tag_copy[16];
data/tiledb-1.7.7/test/src/unit-encryption.cc:79: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(tag_copy, tag_array, sizeof(tag_array));
data/tiledb-1.7.7/test/src/unit-encryption.cc:99: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 key_copy[32];
data/tiledb-1.7.7/test/src/unit-encryption.cc:100: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(key_copy, key_bytes, sizeof(key_bytes) - 1);
data/tiledb-1.7.7/test/src/unit-encryption.cc:109: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(key_bytes, key_copy, sizeof(key_copy) - 1);
data/tiledb-1.7.7/test/src/unit-encryption.cc:150:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tag_array[16], iv_array[12];
data/tiledb-1.7.7/test/src/unit-encryption.cc:195: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 tag_array[16], iv_array[12];
data/tiledb-1.7.7/test/src/unit-encryption.cc:224: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 key[64 + 1];
data/tiledb-1.7.7/test/src/unit-encryption.cc:225: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 iv[24 + 1];
data/tiledb-1.7.7/test/src/unit-encryption.cc:226: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 pt[102 + 1];
data/tiledb-1.7.7/test/src/unit-encryption.cc:227: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 ct[102 + 1];
data/tiledb-1.7.7/test/src/unit-encryption.cc:228: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 tag[32 + 1];
data/tiledb-1.7.7/test/src/unit-encryption.cc:248:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char byte_str[3] = {field[i], field[i + 1], '\0'};
data/tiledb-1.7.7/test/src/unit-encryption.cc:456: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 tag_array[16], iv_array[12];
data/tiledb-1.7.7/test/src/unit-encryption.cc:515: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 md5string[33];
data/tiledb-1.7.7/test/src/unit-encryption.cc:517:7:  [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(&md5string[i * 2], "%02x", (unsigned int)digest[i]);
data/tiledb-1.7.7/test/src/unit-encryption.cc:539: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 shastring[65];
data/tiledb-1.7.7/test/src/unit-encryption.cc:541:7:  [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(&shastring[i * 2], "%02x", (unsigned int)digest[i]);
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:69:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char data_r[sizeof(data)];
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:89:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char data_r2[8];
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:113:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char data_r[sizeof(data)];
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:134:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char data_r2[8];
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:146:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char data_r3[9];
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:169:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char data_r4[100];
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:276:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char data_r[12];
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:312:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char data_r[12];
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:322:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char data_r2[13];
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:339:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char data_r[100];
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:535:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char data[3] = {0};
data/tiledb-1.7.7/test/src/unit-filter-pipeline.cc:1438: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 key[32];
data/tiledb-1.7.7/tiledb/sm/array/array.cc:128: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).
Status Array::open(
data/tiledb-1.7.7/tiledb/sm/array/array.cc:181: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).
Status Array::open(
data/tiledb-1.7.7/tiledb/sm/array/array.cc:233: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).
Status Array::open(
data/tiledb-1.7.7/tiledb/sm/array/array.cc:496:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    return open(
data/tiledb-1.7.7/tiledb/sm/array/array.cc:738:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(last_max_buffer_sizes_subarray_, subarray, subarray_size);
data/tiledb-1.7.7/tiledb/sm/array/array.h:102:10:  [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).
  Status open(
data/tiledb-1.7.7/tiledb/sm/array/array.h:124:10:  [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).
  Status open(
data/tiledb-1.7.7/tiledb/sm/array/array.h:145:10:  [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).
  Status open(
data/tiledb-1.7.7/tiledb/sm/array_schema/dimension.cc:67:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(domain_, dim->domain(), 2 * type_size);
data/tiledb-1.7.7/tiledb/sm/array_schema/dimension.cc:74:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(tile_extent_, tile_extent, type_size);
data/tiledb-1.7.7/tiledb/sm/array_schema/dimension.cc:200:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(domain_, domain, domain_size);
data/tiledb-1.7.7/tiledb/sm/array_schema/dimension.cc:235:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(tile_extent_, tile_extent, type_size);
data/tiledb-1.7.7/tiledb/sm/array_schema/dimension.cc:328:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(tile_extent_, &tile_extent, type_size);
data/tiledb-1.7.7/tiledb/sm/array_schema/domain.cc:97:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(domain_, domain->domain_, 2 * coords_size);
data/tiledb-1.7.7/tiledb/sm/array_schema/domain.cc:104:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(tile_domain_, domain->tile_domain_, 2 * coords_size);
data/tiledb-1.7.7/tiledb/sm/array_schema/domain.cc:111:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(tile_extents_, domain->tile_extents_, coords_size);
data/tiledb-1.7.7/tiledb/sm/array_schema/domain.cc:824:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(domain + i * 2 * coord_size, this->domain(i), 2 * coord_size);
data/tiledb-1.7.7/tiledb/sm/array_schema/domain.cc:835:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      std::memcpy(tile_extents + i * coord_size, tile_extent(i), coord_size);
data/tiledb-1.7.7/tiledb/sm/buffer/buffer.cc:81:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      std::memcpy(data_, buff.data_, buff.alloced_size_);
data/tiledb-1.7.7/tiledb/sm/buffer/buffer.cc:162:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(buffer, (char*)data_ + offset_, nbytes);
data/tiledb-1.7.7/tiledb/sm/buffer/buffer.cc:263:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy((char*)data_ + offset_, buffer, nbytes);
data/tiledb-1.7.7/tiledb/sm/buffer/const_buffer.cc:90:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(buffer, (char*)data_ + offset_, nbytes);
data/tiledb-1.7.7/tiledb/sm/buffer/preallocated_buffer.cc:80:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(buffer, (char*)data_ + offset_, nbytes);
data/tiledb-1.7.7/tiledb/sm/buffer/preallocated_buffer.cc:94:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy((char*)data_ + offset_, buffer, nbytes);
data/tiledb-1.7.7/tiledb/sm/c_api/tiledb.cc:2894:26:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
          array->array_->open(
data/tiledb-1.7.7/tiledb/sm/c_api/tiledb.cc:2915:26:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
          array->array_->open(
data/tiledb-1.7.7/tiledb/sm/c_api/tiledb.cc:2939:26:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
          array->array_->open(
data/tiledb-1.7.7/tiledb/sm/c_api/tiledb.cc:2963:26:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
          array->array_->open(
data/tiledb-1.7.7/tiledb/sm/c_api/tiledb.cc:3888:45:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if (SAVE_ERROR_CATCH(ctx, (*fh)->vfs_fh_->open())) {
data/tiledb-1.7.7/tiledb/sm/c_api/tiledb.cc:4067:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(*out, str.data(), str.size());
data/tiledb-1.7.7/tiledb/sm/compressors/rle_compressor.cc:131:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(&byte, input_cur + value_size, sizeof(char));
data/tiledb-1.7.7/tiledb/sm/compressors/rle_compressor.cc:133:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(&byte, input_cur + value_size + sizeof(char), sizeof(char));
data/tiledb-1.7.7/tiledb/sm/cpp_api/array.h:302:62:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        tiledb_array_is_open(ctx.ptr().get(), array_.get(), &open));
data/tiledb-1.7.7/tiledb/sm/cpp_api/array.h:303:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    return bool(open);
data/tiledb-1.7.7/tiledb/sm/cpp_api/array.h:353:8:  [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).
  void open(tiledb_query_type_t query_type) {
data/tiledb-1.7.7/tiledb/sm/cpp_api/array.h:354:5:  [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).
    open(query_type, TILEDB_NO_ENCRYPTION, nullptr, 0);
data/tiledb-1.7.7/tiledb/sm/cpp_api/array.h:377:8:  [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).
  void open(
data/tiledb-1.7.7/tiledb/sm/cpp_api/array.h:404:8:  [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).
  void open(
data/tiledb-1.7.7/tiledb/sm/cpp_api/array.h:408:5:  [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).
    open(
data/tiledb-1.7.7/tiledb/sm/cpp_api/array.h:441:8:  [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).
  void open(tiledb_query_type_t query_type, uint64_t timestamp) {
data/tiledb-1.7.7/tiledb/sm/cpp_api/array.h:442:5:  [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).
    open(query_type, TILEDB_NO_ENCRYPTION, nullptr, 0, timestamp);
data/tiledb-1.7.7/tiledb/sm/cpp_api/array.h:470:8:  [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).
  void open(
data/tiledb-1.7.7/tiledb/sm/cpp_api/array.h:499:8:  [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).
  void open(
data/tiledb-1.7.7/tiledb/sm/cpp_api/array.h:504:5:  [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).
    open(
data/tiledb-1.7.7/tiledb/sm/cpp_api/array.h:1153:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy((void*)key->data(), key_c, key_len);
data/tiledb-1.7.7/tiledb/sm/cpp_api/type.h:322:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data(dest), d, size);
data/tiledb-1.7.7/tiledb/sm/cpp_api/type.h:350:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data(dest), d, size);
data/tiledb-1.7.7/tiledb/sm/cpp_api/type.h:396:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data(dest), d, size);
data/tiledb-1.7.7/tiledb/sm/cpp_api/type.h:423:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data(dest), d, size);
data/tiledb-1.7.7/tiledb/sm/cpp_api/vfs.h:108: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).
  VFSFilebuf* open(
data/tiledb-1.7.7/tiledb/sm/cpp_api/vfs.h:588:32:  [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).
inline VFSFilebuf* VFSFilebuf::open(
data/tiledb-1.7.7/tiledb/sm/encryption/encryption_openssl.cc:53:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char err_msg[256];
data/tiledb-1.7.7/tiledb/sm/encryption/encryption_openssl.cc:95:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(output_iv->cur_data(), iv_buf, iv_len);
data/tiledb-1.7.7/tiledb/sm/encryption/encryption_win32.cc:97:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(output_iv->cur_data(), iv_buf, iv_len);
data/tiledb-1.7.7/tiledb/sm/encryption/encryption_win32.cc:136:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(key_buffer.data(), &key_data_header, sizeof(key_data_header));
data/tiledb-1.7.7/tiledb/sm/encryption/encryption_win32.cc:137:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(
data/tiledb-1.7.7/tiledb/sm/encryption/encryption_win32.cc:241:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(key_buffer.data(), &key_data_header, sizeof(key_data_header));
data/tiledb-1.7.7/tiledb/sm/encryption/encryption_win32.cc:242:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(
data/tiledb-1.7.7/tiledb/sm/filesystem/posix.cc:164:14:  [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(filename.c_str(), O_WRONLY | O_CREAT | O_SYNC, S_IRWXU);
data/tiledb-1.7.7/tiledb/sm/filesystem/posix.cc:218:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  int fd = open(path.c_str(), O_RDONLY);
data/tiledb-1.7.7/tiledb/sm/filesystem/posix.cc:247:11:  [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(filename.c_str(), O_RDWR);
data/tiledb-1.7.7/tiledb/sm/filesystem/posix.cc:388:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  int fd = open(path.c_str(), O_RDONLY);
data/tiledb-1.7.7/tiledb/sm/filesystem/posix.cc:421:10:  [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.c_str(), O_RDONLY, S_IRWXU);
data/tiledb-1.7.7/tiledb/sm/filesystem/posix.cc:423:10:  [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.c_str(), O_WRONLY | O_APPEND | O_CREAT, S_IRWXU);
data/tiledb-1.7.7/tiledb/sm/filesystem/posix.cc:477:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  int fd = open(path.c_str(), O_WRONLY | O_CREAT, S_IRWXU);
data/tiledb-1.7.7/tiledb/sm/filesystem/vfs.cc:1031:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(dest, buffer.data(offset - batch_copy.offset), nbytes);
data/tiledb-1.7.7/tiledb/sm/filesystem/vfs_file_handle.cc:84:23:  [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).
Status VFSFileHandle::open() {
data/tiledb-1.7.7/tiledb/sm/filesystem/vfs_file_handle.h:69:10:  [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).
  Status open();
data/tiledb-1.7.7/tiledb/sm/filesystem/win.cc:83:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char result[MAX_PATH];
data/tiledb-1.7.7/tiledb/sm/filesystem/win.cc:560:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char uri[INTERNET_MAX_URL_LENGTH];
data/tiledb-1.7.7/tiledb/sm/filesystem/win.cc:579:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char path[MAX_PATH];
data/tiledb-1.7.7/tiledb/sm/filter/bitshuffle_filter.cc:81:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      std::memcpy(output_buf->cur_data(), part.data(), part_size);
data/tiledb-1.7.7/tiledb/sm/filter/bitshuffle_filter.cc:176:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      std::memcpy(output_buf->cur_data(), part.data(), part_size);
data/tiledb-1.7.7/tiledb/sm/filter/checksum_md5_filter.cc:214:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char md5string[33];
data/tiledb-1.7.7/tiledb/sm/filter/checksum_md5_filter.cc:216:7:  [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(&md5string[i * 2], "%02x", (unsigned int)digest[i]);
data/tiledb-1.7.7/tiledb/sm/filter/checksum_md5_filter.cc:220: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 md5string_existing[33];
data/tiledb-1.7.7/tiledb/sm/filter/checksum_md5_filter.cc:222:7:  [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(
data/tiledb-1.7.7/tiledb/sm/filter/checksum_sha256_filter.cc:217: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 shastring[65];
data/tiledb-1.7.7/tiledb/sm/filter/checksum_sha256_filter.cc:219:7:  [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(&shastring[i * 2], "%02x", (unsigned int)digest[i]);
data/tiledb-1.7.7/tiledb/sm/filter/checksum_sha256_filter.cc:223: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 shastring_existing[65];
data/tiledb-1.7.7/tiledb/sm/filter/checksum_sha256_filter.cc:225:7:  [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(
data/tiledb-1.7.7/tiledb/sm/filter/filter.cc:151:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(
data/tiledb-1.7.7/tiledb/sm/filter/filter_buffer.cc:163:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy((char*)dest + dest_offset, src->data(), src->size());
data/tiledb-1.7.7/tiledb/sm/filter/filter_buffer.cc:281:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(
data/tiledb-1.7.7/tiledb/sm/filter/filter_buffer.cc:522:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      std::memcpy(
data/tiledb-1.7.7/tiledb/sm/filter/filter_pipeline.cc:230:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy((char*)dest + dest_offset, &orig_chunk_size, sizeof(uint32_t));
data/tiledb-1.7.7/tiledb/sm/filter/filter_pipeline.cc:233:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy((char*)dest + dest_offset, &filtered_size, sizeof(uint32_t));
data/tiledb-1.7.7/tiledb/sm/filter/filter_pipeline.cc:236:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy((char*)dest + dest_offset, &metadata_size, sizeof(uint32_t));
data/tiledb-1.7.7/tiledb/sm/fragment/fragment_metadata.cc:162:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(new_mbr, mbr, mbr_size);
data/tiledb-1.7.7/tiledb/sm/fragment/fragment_metadata.cc:398:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(non_empty_domain_, non_empty_domain, domain_size);
data/tiledb-1.7.7/tiledb/sm/fragment/fragment_metadata.cc:407:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(domain_, non_empty_domain_, domain_size);
data/tiledb-1.7.7/tiledb/sm/fragment/fragment_metadata.cc:849:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(non_empty_domain_, mbr, domain_size);
data/tiledb-1.7.7/tiledb/sm/fragment/fragment_metadata.cc:1102:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(domain_, non_empty_domain_, domain_size);
data/tiledb-1.7.7/tiledb/sm/fragment/fragment_metadata.cc:1140:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(domain_, non_empty_domain_, domain_size);
data/tiledb-1.7.7/tiledb/sm/metadata/metadata.cc:169:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(value_struct.value_.data(), value, value_size);
data/tiledb-1.7.7/tiledb/sm/misc/status.cc:60:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(result, &size, sizeof(size));
data/tiledb-1.7.7/tiledb/sm/misc/status.cc:62:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(result + 5, &posix_code, sizeof(posix_code));
data/tiledb-1.7.7/tiledb/sm/misc/status.cc:63:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(result + 7, msg.c_str(), msg_size);
data/tiledb-1.7.7/tiledb/sm/misc/status.cc:71:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(result, state, size + 7);
data/tiledb-1.7.7/tiledb/sm/misc/utils.cc:658:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(mbr_union, mbrs, mbr_size);
data/tiledb-1.7.7/tiledb/sm/misc/uuid.cc:108: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 err_msg[256];
data/tiledb-1.7.7/tiledb/sm/misc/uuid.cc:121:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[128];
data/tiledb-1.7.7/tiledb/sm/query/reader.cc:944:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(buffer + offset, fill_value, fill_size);
data/tiledb-1.7.7/tiledb/sm/query/reader.cc:951:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(
data/tiledb-1.7.7/tiledb/sm/query/reader.cc:958: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.
          std::memcpy(buffer + cell_offset, data + data_offset, cell_size);
data/tiledb-1.7.7/tiledb/sm/query/reader.cc:1049:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      std::memcpy(offset_dest, &var_offset, offset_size);
data/tiledb-1.7.7/tiledb/sm/query/reader.cc:1053:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(var_dest, &fill_value, fill_size);
data/tiledb-1.7.7/tiledb/sm/query/reader.cc:1059:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(
data/tiledb-1.7.7/tiledb/sm/query/reader.cc:1506:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      std::memcpy(c_buff + *offset, start, bytes_to_copy);
data/tiledb-1.7.7/tiledb/sm/query/reader.cc:1512:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(c_buff + *offset, &new_coord, sizeof(T));
data/tiledb-1.7.7/tiledb/sm/query/reader.cc:1529:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(c_buff + *offset, &new_coord, sizeof(T));
data/tiledb-1.7.7/tiledb/sm/query/reader.cc:1535:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      std::memcpy(c_buff + *offset, &start[1], bytes_to_copy);
data/tiledb-1.7.7/tiledb/sm/query/writer.cc:399:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(subarray_, array_schema_->domain()->domain(), subarray_size);
data/tiledb-1.7.7/tiledb/sm/query/writer.cc:401:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(subarray_, subarray, subarray_size);
data/tiledb-1.7.7/tiledb/sm/rtree/rtree.cc:370:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(copy_loc, mbr, mbr_size);
data/tiledb-1.7.7/tiledb/sm/serialization/array_schema.cc:669: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.
          std::memcpy(nonempty_domain, subarray, 2 * schema->coords_size());
data/tiledb-1.7.7/tiledb/sm/serialization/array_schema.cc:689: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.
          std::memcpy(nonempty_domain, subarray, 2 * schema->coords_size());
data/tiledb-1.7.7/tiledb/sm/serialization/capnp_utils.h:379:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(*subarray, subarray_buff.data(), subarray_size);
data/tiledb-1.7.7/tiledb/sm/serialization/query.cc:599: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.
          std::memcpy(offset_dest, attribute_buffer_start, fixedlen_size);
data/tiledb-1.7.7/tiledb/sm/serialization/query.cc:601: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.
          std::memcpy(data_dest, attribute_buffer_start, varlen_size);
data/tiledb-1.7.7/tiledb/sm/serialization/query.cc:618: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.
          std::memcpy(data_dest, attribute_buffer_start, fixedlen_size);
data/tiledb-1.7.7/tiledb/sm/storage_manager/consolidator.cc:111:33:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  RETURN_NOT_OK(array_for_reads.open(
data/tiledb-1.7.7/tiledb/sm/storage_manager/consolidator.cc:117:24:  [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).
      array_for_writes.open(
data/tiledb-1.7.7/tiledb/sm/storage_manager/consolidator.cc:399:33:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  RETURN_NOT_OK(array_for_reads.open(
data/tiledb-1.7.7/tiledb/sm/storage_manager/consolidator.cc:414:24:  [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).
      array_for_writes.open(
data/tiledb-1.7.7/tiledb/sm/storage_manager/consolidator.cc:760:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(
data/tiledb-1.7.7/tiledb/sm/storage_manager/consolidator.cc:772: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.
          std::memcpy(&m_union[i][j][0], &m_union[i - 1][j][0], domain_size);
data/tiledb-1.7.7/tiledb/sm/storage_manager/consolidator.cc:821:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(union_non_empty_domains, &m_union[i][min_col][0], domain_size);
data/tiledb-1.7.7/tiledb/sm/storage_manager/storage_manager.cc:822:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(&non_empty_domain[0], meta->non_empty_domain(), domain_size);
data/tiledb-1.7.7/tiledb/sm/storage_manager/storage_manager.cc:832:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(
data/tiledb-1.7.7/tiledb/sm/storage_manager/storage_manager.cc:906:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(&non_empty_domain[0], metadata.non_empty_domain(), domain_size);
data/tiledb-1.7.7/tiledb/sm/storage_manager/storage_manager.cc:911:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(
data/tiledb-1.7.7/tiledb/sm/storage_manager/storage_manager.cc:1527:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(object, buffer->data(), object_size);
data/tiledb-1.7.7/tiledb/sm/storage_manager/storage_manager.cc:1556:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(domain, non_empty_domain, domain_size);
data/tiledb-1.7.7/tiledb/sm/subarray/subarray.cc:729:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(&((*aux_tile_coords)[0]), &tile_coords[0], coords_size);
data/tiledb-1.7.7/tiledb/sm/subarray/subarray.cc:1074:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      std::memcpy(&(coords[i * coord_size]), &(*iters[i]), coord_size);
data/tiledb-1.7.7/tiledb/sm/subarray/subarray.cc:1131:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      std::memcpy(&(coords[i * coord_size]), &(*iters[i]), coord_size);
data/tiledb-1.7.7/tiledb/sm/tile/tile.cc:302:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(tile_tmp, tile_c, tile_size);
data/tiledb-1.7.7/tiledb/sm/tile/tile.cc:308:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      std::memcpy(tile_c + ptr, tile_tmp + ptr_tmp, coord_size);
data/tiledb-1.7.7/tiledb/sm/tile/tile.cc:360:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(tile_tmp, tile_c, tile_size);
data/tiledb-1.7.7/tiledb/sm/tile/tile.cc:366:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      std::memcpy(tile_c + ptr, tile_tmp + ptr_tmp, coord_size);
data/tiledb-1.7.7/tools/src/commands/info_command.cc:109: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).
      array.open(QueryType::READ, EncryptionType::NO_ENCRYPTION, nullptr, 0));
data/tiledb-1.7.7/tools/src/commands/info_command.cc:180: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).
      array.open(QueryType::READ, EncryptionType::NO_ENCRYPTION, nullptr, 0));
data/tiledb-1.7.7/tools/src/commands/info_command.cc:196: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).
      array.open(QueryType::READ, EncryptionType::NO_ENCRYPTION, nullptr, 0));
data/tiledb-1.7.7/tools/src/commands/info_command.cc:270: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).
      array.open(QueryType::READ, EncryptionType::NO_ENCRYPTION, nullptr, 0));
data/tiledb-1.7.7/examples/c_api/encryption.c:84: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).
      (uint32_t)strlen(encryption_key));
data/tiledb-1.7.7/examples/c_api/encryption.c:109: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).
      (uint32_t)strlen(encryption_key));
data/tiledb-1.7.7/examples/c_api/encryption.c:147: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).
      (uint32_t)strlen(encryption_key));
data/tiledb-1.7.7/examples/c_api/reading_incomplete.c:108: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).
  uint64_t a2_data_size = strlen(a2_data);
data/tiledb-1.7.7/examples/c_api/variable_length.c:106: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).
  uint64_t a1_data_size = strlen(a1_data);
data/tiledb-1.7.7/examples/c_api/vfs.c:110: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).
  tiledb_vfs_write(ctx, fh, s1, strlen(s1));
data/tiledb-1.7.7/examples/c_api/vfs.c:119: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).
  tiledb_vfs_write(ctx, fh, s2, strlen(s2));
data/tiledb-1.7.7/examples/c_api/vfs.c:126: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).
  tiledb_vfs_write(ctx, fh, s3, strlen(s3));
data/tiledb-1.7.7/examples/c_api/vfs.c:135:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void read() {
data/tiledb-1.7.7/examples/c_api/vfs.c:163:3:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  read();
data/tiledb-1.7.7/examples/cpp_api/encryption.cc:68: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).
      (uint32_t)strlen(encryption_key));
data/tiledb-1.7.7/examples/cpp_api/encryption.cc:85: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).
      (uint32_t)strlen(encryption_key));
data/tiledb-1.7.7/examples/cpp_api/encryption.cc:104: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).
      (uint32_t)strlen(encryption_key));
data/tiledb-1.7.7/examples/cpp_api/vfs.cc:116:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void read() {
data/tiledb-1.7.7/examples/cpp_api/vfs.cc:138:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    is.read((char*)&f1, sizeof(f1));
data/tiledb-1.7.7/examples/cpp_api/vfs.cc:139:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    is.read((char*)s1.data(), 12);
data/tiledb-1.7.7/examples/cpp_api/vfs.cc:147:3:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  read();
data/tiledb-1.7.7/test/src/unit-CellSlabIter.cc:232:14:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  CHECK(std::equal(
data/tiledb-1.7.7/test/src/unit-CellSlabIter.cc:279:14:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  CHECK(std::equal(
data/tiledb-1.7.7/test/src/unit-CellSlabIter.cc:285:14:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  CHECK(std::equal(
data/tiledb-1.7.7/test/src/unit-buffer.cc:58:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  st = buff->read(&val, sizeof(char));
data/tiledb-1.7.7/test/src/unit-buffer.cc:65:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  st = buff->read(readtwo, 2);
data/tiledb-1.7.7/test/src/unit-bufferlist.cc:76:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  REQUIRE(!buffer_list.read(data, 1).ok());
data/tiledb-1.7.7/test/src/unit-bufferlist.cc:77:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  REQUIRE(buffer_list.read(data, 0).ok());
data/tiledb-1.7.7/test/src/unit-bufferlist.cc:78:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  REQUIRE(buffer_list.read(nullptr, 0).ok());
data/tiledb-1.7.7/test/src/unit-bufferlist.cc:87:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  REQUIRE(buffer_list.read(data, 2).ok());
data/tiledb-1.7.7/test/src/unit-bufferlist.cc:90:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  REQUIRE(buffer_list.read(data + 2, 2).ok());
data/tiledb-1.7.7/test/src/unit-bufferlist.cc:93:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  REQUIRE(buffer_list.read(data + 4, 3).ok());
data/tiledb-1.7.7/test/src/unit-bufferlist.cc:97:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  REQUIRE(!buffer_list.read(data, 1).ok());
data/tiledb-1.7.7/test/src/unit-bufferlist.cc:101:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  REQUIRE(buffer_list.read(data, 7).ok());
data/tiledb-1.7.7/test/src/unit-capi-array.cc:336: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).
        (uint32_t)strlen(encryption_key_));
data/tiledb-1.7.7/test/src/unit-capi-array.cc:498: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).
    uint32_t key_len = (uint32_t)strlen(key);
data/tiledb-1.7.7/test/src/unit-capi-array.cc:779: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).
        (uint32_t)strlen(encryption_key_),
data/tiledb-1.7.7/test/src/unit-capi-array.cc:792: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).
        (uint32_t)strlen(encryption_key_));
data/tiledb-1.7.7/test/src/unit-capi-array.cc:836: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).
        (uint32_t)strlen(encryption_key_));
data/tiledb-1.7.7/test/src/unit-capi-array.cc:874: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).
        (uint32_t)strlen(encryption_key_));
data/tiledb-1.7.7/test/src/unit-capi-array.cc:916: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).
        (uint32_t)strlen(encryption_key_),
data/tiledb-1.7.7/test/src/unit-capi-array.cc:964: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).
        (uint32_t)strlen(encryption_key_),
data/tiledb-1.7.7/test/src/unit-capi-array.cc:1008: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).
        (uint32_t)strlen(encryption_key_),
data/tiledb-1.7.7/test/src/unit-capi-array_schema.cc:774: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).
  fwrite(dump, sizeof(char), strlen(dump), gold_fout);
data/tiledb-1.7.7/test/src/unit-capi-consolidation.cc:170: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).
        (uint32_t)strlen(encryption_key_));
data/tiledb-1.7.7/test/src/unit-capi-consolidation.cc:259: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).
        (uint32_t)strlen(encryption_key_));
data/tiledb-1.7.7/test/src/unit-capi-consolidation.cc:351: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).
        (uint32_t)strlen(encryption_key_));
data/tiledb-1.7.7/test/src/unit-capi-consolidation.cc:397: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).
        (uint32_t)strlen(encryption_key_));
data/tiledb-1.7.7/test/src/unit-capi-consolidation.cc:699: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).
        (uint32_t)strlen(encryption_key_));
data/tiledb-1.7.7/test/src/unit-capi-consolidation.cc:796: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).
        (uint32_t)strlen(encryption_key_));
data/tiledb-1.7.7/test/src/unit-capi-consolidation.cc:876: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).
        (uint32_t)strlen(encryption_key_));
data/tiledb-1.7.7/test/src/unit-capi-consolidation.cc:949: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).
        (uint32_t)strlen(encryption_key_));
data/tiledb-1.7.7/test/src/unit-capi-consolidation.cc:1052: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).
        (uint32_t)strlen(encryption_key_));
data/tiledb-1.7.7/test/src/unit-capi-consolidation.cc:1155: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).
        (uint32_t)strlen(encryption_key_));
data/tiledb-1.7.7/test/src/unit-capi-consolidation.cc:1274: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).
        (uint32_t)strlen(encryption_key_));
data/tiledb-1.7.7/test/src/unit-capi-consolidation.cc:1344: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).
        (uint32_t)strlen(encryption_key_));
data/tiledb-1.7.7/test/src/unit-capi-consolidation.cc:1421: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).
        (uint32_t)strlen(encryption_key_));
data/tiledb-1.7.7/test/src/unit-capi-consolidation.cc:1512: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).
        (uint32_t)strlen(encryption_key_));
data/tiledb-1.7.7/test/src/unit-capi-consolidation.cc:1589: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).
        (uint32_t)strlen(encryption_key_));
data/tiledb-1.7.7/test/src/unit-capi-consolidation.cc:1655: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).
        (uint32_t)strlen(encryption_key_));
data/tiledb-1.7.7/test/src/unit-capi-consolidation.cc:1718: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).
        (uint32_t)strlen(encryption_key_));
data/tiledb-1.7.7/test/src/unit-capi-consolidation.cc:1783: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).
        (uint32_t)strlen(encryption_key_));
data/tiledb-1.7.7/test/src/unit-capi-consolidation.cc:1843: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).
        (uint32_t)strlen(encryption_key_));
data/tiledb-1.7.7/test/src/unit-capi-consolidation.cc:1906: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).
        (uint32_t)strlen(encryption_key_));
data/tiledb-1.7.7/test/src/unit-capi-consolidation.cc:1965: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).
        (uint32_t)strlen(encryption_key_));
data/tiledb-1.7.7/test/src/unit-capi-consolidation.cc:2024: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).
        (uint32_t)strlen(encryption_key_));
data/tiledb-1.7.7/test/src/unit-capi-consolidation.cc:2088: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).
        (uint32_t)strlen(encryption_key_));
data/tiledb-1.7.7/test/src/unit-capi-consolidation.cc:2159: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).
        (uint32_t)strlen(encryption_key_));
data/tiledb-1.7.7/test/src/unit-capi-consolidation.cc:2271: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).
        (uint32_t)strlen(encryption_key_));
data/tiledb-1.7.7/test/src/unit-capi-consolidation.cc:2374: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).
        (uint32_t)strlen(encryption_key_));
data/tiledb-1.7.7/test/src/unit-capi-consolidation.cc:2471: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).
        (uint32_t)strlen(encryption_key_));
data/tiledb-1.7.7/test/src/unit-capi-consolidation.cc:2575: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).
        (uint32_t)strlen(encryption_key_));
data/tiledb-1.7.7/test/src/unit-capi-consolidation.cc:2665: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).
        (uint32_t)strlen(encryption_key_),
data/tiledb-1.7.7/test/src/unit-capi-consolidation.cc:2681: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).
        (uint32_t)strlen(encryption_key_),
data/tiledb-1.7.7/test/src/unit-capi-consolidation.cc:3531: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).
      (uint32_t)strlen(encryption_key_),
data/tiledb-1.7.7/test/src/unit-capi-dense_array.cc:458: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).
        (uint32_t)strlen(encryption_key));
data/tiledb-1.7.7/test/src/unit-capi-dense_array.cc:530: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).
        (uint32_t)strlen(encryption_key));
data/tiledb-1.7.7/test/src/unit-capi-dense_array.cc:600: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).
        (uint32_t)strlen(encryption_key));
data/tiledb-1.7.7/test/src/unit-capi-dense_array.cc:762: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).
        (uint32_t)strlen(encryption_key));
data/tiledb-1.7.7/test/src/unit-capi-dense_array.cc:870: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).
        (uint32_t)strlen(encryption_key));
data/tiledb-1.7.7/test/src/unit-capi-dense_array.cc:1133: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).
        (uint32_t)strlen(encryption_key));
data/tiledb-1.7.7/test/src/unit-capi-dense_array.cc:1972: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).
        (uint32_t)strlen(encryption_key));
data/tiledb-1.7.7/test/src/unit-capi-metadata.cc:66: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).
      (uint32_t)strlen("0123456789abcdeF0123456789abcdeF");
data/tiledb-1.7.7/test/src/unit-capi-metadata.cc:285: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).
  CHECK(key_len == strlen("bb"));
data/tiledb-1.7.7/test/src/unit-capi-metadata.cc:286: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).
  CHECK(!strncmp(key, "bb", strlen("bb")));
data/tiledb-1.7.7/test/src/unit-capi-metadata.cc:356: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).
  CHECK(key_len == strlen("≥"));
data/tiledb-1.7.7/test/src/unit-capi-metadata.cc:357: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).
  CHECK(!strncmp(key, "≥", strlen("≥")));
data/tiledb-1.7.7/test/src/unit-capi-metadata.cc:445: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).
  CHECK(key_len == strlen("bb"));
data/tiledb-1.7.7/test/src/unit-capi-metadata.cc:446: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).
  CHECK(!strncmp(key, "bb", strlen("bb")));
data/tiledb-1.7.7/test/src/unit-capi-metadata.cc:539: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).
  CHECK(key_len == strlen("bb"));
data/tiledb-1.7.7/test/src/unit-capi-metadata.cc:540: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).
  CHECK(!strncmp(key, "bb", strlen("bb")));
data/tiledb-1.7.7/test/src/unit-capi-metadata.cc:852: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).
  CHECK(key_len == strlen("bb"));
data/tiledb-1.7.7/test/src/unit-capi-metadata.cc:853: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).
  CHECK(!strncmp(key, "bb", strlen("bb")));
data/tiledb-1.7.7/test/src/unit-capi-rest-dense_array.cc:395: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).
        (uint32_t)strlen(encryption_key));
data/tiledb-1.7.7/test/src/unit-capi-rest-dense_array.cc:466: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).
        (uint32_t)strlen(encryption_key));
data/tiledb-1.7.7/test/src/unit-capi-rest-dense_array.cc:554: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).
        (uint32_t)strlen(encryption_key));
data/tiledb-1.7.7/test/src/unit-capi-rest-dense_array.cc:745: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).
        (uint32_t)strlen(encryption_key));
data/tiledb-1.7.7/test/src/unit-capi-sparse_array.cc:411: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).
        (uint32_t)strlen(encryption_key));
data/tiledb-1.7.7/test/src/unit-capi-sparse_array.cc:445: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).
        (uint32_t)strlen(encryption_key));
data/tiledb-1.7.7/test/src/unit-capi-sparse_array.cc:689: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).
        (uint32_t)strlen(encryption_key));
data/tiledb-1.7.7/test/src/unit-capi-uri.cc:62:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  CHECK(strlen(path) == path_length);
data/tiledb-1.7.7/test/src/unit-capi-uri.cc:67:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  CHECK(strlen(path) == path_length);
data/tiledb-1.7.7/test/src/unit-capi-uri.cc:89:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  CHECK(strlen(path) == path_length);
data/tiledb-1.7.7/test/src/unit-capi-uri.cc:94:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  CHECK(strlen(path) == path_length);
data/tiledb-1.7.7/test/src/unit-capi-uri.cc:103:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  CHECK(strlen(path) == path_length);
data/tiledb-1.7.7/test/src/unit-capi-uri.cc:111:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  CHECK(strlen(path) == path_length);
data/tiledb-1.7.7/test/src/unit-capi-vfs.cc:809: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).
  CHECK(!strncmp(value, "https", strlen("https")));
data/tiledb-1.7.7/test/src/unit-capi-vfs.cc:812: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).
  CHECK(!strncmp(value, "10000000", strlen("10000000")));
data/tiledb-1.7.7/test/src/unit-cppapi-array.cc:542: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).
  uint32_t key_len = (uint32_t)strlen(key);
data/tiledb-1.7.7/test/src/unit-cppapi-array.cc:779:14:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  CHECK(std::equal(a_r.begin(), a_r.end(), a_w.begin()));
data/tiledb-1.7.7/test/src/unit-cppapi-array.cc:803:15:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  CHECK(!std::equal(a_r_at_0.begin(), a_r_at_0.end(), a_w.begin()));
data/tiledb-1.7.7/test/src/unit-cppapi-array.cc:824:15:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  CHECK(!std::equal(a_r_at.begin(), a_r_at.end(), a_w.begin()));
data/tiledb-1.7.7/test/src/unit-cppapi-array.cc:835:14:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  CHECK(std::equal(a_r_reopen_at.begin(), a_r_reopen_at.end(), a_w.begin()));
data/tiledb-1.7.7/test/src/unit-cppapi-array.cc:846: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).
  uint32_t key_len = (uint32_t)strlen(key);
data/tiledb-1.7.7/test/src/unit-cppapi-array.cc:886:14:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  CHECK(std::equal(a_r.begin(), a_r.end(), a_w.begin()));
data/tiledb-1.7.7/test/src/unit-cppapi-array.cc:910:15:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  CHECK(!std::equal(a_r_at_0.begin(), a_r_at_0.end(), a_w.begin()));
data/tiledb-1.7.7/test/src/unit-cppapi-array.cc:939:15:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  CHECK(!std::equal(a_r_at.begin(), a_r_at.end(), a_w.begin()));
data/tiledb-1.7.7/test/src/unit-cppapi-metadata.cc:67: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).
      (uint32_t)strlen("0123456789abcdeF0123456789abcdeF");
data/tiledb-1.7.7/test/src/unit-cppapi-metadata.cc:248: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).
  CHECK(key.size() == strlen("bb"));
data/tiledb-1.7.7/test/src/unit-cppapi-metadata.cc:249: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).
  CHECK(!strncmp(key.data(), "bb", strlen("bb")));
data/tiledb-1.7.7/test/src/unit-cppapi-metadata.cc:301: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).
  CHECK(key.size() == strlen("≥"));
data/tiledb-1.7.7/test/src/unit-cppapi-metadata.cc:302: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).
  CHECK(!strncmp(key.data(), "≥", strlen("≥")));
data/tiledb-1.7.7/test/src/unit-cppapi-metadata.cc:363: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).
  CHECK(key.size() == strlen("bb"));
data/tiledb-1.7.7/test/src/unit-cppapi-metadata.cc:364: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).
  CHECK(!strncmp(key.data(), "bb", strlen("bb")));
data/tiledb-1.7.7/test/src/unit-cppapi-metadata.cc:430: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).
  CHECK(key.size() == strlen("bb"));
data/tiledb-1.7.7/test/src/unit-cppapi-metadata.cc:431: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).
  CHECK(!strncmp(key.data(), "bb", strlen("bb")));
data/tiledb-1.7.7/test/src/unit-cppapi-metadata.cc:643: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).
  CHECK(key.size() == strlen("bb"));
data/tiledb-1.7.7/test/src/unit-cppapi-metadata.cc:644: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).
  CHECK(!strncmp(key.data(), "bb", strlen("bb")));
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:70:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  CHECK(fbuf.read(data_r, 3).ok());
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:72:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  CHECK(fbuf.read(&data_r[3], 2).ok());
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:74:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  CHECK(!fbuf.read(&data_r[3], 2).ok());
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:77:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  CHECK(fbuf.read(data_r, 2).ok());
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:90:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  CHECK(!fbuf.read(data_r2, 6).ok());
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:92:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  CHECK(fbuf.read(data_r2, 6).ok());
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:115:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  CHECK(fbuf.read(data_r, sizeof(data)).ok());
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:124:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  CHECK(fbuf.read(data_r, sizeof(data)).ok());
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:136:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  CHECK(fbuf.read(data_r2, 8).ok());
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:148:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  CHECK(fbuf.read(data_r3, 7).ok());
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:171:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  CHECK(fbuf.read(data_r4, fbuf.size()).ok());
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:190:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  CHECK(fbuf.read(data_r, 2 * sizeof(int)).ok());
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:195:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  CHECK(fbuf.read(data_r, sizeof(int)).ok());
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:197:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  CHECK(fbuf.read(&data_r[1], sizeof(int)).ok());
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:220:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  CHECK(fbuf2.read(data_r, 2 * sizeof(int)).ok());
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:278:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  CHECK(fbuf.read(data_r, 12).ok());
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:314:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  CHECK(fbuf.read(data_r, 12).ok());
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:324:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  buff2.read(data_r2, 13);
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:341:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  CHECK(fbuf2.read(data_r, 2).ok());
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:355:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  CHECK(fbuf2.read(data_r, 2).ok());
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:363:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  CHECK(fbuf2.read(data_r, 2).ok());
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:492:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  CHECK(fbuf.read(&u, sizeof(uint64_t)).ok());
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:494:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  CHECK(fbuf.read(&u, sizeof(uint64_t)).ok());
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:496:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  CHECK(fbuf.read(&u, sizeof(uint64_t)).ok());
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:502:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  CHECK(fbuf2.read(&aa, sizeof(uint32_t)).ok());
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:504:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  CHECK(fbuf2.read(&aa, sizeof(uint32_t)).ok());
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:506:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  CHECK(fbuf2.read(&aa, sizeof(uint32_t)).ok());
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:508:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  CHECK(fbuf2.read(&aa, sizeof(uint32_t)).ok());
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:510:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  CHECK(fbuf2.read(&aa, sizeof(uint32_t)).ok());
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:512:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  CHECK(fbuf2.read(&aa, sizeof(uint32_t)).ok());
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:536:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  CHECK(fbuf.read(data, 3).ok());
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:540:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  CHECK(fbuf.read(data, 2).ok());
data/tiledb-1.7.7/test/src/unit-filter-buffer.cc:542:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  CHECK(!fbuf.read(data, 1).ok());
data/tiledb-1.7.7/test/src/unit-filter-pipeline.cc:139:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      RETURN_NOT_OK(input->read(&inc, sizeof(uint64_t)));
data/tiledb-1.7.7/test/src/unit-filter-pipeline.cc:148:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      RETURN_NOT_OK(input->read(&byte, sizeof(char)));
data/tiledb-1.7.7/test/src/unit-filter-pipeline.cc:172:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      RETURN_NOT_OK(input->read(&inc, sizeof(uint64_t)));
data/tiledb-1.7.7/test/src/unit-filter-pipeline.cc:180:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      RETURN_NOT_OK(input->read(&byte, sizeof(char)));
data/tiledb-1.7.7/test/src/unit-filter-pipeline.cc:298:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      RETURN_NOT_OK(input->read(&val, sizeof(uint64_t)));
data/tiledb-1.7.7/test/src/unit-filter-pipeline.cc:316:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    RETURN_NOT_OK(input_metadata->read(&input_sum, sizeof(uint64_t)));
data/tiledb-1.7.7/test/src/unit-filter-pipeline.cc:321:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      RETURN_NOT_OK(input->read(&val, sizeof(uint64_t)));
data/tiledb-1.7.7/test/src/unit-filter-pipeline.cc:375:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      RETURN_NOT_OK(input->read(&inc, sizeof(uint64_t)));
data/tiledb-1.7.7/test/src/unit-filter-pipeline.cc:383:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      RETURN_NOT_OK(input->read(&byte, sizeof(char)));
data/tiledb-1.7.7/test/src/unit-filter-pipeline.cc:390:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      RETURN_NOT_OK(input_metadata->read(&inc, sizeof(uint64_t)));
data/tiledb-1.7.7/test/src/unit-filter-pipeline.cc:397:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      RETURN_NOT_OK(input_metadata->read(&byte, sizeof(char)));
data/tiledb-1.7.7/test/src/unit-filter-pipeline.cc:420:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    RETURN_NOT_OK(input_metadata->read(&orig_input_size, sizeof(uint32_t)));
data/tiledb-1.7.7/test/src/unit-filter-pipeline.cc:421:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    RETURN_NOT_OK(input_metadata->read(&orig_md_size, sizeof(uint32_t)));
data/tiledb-1.7.7/test/src/unit-filter-pipeline.cc:432:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      RETURN_NOT_OK(input->read(&inc, sizeof(uint64_t)));
data/tiledb-1.7.7/test/src/unit-filter-pipeline.cc:439:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      RETURN_NOT_OK(input->read(&byte, sizeof(char)));
data/tiledb-1.7.7/test/src/unit-filter-pipeline.cc:447:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      RETURN_NOT_OK(input->read(&inc, sizeof(uint64_t)));
data/tiledb-1.7.7/test/src/unit-filter-pipeline.cc:454:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      RETURN_NOT_OK(input->read(&byte, sizeof(char)));
data/tiledb-1.7.7/test/src/unit-hdfs-filesystem.cc:92:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  st = hdfs.read(
data/tiledb-1.7.7/test/src/unit-hdfs-filesystem.cc:105:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  st = hdfs.read(
data/tiledb-1.7.7/test/src/unit-lru_cache.cc:73:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  st = lru_cache_->read("key", &v_buf, 0, sizeof(int), &success);
data/tiledb-1.7.7/test/src/unit-lru_cache.cc:100:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  st = lru_cache_->read("v", &v_buf, 0, sizeof(int), &success);
data/tiledb-1.7.7/test/src/unit-lru_cache.cc:106:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  st = lru_cache_->read("v3", &v_buf, 0, 3 * sizeof(int), &success);
data/tiledb-1.7.7/test/src/unit-lru_cache.cc:116:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  st = lru_cache_->read("v2", &v_buf, sizeof(int), sizeof(int), &success);
data/tiledb-1.7.7/test/src/unit-lru_cache.cc:126:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  st = lru_cache_->read("v2", &v_buf, sizeof(int), 4 * sizeof(int), &success);
data/tiledb-1.7.7/test/src/unit-s3-no-multipart.cc:147:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  CHECK(s3_.read(URI(largefile), 0, read_buffer, 26).ok());
data/tiledb-1.7.7/test/src/unit-s3-no-multipart.cc:158:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  CHECK(s3_.read(URI(largefile), 11, read_buffer, 26).ok());
data/tiledb-1.7.7/test/src/unit-s3.cc:244:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  CHECK(s3_.read(URI(largefile), 0, read_buffer, 26).ok());
data/tiledb-1.7.7/test/src/unit-s3.cc:255:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  CHECK(s3_.read(URI(largefile), 11, read_buffer, 26).ok());
data/tiledb-1.7.7/test/src/unit-win-filesystem.cc:49:15:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  return std::equal(prefix.begin(), prefix.end(), value.begin());
data/tiledb-1.7.7/test/src/unit-win-filesystem.cc:55:15:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  return std::equal(suffix.rbegin(), suffix.rend(), value.rbegin());
data/tiledb-1.7.7/test/src/unit-win-filesystem.cc:170:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  st = win_.read(test_file.to_path(), 0, read_buffer, 26);
data/tiledb-1.7.7/test/src/unit-win-filesystem.cc:182:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  st = win_.read(test_file.to_path(), 11, read_buffer, 26);
data/tiledb-1.7.7/tiledb/sm/array_schema/array_schema.cc:466:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(buff->read(&version_, sizeof(uint32_t)));
data/tiledb-1.7.7/tiledb/sm/array_schema/array_schema.cc:470:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(buff->read(&array_type, sizeof(uint8_t)));
data/tiledb-1.7.7/tiledb/sm/array_schema/array_schema.cc:475:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(buff->read(&tile_order, sizeof(uint8_t)));
data/tiledb-1.7.7/tiledb/sm/array_schema/array_schema.cc:480:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(buff->read(&cell_order, sizeof(uint8_t)));
data/tiledb-1.7.7/tiledb/sm/array_schema/array_schema.cc:484:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(buff->read(&capacity_, sizeof(uint64_t)));
data/tiledb-1.7.7/tiledb/sm/array_schema/array_schema.cc:498:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(buff->read(&attribute_num, sizeof(uint32_t)));
data/tiledb-1.7.7/tiledb/sm/array_schema/attribute.cc:105:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(buff->read(&attribute_name_size, sizeof(uint32_t)));
data/tiledb-1.7.7/tiledb/sm/array_schema/attribute.cc:107:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(buff->read(&name_[0], attribute_name_size));
data/tiledb-1.7.7/tiledb/sm/array_schema/attribute.cc:111:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(buff->read(&type, sizeof(uint8_t)));
data/tiledb-1.7.7/tiledb/sm/array_schema/attribute.cc:115:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(buff->read(&cell_val_num_, sizeof(uint32_t)));
data/tiledb-1.7.7/tiledb/sm/array_schema/dimension.cc:100:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(buff->read(&dimension_name_size, sizeof(uint32_t)));
data/tiledb-1.7.7/tiledb/sm/array_schema/dimension.cc:102:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(buff->read(&name_[0], dimension_name_size));
data/tiledb-1.7.7/tiledb/sm/array_schema/dimension.cc:111:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(buff->read(domain_, domain_size));
data/tiledb-1.7.7/tiledb/sm/array_schema/dimension.cc:117:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(buff->read(&null_tile_extent, sizeof(uint8_t)));
data/tiledb-1.7.7/tiledb/sm/array_schema/dimension.cc:124:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    RETURN_NOT_OK(buff->read(tile_extent_, datatype_size(type_)));
data/tiledb-1.7.7/tiledb/sm/array_schema/domain.cc:559:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(buff->read(&type, sizeof(uint8_t)));
data/tiledb-1.7.7/tiledb/sm/array_schema/domain.cc:563:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(buff->read(&dim_num_, sizeof(uint32_t)));
data/tiledb-1.7.7/tiledb/sm/buffer/buffer.cc:157:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
Status Buffer::read(void* buffer, uint64_t nbytes) {
data/tiledb-1.7.7/tiledb/sm/buffer/buffer.cc:233:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  buff->read((char*)data_ + offset_, bytes_to_copy);
data/tiledb-1.7.7/tiledb/sm/buffer/buffer.cc:248:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  buff->read((char*)data_ + offset_, nbytes);
data/tiledb-1.7.7/tiledb/sm/buffer/buffer.h:130:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  Status read(void* buffer, uint64_t nbytes);
data/tiledb-1.7.7/tiledb/sm/buffer/buffer_list.cc:65:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
Status BufferList::read(void* dest, uint64_t nbytes) {
data/tiledb-1.7.7/tiledb/sm/buffer/buffer_list.cc:67:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(read(dest, nbytes, &bytes_read));
data/tiledb-1.7.7/tiledb/sm/buffer/buffer_list.cc:78:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return read(dest, nbytes, bytes_read);
data/tiledb-1.7.7/tiledb/sm/buffer/buffer_list.cc:81:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
Status BufferList::read(void* dest, uint64_t nbytes, uint64_t* bytes_read) {
data/tiledb-1.7.7/tiledb/sm/buffer/buffer_list.cc:96:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    RETURN_NOT_OK(src.read(dest_ptr + dest_offset, bytes_from_src));
data/tiledb-1.7.7/tiledb/sm/buffer/buffer_list.h:88:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  Status read(void* dest, uint64_t nbytes);
data/tiledb-1.7.7/tiledb/sm/buffer/buffer_list.h:128:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  Status read(void* dest, uint64_t nbytes, uint64_t* bytes_read);
data/tiledb-1.7.7/tiledb/sm/buffer/const_buffer.cc:86:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
Status ConstBuffer::read(void* buffer, uint64_t nbytes) {
data/tiledb-1.7.7/tiledb/sm/buffer/const_buffer.h:103:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  Status read(void* buffer, uint64_t nbytes);
data/tiledb-1.7.7/tiledb/sm/buffer/preallocated_buffer.cc:76:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
Status PreallocatedBuffer::read(void* buffer, uint64_t nbytes) {
data/tiledb-1.7.7/tiledb/sm/buffer/preallocated_buffer.h:89:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  Status read(void* buffer, uint64_t nbytes);
data/tiledb-1.7.7/tiledb/sm/c_api/tiledb.cc:809:38:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          buffer_list->buffer_list_->read((*buffer)->buffer_->data(), nbytes)))
data/tiledb-1.7.7/tiledb/sm/c_api/tiledb.cc:3917:42:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (SAVE_ERROR_CATCH(ctx, fh->vfs_fh_->read(offset, buffer, nbytes)))
data/tiledb-1.7.7/tiledb/sm/cache/lru_cache.cc:172:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
Status LRUCache::read(const std::string& key, Buffer* buffer, bool* success) {
data/tiledb-1.7.7/tiledb/sm/cache/lru_cache.cc:203:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
Status LRUCache::read(
data/tiledb-1.7.7/tiledb/sm/cache/lru_cache.h:152:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  Status read(const std::string& key, Buffer* buffer, bool* success);
data/tiledb-1.7.7/tiledb/sm/cache/lru_cache.h:165:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  Status read(
data/tiledb-1.7.7/tiledb/sm/compressors/dd_compressor.cc:278:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(input_buffer->read(&bitsize_c, sizeof(uint8_t)));
data/tiledb-1.7.7/tiledb/sm/compressors/dd_compressor.cc:279:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(input_buffer->read(&num, sizeof(uint64_t)));
data/tiledb-1.7.7/tiledb/sm/compressors/dd_compressor.cc:292:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(input_buffer->read(&value, value_size));
data/tiledb-1.7.7/tiledb/sm/compressors/dd_compressor.cc:298:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(input_buffer->read(&value, value_size));
data/tiledb-1.7.7/tiledb/sm/compressors/dd_compressor.cc:305:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(input_buffer->read(&chunk, sizeof(uint64_t)));
data/tiledb-1.7.7/tiledb/sm/compressors/dd_compressor.cc:334:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    RETURN_NOT_OK(buff->read(chunk, sizeof(uint64_t)));
data/tiledb-1.7.7/tiledb/sm/compressors/dd_compressor.cc:356:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      RETURN_NOT_OK(buff->read(chunk, sizeof(uint64_t)));
data/tiledb-1.7.7/tiledb/sm/cpp_api/type.h:364: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).
    return strlen(v);
data/tiledb-1.7.7/tiledb/sm/filesystem/hdfs_filesystem.cc:388:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
Status HDFS::read(const URI& uri, off_t offset, void* buffer, uint64_t length) {
data/tiledb-1.7.7/tiledb/sm/filesystem/hdfs_filesystem.h:150:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  Status read(const URI& uri, off_t offset, void* buffer, uint64_t length);
data/tiledb-1.7.7/tiledb/sm/filesystem/posix.cc:375:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
Status Posix::read(
data/tiledb-1.7.7/tiledb/sm/filesystem/posix.h:197:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  Status read(
data/tiledb-1.7.7/tiledb/sm/filesystem/s3.cc:691:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
Status S3::read(
data/tiledb-1.7.7/tiledb/sm/filesystem/s3.h:240:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  Status read(
data/tiledb-1.7.7/tiledb/sm/filesystem/vfs.cc:909:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
Status VFS::read(
data/tiledb-1.7.7/tiledb/sm/filesystem/vfs.cc:970:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return win_.read(uri.to_path(), offset, buffer, nbytes);
data/tiledb-1.7.7/tiledb/sm/filesystem/vfs.cc:972:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return posix_.read(uri.to_path(), offset, buffer, nbytes);
data/tiledb-1.7.7/tiledb/sm/filesystem/vfs.cc:977:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return hdfs_->read(uri, offset, buffer, nbytes);
data/tiledb-1.7.7/tiledb/sm/filesystem/vfs.cc:985:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return s3_.read(uri, offset, buffer, nbytes);
data/tiledb-1.7.7/tiledb/sm/filesystem/vfs.cc:1024:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          read(uri_copy, batch_copy.offset, buffer.data(), batch_copy.nbytes));
data/tiledb-1.7.7/tiledb/sm/filesystem/vfs.h:299:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  Status read(const URI& uri, uint64_t offset, void* buffer, uint64_t nbytes);
data/tiledb-1.7.7/tiledb/sm/filesystem/vfs_file_handle.cc:88:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
Status VFSFileHandle::read(uint64_t offset, void* buffer, uint64_t nbytes) {
data/tiledb-1.7.7/tiledb/sm/filesystem/vfs_file_handle.cc:97:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return vfs_->read(uri_, offset, buffer, nbytes);
data/tiledb-1.7.7/tiledb/sm/filesystem/vfs_file_handle.h:78:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  Status read(uint64_t offset, void* buffer, uint64_t nbytes);
data/tiledb-1.7.7/tiledb/sm/filesystem/win.cc:349:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
Status Win::read(
data/tiledb-1.7.7/tiledb/sm/filesystem/win.h:190:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  Status read(
data/tiledb-1.7.7/tiledb/sm/filter/bit_width_reduction_filter.cc:317:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(input_metadata->read(&orig_length, sizeof(uint32_t)));
data/tiledb-1.7.7/tiledb/sm/filter/bit_width_reduction_filter.cc:318:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(input_metadata->read(&num_windows, sizeof(uint32_t)));
data/tiledb-1.7.7/tiledb/sm/filter/bit_width_reduction_filter.cc:329:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    RETURN_NOT_OK(input_metadata->read(&window_value_offset, tile_type_size));
data/tiledb-1.7.7/tiledb/sm/filter/bit_width_reduction_filter.cc:330:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    RETURN_NOT_OK(input_metadata->read(&compressed_bits, sizeof(uint8_t)));
data/tiledb-1.7.7/tiledb/sm/filter/bit_width_reduction_filter.cc:331:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    RETURN_NOT_OK(input_metadata->read(&window_nbytes, sizeof(uint32_t)));
data/tiledb-1.7.7/tiledb/sm/filter/bit_width_reduction_filter.cc:445:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      RETURN_NOT_OK(buffer->read(&val, sizeof(val)));
data/tiledb-1.7.7/tiledb/sm/filter/bit_width_reduction_filter.cc:452:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      RETURN_NOT_OK(buffer->read(&val, sizeof(val)));
data/tiledb-1.7.7/tiledb/sm/filter/bit_width_reduction_filter.cc:459:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      RETURN_NOT_OK(buffer->read(&val, sizeof(val)));
data/tiledb-1.7.7/tiledb/sm/filter/bit_width_reduction_filter.cc:466:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      RETURN_NOT_OK(buffer->read(&val, sizeof(val)));
data/tiledb-1.7.7/tiledb/sm/filter/bit_width_reduction_filter.cc:520:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(buff->read(&max_window_size_, sizeof(uint32_t)));
data/tiledb-1.7.7/tiledb/sm/filter/bitshuffle_filter.cc:162:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(input_metadata->read(&num_parts, sizeof(uint32_t)));
data/tiledb-1.7.7/tiledb/sm/filter/bitshuffle_filter.cc:170:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    RETURN_NOT_OK(input_metadata->read(&part_size, sizeof(uint32_t)));
data/tiledb-1.7.7/tiledb/sm/filter/byteshuffle_filter.cc:104:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(input_metadata->read(&num_parts, sizeof(uint32_t)));
data/tiledb-1.7.7/tiledb/sm/filter/byteshuffle_filter.cc:112:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    RETURN_NOT_OK(input_metadata->read(&part_size, sizeof(uint32_t)));
data/tiledb-1.7.7/tiledb/sm/filter/checksum_md5_filter.cc:96:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(input_metadata->read(&num_metadata_parts, sizeof(uint32_t)));
data/tiledb-1.7.7/tiledb/sm/filter/checksum_md5_filter.cc:97:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(input_metadata->read(&num_data_parts, sizeof(uint32_t)));
data/tiledb-1.7.7/tiledb/sm/filter/checksum_md5_filter.cc:108:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        input_metadata->read(&metadata_checksummed_bytes, sizeof(uint64_t)));
data/tiledb-1.7.7/tiledb/sm/filter/checksum_md5_filter.cc:113:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        input_metadata->read(buff.data(), Encryption::MD5_DIGEST_BYTES));
data/tiledb-1.7.7/tiledb/sm/filter/checksum_md5_filter.cc:120:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        input_metadata->read(&data_checksummed_bytes, sizeof(uint64_t)));
data/tiledb-1.7.7/tiledb/sm/filter/checksum_md5_filter.cc:125:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        input_metadata->read(buff.data(), Encryption::MD5_DIGEST_BYTES));
data/tiledb-1.7.7/tiledb/sm/filter/checksum_md5_filter.cc:192:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    RETURN_NOT_OK(part->read(byte_buffer_to_compare->data(), bytes_to_compare));
data/tiledb-1.7.7/tiledb/sm/filter/checksum_sha256_filter.cc:98:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(input_metadata->read(&num_metadata_parts, sizeof(uint32_t)));
data/tiledb-1.7.7/tiledb/sm/filter/checksum_sha256_filter.cc:99:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(input_metadata->read(&num_data_parts, sizeof(uint32_t)));
data/tiledb-1.7.7/tiledb/sm/filter/checksum_sha256_filter.cc:110:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        input_metadata->read(&metadata_checksummed_bytes, sizeof(uint64_t)));
data/tiledb-1.7.7/tiledb/sm/filter/checksum_sha256_filter.cc:115:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        input_metadata->read(buff.data(), Encryption::SHA256_DIGEST_BYTES));
data/tiledb-1.7.7/tiledb/sm/filter/checksum_sha256_filter.cc:122:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        input_metadata->read(&data_checksummed_bytes, sizeof(uint64_t)));
data/tiledb-1.7.7/tiledb/sm/filter/checksum_sha256_filter.cc:127:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        input_metadata->read(buff.data(), Encryption::SHA256_DIGEST_BYTES));
data/tiledb-1.7.7/tiledb/sm/filter/checksum_sha256_filter.cc:194:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    RETURN_NOT_OK(part->read(byte_buffer_to_compare->data(), bytes_to_compare));
data/tiledb-1.7.7/tiledb/sm/filter/compression_filter.cc:218:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(input_metadata->read(&num_metadata_parts, sizeof(uint32_t)));
data/tiledb-1.7.7/tiledb/sm/filter/compression_filter.cc:219:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(input_metadata->read(&num_data_parts, sizeof(uint32_t)));
data/tiledb-1.7.7/tiledb/sm/filter/compression_filter.cc:292:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(input_metadata->read(&uncompressed_size, sizeof(uint32_t)));
data/tiledb-1.7.7/tiledb/sm/filter/compression_filter.cc:293:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(input_metadata->read(&compressed_size, sizeof(uint32_t)));
data/tiledb-1.7.7/tiledb/sm/filter/compression_filter.cc:375:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(buff->read(&compressor_char, sizeof(uint8_t)));
data/tiledb-1.7.7/tiledb/sm/filter/compression_filter.cc:377:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(buff->read(&level_, sizeof(int32_t)));
data/tiledb-1.7.7/tiledb/sm/filter/encryption_aes256gcm_filter.cc:139:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(input_metadata->read(&num_metadata_parts, sizeof(uint32_t)));
data/tiledb-1.7.7/tiledb/sm/filter/encryption_aes256gcm_filter.cc:140:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(input_metadata->read(&num_data_parts, sizeof(uint32_t)));
data/tiledb-1.7.7/tiledb/sm/filter/encryption_aes256gcm_filter.cc:163:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(input_metadata->read(&plaintext_size, sizeof(uint32_t)));
data/tiledb-1.7.7/tiledb/sm/filter/encryption_aes256gcm_filter.cc:164:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(input_metadata->read(&encrypted_size, sizeof(uint32_t)));
data/tiledb-1.7.7/tiledb/sm/filter/encryption_aes256gcm_filter.cc:172:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(input_metadata->read(iv_bytes, Encryption::AES256GCM_IV_BYTES));
data/tiledb-1.7.7/tiledb/sm/filter/encryption_aes256gcm_filter.cc:174:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      input_metadata->read(tag_bytes, Encryption::AES256GCM_TAG_BYTES));
data/tiledb-1.7.7/tiledb/sm/filter/filter.cc:106:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(buff->read(&type, sizeof(uint8_t)));
data/tiledb-1.7.7/tiledb/sm/filter/filter.cc:108:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(buff->read(&filter_metadata_len, sizeof(uint32_t)));
data/tiledb-1.7.7/tiledb/sm/filter/filter_buffer.cc:216:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
Status FilterBuffer::read(void* buffer, uint64_t nbytes) {
data/tiledb-1.7.7/tiledb/sm/filter/filter_buffer.cc:224:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    RETURN_NOT_OK(src->read((char*)buffer + dest_offset, bytes_from_src));
data/tiledb-1.7.7/tiledb/sm/filter/filter_buffer.h:186:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  Status read(void* buffer, uint64_t nbytes);
data/tiledb-1.7.7/tiledb/sm/filter/filter_pipeline.cc:399:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(tile_buff->read(&num_chunks, sizeof(uint64_t)));
data/tiledb-1.7.7/tiledb/sm/filter/filter_pipeline.cc:405:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    RETURN_NOT_OK(tile_buff->read(&orig_chunk_size, sizeof(uint32_t)));
data/tiledb-1.7.7/tiledb/sm/filter/filter_pipeline.cc:406:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    RETURN_NOT_OK(tile_buff->read(&filtered_chunk_size, sizeof(uint32_t)));
data/tiledb-1.7.7/tiledb/sm/filter/filter_pipeline.cc:407:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    RETURN_NOT_OK(tile_buff->read(&metadata_size, sizeof(uint32_t)));
data/tiledb-1.7.7/tiledb/sm/filter/filter_pipeline.cc:475:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(buff->read(&max_chunk_size_, sizeof(uint32_t)));
data/tiledb-1.7.7/tiledb/sm/filter/filter_pipeline.cc:477:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(buff->read(&num_filters, sizeof(uint32_t)));
data/tiledb-1.7.7/tiledb/sm/filter/positive_delta_filter.cc:274:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(input_metadata->read(&num_windows, sizeof(uint32_t)));
data/tiledb-1.7.7/tiledb/sm/filter/positive_delta_filter.cc:284:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    RETURN_NOT_OK(input_metadata->read(&window_value_offset, tile_type_size));
data/tiledb-1.7.7/tiledb/sm/filter/positive_delta_filter.cc:285:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    RETURN_NOT_OK(input_metadata->read(&window_nbytes, sizeof(uint32_t)));
data/tiledb-1.7.7/tiledb/sm/filter/positive_delta_filter.cc:297:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        RETURN_NOT_OK(input->read(&delta, sizeof(T)));
data/tiledb-1.7.7/tiledb/sm/filter/positive_delta_filter.cc:358:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(buff->read(&max_window_size_, sizeof(uint32_t)));
data/tiledb-1.7.7/tiledb/sm/fragment/fragment_metadata.cc:961:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  Status st = buff->read(&bounding_coords_num, sizeof(uint64_t));
data/tiledb-1.7.7/tiledb/sm/fragment/fragment_metadata.cc:972:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    st = buff->read(bounding_coords, bounding_coords_size);
data/tiledb-1.7.7/tiledb/sm/fragment/fragment_metadata.cc:992:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      buff->read(&file_sizes_[0], (attribute_num + 1) * sizeof(uint64_t));
data/tiledb-1.7.7/tiledb/sm/fragment/fragment_metadata.cc:1009:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  Status st = buff->read(&file_var_sizes_[0], attribute_num * sizeof(uint64_t));
data/tiledb-1.7.7/tiledb/sm/fragment/fragment_metadata.cc:1023:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  Status st = buff->read(&last_tile_cell_num_, sizeof(uint64_t));
data/tiledb-1.7.7/tiledb/sm/fragment/fragment_metadata.cc:1040:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  Status st = buff->read(&mbr_num, sizeof(uint64_t));
data/tiledb-1.7.7/tiledb/sm/fragment/fragment_metadata.cc:1052:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    st = buff->read(mbr, mbr_size);
data/tiledb-1.7.7/tiledb/sm/fragment/fragment_metadata.cc:1078:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  Status st = buff->read(&domain_size, sizeof(uint64_t));
data/tiledb-1.7.7/tiledb/sm/fragment/fragment_metadata.cc:1089:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    st = buff->read(non_empty_domain_, domain_size);
data/tiledb-1.7.7/tiledb/sm/fragment/fragment_metadata.cc:1115:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  Status st = buff->read(&null_non_empty_domain, sizeof(char));
data/tiledb-1.7.7/tiledb/sm/fragment/fragment_metadata.cc:1124:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  st = buff->read(non_empty_domain_, domain_size);
data/tiledb-1.7.7/tiledb/sm/fragment/fragment_metadata.cc:1158:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    st = buff->read(&tile_offsets_num, sizeof(uint64_t));
data/tiledb-1.7.7/tiledb/sm/fragment/fragment_metadata.cc:1170:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    st = buff->read(&tile_offsets_[i][0], tile_offsets_num * sizeof(uint64_t));
data/tiledb-1.7.7/tiledb/sm/fragment/fragment_metadata.cc:1189:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  st = buff->read(&tile_offsets_num, sizeof(uint64_t));
data/tiledb-1.7.7/tiledb/sm/fragment/fragment_metadata.cc:1199:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    st = buff->read(
data/tiledb-1.7.7/tiledb/sm/fragment/fragment_metadata.cc:1229:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    st = buff->read(&tile_var_offsets_num, sizeof(uint64_t));
data/tiledb-1.7.7/tiledb/sm/fragment/fragment_metadata.cc:1241:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    st = buff->read(
data/tiledb-1.7.7/tiledb/sm/fragment/fragment_metadata.cc:1262:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  st = buff->read(&tile_var_offsets_num, sizeof(uint64_t));
data/tiledb-1.7.7/tiledb/sm/fragment/fragment_metadata.cc:1272:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    st = buff->read(
data/tiledb-1.7.7/tiledb/sm/fragment/fragment_metadata.cc:1303:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    st = buff->read(&tile_var_sizes_num, sizeof(uint64_t));
data/tiledb-1.7.7/tiledb/sm/fragment/fragment_metadata.cc:1315:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    st = buff->read(
data/tiledb-1.7.7/tiledb/sm/fragment/fragment_metadata.cc:1335:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  st = buff->read(&tile_var_sizes_num, sizeof(uint64_t));
data/tiledb-1.7.7/tiledb/sm/fragment/fragment_metadata.cc:1345:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    st = buff->read(
data/tiledb-1.7.7/tiledb/sm/fragment/fragment_metadata.cc:1358:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(buff->read(&version_, sizeof(uint32_t)));
data/tiledb-1.7.7/tiledb/sm/fragment/fragment_metadata.cc:1363:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(buff->read(&dense_, sizeof(char)));
data/tiledb-1.7.7/tiledb/sm/fragment/fragment_metadata.cc:1368:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(buff->read(&sparse_tile_num_, sizeof(uint64_t)));
data/tiledb-1.7.7/tiledb/sm/fragment/fragment_metadata.cc:1397:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(buff->read(&gt_offsets_.rtree_, sizeof(uint64_t)));
data/tiledb-1.7.7/tiledb/sm/fragment/fragment_metadata.cc:1403:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    RETURN_NOT_OK(buff->read(&gt_offsets_.tile_offsets_[i], sizeof(uint64_t)));
data/tiledb-1.7.7/tiledb/sm/fragment/fragment_metadata.cc:1410:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        buff->read(&gt_offsets_.tile_var_offsets_[i], sizeof(uint64_t)));
data/tiledb-1.7.7/tiledb/sm/fragment/fragment_metadata.cc:1417:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        buff->read(&gt_offsets_.tile_var_sizes_[i], sizeof(uint64_t)));
data/tiledb-1.7.7/tiledb/sm/fragment/fragment_metadata.cc:1703:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return storage_manager_->read(
data/tiledb-1.7.7/tiledb/sm/metadata/metadata.cc:78:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      RETURN_NOT_OK(buff->read(&key_len, sizeof(uint32_t)));
data/tiledb-1.7.7/tiledb/sm/metadata/metadata.cc:81:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      RETURN_NOT_OK(buff->read(&del, sizeof(char)));
data/tiledb-1.7.7/tiledb/sm/metadata/metadata.cc:91:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      RETURN_NOT_OK(buff->read(&value_struct.type_, sizeof(char)));
data/tiledb-1.7.7/tiledb/sm/metadata/metadata.cc:92:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      RETURN_NOT_OK(buff->read(&value_struct.num_, sizeof(uint32_t)));
data/tiledb-1.7.7/tiledb/sm/metadata/metadata.cc:97:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        RETURN_NOT_OK(buff->read((void*)value_struct.value_.data(), value_len));
data/tiledb-1.7.7/tiledb/sm/misc/utils.cc:487:15:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  return std::equal(prefix.begin(), prefix.end(), value.begin());
data/tiledb-1.7.7/tiledb/sm/query/query.cc:379:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    st = reader_.read();
data/tiledb-1.7.7/tiledb/sm/query/reader.cc:254:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
Status Reader::read() {
data/tiledb-1.7.7/tiledb/sm/query/reader.cc:258:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      return read<int8_t>();
data/tiledb-1.7.7/tiledb/sm/query/reader.cc:260:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      return read<uint8_t>();
data/tiledb-1.7.7/tiledb/sm/query/reader.cc:262:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      return read<int16_t>();
data/tiledb-1.7.7/tiledb/sm/query/reader.cc:264:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      return read<uint16_t>();
data/tiledb-1.7.7/tiledb/sm/query/reader.cc:266:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      return read<int>();
data/tiledb-1.7.7/tiledb/sm/query/reader.cc:268:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      return read<unsigned>();
data/tiledb-1.7.7/tiledb/sm/query/reader.cc:270:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      return read<int64_t>();
data/tiledb-1.7.7/tiledb/sm/query/reader.cc:272:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      return read<uint64_t>();
data/tiledb-1.7.7/tiledb/sm/query/reader.cc:274:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      return read<float>();
data/tiledb-1.7.7/tiledb/sm/query/reader.cc:276:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      return read<double>();
data/tiledb-1.7.7/tiledb/sm/query/reader.cc:290:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      return read<int64_t>();
data/tiledb-1.7.7/tiledb/sm/query/reader.cc:300:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
Status Reader::read() {
data/tiledb-1.7.7/tiledb/sm/query/reader.h:245:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  Status read();
data/tiledb-1.7.7/tiledb/sm/query/reader.h:249:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  Status read();
data/tiledb-1.7.7/tiledb/sm/rtree/rtree.cc:257:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(cbuff->read(&dim_num_, sizeof(dim_num_)));
data/tiledb-1.7.7/tiledb/sm/rtree/rtree.cc:258:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(cbuff->read(&fanout_, sizeof(fanout_)));
data/tiledb-1.7.7/tiledb/sm/rtree/rtree.cc:260:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(cbuff->read(&type, sizeof(uint8_t)));
data/tiledb-1.7.7/tiledb/sm/rtree/rtree.cc:263:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(cbuff->read(&level_num, sizeof(level_num)));
data/tiledb-1.7.7/tiledb/sm/rtree/rtree.cc:270:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    RETURN_NOT_OK(cbuff->read(&mbr_num, sizeof(uint64_t)));
data/tiledb-1.7.7/tiledb/sm/rtree/rtree.cc:274:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    RETURN_NOT_OK(cbuff->read(&levels_[i].mbrs_[0], mbrs_size));
data/tiledb-1.7.7/tiledb/sm/storage_manager/storage_manager.cc:1355:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(tile_cache_->read(key.str(), buffer, 0, nbytes, in_cache));
data/tiledb-1.7.7/tiledb/sm/storage_manager/storage_manager.cc:1364:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
Status StorageManager::read(
data/tiledb-1.7.7/tiledb/sm/storage_manager/storage_manager.cc:1367:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(vfs_->read(uri, offset, buffer->data(), nbytes));
data/tiledb-1.7.7/tiledb/sm/storage_manager/storage_manager.h:598:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  Status read(
data/tiledb-1.7.7/tiledb/sm/tile/tile.cc:252:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
Status Tile::read(void* buffer, uint64_t nbytes) {
data/tiledb-1.7.7/tiledb/sm/tile/tile.cc:253:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(buffer_->read(buffer, nbytes));
data/tiledb-1.7.7/tiledb/sm/tile/tile.h:222:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  Status read(void* buffer, uint64_t nbytes);
data/tiledb-1.7.7/tiledb/sm/tile/tile_io.cc:131:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      storage_manager_->read(
data/tiledb-1.7.7/tiledb/sm/tile/tile_io.cc:157:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(sm->read(
data/tiledb-1.7.7/tiledb/sm/tile/tile_io.cc:161:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(header_buff->read(&header->version_number, sizeof(uint32_t)));
data/tiledb-1.7.7/tiledb/sm/tile/tile_io.cc:162:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(header_buff->read(&header->persisted_size, sizeof(uint64_t)));
data/tiledb-1.7.7/tiledb/sm/tile/tile_io.cc:163:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(header_buff->read(&header->tile_size, sizeof(uint64_t)));
data/tiledb-1.7.7/tiledb/sm/tile/tile_io.cc:164:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(header_buff->read(&header->datatype, sizeof(uint8_t)));
data/tiledb-1.7.7/tiledb/sm/tile/tile_io.cc:165:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(header_buff->read(&header->cell_size, sizeof(uint64_t)));
data/tiledb-1.7.7/tiledb/sm/tile/tile_io.cc:166:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(header_buff->read(&header->encryption_type, sizeof(uint8_t)));
data/tiledb-1.7.7/tiledb/sm/tile/tile_io.cc:168:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      header_buff->read(&header->filter_pipeline_size, sizeof(uint32_t)));
data/tiledb-1.7.7/tiledb/sm/tile/tile_io.cc:173:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  RETURN_NOT_OK(sm->read(

ANALYSIS SUMMARY:

Hits = 722
Lines analyzed = 165582 in approximately 4.31 seconds (38437 lines/second)
Physical Source Lines of Code (SLOC) = 105220
Hits@level = [0] 137 [1] 385 [2] 321 [3]   9 [4]   7 [5]   0
Hits@level+ = [0+] 859 [1+] 722 [2+] 337 [3+]  16 [4+]   7 [5+]   0
Hits/KSLOC@level+ = [0+] 8.16385 [1+] 6.86181 [2+] 3.20281 [3+] 0.152062 [4+] 0.0665273 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.