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/rocksdb-6.11.4/cache/cache.cc Examining data/rocksdb-6.11.4/cache/cache_bench.cc Examining data/rocksdb-6.11.4/cache/cache_test.cc Examining data/rocksdb-6.11.4/cache/clock_cache.cc Examining data/rocksdb-6.11.4/cache/clock_cache.h Examining data/rocksdb-6.11.4/cache/lru_cache.cc Examining data/rocksdb-6.11.4/cache/lru_cache.h Examining data/rocksdb-6.11.4/cache/lru_cache_test.cc Examining data/rocksdb-6.11.4/cache/sharded_cache.cc Examining data/rocksdb-6.11.4/cache/sharded_cache.h Examining data/rocksdb-6.11.4/db/arena_wrapped_db_iter.cc Examining data/rocksdb-6.11.4/db/arena_wrapped_db_iter.h Examining data/rocksdb-6.11.4/db/blob/blob_constants.h Examining data/rocksdb-6.11.4/db/blob/blob_file_addition.cc Examining data/rocksdb-6.11.4/db/blob/blob_file_addition.h Examining data/rocksdb-6.11.4/db/blob/blob_file_addition_test.cc Examining data/rocksdb-6.11.4/db/blob/blob_file_garbage.cc Examining data/rocksdb-6.11.4/db/blob/blob_file_garbage.h Examining data/rocksdb-6.11.4/db/blob/blob_file_garbage_test.cc Examining data/rocksdb-6.11.4/db/blob/blob_file_meta.cc Examining data/rocksdb-6.11.4/db/blob/blob_file_meta.h Examining data/rocksdb-6.11.4/db/blob/blob_index.h Examining data/rocksdb-6.11.4/db/blob/blob_log_format.cc Examining data/rocksdb-6.11.4/db/blob/blob_log_format.h Examining data/rocksdb-6.11.4/db/blob/blob_log_reader.cc Examining data/rocksdb-6.11.4/db/blob/blob_log_reader.h Examining data/rocksdb-6.11.4/db/blob/blob_log_writer.cc Examining data/rocksdb-6.11.4/db/blob/blob_log_writer.h Examining data/rocksdb-6.11.4/db/blob/db_blob_index_test.cc Examining data/rocksdb-6.11.4/db/builder.cc Examining data/rocksdb-6.11.4/db/builder.h Examining data/rocksdb-6.11.4/db/c.cc Examining data/rocksdb-6.11.4/db/c_test.c Examining data/rocksdb-6.11.4/db/column_family.cc Examining data/rocksdb-6.11.4/db/column_family.h Examining data/rocksdb-6.11.4/db/column_family_test.cc Examining data/rocksdb-6.11.4/db/compact_files_test.cc Examining data/rocksdb-6.11.4/db/compacted_db_impl.cc Examining data/rocksdb-6.11.4/db/compacted_db_impl.h Examining data/rocksdb-6.11.4/db/compaction/compaction.cc Examining data/rocksdb-6.11.4/db/compaction/compaction.h Examining data/rocksdb-6.11.4/db/compaction/compaction_iteration_stats.h Examining data/rocksdb-6.11.4/db/compaction/compaction_iterator.cc Examining data/rocksdb-6.11.4/db/compaction/compaction_iterator.h Examining data/rocksdb-6.11.4/db/compaction/compaction_iterator_test.cc Examining data/rocksdb-6.11.4/db/compaction/compaction_job.cc Examining data/rocksdb-6.11.4/db/compaction/compaction_job.h Examining data/rocksdb-6.11.4/db/compaction/compaction_job_stats_test.cc Examining data/rocksdb-6.11.4/db/compaction/compaction_job_test.cc Examining data/rocksdb-6.11.4/db/compaction/compaction_picker.cc Examining data/rocksdb-6.11.4/db/compaction/compaction_picker.h Examining data/rocksdb-6.11.4/db/compaction/compaction_picker_fifo.cc Examining data/rocksdb-6.11.4/db/compaction/compaction_picker_fifo.h Examining data/rocksdb-6.11.4/db/compaction/compaction_picker_level.cc Examining data/rocksdb-6.11.4/db/compaction/compaction_picker_level.h Examining data/rocksdb-6.11.4/db/compaction/compaction_picker_test.cc Examining data/rocksdb-6.11.4/db/compaction/compaction_picker_universal.cc Examining data/rocksdb-6.11.4/db/compaction/compaction_picker_universal.h Examining data/rocksdb-6.11.4/db/comparator_db_test.cc Examining data/rocksdb-6.11.4/db/convenience.cc Examining data/rocksdb-6.11.4/db/corruption_test.cc Examining data/rocksdb-6.11.4/db/cuckoo_table_db_test.cc Examining data/rocksdb-6.11.4/db/db_basic_test.cc Examining data/rocksdb-6.11.4/db/db_block_cache_test.cc Examining data/rocksdb-6.11.4/db/db_bloom_filter_test.cc Examining data/rocksdb-6.11.4/db/db_compaction_filter_test.cc Examining data/rocksdb-6.11.4/db/db_compaction_test.cc Examining data/rocksdb-6.11.4/db/db_dynamic_level_test.cc Examining data/rocksdb-6.11.4/db/db_encryption_test.cc Examining data/rocksdb-6.11.4/db/db_filesnapshot.cc Examining data/rocksdb-6.11.4/db/db_flush_test.cc Examining data/rocksdb-6.11.4/db/db_impl/db_impl.cc Examining data/rocksdb-6.11.4/db/db_impl/db_impl.h Examining data/rocksdb-6.11.4/db/db_impl/db_impl_compaction_flush.cc Examining data/rocksdb-6.11.4/db/db_impl/db_impl_debug.cc Examining data/rocksdb-6.11.4/db/db_impl/db_impl_experimental.cc Examining data/rocksdb-6.11.4/db/db_impl/db_impl_files.cc Examining data/rocksdb-6.11.4/db/db_impl/db_impl_open.cc Examining data/rocksdb-6.11.4/db/db_impl/db_impl_readonly.cc Examining data/rocksdb-6.11.4/db/db_impl/db_impl_readonly.h Examining data/rocksdb-6.11.4/db/db_impl/db_impl_secondary.cc Examining data/rocksdb-6.11.4/db/db_impl/db_impl_secondary.h Examining data/rocksdb-6.11.4/db/db_impl/db_impl_write.cc Examining data/rocksdb-6.11.4/db/db_impl/db_secondary_test.cc Examining data/rocksdb-6.11.4/db/db_info_dumper.cc Examining data/rocksdb-6.11.4/db/db_info_dumper.h Examining data/rocksdb-6.11.4/db/db_inplace_update_test.cc Examining data/rocksdb-6.11.4/db/db_io_failure_test.cc Examining data/rocksdb-6.11.4/db/db_iter.cc Examining data/rocksdb-6.11.4/db/db_iter.h Examining data/rocksdb-6.11.4/db/db_iter_stress_test.cc Examining data/rocksdb-6.11.4/db/db_iter_test.cc Examining data/rocksdb-6.11.4/db/db_iterator_test.cc Examining data/rocksdb-6.11.4/db/db_log_iter_test.cc Examining data/rocksdb-6.11.4/db/db_logical_block_size_cache_test.cc Examining data/rocksdb-6.11.4/db/db_memtable_test.cc Examining data/rocksdb-6.11.4/db/db_merge_operand_test.cc Examining data/rocksdb-6.11.4/db/db_merge_operator_test.cc Examining data/rocksdb-6.11.4/db/db_options_test.cc Examining data/rocksdb-6.11.4/db/db_properties_test.cc Examining data/rocksdb-6.11.4/db/db_range_del_test.cc Examining data/rocksdb-6.11.4/db/db_sst_test.cc Examining data/rocksdb-6.11.4/db/db_statistics_test.cc Examining data/rocksdb-6.11.4/db/db_table_properties_test.cc Examining data/rocksdb-6.11.4/db/db_tailing_iter_test.cc Examining data/rocksdb-6.11.4/db/db_test2.cc Examining data/rocksdb-6.11.4/db/db_test_util.cc Examining data/rocksdb-6.11.4/db/db_test_util.h Examining data/rocksdb-6.11.4/db/db_universal_compaction_test.cc Examining data/rocksdb-6.11.4/db/db_wal_test.cc Examining data/rocksdb-6.11.4/db/db_with_timestamp_basic_test.cc Examining data/rocksdb-6.11.4/db/db_with_timestamp_compaction_test.cc Examining data/rocksdb-6.11.4/db/db_write_test.cc Examining data/rocksdb-6.11.4/db/dbformat.cc Examining data/rocksdb-6.11.4/db/dbformat.h Examining data/rocksdb-6.11.4/db/dbformat_test.cc Examining data/rocksdb-6.11.4/db/deletefile_test.cc Examining data/rocksdb-6.11.4/db/error_handler.cc Examining data/rocksdb-6.11.4/db/error_handler.h Examining data/rocksdb-6.11.4/db/error_handler_fs_test.cc Examining data/rocksdb-6.11.4/db/event_helpers.cc Examining data/rocksdb-6.11.4/db/event_helpers.h Examining data/rocksdb-6.11.4/db/experimental.cc Examining data/rocksdb-6.11.4/db/external_sst_file_basic_test.cc Examining data/rocksdb-6.11.4/db/external_sst_file_ingestion_job.cc Examining data/rocksdb-6.11.4/db/external_sst_file_ingestion_job.h Examining data/rocksdb-6.11.4/db/external_sst_file_test.cc Examining data/rocksdb-6.11.4/db/fault_injection_test.cc Examining data/rocksdb-6.11.4/db/file_indexer.cc Examining data/rocksdb-6.11.4/db/file_indexer.h Examining data/rocksdb-6.11.4/db/file_indexer_test.cc Examining data/rocksdb-6.11.4/db/filename_test.cc Examining data/rocksdb-6.11.4/db/flush_job.cc Examining data/rocksdb-6.11.4/db/flush_job.h Examining data/rocksdb-6.11.4/db/flush_job_test.cc Examining data/rocksdb-6.11.4/db/flush_scheduler.cc Examining data/rocksdb-6.11.4/db/flush_scheduler.h Examining data/rocksdb-6.11.4/db/forward_iterator.cc Examining data/rocksdb-6.11.4/db/forward_iterator.h Examining data/rocksdb-6.11.4/db/forward_iterator_bench.cc Examining data/rocksdb-6.11.4/db/import_column_family_job.cc Examining data/rocksdb-6.11.4/db/import_column_family_job.h Examining data/rocksdb-6.11.4/db/import_column_family_test.cc Examining data/rocksdb-6.11.4/db/internal_stats.cc Examining data/rocksdb-6.11.4/db/internal_stats.h Examining data/rocksdb-6.11.4/db/job_context.h Examining data/rocksdb-6.11.4/db/listener_test.cc Examining data/rocksdb-6.11.4/db/log_format.h Examining data/rocksdb-6.11.4/db/log_reader.cc Examining data/rocksdb-6.11.4/db/log_reader.h Examining data/rocksdb-6.11.4/db/log_test.cc Examining data/rocksdb-6.11.4/db/log_writer.cc Examining data/rocksdb-6.11.4/db/log_writer.h Examining data/rocksdb-6.11.4/db/logs_with_prep_tracker.cc Examining data/rocksdb-6.11.4/db/logs_with_prep_tracker.h Examining data/rocksdb-6.11.4/db/lookup_key.h Examining data/rocksdb-6.11.4/db/malloc_stats.cc Examining data/rocksdb-6.11.4/db/malloc_stats.h Examining data/rocksdb-6.11.4/db/manual_compaction_test.cc Examining data/rocksdb-6.11.4/db/memtable.cc Examining data/rocksdb-6.11.4/db/memtable.h Examining data/rocksdb-6.11.4/db/memtable_list.cc Examining data/rocksdb-6.11.4/db/memtable_list.h Examining data/rocksdb-6.11.4/db/memtable_list_test.cc Examining data/rocksdb-6.11.4/db/merge_context.h Examining data/rocksdb-6.11.4/db/merge_helper.cc Examining data/rocksdb-6.11.4/db/merge_helper.h Examining data/rocksdb-6.11.4/db/merge_helper_test.cc Examining data/rocksdb-6.11.4/db/merge_operator.cc Examining data/rocksdb-6.11.4/db/merge_test.cc Examining data/rocksdb-6.11.4/db/obsolete_files_test.cc Examining data/rocksdb-6.11.4/db/options_file_test.cc Examining data/rocksdb-6.11.4/db/perf_context_test.cc Examining data/rocksdb-6.11.4/db/pinned_iterators_manager.h Examining data/rocksdb-6.11.4/db/plain_table_db_test.cc Examining data/rocksdb-6.11.4/db/pre_release_callback.h Examining data/rocksdb-6.11.4/db/prefix_test.cc Examining data/rocksdb-6.11.4/db/range_del_aggregator.cc Examining data/rocksdb-6.11.4/db/range_del_aggregator.h Examining data/rocksdb-6.11.4/db/range_del_aggregator_bench.cc Examining data/rocksdb-6.11.4/db/range_del_aggregator_test.cc Examining data/rocksdb-6.11.4/db/range_tombstone_fragmenter.cc Examining data/rocksdb-6.11.4/db/range_tombstone_fragmenter.h Examining data/rocksdb-6.11.4/db/range_tombstone_fragmenter_test.cc Examining data/rocksdb-6.11.4/db/read_callback.h Examining data/rocksdb-6.11.4/db/repair.cc Examining data/rocksdb-6.11.4/db/repair_test.cc Examining data/rocksdb-6.11.4/db/snapshot_checker.h Examining data/rocksdb-6.11.4/db/snapshot_impl.cc Examining data/rocksdb-6.11.4/db/snapshot_impl.h Examining data/rocksdb-6.11.4/db/table_cache.cc Examining data/rocksdb-6.11.4/db/table_cache.h Examining data/rocksdb-6.11.4/db/table_properties_collector.cc Examining data/rocksdb-6.11.4/db/table_properties_collector.h Examining data/rocksdb-6.11.4/db/table_properties_collector_test.cc Examining data/rocksdb-6.11.4/db/transaction_log_impl.cc Examining data/rocksdb-6.11.4/db/transaction_log_impl.h Examining data/rocksdb-6.11.4/db/trim_history_scheduler.cc Examining data/rocksdb-6.11.4/db/trim_history_scheduler.h Examining data/rocksdb-6.11.4/db/version_builder.cc Examining data/rocksdb-6.11.4/db/version_builder.h Examining data/rocksdb-6.11.4/db/version_builder_test.cc Examining data/rocksdb-6.11.4/db/version_edit.cc Examining data/rocksdb-6.11.4/db/version_edit.h Examining data/rocksdb-6.11.4/db/version_edit_handler.cc Examining data/rocksdb-6.11.4/db/version_edit_handler.h Examining data/rocksdb-6.11.4/db/version_edit_test.cc Examining data/rocksdb-6.11.4/db/version_set.cc Examining data/rocksdb-6.11.4/db/version_set.h Examining data/rocksdb-6.11.4/db/version_set_test.cc Examining data/rocksdb-6.11.4/db/wal_manager.cc Examining data/rocksdb-6.11.4/db/wal_manager.h Examining data/rocksdb-6.11.4/db/wal_manager_test.cc Examining data/rocksdb-6.11.4/db/write_batch.cc Examining data/rocksdb-6.11.4/db/write_batch_base.cc Examining data/rocksdb-6.11.4/db/write_batch_internal.h Examining data/rocksdb-6.11.4/db/write_batch_test.cc Examining data/rocksdb-6.11.4/db/write_callback.h Examining data/rocksdb-6.11.4/db/write_callback_test.cc Examining data/rocksdb-6.11.4/db/write_controller.cc Examining data/rocksdb-6.11.4/db/write_controller.h Examining data/rocksdb-6.11.4/db/write_controller_test.cc Examining data/rocksdb-6.11.4/db/write_thread.cc Examining data/rocksdb-6.11.4/db/write_thread.h Examining data/rocksdb-6.11.4/db/db_test.cc Examining data/rocksdb-6.11.4/db_stress_tool/batched_ops_stress.cc Examining data/rocksdb-6.11.4/db_stress_tool/cf_consistency_stress.cc Examining data/rocksdb-6.11.4/db_stress_tool/db_stress.cc Examining data/rocksdb-6.11.4/db_stress_tool/db_stress_common.cc Examining data/rocksdb-6.11.4/db_stress_tool/db_stress_common.h Examining data/rocksdb-6.11.4/db_stress_tool/db_stress_driver.cc Examining data/rocksdb-6.11.4/db_stress_tool/db_stress_driver.h Examining data/rocksdb-6.11.4/db_stress_tool/db_stress_env_wrapper.h Examining data/rocksdb-6.11.4/db_stress_tool/db_stress_gflags.cc Examining data/rocksdb-6.11.4/db_stress_tool/db_stress_listener.h Examining data/rocksdb-6.11.4/db_stress_tool/db_stress_shared_state.cc Examining data/rocksdb-6.11.4/db_stress_tool/db_stress_shared_state.h Examining data/rocksdb-6.11.4/db_stress_tool/db_stress_stat.h Examining data/rocksdb-6.11.4/db_stress_tool/db_stress_test_base.cc Examining data/rocksdb-6.11.4/db_stress_tool/db_stress_test_base.h Examining data/rocksdb-6.11.4/db_stress_tool/db_stress_tool.cc Examining data/rocksdb-6.11.4/db_stress_tool/no_batched_ops_stress.cc Examining data/rocksdb-6.11.4/env/composite_env_wrapper.h Examining data/rocksdb-6.11.4/env/env.cc Examining data/rocksdb-6.11.4/env/env_basic_test.cc Examining data/rocksdb-6.11.4/env/env_chroot.cc Examining data/rocksdb-6.11.4/env/env_chroot.h Examining data/rocksdb-6.11.4/env/env_encryption.cc Examining data/rocksdb-6.11.4/env/env_hdfs.cc Examining data/rocksdb-6.11.4/env/env_posix.cc Examining data/rocksdb-6.11.4/env/env_test.cc Examining data/rocksdb-6.11.4/env/file_system.cc Examining data/rocksdb-6.11.4/env/fs_posix.cc Examining data/rocksdb-6.11.4/env/io_posix.cc Examining data/rocksdb-6.11.4/env/io_posix.h Examining data/rocksdb-6.11.4/env/io_posix_test.cc Examining data/rocksdb-6.11.4/env/mock_env.cc Examining data/rocksdb-6.11.4/env/mock_env.h Examining data/rocksdb-6.11.4/env/mock_env_test.cc Examining data/rocksdb-6.11.4/examples/c_simple_example.c Examining data/rocksdb-6.11.4/examples/column_families_example.cc Examining data/rocksdb-6.11.4/examples/compact_files_example.cc Examining data/rocksdb-6.11.4/examples/compaction_filter_example.cc Examining data/rocksdb-6.11.4/examples/multi_processes_example.cc Examining data/rocksdb-6.11.4/examples/optimistic_transaction_example.cc Examining data/rocksdb-6.11.4/examples/options_file_example.cc Examining data/rocksdb-6.11.4/examples/simple_example.cc Examining data/rocksdb-6.11.4/examples/transaction_example.cc Examining data/rocksdb-6.11.4/file/delete_scheduler.cc Examining data/rocksdb-6.11.4/file/delete_scheduler.h Examining data/rocksdb-6.11.4/file/delete_scheduler_test.cc Examining data/rocksdb-6.11.4/file/file_prefetch_buffer.cc Examining data/rocksdb-6.11.4/file/file_prefetch_buffer.h Examining data/rocksdb-6.11.4/file/file_util.cc Examining data/rocksdb-6.11.4/file/file_util.h Examining data/rocksdb-6.11.4/file/filename.cc Examining data/rocksdb-6.11.4/file/filename.h Examining data/rocksdb-6.11.4/file/random_access_file_reader.cc Examining data/rocksdb-6.11.4/file/random_access_file_reader.h Examining data/rocksdb-6.11.4/file/random_access_file_reader_test.cc Examining data/rocksdb-6.11.4/file/read_write_util.cc Examining data/rocksdb-6.11.4/file/read_write_util.h Examining data/rocksdb-6.11.4/file/readahead_raf.cc Examining data/rocksdb-6.11.4/file/readahead_raf.h Examining data/rocksdb-6.11.4/file/sequence_file_reader.cc Examining data/rocksdb-6.11.4/file/sequence_file_reader.h Examining data/rocksdb-6.11.4/file/sst_file_manager_impl.cc Examining data/rocksdb-6.11.4/file/sst_file_manager_impl.h Examining data/rocksdb-6.11.4/file/writable_file_writer.cc Examining data/rocksdb-6.11.4/file/writable_file_writer.h Examining data/rocksdb-6.11.4/hdfs/env_hdfs.h Examining data/rocksdb-6.11.4/include/rocksdb/advanced_options.h Examining data/rocksdb-6.11.4/include/rocksdb/c.h Examining data/rocksdb-6.11.4/include/rocksdb/cache.h Examining data/rocksdb-6.11.4/include/rocksdb/cleanable.h Examining data/rocksdb-6.11.4/include/rocksdb/compaction_filter.h Examining data/rocksdb-6.11.4/include/rocksdb/compaction_job_stats.h Examining data/rocksdb-6.11.4/include/rocksdb/comparator.h Examining data/rocksdb-6.11.4/include/rocksdb/concurrent_task_limiter.h Examining data/rocksdb-6.11.4/include/rocksdb/convenience.h Examining data/rocksdb-6.11.4/include/rocksdb/db.h Examining data/rocksdb-6.11.4/include/rocksdb/db_bench_tool.h Examining data/rocksdb-6.11.4/include/rocksdb/db_dump_tool.h Examining data/rocksdb-6.11.4/include/rocksdb/db_stress_tool.h Examining data/rocksdb-6.11.4/include/rocksdb/env.h Examining data/rocksdb-6.11.4/include/rocksdb/env_encryption.h Examining data/rocksdb-6.11.4/include/rocksdb/experimental.h Examining data/rocksdb-6.11.4/include/rocksdb/file_checksum.h Examining data/rocksdb-6.11.4/include/rocksdb/file_system.h Examining data/rocksdb-6.11.4/include/rocksdb/filter_policy.h Examining data/rocksdb-6.11.4/include/rocksdb/flush_block_policy.h Examining data/rocksdb-6.11.4/include/rocksdb/io_status.h Examining data/rocksdb-6.11.4/include/rocksdb/iostats_context.h Examining data/rocksdb-6.11.4/include/rocksdb/iterator.h Examining data/rocksdb-6.11.4/include/rocksdb/ldb_tool.h Examining data/rocksdb-6.11.4/include/rocksdb/listener.h Examining data/rocksdb-6.11.4/include/rocksdb/memory_allocator.h Examining data/rocksdb-6.11.4/include/rocksdb/memtablerep.h Examining data/rocksdb-6.11.4/include/rocksdb/merge_operator.h Examining data/rocksdb-6.11.4/include/rocksdb/metadata.h Examining data/rocksdb-6.11.4/include/rocksdb/options.h Examining data/rocksdb-6.11.4/include/rocksdb/perf_context.h Examining data/rocksdb-6.11.4/include/rocksdb/perf_level.h Examining data/rocksdb-6.11.4/include/rocksdb/persistent_cache.h Examining data/rocksdb-6.11.4/include/rocksdb/rate_limiter.h Examining data/rocksdb-6.11.4/include/rocksdb/rocksdb_namespace.h Examining data/rocksdb-6.11.4/include/rocksdb/slice.h Examining data/rocksdb-6.11.4/include/rocksdb/slice_transform.h Examining data/rocksdb-6.11.4/include/rocksdb/snapshot.h Examining data/rocksdb-6.11.4/include/rocksdb/sst_dump_tool.h Examining data/rocksdb-6.11.4/include/rocksdb/sst_file_manager.h Examining data/rocksdb-6.11.4/include/rocksdb/sst_file_reader.h Examining data/rocksdb-6.11.4/include/rocksdb/sst_file_writer.h Examining data/rocksdb-6.11.4/include/rocksdb/statistics.h Examining data/rocksdb-6.11.4/include/rocksdb/stats_history.h Examining data/rocksdb-6.11.4/include/rocksdb/status.h Examining data/rocksdb-6.11.4/include/rocksdb/table.h Examining data/rocksdb-6.11.4/include/rocksdb/table_properties.h Examining data/rocksdb-6.11.4/include/rocksdb/thread_status.h Examining data/rocksdb-6.11.4/include/rocksdb/threadpool.h Examining data/rocksdb-6.11.4/include/rocksdb/trace_reader_writer.h Examining data/rocksdb-6.11.4/include/rocksdb/transaction_log.h Examining data/rocksdb-6.11.4/include/rocksdb/types.h Examining data/rocksdb-6.11.4/include/rocksdb/universal_compaction.h Examining data/rocksdb-6.11.4/include/rocksdb/utilities/backupable_db.h Examining data/rocksdb-6.11.4/include/rocksdb/utilities/checkpoint.h Examining data/rocksdb-6.11.4/include/rocksdb/utilities/convenience.h Examining data/rocksdb-6.11.4/include/rocksdb/utilities/db_ttl.h Examining data/rocksdb-6.11.4/include/rocksdb/utilities/debug.h Examining data/rocksdb-6.11.4/include/rocksdb/utilities/env_librados.h Examining data/rocksdb-6.11.4/include/rocksdb/utilities/env_mirror.h Examining data/rocksdb-6.11.4/include/rocksdb/utilities/info_log_finder.h Examining data/rocksdb-6.11.4/include/rocksdb/utilities/ldb_cmd.h Examining data/rocksdb-6.11.4/include/rocksdb/utilities/ldb_cmd_execute_result.h Examining data/rocksdb-6.11.4/include/rocksdb/utilities/leveldb_options.h Examining data/rocksdb-6.11.4/include/rocksdb/utilities/lua/rocks_lua_custom_library.h Examining data/rocksdb-6.11.4/include/rocksdb/utilities/lua/rocks_lua_util.h Examining data/rocksdb-6.11.4/include/rocksdb/utilities/memory_util.h Examining data/rocksdb-6.11.4/include/rocksdb/utilities/object_registry.h Examining data/rocksdb-6.11.4/include/rocksdb/utilities/optimistic_transaction_db.h Examining data/rocksdb-6.11.4/include/rocksdb/utilities/option_change_migration.h Examining data/rocksdb-6.11.4/include/rocksdb/utilities/options_util.h Examining data/rocksdb-6.11.4/include/rocksdb/utilities/sim_cache.h Examining data/rocksdb-6.11.4/include/rocksdb/utilities/stackable_db.h Examining data/rocksdb-6.11.4/include/rocksdb/utilities/table_properties_collectors.h Examining data/rocksdb-6.11.4/include/rocksdb/utilities/transaction.h Examining data/rocksdb-6.11.4/include/rocksdb/utilities/transaction_db.h Examining data/rocksdb-6.11.4/include/rocksdb/utilities/transaction_db_mutex.h Examining data/rocksdb-6.11.4/include/rocksdb/utilities/utility_db.h Examining data/rocksdb-6.11.4/include/rocksdb/utilities/write_batch_with_index.h Examining data/rocksdb-6.11.4/include/rocksdb/version.h Examining data/rocksdb-6.11.4/include/rocksdb/wal_filter.h Examining data/rocksdb-6.11.4/include/rocksdb/write_batch.h Examining data/rocksdb-6.11.4/include/rocksdb/write_batch_base.h Examining data/rocksdb-6.11.4/include/rocksdb/write_buffer_manager.h Examining data/rocksdb-6.11.4/java/rocksjni/backupablejni.cc Examining data/rocksdb-6.11.4/java/rocksjni/backupenginejni.cc Examining data/rocksdb-6.11.4/java/rocksjni/cassandra_compactionfilterjni.cc Examining data/rocksdb-6.11.4/java/rocksjni/cassandra_value_operator.cc Examining data/rocksdb-6.11.4/java/rocksjni/checkpoint.cc Examining data/rocksdb-6.11.4/java/rocksjni/clock_cache.cc Examining data/rocksdb-6.11.4/java/rocksjni/columnfamilyhandle.cc Examining data/rocksdb-6.11.4/java/rocksjni/compact_range_options.cc Examining data/rocksdb-6.11.4/java/rocksjni/compaction_filter.cc Examining data/rocksdb-6.11.4/java/rocksjni/compaction_filter_factory.cc Examining data/rocksdb-6.11.4/java/rocksjni/compaction_filter_factory_jnicallback.cc Examining data/rocksdb-6.11.4/java/rocksjni/compaction_filter_factory_jnicallback.h Examining data/rocksdb-6.11.4/java/rocksjni/compaction_job_info.cc Examining data/rocksdb-6.11.4/java/rocksjni/compaction_job_stats.cc Examining data/rocksdb-6.11.4/java/rocksjni/compaction_options.cc Examining data/rocksdb-6.11.4/java/rocksjni/compaction_options_fifo.cc Examining data/rocksdb-6.11.4/java/rocksjni/compaction_options_universal.cc Examining data/rocksdb-6.11.4/java/rocksjni/comparator.cc Examining data/rocksdb-6.11.4/java/rocksjni/comparatorjnicallback.cc Examining data/rocksdb-6.11.4/java/rocksjni/comparatorjnicallback.h Examining data/rocksdb-6.11.4/java/rocksjni/compression_options.cc Examining data/rocksdb-6.11.4/java/rocksjni/config_options.cc Examining data/rocksdb-6.11.4/java/rocksjni/env.cc Examining data/rocksdb-6.11.4/java/rocksjni/env_options.cc Examining data/rocksdb-6.11.4/java/rocksjni/filter.cc Examining data/rocksdb-6.11.4/java/rocksjni/ingest_external_file_options.cc Examining data/rocksdb-6.11.4/java/rocksjni/iterator.cc Examining data/rocksdb-6.11.4/java/rocksjni/jnicallback.cc Examining data/rocksdb-6.11.4/java/rocksjni/jnicallback.h Examining data/rocksdb-6.11.4/java/rocksjni/loggerjnicallback.cc Examining data/rocksdb-6.11.4/java/rocksjni/loggerjnicallback.h Examining data/rocksdb-6.11.4/java/rocksjni/lru_cache.cc Examining data/rocksdb-6.11.4/java/rocksjni/memory_util.cc Examining data/rocksdb-6.11.4/java/rocksjni/memtablejni.cc Examining data/rocksdb-6.11.4/java/rocksjni/merge_operator.cc Examining data/rocksdb-6.11.4/java/rocksjni/native_comparator_wrapper_test.cc Examining data/rocksdb-6.11.4/java/rocksjni/optimistic_transaction_db.cc Examining data/rocksdb-6.11.4/java/rocksjni/optimistic_transaction_options.cc Examining data/rocksdb-6.11.4/java/rocksjni/options.cc Examining data/rocksdb-6.11.4/java/rocksjni/options_util.cc Examining data/rocksdb-6.11.4/java/rocksjni/persistent_cache.cc Examining data/rocksdb-6.11.4/java/rocksjni/portal.h Examining data/rocksdb-6.11.4/java/rocksjni/ratelimiterjni.cc Examining data/rocksdb-6.11.4/java/rocksjni/remove_emptyvalue_compactionfilterjni.cc Examining data/rocksdb-6.11.4/java/rocksjni/restorejni.cc Examining data/rocksdb-6.11.4/java/rocksjni/rocks_callback_object.cc Examining data/rocksdb-6.11.4/java/rocksjni/rocksdb_exception_test.cc Examining data/rocksdb-6.11.4/java/rocksjni/rocksjni.cc Examining data/rocksdb-6.11.4/java/rocksjni/slice.cc Examining data/rocksdb-6.11.4/java/rocksjni/snapshot.cc Examining data/rocksdb-6.11.4/java/rocksjni/sst_file_manager.cc Examining data/rocksdb-6.11.4/java/rocksjni/sst_file_reader_iterator.cc Examining data/rocksdb-6.11.4/java/rocksjni/sst_file_readerjni.cc Examining data/rocksdb-6.11.4/java/rocksjni/sst_file_writerjni.cc Examining data/rocksdb-6.11.4/java/rocksjni/statistics.cc Examining data/rocksdb-6.11.4/java/rocksjni/statisticsjni.cc Examining data/rocksdb-6.11.4/java/rocksjni/statisticsjni.h Examining data/rocksdb-6.11.4/java/rocksjni/table.cc Examining data/rocksdb-6.11.4/java/rocksjni/table_filter.cc Examining data/rocksdb-6.11.4/java/rocksjni/table_filter_jnicallback.cc Examining data/rocksdb-6.11.4/java/rocksjni/table_filter_jnicallback.h Examining data/rocksdb-6.11.4/java/rocksjni/thread_status.cc Examining data/rocksdb-6.11.4/java/rocksjni/trace_writer.cc Examining data/rocksdb-6.11.4/java/rocksjni/trace_writer_jnicallback.cc Examining data/rocksdb-6.11.4/java/rocksjni/trace_writer_jnicallback.h Examining data/rocksdb-6.11.4/java/rocksjni/transaction.cc Examining data/rocksdb-6.11.4/java/rocksjni/transaction_db.cc Examining data/rocksdb-6.11.4/java/rocksjni/transaction_db_options.cc Examining data/rocksdb-6.11.4/java/rocksjni/transaction_log.cc Examining data/rocksdb-6.11.4/java/rocksjni/transaction_notifier.cc Examining data/rocksdb-6.11.4/java/rocksjni/transaction_notifier_jnicallback.cc Examining data/rocksdb-6.11.4/java/rocksjni/transaction_notifier_jnicallback.h Examining data/rocksdb-6.11.4/java/rocksjni/transaction_options.cc Examining data/rocksdb-6.11.4/java/rocksjni/ttl.cc Examining data/rocksdb-6.11.4/java/rocksjni/wal_filter.cc Examining data/rocksdb-6.11.4/java/rocksjni/wal_filter_jnicallback.cc Examining data/rocksdb-6.11.4/java/rocksjni/wal_filter_jnicallback.h Examining data/rocksdb-6.11.4/java/rocksjni/write_batch.cc Examining data/rocksdb-6.11.4/java/rocksjni/write_batch_test.cc Examining data/rocksdb-6.11.4/java/rocksjni/write_batch_with_index.cc Examining data/rocksdb-6.11.4/java/rocksjni/write_buffer_manager.cc Examining data/rocksdb-6.11.4/java/rocksjni/writebatchhandlerjnicallback.cc Examining data/rocksdb-6.11.4/java/rocksjni/writebatchhandlerjnicallback.h Examining data/rocksdb-6.11.4/logging/auto_roll_logger.cc Examining data/rocksdb-6.11.4/logging/auto_roll_logger.h Examining data/rocksdb-6.11.4/logging/auto_roll_logger_test.cc Examining data/rocksdb-6.11.4/logging/env_logger.h Examining data/rocksdb-6.11.4/logging/env_logger_test.cc Examining data/rocksdb-6.11.4/logging/event_logger.cc Examining data/rocksdb-6.11.4/logging/event_logger.h Examining data/rocksdb-6.11.4/logging/event_logger_test.cc Examining data/rocksdb-6.11.4/logging/log_buffer.cc Examining data/rocksdb-6.11.4/logging/log_buffer.h Examining data/rocksdb-6.11.4/logging/logging.h Examining data/rocksdb-6.11.4/logging/posix_logger.h Examining data/rocksdb-6.11.4/memory/allocator.h Examining data/rocksdb-6.11.4/memory/arena.cc Examining data/rocksdb-6.11.4/memory/arena.h Examining data/rocksdb-6.11.4/memory/arena_test.cc Examining data/rocksdb-6.11.4/memory/concurrent_arena.cc Examining data/rocksdb-6.11.4/memory/concurrent_arena.h Examining data/rocksdb-6.11.4/memory/jemalloc_nodump_allocator.cc Examining data/rocksdb-6.11.4/memory/jemalloc_nodump_allocator.h Examining data/rocksdb-6.11.4/memory/memkind_kmem_allocator.cc Examining data/rocksdb-6.11.4/memory/memkind_kmem_allocator.h Examining data/rocksdb-6.11.4/memory/memkind_kmem_allocator_test.cc Examining data/rocksdb-6.11.4/memory/memory_allocator.h Examining data/rocksdb-6.11.4/memory/memory_usage.h Examining data/rocksdb-6.11.4/memtable/alloc_tracker.cc Examining data/rocksdb-6.11.4/memtable/hash_linklist_rep.cc Examining data/rocksdb-6.11.4/memtable/hash_linklist_rep.h Examining data/rocksdb-6.11.4/memtable/hash_skiplist_rep.cc Examining data/rocksdb-6.11.4/memtable/hash_skiplist_rep.h Examining data/rocksdb-6.11.4/memtable/inlineskiplist.h Examining data/rocksdb-6.11.4/memtable/inlineskiplist_test.cc Examining data/rocksdb-6.11.4/memtable/memtablerep_bench.cc Examining data/rocksdb-6.11.4/memtable/skiplist.h Examining data/rocksdb-6.11.4/memtable/skiplist_test.cc Examining data/rocksdb-6.11.4/memtable/skiplistrep.cc Examining data/rocksdb-6.11.4/memtable/stl_wrappers.h Examining data/rocksdb-6.11.4/memtable/vectorrep.cc Examining data/rocksdb-6.11.4/memtable/write_buffer_manager.cc Examining data/rocksdb-6.11.4/memtable/write_buffer_manager_test.cc Examining data/rocksdb-6.11.4/monitoring/file_read_sample.h Examining data/rocksdb-6.11.4/monitoring/histogram.cc Examining data/rocksdb-6.11.4/monitoring/histogram.h Examining data/rocksdb-6.11.4/monitoring/histogram_test.cc Examining data/rocksdb-6.11.4/monitoring/histogram_windowing.cc Examining data/rocksdb-6.11.4/monitoring/histogram_windowing.h Examining data/rocksdb-6.11.4/monitoring/in_memory_stats_history.cc Examining data/rocksdb-6.11.4/monitoring/in_memory_stats_history.h Examining data/rocksdb-6.11.4/monitoring/instrumented_mutex.cc Examining data/rocksdb-6.11.4/monitoring/instrumented_mutex.h Examining data/rocksdb-6.11.4/monitoring/iostats_context.cc Examining data/rocksdb-6.11.4/monitoring/iostats_context_imp.h Examining data/rocksdb-6.11.4/monitoring/iostats_context_test.cc Examining data/rocksdb-6.11.4/monitoring/perf_context.cc Examining data/rocksdb-6.11.4/monitoring/perf_context_imp.h Examining data/rocksdb-6.11.4/monitoring/perf_level.cc Examining data/rocksdb-6.11.4/monitoring/perf_level_imp.h Examining data/rocksdb-6.11.4/monitoring/perf_step_timer.h Examining data/rocksdb-6.11.4/monitoring/persistent_stats_history.cc Examining data/rocksdb-6.11.4/monitoring/persistent_stats_history.h Examining data/rocksdb-6.11.4/monitoring/statistics.cc Examining data/rocksdb-6.11.4/monitoring/statistics.h Examining data/rocksdb-6.11.4/monitoring/statistics_test.cc Examining data/rocksdb-6.11.4/monitoring/stats_history_test.cc Examining data/rocksdb-6.11.4/monitoring/thread_status_impl.cc Examining data/rocksdb-6.11.4/monitoring/thread_status_updater.cc Examining data/rocksdb-6.11.4/monitoring/thread_status_updater.h Examining data/rocksdb-6.11.4/monitoring/thread_status_updater_debug.cc Examining data/rocksdb-6.11.4/monitoring/thread_status_util.cc Examining data/rocksdb-6.11.4/monitoring/thread_status_util.h Examining data/rocksdb-6.11.4/monitoring/thread_status_util_debug.cc Examining data/rocksdb-6.11.4/options/cf_options.cc Examining data/rocksdb-6.11.4/options/cf_options.h Examining data/rocksdb-6.11.4/options/db_options.cc Examining data/rocksdb-6.11.4/options/db_options.h Examining data/rocksdb-6.11.4/options/options.cc Examining data/rocksdb-6.11.4/options/options_helper.cc Examining data/rocksdb-6.11.4/options/options_helper.h Examining data/rocksdb-6.11.4/options/options_parser.cc Examining data/rocksdb-6.11.4/options/options_parser.h Examining data/rocksdb-6.11.4/options/options_settable_test.cc Examining data/rocksdb-6.11.4/options/options_test.cc Examining data/rocksdb-6.11.4/options/options_type.h Examining data/rocksdb-6.11.4/port/jemalloc_helper.h Examining data/rocksdb-6.11.4/port/lang.h Examining data/rocksdb-6.11.4/port/likely.h Examining data/rocksdb-6.11.4/port/malloc.h Examining data/rocksdb-6.11.4/port/port.h Examining data/rocksdb-6.11.4/port/port_dirent.h Examining data/rocksdb-6.11.4/port/port_example.h Examining data/rocksdb-6.11.4/port/port_posix.cc Examining data/rocksdb-6.11.4/port/port_posix.h Examining data/rocksdb-6.11.4/port/stack_trace.cc Examining data/rocksdb-6.11.4/port/stack_trace.h Examining data/rocksdb-6.11.4/port/sys_time.h Examining data/rocksdb-6.11.4/port/util_logger.h Examining data/rocksdb-6.11.4/port/win/env_default.cc Examining data/rocksdb-6.11.4/port/win/env_win.cc Examining data/rocksdb-6.11.4/port/win/env_win.h Examining data/rocksdb-6.11.4/port/win/io_win.cc Examining data/rocksdb-6.11.4/port/win/io_win.h Examining data/rocksdb-6.11.4/port/win/port_win.cc Examining data/rocksdb-6.11.4/port/win/port_win.h Examining data/rocksdb-6.11.4/port/win/win_jemalloc.cc Examining data/rocksdb-6.11.4/port/win/win_logger.cc Examining data/rocksdb-6.11.4/port/win/win_logger.h Examining data/rocksdb-6.11.4/port/win/win_thread.cc Examining data/rocksdb-6.11.4/port/win/win_thread.h Examining data/rocksdb-6.11.4/port/win/xpress_win.cc Examining data/rocksdb-6.11.4/port/win/xpress_win.h Examining data/rocksdb-6.11.4/port/xpress.h Examining data/rocksdb-6.11.4/table/adaptive/adaptive_table_factory.cc Examining data/rocksdb-6.11.4/table/adaptive/adaptive_table_factory.h Examining data/rocksdb-6.11.4/table/block_based/binary_search_index_reader.cc Examining data/rocksdb-6.11.4/table/block_based/binary_search_index_reader.h Examining data/rocksdb-6.11.4/table/block_based/block.cc Examining data/rocksdb-6.11.4/table/block_based/block.h Examining data/rocksdb-6.11.4/table/block_based/block_based_filter_block.cc Examining data/rocksdb-6.11.4/table/block_based/block_based_filter_block.h Examining data/rocksdb-6.11.4/table/block_based/block_based_filter_block_test.cc Examining data/rocksdb-6.11.4/table/block_based/block_based_table_builder.cc Examining data/rocksdb-6.11.4/table/block_based/block_based_table_builder.h Examining data/rocksdb-6.11.4/table/block_based/block_based_table_factory.cc Examining data/rocksdb-6.11.4/table/block_based/block_based_table_factory.h Examining data/rocksdb-6.11.4/table/block_based/block_based_table_iterator.cc Examining data/rocksdb-6.11.4/table/block_based/block_based_table_iterator.h Examining data/rocksdb-6.11.4/table/block_based/block_based_table_reader.cc Examining data/rocksdb-6.11.4/table/block_based/block_based_table_reader.h Examining data/rocksdb-6.11.4/table/block_based/block_based_table_reader_impl.h Examining data/rocksdb-6.11.4/table/block_based/block_based_table_reader_test.cc Examining data/rocksdb-6.11.4/table/block_based/block_builder.cc Examining data/rocksdb-6.11.4/table/block_based/block_builder.h Examining data/rocksdb-6.11.4/table/block_based/block_prefetcher.cc Examining data/rocksdb-6.11.4/table/block_based/block_prefetcher.h Examining data/rocksdb-6.11.4/table/block_based/block_prefix_index.cc Examining data/rocksdb-6.11.4/table/block_based/block_prefix_index.h Examining data/rocksdb-6.11.4/table/block_based/block_test.cc Examining data/rocksdb-6.11.4/table/block_based/block_type.h Examining data/rocksdb-6.11.4/table/block_based/cachable_entry.h Examining data/rocksdb-6.11.4/table/block_based/data_block_footer.cc Examining data/rocksdb-6.11.4/table/block_based/data_block_footer.h Examining data/rocksdb-6.11.4/table/block_based/data_block_hash_index.cc Examining data/rocksdb-6.11.4/table/block_based/data_block_hash_index.h Examining data/rocksdb-6.11.4/table/block_based/data_block_hash_index_test.cc Examining data/rocksdb-6.11.4/table/block_based/filter_block.h Examining data/rocksdb-6.11.4/table/block_based/filter_block_reader_common.cc Examining data/rocksdb-6.11.4/table/block_based/filter_block_reader_common.h Examining data/rocksdb-6.11.4/table/block_based/filter_policy.cc Examining data/rocksdb-6.11.4/table/block_based/filter_policy_internal.h Examining data/rocksdb-6.11.4/table/block_based/flush_block_policy.cc Examining data/rocksdb-6.11.4/table/block_based/flush_block_policy.h Examining data/rocksdb-6.11.4/table/block_based/full_filter_block.cc Examining data/rocksdb-6.11.4/table/block_based/full_filter_block.h Examining data/rocksdb-6.11.4/table/block_based/full_filter_block_test.cc Examining data/rocksdb-6.11.4/table/block_based/hash_index_reader.cc Examining data/rocksdb-6.11.4/table/block_based/hash_index_reader.h Examining data/rocksdb-6.11.4/table/block_based/index_builder.cc Examining data/rocksdb-6.11.4/table/block_based/index_builder.h Examining data/rocksdb-6.11.4/table/block_based/index_reader_common.cc Examining data/rocksdb-6.11.4/table/block_based/index_reader_common.h Examining data/rocksdb-6.11.4/table/block_based/mock_block_based_table.h Examining data/rocksdb-6.11.4/table/block_based/parsed_full_filter_block.cc Examining data/rocksdb-6.11.4/table/block_based/parsed_full_filter_block.h Examining data/rocksdb-6.11.4/table/block_based/partitioned_filter_block.cc Examining data/rocksdb-6.11.4/table/block_based/partitioned_filter_block.h Examining data/rocksdb-6.11.4/table/block_based/partitioned_filter_block_test.cc Examining data/rocksdb-6.11.4/table/block_based/partitioned_index_iterator.cc Examining data/rocksdb-6.11.4/table/block_based/partitioned_index_iterator.h Examining data/rocksdb-6.11.4/table/block_based/partitioned_index_reader.cc Examining data/rocksdb-6.11.4/table/block_based/partitioned_index_reader.h Examining data/rocksdb-6.11.4/table/block_based/reader_common.cc Examining data/rocksdb-6.11.4/table/block_based/reader_common.h Examining data/rocksdb-6.11.4/table/block_based/uncompression_dict_reader.cc Examining data/rocksdb-6.11.4/table/block_based/uncompression_dict_reader.h Examining data/rocksdb-6.11.4/table/block_fetcher.cc Examining data/rocksdb-6.11.4/table/block_fetcher.h Examining data/rocksdb-6.11.4/table/block_fetcher_test.cc Examining data/rocksdb-6.11.4/table/cleanable_test.cc Examining data/rocksdb-6.11.4/table/cuckoo/cuckoo_table_builder.cc Examining data/rocksdb-6.11.4/table/cuckoo/cuckoo_table_builder.h Examining data/rocksdb-6.11.4/table/cuckoo/cuckoo_table_builder_test.cc Examining data/rocksdb-6.11.4/table/cuckoo/cuckoo_table_factory.cc Examining data/rocksdb-6.11.4/table/cuckoo/cuckoo_table_factory.h Examining data/rocksdb-6.11.4/table/cuckoo/cuckoo_table_reader.cc Examining data/rocksdb-6.11.4/table/cuckoo/cuckoo_table_reader.h Examining data/rocksdb-6.11.4/table/cuckoo/cuckoo_table_reader_test.cc Examining data/rocksdb-6.11.4/table/format.cc Examining data/rocksdb-6.11.4/table/format.h Examining data/rocksdb-6.11.4/table/get_context.cc Examining data/rocksdb-6.11.4/table/get_context.h Examining data/rocksdb-6.11.4/table/internal_iterator.h Examining data/rocksdb-6.11.4/table/iter_heap.h Examining data/rocksdb-6.11.4/table/iterator.cc Examining data/rocksdb-6.11.4/table/iterator_wrapper.h Examining data/rocksdb-6.11.4/table/merger_test.cc Examining data/rocksdb-6.11.4/table/merging_iterator.cc Examining data/rocksdb-6.11.4/table/merging_iterator.h Examining data/rocksdb-6.11.4/table/meta_blocks.cc Examining data/rocksdb-6.11.4/table/meta_blocks.h Examining data/rocksdb-6.11.4/table/mock_table.cc Examining data/rocksdb-6.11.4/table/mock_table.h Examining data/rocksdb-6.11.4/table/multiget_context.h Examining data/rocksdb-6.11.4/table/persistent_cache_helper.cc Examining data/rocksdb-6.11.4/table/persistent_cache_helper.h Examining data/rocksdb-6.11.4/table/persistent_cache_options.h Examining data/rocksdb-6.11.4/table/plain/plain_table_bloom.cc Examining data/rocksdb-6.11.4/table/plain/plain_table_bloom.h Examining data/rocksdb-6.11.4/table/plain/plain_table_builder.cc Examining data/rocksdb-6.11.4/table/plain/plain_table_builder.h Examining data/rocksdb-6.11.4/table/plain/plain_table_factory.cc Examining data/rocksdb-6.11.4/table/plain/plain_table_factory.h Examining data/rocksdb-6.11.4/table/plain/plain_table_index.cc Examining data/rocksdb-6.11.4/table/plain/plain_table_index.h Examining data/rocksdb-6.11.4/table/plain/plain_table_key_coding.cc Examining data/rocksdb-6.11.4/table/plain/plain_table_key_coding.h Examining data/rocksdb-6.11.4/table/plain/plain_table_reader.cc Examining data/rocksdb-6.11.4/table/plain/plain_table_reader.h Examining data/rocksdb-6.11.4/table/scoped_arena_iterator.h Examining data/rocksdb-6.11.4/table/sst_file_reader.cc Examining data/rocksdb-6.11.4/table/sst_file_reader_test.cc Examining data/rocksdb-6.11.4/table/sst_file_writer.cc Examining data/rocksdb-6.11.4/table/sst_file_writer_collectors.h Examining data/rocksdb-6.11.4/table/table_builder.h Examining data/rocksdb-6.11.4/table/table_properties.cc Examining data/rocksdb-6.11.4/table/table_properties_internal.h Examining data/rocksdb-6.11.4/table/table_reader.h Examining data/rocksdb-6.11.4/table/table_reader_bench.cc Examining data/rocksdb-6.11.4/table/table_reader_caller.h Examining data/rocksdb-6.11.4/table/table_test.cc Examining data/rocksdb-6.11.4/table/two_level_iterator.cc Examining data/rocksdb-6.11.4/table/two_level_iterator.h Examining data/rocksdb-6.11.4/test_util/fault_injection_test_env.cc Examining data/rocksdb-6.11.4/test_util/fault_injection_test_env.h Examining data/rocksdb-6.11.4/test_util/fault_injection_test_fs.cc Examining data/rocksdb-6.11.4/test_util/fault_injection_test_fs.h Examining data/rocksdb-6.11.4/test_util/mock_time_env.h Examining data/rocksdb-6.11.4/test_util/sync_point.cc Examining data/rocksdb-6.11.4/test_util/sync_point.h Examining data/rocksdb-6.11.4/test_util/sync_point_impl.cc Examining data/rocksdb-6.11.4/test_util/sync_point_impl.h Examining data/rocksdb-6.11.4/test_util/testharness.cc Examining data/rocksdb-6.11.4/test_util/testharness.h Examining data/rocksdb-6.11.4/test_util/testutil.cc Examining data/rocksdb-6.11.4/test_util/testutil.h Examining data/rocksdb-6.11.4/test_util/testutil_test.cc Examining data/rocksdb-6.11.4/test_util/transaction_test_util.cc Examining data/rocksdb-6.11.4/test_util/transaction_test_util.h Examining data/rocksdb-6.11.4/third-party/folly/folly/CPortability.h Examining data/rocksdb-6.11.4/third-party/folly/folly/ConstexprMath.h Examining data/rocksdb-6.11.4/third-party/folly/folly/Indestructible.h Examining data/rocksdb-6.11.4/third-party/folly/folly/Optional.h Examining data/rocksdb-6.11.4/third-party/folly/folly/Portability.h Examining data/rocksdb-6.11.4/third-party/folly/folly/ScopeGuard.h Examining data/rocksdb-6.11.4/third-party/folly/folly/Traits.h Examining data/rocksdb-6.11.4/third-party/folly/folly/Unit.h Examining data/rocksdb-6.11.4/third-party/folly/folly/Utility.h Examining data/rocksdb-6.11.4/third-party/folly/folly/chrono/Hardware.h Examining data/rocksdb-6.11.4/third-party/folly/folly/container/Array.h Examining data/rocksdb-6.11.4/third-party/folly/folly/detail/Futex-inl.h Examining data/rocksdb-6.11.4/third-party/folly/folly/detail/Futex.cpp Examining data/rocksdb-6.11.4/third-party/folly/folly/detail/Futex.h Examining data/rocksdb-6.11.4/third-party/folly/folly/functional/Invoke.h Examining data/rocksdb-6.11.4/third-party/folly/folly/hash/Hash.h Examining data/rocksdb-6.11.4/third-party/folly/folly/lang/Align.h Examining data/rocksdb-6.11.4/third-party/folly/folly/lang/Bits.h Examining data/rocksdb-6.11.4/third-party/folly/folly/lang/Launder.h Examining data/rocksdb-6.11.4/third-party/folly/folly/portability/Asm.h Examining data/rocksdb-6.11.4/third-party/folly/folly/portability/SysSyscall.h Examining data/rocksdb-6.11.4/third-party/folly/folly/portability/SysTypes.h Examining data/rocksdb-6.11.4/third-party/folly/folly/synchronization/AtomicNotification-inl.h Examining data/rocksdb-6.11.4/third-party/folly/folly/synchronization/AtomicNotification.cpp Examining data/rocksdb-6.11.4/third-party/folly/folly/synchronization/AtomicNotification.h Examining data/rocksdb-6.11.4/third-party/folly/folly/synchronization/AtomicUtil-inl.h Examining data/rocksdb-6.11.4/third-party/folly/folly/synchronization/AtomicUtil.h Examining data/rocksdb-6.11.4/third-party/folly/folly/synchronization/Baton.h Examining data/rocksdb-6.11.4/third-party/folly/folly/synchronization/DistributedMutex-inl.h Examining data/rocksdb-6.11.4/third-party/folly/folly/synchronization/DistributedMutex.cpp Examining data/rocksdb-6.11.4/third-party/folly/folly/synchronization/DistributedMutex.h Examining data/rocksdb-6.11.4/third-party/folly/folly/synchronization/DistributedMutexSpecializations.h Examining data/rocksdb-6.11.4/third-party/folly/folly/synchronization/ParkingLot.cpp Examining data/rocksdb-6.11.4/third-party/folly/folly/synchronization/ParkingLot.h Examining data/rocksdb-6.11.4/third-party/folly/folly/synchronization/WaitOptions.cpp Examining data/rocksdb-6.11.4/third-party/folly/folly/synchronization/WaitOptions.h Examining data/rocksdb-6.11.4/third-party/folly/folly/synchronization/detail/InlineFunctionRef.h Examining data/rocksdb-6.11.4/third-party/folly/folly/synchronization/detail/ProxyLockable-inl.h Examining data/rocksdb-6.11.4/third-party/folly/folly/synchronization/detail/ProxyLockable.h Examining data/rocksdb-6.11.4/third-party/folly/folly/synchronization/detail/Sleeper.h Examining data/rocksdb-6.11.4/third-party/folly/folly/synchronization/detail/Spin.h Examining data/rocksdb-6.11.4/third-party/folly/folly/synchronization/test/DistributedMutexTest.cpp Examining data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc Examining data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest.h Examining data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest_main.cc Examining data/rocksdb-6.11.4/tools/blob_dump.cc Examining data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.cc Examining data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.h Examining data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer_test.cc Examining data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer_tool.cc Examining data/rocksdb-6.11.4/tools/db_bench.cc Examining data/rocksdb-6.11.4/tools/db_bench_tool.cc Examining data/rocksdb-6.11.4/tools/db_bench_tool_test.cc Examining data/rocksdb-6.11.4/tools/db_repl_stress.cc Examining data/rocksdb-6.11.4/tools/db_sanity_test.cc Examining data/rocksdb-6.11.4/tools/dump/db_dump_tool.cc Examining data/rocksdb-6.11.4/tools/dump/rocksdb_dump.cc Examining data/rocksdb-6.11.4/tools/dump/rocksdb_undump.cc Examining data/rocksdb-6.11.4/tools/ldb.cc Examining data/rocksdb-6.11.4/tools/ldb_cmd.cc Examining data/rocksdb-6.11.4/tools/ldb_cmd_impl.h Examining data/rocksdb-6.11.4/tools/ldb_cmd_test.cc Examining data/rocksdb-6.11.4/tools/ldb_tool.cc Examining data/rocksdb-6.11.4/tools/rdb/db_wrapper.cc Examining data/rocksdb-6.11.4/tools/rdb/db_wrapper.h Examining data/rocksdb-6.11.4/tools/rdb/rdb.cc Examining data/rocksdb-6.11.4/tools/reduce_levels_test.cc Examining data/rocksdb-6.11.4/tools/sst_dump.cc Examining data/rocksdb-6.11.4/tools/sst_dump_test.cc Examining data/rocksdb-6.11.4/tools/sst_dump_tool.cc Examining data/rocksdb-6.11.4/tools/sst_dump_tool_imp.h Examining data/rocksdb-6.11.4/tools/trace_analyzer.cc Examining data/rocksdb-6.11.4/tools/trace_analyzer_test.cc Examining data/rocksdb-6.11.4/tools/trace_analyzer_tool.cc Examining data/rocksdb-6.11.4/tools/trace_analyzer_tool.h Examining data/rocksdb-6.11.4/tools/write_stress.cc Examining data/rocksdb-6.11.4/trace_replay/block_cache_tracer.cc Examining data/rocksdb-6.11.4/trace_replay/block_cache_tracer.h Examining data/rocksdb-6.11.4/trace_replay/block_cache_tracer_test.cc Examining data/rocksdb-6.11.4/trace_replay/trace_replay.cc Examining data/rocksdb-6.11.4/trace_replay/trace_replay.h Examining data/rocksdb-6.11.4/util/aligned_buffer.h Examining data/rocksdb-6.11.4/util/autovector.h Examining data/rocksdb-6.11.4/util/autovector_test.cc Examining data/rocksdb-6.11.4/util/bloom_impl.h Examining data/rocksdb-6.11.4/util/bloom_test.cc Examining data/rocksdb-6.11.4/util/build_version.h Examining data/rocksdb-6.11.4/util/cast_util.h Examining data/rocksdb-6.11.4/util/channel.h Examining data/rocksdb-6.11.4/util/coding.cc Examining data/rocksdb-6.11.4/util/coding.h Examining data/rocksdb-6.11.4/util/coding_test.cc Examining data/rocksdb-6.11.4/util/compaction_job_stats_impl.cc Examining data/rocksdb-6.11.4/util/comparator.cc Examining data/rocksdb-6.11.4/util/compression.h Examining data/rocksdb-6.11.4/util/compression_context_cache.cc Examining data/rocksdb-6.11.4/util/compression_context_cache.h Examining data/rocksdb-6.11.4/util/concurrent_task_limiter_impl.cc Examining data/rocksdb-6.11.4/util/concurrent_task_limiter_impl.h Examining data/rocksdb-6.11.4/util/core_local.h Examining data/rocksdb-6.11.4/util/crc32c.cc Examining data/rocksdb-6.11.4/util/crc32c.h Examining data/rocksdb-6.11.4/util/crc32c_arm64.cc Examining data/rocksdb-6.11.4/util/crc32c_arm64.h Examining data/rocksdb-6.11.4/util/crc32c_ppc.c Examining data/rocksdb-6.11.4/util/crc32c_ppc.h Examining data/rocksdb-6.11.4/util/crc32c_ppc_constants.h Examining data/rocksdb-6.11.4/util/crc32c_test.cc Examining data/rocksdb-6.11.4/util/defer.h Examining data/rocksdb-6.11.4/util/defer_test.cc Examining data/rocksdb-6.11.4/util/duplicate_detector.h Examining data/rocksdb-6.11.4/util/dynamic_bloom.cc Examining data/rocksdb-6.11.4/util/dynamic_bloom.h Examining data/rocksdb-6.11.4/util/dynamic_bloom_test.cc Examining data/rocksdb-6.11.4/util/file_checksum_helper.cc Examining data/rocksdb-6.11.4/util/file_checksum_helper.h Examining data/rocksdb-6.11.4/util/file_reader_writer_test.cc Examining data/rocksdb-6.11.4/util/filelock_test.cc Examining data/rocksdb-6.11.4/util/filter_bench.cc Examining data/rocksdb-6.11.4/util/gflags_compat.h Examining data/rocksdb-6.11.4/util/hash.cc Examining data/rocksdb-6.11.4/util/hash.h Examining data/rocksdb-6.11.4/util/hash_map.h Examining data/rocksdb-6.11.4/util/hash_test.cc Examining data/rocksdb-6.11.4/util/heap.h Examining data/rocksdb-6.11.4/util/heap_test.cc Examining data/rocksdb-6.11.4/util/kv_map.h Examining data/rocksdb-6.11.4/util/log_write_bench.cc Examining data/rocksdb-6.11.4/util/math.h Examining data/rocksdb-6.11.4/util/murmurhash.cc Examining data/rocksdb-6.11.4/util/murmurhash.h Examining data/rocksdb-6.11.4/util/mutexlock.h Examining data/rocksdb-6.11.4/util/ppc-opcode.h Examining data/rocksdb-6.11.4/util/random.cc Examining data/rocksdb-6.11.4/util/random.h Examining data/rocksdb-6.11.4/util/random_test.cc Examining data/rocksdb-6.11.4/util/rate_limiter.cc Examining data/rocksdb-6.11.4/util/rate_limiter.h Examining data/rocksdb-6.11.4/util/rate_limiter_test.cc Examining data/rocksdb-6.11.4/util/repeatable_thread.h Examining data/rocksdb-6.11.4/util/repeatable_thread_test.cc Examining data/rocksdb-6.11.4/util/set_comparator.h Examining data/rocksdb-6.11.4/util/slice.cc Examining data/rocksdb-6.11.4/util/slice_test.cc Examining data/rocksdb-6.11.4/util/slice_transform_test.cc Examining data/rocksdb-6.11.4/util/status.cc Examining data/rocksdb-6.11.4/util/stderr_logger.h Examining data/rocksdb-6.11.4/util/stop_watch.h Examining data/rocksdb-6.11.4/util/string_util.cc Examining data/rocksdb-6.11.4/util/string_util.h Examining data/rocksdb-6.11.4/util/thread_list_test.cc Examining data/rocksdb-6.11.4/util/thread_local.cc Examining data/rocksdb-6.11.4/util/thread_local.h Examining data/rocksdb-6.11.4/util/thread_local_test.cc Examining data/rocksdb-6.11.4/util/thread_operation.h Examining data/rocksdb-6.11.4/util/threadpool_imp.cc Examining data/rocksdb-6.11.4/util/threadpool_imp.h Examining data/rocksdb-6.11.4/util/timer.h Examining data/rocksdb-6.11.4/util/timer_queue.h Examining data/rocksdb-6.11.4/util/timer_queue_test.cc Examining data/rocksdb-6.11.4/util/timer_test.cc Examining data/rocksdb-6.11.4/util/user_comparator_wrapper.h Examining data/rocksdb-6.11.4/util/vector_iterator.h Examining data/rocksdb-6.11.4/util/work_queue.h Examining data/rocksdb-6.11.4/util/work_queue_test.cc Examining data/rocksdb-6.11.4/util/xxh3p.h Examining data/rocksdb-6.11.4/util/xxhash.cc Examining data/rocksdb-6.11.4/util/xxhash.h Examining data/rocksdb-6.11.4/utilities/backupable/backupable_db.cc Examining data/rocksdb-6.11.4/utilities/backupable/backupable_db_test.cc Examining data/rocksdb-6.11.4/utilities/blob_db/blob_compaction_filter.cc Examining data/rocksdb-6.11.4/utilities/blob_db/blob_compaction_filter.h Examining data/rocksdb-6.11.4/utilities/blob_db/blob_db.cc Examining data/rocksdb-6.11.4/utilities/blob_db/blob_db.h Examining data/rocksdb-6.11.4/utilities/blob_db/blob_db_gc_stats.h Examining data/rocksdb-6.11.4/utilities/blob_db/blob_db_impl.cc Examining data/rocksdb-6.11.4/utilities/blob_db/blob_db_impl.h Examining data/rocksdb-6.11.4/utilities/blob_db/blob_db_impl_filesnapshot.cc Examining data/rocksdb-6.11.4/utilities/blob_db/blob_db_iterator.h Examining data/rocksdb-6.11.4/utilities/blob_db/blob_db_listener.h Examining data/rocksdb-6.11.4/utilities/blob_db/blob_db_test.cc Examining data/rocksdb-6.11.4/utilities/blob_db/blob_dump_tool.cc Examining data/rocksdb-6.11.4/utilities/blob_db/blob_dump_tool.h Examining data/rocksdb-6.11.4/utilities/blob_db/blob_file.cc Examining data/rocksdb-6.11.4/utilities/blob_db/blob_file.h Examining data/rocksdb-6.11.4/utilities/cassandra/cassandra_compaction_filter.cc Examining data/rocksdb-6.11.4/utilities/cassandra/cassandra_compaction_filter.h Examining data/rocksdb-6.11.4/utilities/cassandra/cassandra_format_test.cc Examining data/rocksdb-6.11.4/utilities/cassandra/cassandra_functional_test.cc Examining data/rocksdb-6.11.4/utilities/cassandra/cassandra_row_merge_test.cc Examining data/rocksdb-6.11.4/utilities/cassandra/cassandra_serialize_test.cc Examining data/rocksdb-6.11.4/utilities/cassandra/format.cc Examining data/rocksdb-6.11.4/utilities/cassandra/format.h Examining data/rocksdb-6.11.4/utilities/cassandra/merge_operator.cc Examining data/rocksdb-6.11.4/utilities/cassandra/merge_operator.h Examining data/rocksdb-6.11.4/utilities/cassandra/serialize.h Examining data/rocksdb-6.11.4/utilities/cassandra/test_utils.cc Examining data/rocksdb-6.11.4/utilities/cassandra/test_utils.h Examining data/rocksdb-6.11.4/utilities/checkpoint/checkpoint_impl.cc Examining data/rocksdb-6.11.4/utilities/checkpoint/checkpoint_impl.h Examining data/rocksdb-6.11.4/utilities/checkpoint/checkpoint_test.cc Examining data/rocksdb-6.11.4/utilities/compaction_filters/remove_emptyvalue_compactionfilter.cc Examining data/rocksdb-6.11.4/utilities/compaction_filters/remove_emptyvalue_compactionfilter.h Examining data/rocksdb-6.11.4/utilities/convenience/info_log_finder.cc Examining data/rocksdb-6.11.4/utilities/debug.cc Examining data/rocksdb-6.11.4/utilities/env_librados.cc Examining data/rocksdb-6.11.4/utilities/env_librados_test.cc Examining data/rocksdb-6.11.4/utilities/env_mirror.cc Examining data/rocksdb-6.11.4/utilities/env_mirror_test.cc Examining data/rocksdb-6.11.4/utilities/env_timed.cc Examining data/rocksdb-6.11.4/utilities/env_timed_test.cc Examining data/rocksdb-6.11.4/utilities/leveldb_options/leveldb_options.cc Examining data/rocksdb-6.11.4/utilities/memory/memory_test.cc Examining data/rocksdb-6.11.4/utilities/memory/memory_util.cc Examining data/rocksdb-6.11.4/utilities/merge_operators.h Examining data/rocksdb-6.11.4/utilities/merge_operators/bytesxor.cc Examining data/rocksdb-6.11.4/utilities/merge_operators/bytesxor.h Examining data/rocksdb-6.11.4/utilities/merge_operators/max.cc Examining data/rocksdb-6.11.4/utilities/merge_operators/put.cc Examining data/rocksdb-6.11.4/utilities/merge_operators/sortlist.cc Examining data/rocksdb-6.11.4/utilities/merge_operators/sortlist.h Examining data/rocksdb-6.11.4/utilities/merge_operators/string_append/stringappend.cc Examining data/rocksdb-6.11.4/utilities/merge_operators/string_append/stringappend.h Examining data/rocksdb-6.11.4/utilities/merge_operators/string_append/stringappend2.cc Examining data/rocksdb-6.11.4/utilities/merge_operators/string_append/stringappend2.h Examining data/rocksdb-6.11.4/utilities/merge_operators/string_append/stringappend_test.cc Examining data/rocksdb-6.11.4/utilities/merge_operators/uint64add.cc Examining data/rocksdb-6.11.4/utilities/object_registry.cc Examining data/rocksdb-6.11.4/utilities/object_registry_test.cc Examining data/rocksdb-6.11.4/utilities/option_change_migration/option_change_migration.cc Examining data/rocksdb-6.11.4/utilities/option_change_migration/option_change_migration_test.cc Examining data/rocksdb-6.11.4/utilities/options/options_util.cc Examining data/rocksdb-6.11.4/utilities/options/options_util_test.cc Examining data/rocksdb-6.11.4/utilities/persistent_cache/block_cache_tier.cc Examining data/rocksdb-6.11.4/utilities/persistent_cache/block_cache_tier.h Examining data/rocksdb-6.11.4/utilities/persistent_cache/block_cache_tier_file.cc Examining data/rocksdb-6.11.4/utilities/persistent_cache/block_cache_tier_file.h Examining data/rocksdb-6.11.4/utilities/persistent_cache/block_cache_tier_file_buffer.h Examining data/rocksdb-6.11.4/utilities/persistent_cache/block_cache_tier_metadata.cc Examining data/rocksdb-6.11.4/utilities/persistent_cache/block_cache_tier_metadata.h Examining data/rocksdb-6.11.4/utilities/persistent_cache/hash_table.h Examining data/rocksdb-6.11.4/utilities/persistent_cache/hash_table_bench.cc Examining data/rocksdb-6.11.4/utilities/persistent_cache/hash_table_evictable.h Examining data/rocksdb-6.11.4/utilities/persistent_cache/hash_table_test.cc Examining data/rocksdb-6.11.4/utilities/persistent_cache/lrulist.h Examining data/rocksdb-6.11.4/utilities/persistent_cache/persistent_cache_bench.cc Examining data/rocksdb-6.11.4/utilities/persistent_cache/persistent_cache_test.cc Examining data/rocksdb-6.11.4/utilities/persistent_cache/persistent_cache_test.h Examining data/rocksdb-6.11.4/utilities/persistent_cache/persistent_cache_tier.cc Examining data/rocksdb-6.11.4/utilities/persistent_cache/persistent_cache_tier.h Examining data/rocksdb-6.11.4/utilities/persistent_cache/persistent_cache_util.h Examining data/rocksdb-6.11.4/utilities/persistent_cache/volatile_tier_impl.cc Examining data/rocksdb-6.11.4/utilities/persistent_cache/volatile_tier_impl.h Examining data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc Examining data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.h Examining data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator_test.cc Examining data/rocksdb-6.11.4/utilities/simulator_cache/sim_cache.cc Examining data/rocksdb-6.11.4/utilities/simulator_cache/sim_cache_test.cc Examining data/rocksdb-6.11.4/utilities/table_properties_collectors/compact_on_deletion_collector.cc Examining data/rocksdb-6.11.4/utilities/table_properties_collectors/compact_on_deletion_collector.h Examining data/rocksdb-6.11.4/utilities/table_properties_collectors/compact_on_deletion_collector_test.cc Examining data/rocksdb-6.11.4/utilities/trace/file_trace_reader_writer.cc Examining data/rocksdb-6.11.4/utilities/trace/file_trace_reader_writer.h Examining data/rocksdb-6.11.4/utilities/transactions/optimistic_transaction.cc Examining data/rocksdb-6.11.4/utilities/transactions/optimistic_transaction.h Examining data/rocksdb-6.11.4/utilities/transactions/optimistic_transaction_db_impl.cc Examining data/rocksdb-6.11.4/utilities/transactions/optimistic_transaction_db_impl.h Examining data/rocksdb-6.11.4/utilities/transactions/optimistic_transaction_test.cc Examining data/rocksdb-6.11.4/utilities/transactions/pessimistic_transaction.cc Examining data/rocksdb-6.11.4/utilities/transactions/pessimistic_transaction.h Examining data/rocksdb-6.11.4/utilities/transactions/pessimistic_transaction_db.cc Examining data/rocksdb-6.11.4/utilities/transactions/pessimistic_transaction_db.h Examining data/rocksdb-6.11.4/utilities/transactions/snapshot_checker.cc Examining data/rocksdb-6.11.4/utilities/transactions/transaction_base.cc Examining data/rocksdb-6.11.4/utilities/transactions/transaction_base.h Examining data/rocksdb-6.11.4/utilities/transactions/transaction_db_mutex_impl.cc Examining data/rocksdb-6.11.4/utilities/transactions/transaction_db_mutex_impl.h Examining data/rocksdb-6.11.4/utilities/transactions/transaction_lock_mgr.cc Examining data/rocksdb-6.11.4/utilities/transactions/transaction_lock_mgr.h Examining data/rocksdb-6.11.4/utilities/transactions/transaction_lock_mgr_test.cc Examining data/rocksdb-6.11.4/utilities/transactions/transaction_test.cc Examining data/rocksdb-6.11.4/utilities/transactions/transaction_test.h Examining data/rocksdb-6.11.4/utilities/transactions/transaction_util.cc Examining data/rocksdb-6.11.4/utilities/transactions/transaction_util.h Examining data/rocksdb-6.11.4/utilities/transactions/write_prepared_transaction_test.cc Examining data/rocksdb-6.11.4/utilities/transactions/write_prepared_txn.cc Examining data/rocksdb-6.11.4/utilities/transactions/write_prepared_txn.h Examining data/rocksdb-6.11.4/utilities/transactions/write_prepared_txn_db.cc Examining data/rocksdb-6.11.4/utilities/transactions/write_prepared_txn_db.h Examining data/rocksdb-6.11.4/utilities/transactions/write_unprepared_transaction_test.cc Examining data/rocksdb-6.11.4/utilities/transactions/write_unprepared_txn.cc Examining data/rocksdb-6.11.4/utilities/transactions/write_unprepared_txn.h Examining data/rocksdb-6.11.4/utilities/transactions/write_unprepared_txn_db.cc Examining data/rocksdb-6.11.4/utilities/transactions/write_unprepared_txn_db.h Examining data/rocksdb-6.11.4/utilities/ttl/db_ttl_impl.cc Examining data/rocksdb-6.11.4/utilities/ttl/db_ttl_impl.h Examining data/rocksdb-6.11.4/utilities/ttl/ttl_test.cc Examining data/rocksdb-6.11.4/utilities/util_merge_operators_test.cc Examining data/rocksdb-6.11.4/utilities/write_batch_with_index/write_batch_with_index.cc Examining data/rocksdb-6.11.4/utilities/write_batch_with_index/write_batch_with_index_internal.cc Examining data/rocksdb-6.11.4/utilities/write_batch_with_index/write_batch_with_index_internal.h Examining data/rocksdb-6.11.4/utilities/write_batch_with_index/write_batch_with_index_test.cc FINAL RESULTS: data/rocksdb-6.11.4/port/stack_trace.cc:45:15: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. auto read = readlink(link, name, sizeof(name) - 1); data/rocksdb-6.11.4/tools/db_bench_tool.cc:5681:14: [5] (buffer) gets: Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead. gets, puts, seek, found, read); data/rocksdb-6.11.4/db/c_test.c:37:9: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf _snprintf data/rocksdb-6.11.4/db/c_test.c:37:18: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf _snprintf data/rocksdb-6.11.4/db/compaction/compaction_job_stats_test.cc:78:3: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(buf, kBufSize, "%0*" PRIu64, length, key); data/rocksdb-6.11.4/db/compaction/compaction_picker_universal.cc:294:7: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(out_buf, out_buf_size, "file %" PRIu64, file->fd.GetNumber()); data/rocksdb-6.11.4/db/db_info_dumper.cc:60:9: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(str, sizeof(str), "%" PRIu64, file_size); data/rocksdb-6.11.4/db/db_info_dumper.cc:113:11: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(str, sizeof(str), "%" PRIu64, file_size); data/rocksdb-6.11.4/db/db_properties_test.cc:183:3: [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(tp_string.c_str(), data/rocksdb-6.11.4/env/env_hdfs.cc:354:14: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. p += vsnprintf(p, limit - p, format, backup_ap); data/rocksdb-6.11.4/env/env_test.cc:802:5: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(dir_buf, sizeof dir_buf, fmt, tmp); data/rocksdb-6.11.4/env/env_test.cc:820:7: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(dir_buf, sizeof dir_buf, fmt, d.c_str()); data/rocksdb-6.11.4/env/env_test.cc:1363:15: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. int n = vsnprintf(new_format, sizeof(new_format) - 1, format, backup_ap); data/rocksdb-6.11.4/env/env_test.cc:1443:15: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. int n = vsnprintf(new_format, sizeof(new_format) - 1, format, backup_ap); data/rocksdb-6.11.4/env/fs_posix.cc:584:18: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. int result = access(fname.c_str(), F_OK); data/rocksdb-6.11.4/env/mock_env.cc:376:14: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. p += vsnprintf(p, limit - p, format, backup_ap); data/rocksdb-6.11.4/examples/compaction_filter_example.cc:63:13: [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. int ret = system("rm -rf /tmp/rocksmergetest"); data/rocksdb-6.11.4/file/filename.cc:55:3: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(dest + write_idx, len - write_idx, suffix); data/rocksdb-6.11.4/file/filename.cc:150:5: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(out_buf, out_buf_size, "%" PRIu64, number); data/rocksdb-6.11.4/file/filename.cc:184:5: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(buf, sizeof(buf), kInfoLogPrefix); data/rocksdb-6.11.4/file/filename.cc:218:3: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(buffer, sizeof(buffer), "%s%06" PRIu64, data/rocksdb-6.11.4/java/rocksjni/loggerjnicallback.cc:178:7: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(nullptr, 0, format, ap_copy) + 1; // Extra space for '\0' data/rocksdb-6.11.4/java/rocksjni/loggerjnicallback.cc:184:3: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(buf.get(), required, format, ap_copy); data/rocksdb-6.11.4/java/rocksjni/portal.h:1718:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). std::strcpy(str.get(), utf); data/rocksdb-6.11.4/logging/auto_roll_logger.cc:151:15: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. int count = vsnprintf(buffer, MAXBUFFERSIZE, format, args); data/rocksdb-6.11.4/logging/auto_roll_logger_test.cc:73:17: [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. ASSERT_TRUE(system(deleteCmd.c_str()) == 0); data/rocksdb-6.11.4/logging/auto_roll_logger_test.cc:652:13: [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. ASSERT_EQ(system(deleteCmd.c_str()), 0); data/rocksdb-6.11.4/logging/env_logger.h:116:14: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. p += vsnprintf(p, limit - p, format, backup_ap); data/rocksdb-6.11.4/logging/event_logger_test.cc:19:5: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(buffer_, sizeof(buffer_), format, ap); data/rocksdb-6.11.4/logging/log_buffer.cc:36:14: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. auto n = vsnprintf(p, limit - p, format, backup_ap); data/rocksdb-6.11.4/logging/posix_logger.h:126:14: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. p += vsnprintf(p, limit - p, format, backup_ap); data/rocksdb-6.11.4/options/options_test.cc:2388:5: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(buffer, kLength - 1, file_template.c_str(), iv.c_str()); data/rocksdb-6.11.4/options/options_test.cc:2398:5: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(buffer, kLength - 1, file_template.c_str(), vv.c_str()); data/rocksdb-6.11.4/port/stack_trace.cc:64:14: [4] (shell) popen: 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. auto f = popen(cmd, "r"); data/rocksdb-6.11.4/port/stack_trace.cc:87:12: [4] (shell) popen: 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. auto f = popen(cmd, "r"); data/rocksdb-6.11.4/port/win/port_win.h:83:9: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf _snprintf data/rocksdb-6.11.4/port/win/port_win.h:83:18: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf _snprintf data/rocksdb-6.11.4/port/win/win_logger.cc:50:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, errSz.c_str()); data/rocksdb-6.11.4/port/win/win_logger.cc:135:18: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. int done = vsnprintf(p, limit - p, format, backup_ap); data/rocksdb-6.11.4/port/win/win_logger.cc:166:7: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, errSz.c_str()); data/rocksdb-6.11.4/table/sst_file_reader_test.cc:23:3: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(buf, sizeof(buf), "%08" PRIu64, v); data/rocksdb-6.11.4/table/table_test.cc:1134:31: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. BlockCacheTraceRecord access; data/rocksdb-6.11.4/table/table_test.cc:1135:32: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. s = reader.ReadAccess(&access); data/rocksdb-6.11.4/table/table_test.cc:1140:23: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. EXPECT_NE("", access.block_key); data/rocksdb-6.11.4/table/table_test.cc:1141:19: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. EXPECT_EQ(access.block_type, expected_records[index].block_type); data/rocksdb-6.11.4/table/table_test.cc:1142:19: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. EXPECT_GT(access.block_size, 0); data/rocksdb-6.11.4/table/table_test.cc:1143:19: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. EXPECT_EQ(access.caller, expected_records[index].caller); data/rocksdb-6.11.4/table/table_test.cc:1144:19: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. EXPECT_EQ(access.no_insert, expected_records[index].no_insert); data/rocksdb-6.11.4/table/table_test.cc:1145:19: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. EXPECT_EQ(access.is_cache_hit, expected_records[index].is_cache_hit); data/rocksdb-6.11.4/table/table_test.cc:1147:13: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access.caller == TableReaderCaller::kUserGet) { data/rocksdb-6.11.4/table/table_test.cc:1148:21: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. EXPECT_EQ(access.referenced_key, data/rocksdb-6.11.4/table/table_test.cc:1150:21: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. EXPECT_EQ(access.get_id, expected_records[index].get_id); data/rocksdb-6.11.4/table/table_test.cc:1151:21: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. EXPECT_EQ(access.get_from_user_specified_snapshot, data/rocksdb-6.11.4/table/table_test.cc:1153:15: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access.block_type == TraceType::kBlockTraceDataBlock) { data/rocksdb-6.11.4/table/table_test.cc:1154:23: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. EXPECT_GT(access.referenced_data_size, 0); data/rocksdb-6.11.4/table/table_test.cc:1155:23: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. EXPECT_GT(access.num_keys_in_block, 0); data/rocksdb-6.11.4/table/table_test.cc:1156:23: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. EXPECT_EQ(access.referenced_key_exist_in_block, data/rocksdb-6.11.4/table/table_test.cc:1160:21: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. EXPECT_EQ(access.referenced_key, ""); data/rocksdb-6.11.4/table/table_test.cc:1161:21: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. EXPECT_EQ(access.get_id, 0); data/rocksdb-6.11.4/table/table_test.cc:1162:23: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. EXPECT_TRUE(access.get_from_user_specified_snapshot == Boolean::kFalse); data/rocksdb-6.11.4/table/table_test.cc:1163:21: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. EXPECT_EQ(access.referenced_data_size, 0); data/rocksdb-6.11.4/table/table_test.cc:1164:21: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. EXPECT_EQ(access.num_keys_in_block, 0); data/rocksdb-6.11.4/table/table_test.cc:1165:23: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. EXPECT_TRUE(access.referenced_key_exist_in_block == Boolean::kFalse); data/rocksdb-6.11.4/test_util/transaction_test_util.cc:56:3: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(name, 64, "txn%" ROCKSDB_PRIszt "-%" PRIu64, data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:1594:10: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define vsnprintf _vsnprintf data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:4495:5: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vprintf(fmt, args); data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:4516:3: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vprintf(fmt, args); data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:4523:3: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vprintf(fmt, args); data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest.h:3755:20: [4] (buffer) StrNCpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). inline const char* StrNCpy(char* dest, const char* src, size_t n) { data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest.h:3826:26: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define GTEST_SNPRINTF_ _snprintf data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest.h:3828:26: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define GTEST_SNPRINTF_ snprintf data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest.h:9425:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(\ data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.cc:303:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stdout, kBreakLine); data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.cc:428:71: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. cs_name_timeline[port::kMaxUint64]["trace"][time] = percent(miss, access); data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.cc:452:27: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. percent(miss, access); data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.cc:1402:22: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. for (auto& access : access_count_buckets) { data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.cc:1403:40: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. cf_access_nblocks[cf_name][access] = 0; data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.cc:1408:22: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. for (auto& access : access_count_buckets) { data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.cc:1409:41: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. bt_access_nblocks[type_str][access] = 0; data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.cc:1470:34: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. const BlockCacheTraceRecord& access) { data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.cc:1471:65: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. ColumnFamilyAccessInfoAggregate& cf_aggr = cf_aggregates_map_[access.cf_name]; data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.cc:1473:33: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. cf_aggr.fd_aggregates_map[access.sst_fd_number]; data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.cc:1474:21: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. file_aggr.level = access.level; data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.cc:1476:43: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. file_aggr.block_type_aggregates_map[access.block_type]; data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.cc:1477:50: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (block_type_aggr.block_access_info_map.find(access.block_key) == data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.cc:1479:43: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. block_type_aggr.block_access_info_map[access.block_key].block_id = data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.cc:1484:45: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. block_type_aggr.block_access_info_map[access.block_key]; data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.cc:1488:31: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. block_access_info.AddAccess(access, access_sequence_number_); data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.cc:1489:19: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. block_info_map_[access.block_key] = &block_access_info; data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.cc:1491:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access.caller == TableReaderCaller::kUserGet && data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.cc:1492:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. access.get_id != BlockCacheTraceHelper::kReservedGetId) { data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.cc:1493:43: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. std::string user_key = ExtractUserKey(access.referenced_key).ToString(); data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.cc:1499:43: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. get_key_info_map_[user_key].AddAccess(access, access_sequence_number_); data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.cc:1511:17: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. access.block_key); data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.cc:1518:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. access, block_access_info.block_id, get_key_id); data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.cc:1548:27: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. BlockCacheTraceRecord access; data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.cc:1549:29: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. s = reader->ReadAccess(&access); data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.cc:1554:24: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. s = RecordAccess(access); data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.cc:1561:11: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. access.access_timestamp / kMicrosInSecond; data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.cc:1563:39: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. trace_end_timestamp_in_seconds_ = access.access_timestamp / kMicrosInSecond; data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.cc:1564:37: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. miss_ratio_stats_.UpdateMetrics(access.access_timestamp, data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.cc:1565:52: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. is_user_access(access.caller), data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.cc:1566:37: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. access.is_cache_hit == Boolean::kFalse); data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.cc:1568:32: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. cache_simulator_->Access(access); data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.h:26:47: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. void AddAccess(const BlockCacheTraceRecord& access, data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.h:29:31: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. access_timeline.push_back(access.access_timestamp); data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.h:67:47: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. void AddAccess(const BlockCacheTraceRecord& access, data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.h:69:28: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (block_size != 0 && access.block_size != 0) { data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.h:70:28: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. assert(block_size == access.block_size); data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.h:72:26: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (num_keys != 0 && access.num_keys_in_block != 0) { data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.h:73:26: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. assert(num_keys == access.num_keys_in_block); data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.h:76:27: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. first_access_time = access.access_timestamp; data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.h:78:50: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. table_id = BlockCacheTraceHelper::GetTableId(access); data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.h:79:64: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. block_offset = BlockCacheTraceHelper::GetBlockOffsetInFile(access); data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.h:80:24: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. last_access_time = access.access_timestamp; data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.h:81:18: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. block_size = access.block_size; data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.h:82:27: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. caller_num_access_map[access.caller]++; data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.h:86:9: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. access.access_timestamp / kMicrosInSecond; data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.h:87:34: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. caller_num_accesses_timeline[access.caller][timestamp_in_seconds] += 1; data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.h:90:45: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. caller_access_sequence__number_timeline[access.caller].push_back( data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.h:92:31: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. access_timeline.push_back(access.access_timestamp); data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.h:93:28: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. caller_access_timeline[access.caller].push_back(access.access_timestamp); data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.h:93:53: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. caller_access_timeline[access.caller].push_back(access.access_timestamp); data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.h:94:59: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (BlockCacheTraceHelper::IsGetOrMultiGetOnDataBlock(access.block_type, data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.h:95:59: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. access.caller)) { data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.h:96:18: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. num_keys = access.num_keys_in_block; data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.h:97:11: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access.referenced_key_exist_in_block == Boolean::kTrue) { data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.h:98:37: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (key_num_access_map.find(access.referenced_key) == data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.h:100:35: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. referenced_data_size += access.referenced_data_size; data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.h:102:28: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. key_num_access_map[access.referenced_key][access.caller]++; data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.h:102:51: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. key_num_access_map[access.referenced_key][access.caller]++; data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.h:106:28: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. ParseInternalKey(access.referenced_key, &internal_key); data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.h:109:38: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. non_exist_key_num_access_map[access.referenced_key][access.caller]++; data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.h:109:61: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. non_exist_key_num_access_map[access.referenced_key][access.caller]++; data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer.h:329:52: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. Status RecordAccess(const BlockCacheTraceRecord& access); data/rocksdb-6.11.4/tools/sst_dump_tool.cc:281: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(stdout, " Size: %10" PRIu64, file_size); data/rocksdb-6.11.4/tools/sst_dump_tool.cc:282: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(stdout, " Blocks: %6" PRIu64, num_data_blocks); data/rocksdb-6.11.4/tools/sst_dump_tool.cc:485: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/rocksdb-6.11.4/trace_replay/block_cache_tracer.cc:63:34: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. const BlockCacheTraceRecord& access) { data/rocksdb-6.11.4/trace_replay/block_cache_tracer.cc:64:24: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (!IsGetOrMultiGet(access.caller)) { data/rocksdb-6.11.4/trace_replay/block_cache_tracer.cc:67:30: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. Slice key = ExtractUserKey(access.referenced_key); data/rocksdb-6.11.4/trace_replay/block_cache_tracer.cc:68:25: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. return std::to_string(access.sst_fd_number) + "_" + key.ToString(); data/rocksdb-6.11.4/trace_replay/block_cache_tracer.cc:72:34: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. const BlockCacheTraceRecord& access) { data/rocksdb-6.11.4/trace_replay/block_cache_tracer.cc:73:24: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (!IsGetOrMultiGet(access.caller) || access.referenced_key.size() < 4) { data/rocksdb-6.11.4/trace_replay/block_cache_tracer.cc:73:42: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (!IsGetOrMultiGet(access.caller) || access.referenced_key.size() < 4) { data/rocksdb-6.11.4/trace_replay/block_cache_tracer.cc:76:46: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. return static_cast<uint64_t>(DecodeFixed32(access.referenced_key.data())) + 1; data/rocksdb-6.11.4/trace_replay/block_cache_tracer.cc:80:34: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. const BlockCacheTraceRecord& access) { data/rocksdb-6.11.4/trace_replay/block_cache_tracer.cc:81:24: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (!IsGetOrMultiGet(access.caller)) { data/rocksdb-6.11.4/trace_replay/block_cache_tracer.cc:84:10: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. return access.get_from_user_specified_snapshot == Boolean::kFalse data/rocksdb-6.11.4/trace_replay/block_cache_tracer.cc:86:40: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. : 1 + GetInternalKeySeqno(access.referenced_key); data/rocksdb-6.11.4/trace_replay/block_cache_tracer.cc:90:34: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. const BlockCacheTraceRecord& access) { data/rocksdb-6.11.4/trace_replay/block_cache_tracer.cc:91:15: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. Slice input(access.block_key); data/rocksdb-6.11.4/trace_replay/block_cache_tracer.cc:326:34: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. const BlockCacheTraceRecord& access, uint64_t block_id, data/rocksdb-6.11.4/trace_replay/block_cache_tracer.cc:336:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. access.access_timestamp, block_id, access.block_type, access.block_size, data/rocksdb-6.11.4/trace_replay/block_cache_tracer.cc:336:42: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. access.access_timestamp, block_id, access.block_type, access.block_size, data/rocksdb-6.11.4/trace_replay/block_cache_tracer.cc:336:61: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. access.access_timestamp, block_id, access.block_type, access.block_size, data/rocksdb-6.11.4/trace_replay/block_cache_tracer.cc:337:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. access.cf_id, access.cf_name.c_str(), access.level, access.sst_fd_number, data/rocksdb-6.11.4/trace_replay/block_cache_tracer.cc:337:21: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. access.cf_id, access.cf_name.c_str(), access.level, access.sst_fd_number, data/rocksdb-6.11.4/trace_replay/block_cache_tracer.cc:337:45: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. access.cf_id, access.cf_name.c_str(), access.level, access.sst_fd_number, data/rocksdb-6.11.4/trace_replay/block_cache_tracer.cc:337:59: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. access.cf_id, access.cf_name.c_str(), access.level, access.sst_fd_number, data/rocksdb-6.11.4/trace_replay/block_cache_tracer.cc:338:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. access.caller, access.no_insert, access.get_id, get_key_id, data/rocksdb-6.11.4/trace_replay/block_cache_tracer.cc:338:22: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. access.caller, access.no_insert, access.get_id, get_key_id, data/rocksdb-6.11.4/trace_replay/block_cache_tracer.cc:338:40: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. access.caller, access.no_insert, access.get_id, get_key_id, data/rocksdb-6.11.4/trace_replay/block_cache_tracer.cc:339:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. access.referenced_data_size, access.is_cache_hit, data/rocksdb-6.11.4/trace_replay/block_cache_tracer.cc:339:36: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. access.referenced_data_size, access.is_cache_hit, data/rocksdb-6.11.4/trace_replay/block_cache_tracer.cc:340:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. access.referenced_key_exist_in_block, access.num_keys_in_block, data/rocksdb-6.11.4/trace_replay/block_cache_tracer.cc:340:45: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. access.referenced_key_exist_in_block, access.num_keys_in_block, data/rocksdb-6.11.4/trace_replay/block_cache_tracer.cc:341:41: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. BlockCacheTraceHelper::GetTableId(access), data/rocksdb-6.11.4/trace_replay/block_cache_tracer.cc:342:48: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. BlockCacheTraceHelper::GetSequenceNumber(access), data/rocksdb-6.11.4/trace_replay/block_cache_tracer.cc:343:29: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. static_cast<uint64_t>(access.block_key.size()), data/rocksdb-6.11.4/trace_replay/block_cache_tracer.cc:344:29: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. static_cast<uint64_t>(access.referenced_key.size()), data/rocksdb-6.11.4/trace_replay/block_cache_tracer.cc:345:51: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. BlockCacheTraceHelper::GetBlockOffsetInFile(access)); data/rocksdb-6.11.4/trace_replay/block_cache_tracer.h:34:65: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. static std::string ComputeRowKey(const BlockCacheTraceRecord& access); data/rocksdb-6.11.4/trace_replay/block_cache_tracer.h:37:59: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. static uint64_t GetTableId(const BlockCacheTraceRecord& access); data/rocksdb-6.11.4/trace_replay/block_cache_tracer.h:40:66: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. static uint64_t GetSequenceNumber(const BlockCacheTraceRecord& access); data/rocksdb-6.11.4/trace_replay/block_cache_tracer.h:42:69: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. static uint64_t GetBlockOffsetInFile(const BlockCacheTraceRecord& access); data/rocksdb-6.11.4/trace_replay/block_cache_tracer.h:209:69: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. Status WriteHumanReadableTraceRecord(const BlockCacheTraceRecord& access, data/rocksdb-6.11.4/util/stderr_logger.h:26:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, format, ap); data/rocksdb-6.11.4/util/string_util.cc:84:3: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(buf, sizeof(buf), "%" PRIu64, num); data/rocksdb-6.11.4/util/string_util.cc:112:5: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(buf, sizeof(buf), "%" PRIi64, num); data/rocksdb-6.11.4/utilities/blob_db/blob_db_impl.cc:1697:14: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. pos += snprintf(buf + pos, sizeof(buf) - pos, ", obsolete at %" PRIu64, data/rocksdb-6.11.4/utilities/env_librados.cc:18:5: [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(__VA_ARGS__);\ data/rocksdb-6.11.4/utilities/persistent_cache/persistent_cache_test.cc:80:5: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vprintf(format, ap); data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:34:58: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. void CacheSimulator::Access(const BlockCacheTraceRecord& access) { data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:37:43: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. BlockCacheTraceHelper::IsUserAccess(access.caller); data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:39:23: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (ghost_cache_ && access.no_insert == Boolean::kFalse) { data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:40:33: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. admit = ghost_cache_->Admit(access.block_key); data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:42:36: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. auto handle = sim_cache_->Lookup(access.block_key); data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:47:9: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access.no_insert == Boolean::kFalse && admit && access.block_size > 0) { data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:47:57: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access.no_insert == Boolean::kFalse && admit && access.block_size > 0) { data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:48:26: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. sim_cache_->Insert(access.block_key, /*value=*/nullptr, access.block_size, data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:48:63: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. sim_cache_->Insert(access.block_key, /*value=*/nullptr, access.block_size, data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:52:35: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. miss_ratio_stats_.UpdateMetrics(access.access_timestamp, is_user_access, data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:78:34: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. const BlockCacheTraceRecord& access) const { data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:79:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access.block_type == TraceType::kBlockTraceFilterBlock || data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:80:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. access.block_type == TraceType::kBlockTraceIndexBlock || data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:81:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. access.block_type == TraceType::kBlockTraceUncompressionDictBlock) { data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:89:34: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. const BlockCacheTraceRecord& access, bool no_insert, bool is_user_access, data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:107:37: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. miss_ratio_stats_.UpdateMetrics(access.access_timestamp, is_user_access, data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:112:69: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. void PrioritizedCacheSimulator::Access(const BlockCacheTraceRecord& access) { data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:115:16: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. AccessKVPair(access.block_key, access.block_size, data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:115:34: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. AccessKVPair(access.block_key, access.block_size, data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:116:37: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. ComputeBlockPriority(access), access, access.no_insert, data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:116:46: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. ComputeBlockPriority(access), access, access.no_insert, data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:116:54: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. ComputeBlockPriority(access), access, access.no_insert, data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:117:52: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. BlockCacheTraceHelper::IsUserAccess(access.caller), data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:121:72: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. void HybridRowBlockCacheSimulator::Access(const BlockCacheTraceRecord& access) { data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:127:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access.caller == TableReaderCaller::kUserGet && data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:128:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. access.get_id != BlockCacheTraceHelper::kReservedGetId) { data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:130:71: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. const std::string& row_key = BlockCacheTraceHelper::ComputeRowKey(access); data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:131:50: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. GetRequestStatus& status = getid_status_map_[access.get_id]; data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:139:39: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. miss_ratio_stats_.UpdateMetrics(access.access_timestamp, data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:148:29: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. AccessKVPair(row_key, access.referenced_data_size, Cache::Priority::HIGH, data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:149:20: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. access, data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:154:23: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (admitted && access.referenced_data_size > 0) { data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:164:39: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. miss_ratio_stats_.UpdateMetrics(access.access_timestamp, data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:173:9: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. access.block_key, access.block_size, ComputeBlockPriority(access), data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:173:27: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. access.block_key, access.block_size, ComputeBlockPriority(access), data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:173:67: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. access.block_key, access.block_size, ComputeBlockPriority(access), data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:174:9: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. access, data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:175:63: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. /*no_insert=*/!insert_blocks_upon_row_kvpair_miss_ || access.no_insert, data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:178:9: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access.referenced_data_size > 0 && inserted == InsertResult::ADMITTED) { data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:180:26: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. access.referenced_data_size, /*deleter=*/nullptr, data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:186:16: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. AccessKVPair(access.block_key, access.block_size, data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:186:34: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. AccessKVPair(access.block_key, access.block_size, data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:187:37: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. ComputeBlockPriority(access), access, access.no_insert, data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:187:46: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. ComputeBlockPriority(access), access, access.no_insert, data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:187:54: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. ComputeBlockPriority(access), access, access.no_insert, data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:188:52: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. BlockCacheTraceHelper::IsUserAccess(access.caller), data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:252:68: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. void BlockCacheTraceSimulator::Access(const BlockCacheTraceRecord& access) { data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:254:25: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. trace_start_time_ = access.access_timestamp; data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:259:11: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. access.access_timestamp) { data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.cc:269:25: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. sim_cache->Access(access); data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.h:113:52: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. virtual void Access(const BlockCacheTraceRecord& access); data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.h:133:44: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. void Access(const BlockCacheTraceRecord& access) override; data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.h:139:50: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. const BlockCacheTraceRecord& access, bool no_insert, data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.h:144:36: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. const BlockCacheTraceRecord& access) const; data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.h:164:44: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. void Access(const BlockCacheTraceRecord& access) override; data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator.h:212:44: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. void Access(const BlockCacheTraceRecord& access); data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator_test.cc:119:27: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. cache_simulator->Access(access); data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator_test.cc:120:27: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. cache_simulator->Access(access); data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator_test.cc:136:35: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. auto handle = sim_cache->Lookup(access.block_key); data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator_test.cc:154:27: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. cache_simulator->Access(access); data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator_test.cc:155:27: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. cache_simulator->Access(access); data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator_test.cc:169:27: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. cache_simulator->Access(access); data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator_test.cc:170:27: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. cache_simulator->Access(access); data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator_test.cc:174:35: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. auto handle = sim_cache->Lookup(access.block_key); data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator_test.cc:191:27: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. cache_simulator->Access(access); data/rocksdb-6.11.4/utilities/simulator_cache/cache_simulator_test.cc:192:27: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. cache_simulator->Access(access); data/rocksdb-6.11.4/utilities/transactions/transaction_lock_mgr.cc:291:5: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(msg, sizeof(msg), "Column family id not found: %" PRIu32, data/rocksdb-6.11.4/utilities/transactions/write_prepared_txn_db.cc:727:3: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(name, 64, "txn%" ROCKSDB_PRIszt, hasher(std::this_thread::get_id())); data/rocksdb-6.11.4/db/c_test.c:59: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. const char* ret = getenv("TEST_TMPDIR"); data/rocksdb-6.11.4/db/column_family_test.cc:68:32: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char* test_env_uri = getenv("TEST_ENV_URI"); data/rocksdb-6.11.4/db/db_impl/db_secondary_test.cc:32:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("KEEP_DB") != nullptr) { data/rocksdb-6.11.4/db/db_test_util.cc:63:30: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char* test_env_uri = getenv("TEST_ENV_URI"); data/rocksdb-6.11.4/db/db_test_util.cc:73:7: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("MEM_ENV")) { data/rocksdb-6.11.4/db/db_test_util.cc:77:7: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("ENCRYPTED_ENV")) { data/rocksdb-6.11.4/db/db_test_util.cc:113:7: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("KEEP_DB")) { data/rocksdb-6.11.4/db/error_handler_fs_test.cc:1068:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("KEEP_DB")) { data/rocksdb-6.11.4/db/error_handler_fs_test.cc:1199:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("KEEP_DB")) { data/rocksdb-6.11.4/db/version_set_test.cc:709:32: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char* test_env_uri = getenv("TEST_ENV_URI"); data/rocksdb-6.11.4/db/version_set_test.cc:719:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("MEM_ENV")) { data/rocksdb-6.11.4/db/version_set_test.cc:741:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("KEEP_DB")) { data/rocksdb-6.11.4/env/composite_env_wrapper.h:502:10: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. Status LoadLibrary(const std::string& lib_name, data/rocksdb-6.11.4/env/composite_env_wrapper.h:505:25: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. return env_target_->LoadLibrary(lib_name, search_path, result); data/rocksdb-6.11.4/env/env_basic_test.cc:109: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. const char* uri = getenv("TEST_ENV_URI"); data/rocksdb-6.11.4/env/env_chroot.cc:29:29: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. char* real_chroot_dir = realpath(chroot_dir.c_str(), resolvedName); data/rocksdb-6.11.4/env/env_chroot.cc:31:29: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. char* real_chroot_dir = realpath(chroot_dir.c_str(), nullptr); data/rocksdb-6.11.4/env/env_chroot.cc:293:29: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. char* normalized_path = realpath(res.second.c_str(), resolvedName); data/rocksdb-6.11.4/env/env_chroot.cc:295:29: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. char* normalized_path = realpath(res.second.c_str(), nullptr); data/rocksdb-6.11.4/env/env_posix.cc:168:10: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. Status LoadLibrary(const std::string& name, const std::string& path, data/rocksdb-6.11.4/env/env_test.cc:246:25: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. Status status = env_->LoadLibrary("no-such-library", "", &library); data/rocksdb-6.11.4/env/env_test.cc:249:18: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. status = env_->LoadLibrary("rocksdb", "", &library); data/rocksdb-6.11.4/env/env_test.cc:257:21: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. ASSERT_OK(env_->LoadLibrary(library->Name(), "", &library)); data/rocksdb-6.11.4/env/env_test.cc:268:20: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. ASSERT_NOK(env_->LoadLibrary("no-such-library", "/tmp", &library)); data/rocksdb-6.11.4/env/env_test.cc:270:20: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. ASSERT_NOK(env_->LoadLibrary("dl", "/tmp", &library)); data/rocksdb-6.11.4/env/env_test.cc:272:25: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. Status status = env_->LoadLibrary("rocksdb", "/tmp:./", &library); data/rocksdb-6.11.4/env/env_test.cc:275:21: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. ASSERT_OK(env_->LoadLibrary(library->Name(), "", &library)); data/rocksdb-6.11.4/env/env_test.cc:280:18: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. status = env_->LoadLibrary("rocksdb", "/tmp:" + cwd, &library); data/rocksdb-6.11.4/env/env_test.cc:283:21: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. ASSERT_OK(env_->LoadLibrary(library->Name(), "", &library)); data/rocksdb-6.11.4/env/env_test.cc:794: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. const char *tmp = getenv("TEST_IOCTL_FRIENDLY_TMPDIR"); data/rocksdb-6.11.4/env/env_test.cc:799:13: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. tmp = getenv("TMP"); data/rocksdb-6.11.4/env/fs_posix.cc:853: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. const char* env = getenv("TEST_TMPDIR"); data/rocksdb-6.11.4/env/io_posix.cc:487:7: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. if (realpath(path, real_path) == nullptr) { data/rocksdb-6.11.4/examples/multi_processes_example.cc:185: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(time(nullptr)); data/rocksdb-6.11.4/examples/multi_processes_example.cc:298:10: [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(time(nullptr)); data/rocksdb-6.11.4/include/rocksdb/env.h:374:18: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. virtual Status LoadLibrary(const std::string& /*lib_name*/, data/rocksdb-6.11.4/include/rocksdb/env.h:1297:10: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. Status LoadLibrary(const std::string& lib_name, data/rocksdb-6.11.4/include/rocksdb/env.h:1300:21: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. return target_->LoadLibrary(lib_name, search_path, result); data/rocksdb-6.11.4/port/win/env_win.cc:893:21: [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* env = getenv("TEST_TMPDIR"); data/rocksdb-6.11.4/port/win/env_win.cc:897:11: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. env = getenv("TMP"); data/rocksdb-6.11.4/table/sst_file_reader_test.cc:40:32: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char* test_env_uri = getenv("TEST_ENV_URI"); data/rocksdb-6.11.4/test_util/testharness.cc:47:21: [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* env = getenv("TEST_RANDOM_SEED"); data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:712:37: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. void ShuffleRange(internal::Random* random, int begin, int end, data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:733:39: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. inline void Shuffle(internal::Random* random, std::vector<E>* v) { data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:734:16: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. ShuffleRange(random, 0, static_cast<int>(v->size()), v); data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:1200:21: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. internal::Random* random() { return &random_; } data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:4286:47: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. void TestCase::ShuffleTests(internal::Random* random) { data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:4287:11: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. Shuffle(random, &test_indices_); data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:6611:7: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. random()->Reseed(random_seed_); data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:6961:16: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. ShuffleRange(random(), 0, last_death_test_case_ + 1, &test_case_indices_); data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:6964:16: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. ShuffleRange(random(), last_death_test_case_ + 1, data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:6969:34: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. test_cases_[i]->ShuffleTests(random()); data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:9665:5: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. ::InitializeCriticalSection(critical_section_); data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:9683:5: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. ::EnterCriticalSection(critical_section_); data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:9756:11: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. ::InitializeCriticalSection(critical_section_); data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest.h:3794:27: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char* const env = getenv(name); data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest.h:3797:10: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. return getenv(name); data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest.h:20729:39: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. void ShuffleTests(internal::Random* random); data/rocksdb-6.11.4/tools/blob_dump.cc:39:13: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. int c = getopt_long(argc, argv, "hk::b::f:", options, nullptr); data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer_test.cc:68:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("KEEP_DB")) { data/rocksdb-6.11.4/tools/ldb_cmd_test.cc:31:32: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char* test_env_uri = getenv("TEST_ENV_URI"); data/rocksdb-6.11.4/tools/sst_dump_test.cc:95:32: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char* test_env_uri = getenv("TEST_ENV_URI"); data/rocksdb-6.11.4/tools/sst_dump_test.cc:105:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("KEEP_DB")) { data/rocksdb-6.11.4/utilities/env_librados.cc:1492:39: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. std::getenv(default_config_path), data/rocksdb-6.11.4/utilities/persistent_cache/hash_table_evictable.h:82:30: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. const size_t start_idx = random % hash_table::nlocks_; data/rocksdb-6.11.4/utilities/persistent_cache/persistent_cache_bench.cc:220:15: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. ReadKey(random() % read_key_limit_); data/rocksdb-6.11.4/utilities/write_batch_with_index/write_batch_with_index_test.cc:1487:13: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. switch (random) { data/rocksdb-6.11.4/cache/cache_bench.cc:131: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 key_data[27]; data/rocksdb-6.11.4/cache/cache_test.cc:165: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 value[10] = "abcdef"; data/rocksdb-6.11.4/cache/cache_test.cc:206: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 value[10] = "abcdef"; data/rocksdb-6.11.4/cache/clock_cache.cc:623: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(key_data, key.data(), key.size()); data/rocksdb-6.11.4/cache/lru_cache.cc:361: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(e->key_data, key.data(), key.size()); data/rocksdb-6.11.4/cache/lru_cache.cc:459: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[kBufferSize]; data/rocksdb-6.11.4/cache/lru_cache.h:77: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 key_data[1]; data/rocksdb-6.11.4/cache/sharded_cache.cc:131: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[kBufferSize]; data/rocksdb-6.11.4/db/blob/blob_log_reader.h:74: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 header_buf_[BlobLogRecord::kHeaderSize]; data/rocksdb-6.11.4/db/blob/db_blob_index_test.cc:245:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[20]; data/rocksdb-6.11.4/db/c.cc:475: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, str.data(), sizeof(char) * str.size()); data/rocksdb-6.11.4/db/c_test.c:43:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char dbname[200]; data/rocksdb-6.11.4/db/c_test.c:44:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char sstfilename[200]; data/rocksdb-6.11.4/db/c_test.c:45:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char dbbackupname[200]; data/rocksdb-6.11.4/db/c_test.c:46:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char dbcheckpointname[200]; data/rocksdb-6.11.4/db/c_test.c:47:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char dbpathname[200]; data/rocksdb-6.11.4/db/c_test.c:48:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char secondary_path[200]; data/rocksdb-6.11.4/db/c_test.c:243: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, "fake", 4); data/rocksdb-6.11.4/db/c_test.c:349: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, "fake", 4); data/rocksdb-6.11.4/db/c_test.c:367: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, "fake", 4); data/rocksdb-6.11.4/db/c_test.c:972: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 keybuf[100]; data/rocksdb-6.11.4/db/c_test.c:973: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 valbuf[100]; data/rocksdb-6.11.4/db/c_test.c:1068: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 keybuf[100]; data/rocksdb-6.11.4/db/c_test.c:1100: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 keybuf[100]; data/rocksdb-6.11.4/db/column_family_test.cc:405:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[100]; data/rocksdb-6.11.4/db/column_family_test.cc:516:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[4096]; data/rocksdb-6.11.4/db/compaction/compaction.cc:456: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 sztxt[16]; data/rocksdb-6.11.4/db/compaction/compaction.h:244:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[128]; data/rocksdb-6.11.4/db/compaction/compaction_iterator_test.cc:47:18: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int k = std::atoi(key.ToString().c_str()); data/rocksdb-6.11.4/db/compaction/compaction_job.cc:1700: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 scratch[2345]; data/rocksdb-6.11.4/db/compaction/compaction_job_stats_test.cc:74: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[kBufSize]; data/rocksdb-6.11.4/db/compaction/compaction_job_stats_test.cc:280:12: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). return atoi(property.c_str()); data/rocksdb-6.11.4/db/compaction/compaction_job_stats_test.cc:291:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[100]; data/rocksdb-6.11.4/db/compaction/compaction_job_stats_test.cc:634: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[kBufSize]; data/rocksdb-6.11.4/db/compaction/compaction_job_stats_test.cc:783: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 L1_buf[4]; data/rocksdb-6.11.4/db/compaction/compaction_picker_fifo.cc:188:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp_fsize[16]; data/rocksdb-6.11.4/db/compaction/compaction_picker_universal.cc:583: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 file_num_buf[kFormatFileNumberBufSize]; data/rocksdb-6.11.4/db/compaction/compaction_picker_universal.cc:597: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 file_num_buf[kFormatFileNumberBufSize]; data/rocksdb-6.11.4/db/compaction/compaction_picker_universal.cc:650:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char file_num_buf[256]; data/rocksdb-6.11.4/db/compaction/compaction_picker_universal.cc:720: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 file_num_buf[256]; data/rocksdb-6.11.4/db/compaction/compaction_picker_universal.cc:774: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 file_num_buf[kFormatFileNumberBufSize]; data/rocksdb-6.11.4/db/compaction/compaction_picker_universal.cc:787: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 file_num_buf[kFormatFileNumberBufSize]; data/rocksdb-6.11.4/db/compaction/compaction_picker_universal.cc:799: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 file_num_buf[kFormatFileNumberBufSize]; data/rocksdb-6.11.4/db/compaction/compaction_picker_universal.cc:998: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 file_num_buf[256]; data/rocksdb-6.11.4/db/comparator_db_test.cc:374:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&str[0], static_cast<void*>(&r), 8); data/rocksdb-6.11.4/db/corruption_test.cc:209:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[100]; data/rocksdb-6.11.4/db/cuckoo_table_db_test.cc:91:12: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). return atoi(property.c_str()); data/rocksdb-6.11.4/db/cuckoo_table_db_test.cc:100:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[100]; data/rocksdb-6.11.4/db/cuckoo_table_db_test.cc:194: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[100]; data/rocksdb-6.11.4/db/cuckoo_table_db_test.cc:201: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(&str[0], static_cast<void*>(&i), 8); data/rocksdb-6.11.4/db/db_bloom_filter_test.cc:1421: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[100]; data/rocksdb-6.11.4/db/db_bloom_filter_test.cc:1475:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[100]; data/rocksdb-6.11.4/db/db_compaction_filter_test.cc:115: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_str[100]; data/rocksdb-6.11.4/db/db_compaction_filter_test.cc:306: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[100]; data/rocksdb-6.11.4/db/db_compaction_filter_test.cc:358: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[100]; data/rocksdb-6.11.4/db/db_compaction_filter_test.cc:386: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[100]; data/rocksdb-6.11.4/db/db_compaction_filter_test.cc:491: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[100]; data/rocksdb-6.11.4/db/db_compaction_filter_test.cc:509: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[100]; data/rocksdb-6.11.4/db/db_compaction_filter_test.cc:529: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[100]; data/rocksdb-6.11.4/db/db_compaction_filter_test.cc:618: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[100]; data/rocksdb-6.11.4/db/db_compaction_filter_test.cc:681: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[100]; data/rocksdb-6.11.4/db/db_compaction_filter_test.cc:767: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[100]; data/rocksdb-6.11.4/db/db_compaction_filter_test.cc:782: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[100]; data/rocksdb-6.11.4/db/db_compaction_test.cc:3074: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[100]; data/rocksdb-6.11.4/db/db_compaction_test.cc:4839:35: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). uint64_t max_compaction_bytes = atoi(prop.c_str()) / 2; data/rocksdb-6.11.4/db/db_impl/db_impl.cc:750:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char key[100]; data/rocksdb-6.11.4/db/db_impl/db_impl.cc:4188: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 err_msg[128] = {0}; data/rocksdb-6.11.4/db/db_info_dumper.cc:59:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[16]; data/rocksdb-6.11.4/db/db_info_dumper.cc:112: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 str[16]; data/rocksdb-6.11.4/db/db_range_del_test.cc:22: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(&str[0], static_cast<void*>(&uint64_key), 8); data/rocksdb-6.11.4/db/db_tailing_iter_test.cc:54:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[32]; data/rocksdb-6.11.4/db/db_tailing_iter_test.cc:77: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 buf1[32]; data/rocksdb-6.11.4/db/db_tailing_iter_test.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 buf2[32]; data/rocksdb-6.11.4/db/db_tailing_iter_test.cc:104: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 buf1[32]; data/rocksdb-6.11.4/db/db_tailing_iter_test.cc:105: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 buf2[32]; data/rocksdb-6.11.4/db/db_tailing_iter_test.cc:135: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 bufe[32]; data/rocksdb-6.11.4/db/db_tailing_iter_test.cc:167: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 buf1[32]; data/rocksdb-6.11.4/db/db_tailing_iter_test.cc:168: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 buf2[32]; data/rocksdb-6.11.4/db/db_tailing_iter_test.cc:169: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 buf3[32]; data/rocksdb-6.11.4/db/db_tailing_iter_test.cc:170: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 buf4[32]; data/rocksdb-6.11.4/db/db_tailing_iter_test.cc:227: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 buf5[32]; data/rocksdb-6.11.4/db/db_tailing_iter_test.cc:239: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 buf1[32]; data/rocksdb-6.11.4/db/db_tailing_iter_test.cc:240: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 buf2[32]; data/rocksdb-6.11.4/db/db_tailing_iter_test.cc:277:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[32]; data/rocksdb-6.11.4/db/db_tailing_iter_test.cc:363:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[100]; data/rocksdb-6.11.4/db/db_test.cc:1324: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[100]; data/rocksdb-6.11.4/db/db_test.cc:2070:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[100]; data/rocksdb-6.11.4/db/db_test.cc:2450: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 valbuf[1500]; data/rocksdb-6.11.4/db/db_test.cc:2455: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 keybuf[20]; data/rocksdb-6.11.4/db/db_test2.cc:250:34: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). static_cast<uint64_t>(std::atoi(prop_value.c_str())); data/rocksdb-6.11.4/db/db_test2.cc:259:34: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). static_cast<uint64_t>(std::atoi(prop_value.c_str())); data/rocksdb-6.11.4/db/db_test2.cc:269:34: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). static_cast<uint64_t>(std::atoi(prop_value.c_str())); data/rocksdb-6.11.4/db/db_test2.cc:277:34: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). static_cast<uint64_t>(std::atoi(prop_value.c_str())); data/rocksdb-6.11.4/db/db_test2.cc:2127: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->get(), it->second.c_str(), it->second.size()); data/rocksdb-6.11.4/db/db_test2.cc:2475: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 id_buf[kIdBufLen]; data/rocksdb-6.11.4/db/db_test_util.cc:1035:10: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). return atoi(property.c_str()); data/rocksdb-6.11.4/db/db_test_util.cc:1073:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[100]; data/rocksdb-6.11.4/db/db_test_util.cc:1279: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(prevValue, str_b.c_str(), str_b.size()); data/rocksdb-6.11.4/db/db_test_util.cc:1294: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(prevValue, str_b.c_str(), str_b.size()); data/rocksdb-6.11.4/db/db_test_util.cc:1359: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[4096]; data/rocksdb-6.11.4/db/db_test_util.h:828:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[100]; data/rocksdb-6.11.4/db/db_wal_test.cc:1022: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_RDWR); data/rocksdb-6.11.4/db/db_wal_test.cc:1539: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(fname_test_fallocate.c_str(), O_CREAT | O_RDWR | O_TRUNC, 0644); data/rocksdb-6.11.4/db/db_with_timestamp_basic_test.cc:90:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ts1_buf.get(), ts1.data(), ts1.size()); data/rocksdb-6.11.4/db/db_with_timestamp_basic_test.cc:92:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ts2_buf.get(), ts2.data(), ts2.size()); data/rocksdb-6.11.4/db/dbformat.cc:93: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[50]; data/rocksdb-6.11.4/db/dbformat.cc:186: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(dst, _user_key.data(), usize); data/rocksdb-6.11.4/db/dbformat.cc:189: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(dst, ts->data(), ts_sz); data/rocksdb-6.11.4/db/dbformat.h:386:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf_, key_, shared_len); data/rocksdb-6.11.4/db/dbformat.h:390:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, key_, shared_len); data/rocksdb-6.11.4/db/dbformat.h:400:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf_ + shared_len, non_shared_data, non_shared_len); data/rocksdb-6.11.4/db/dbformat.h:435:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf_, key_, key_size_); data/rocksdb-6.11.4/db/dbformat.h:459:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf_, key_prefix.data(), psize); data/rocksdb-6.11.4/db/dbformat.h:461:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf_ + psize, user_key.data(), usize); data/rocksdb-6.11.4/db/dbformat.h:463:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf_ + psize + usize, ts->data(), ts_sz); data/rocksdb-6.11.4/db/dbformat.h:498: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(ptr, key.data(), size); data/rocksdb-6.11.4/db/dbformat.h:510: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 space_[32]; // Avoid allocation for short keys data/rocksdb-6.11.4/db/dbformat.h:518:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf_, key.data(), size); data/rocksdb-6.11.4/db/deletefile_test.cc:76:22: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int startkey = atoi(metadata[i].smallestkey.c_str()); data/rocksdb-6.11.4/db/deletefile_test.cc:77:20: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int endkey = atoi(metadata[i].largestkey.c_str()); data/rocksdb-6.11.4/db/deletefile_test.cc:161:18: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int startkey = atoi(metadata[level1index].smallestkey.c_str()); data/rocksdb-6.11.4/db/deletefile_test.cc:162:16: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int endkey = atoi(metadata[level1index].largestkey.c_str()); data/rocksdb-6.11.4/db/deletefile_test.cc:165:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). startkey = atoi(metadata[level2index].smallestkey.c_str()); data/rocksdb-6.11.4/db/deletefile_test.cc:166:12: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). endkey = atoi(metadata[level2index].largestkey.c_str()); data/rocksdb-6.11.4/db/error_handler_fs_test.cc:1002:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[16]; data/rocksdb-6.11.4/db/error_handler_fs_test.cc:1057:15: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). EXPECT_EQ(atoi(prop.c_str()), 0); data/rocksdb-6.11.4/db/error_handler_fs_test.cc:1060:15: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). EXPECT_EQ(atoi(prop.c_str()), 1); data/rocksdb-6.11.4/db/error_handler_fs_test.cc:1064:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[16]; data/rocksdb-6.11.4/db/error_handler_fs_test.cc:1103:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[16]; data/rocksdb-6.11.4/db/error_handler_fs_test.cc:1188:15: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). EXPECT_EQ(atoi(prop.c_str()), 0); data/rocksdb-6.11.4/db/error_handler_fs_test.cc:1191:15: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). EXPECT_EQ(atoi(prop.c_str()), 1); data/rocksdb-6.11.4/db/error_handler_fs_test.cc:1195:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[16]; data/rocksdb-6.11.4/db/external_sst_file_basic_test.cc:1422: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 scratch[8] = {0}; data/rocksdb-6.11.4/db/external_sst_file_basic_test.cc:1485: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 scratch[8] = {0}; data/rocksdb-6.11.4/db/fault_injection_test.cc:243:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[100]; data/rocksdb-6.11.4/db/forward_iterator_bench.cc:51: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 pad1[128] __attribute__((__unused__)); data/rocksdb-6.11.4/db/forward_iterator_bench.cc:53: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 pad2[128] __attribute__((__unused__)); data/rocksdb-6.11.4/db/forward_iterator_bench.cc:56: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 pad3[128] __attribute__((__unused__)); data/rocksdb-6.11.4/db/forward_iterator_bench.cc:76: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 pad1[128] __attribute__((__unused__)); data/rocksdb-6.11.4/db/forward_iterator_bench.cc:80: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 pad2[128] __attribute__((__unused__)); data/rocksdb-6.11.4/db/forward_iterator_bench.cc:86: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 pad3[128] __attribute__((__unused__)); data/rocksdb-6.11.4/db/forward_iterator_bench.cc:163:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&key, it->key().data(), it->key().size()); data/rocksdb-6.11.4/db/forward_iterator_bench.cc:192: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 pad1[128] __attribute__((__unused__)); data/rocksdb-6.11.4/db/forward_iterator_bench.cc:201: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 pad2[128] __attribute__((__unused__)); data/rocksdb-6.11.4/db/forward_iterator_bench.cc:263: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 pad1[128] __attribute__((__unused__)); data/rocksdb-6.11.4/db/forward_iterator_bench.cc:267: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 pad2[128] __attribute__((__unused__)); data/rocksdb-6.11.4/db/internal_stats.cc:541:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[100]; data/rocksdb-6.11.4/db/internal_stats.cc:563: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[1000]; data/rocksdb-6.11.4/db/internal_stats.cc:959: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[1000]; data/rocksdb-6.11.4/db/internal_stats.cc:981: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 human_micros[kHumanMicrosLen]; data/rocksdb-6.11.4/db/internal_stats.cc:1221: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[2000]; data/rocksdb-6.11.4/db/internal_stats.cc:1399: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[2000]; data/rocksdb-6.11.4/db/internal_stats.cc:1407: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 buf2[5000]; data/rocksdb-6.11.4/db/log_reader.cc:187:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[40]; data/rocksdb-6.11.4/db/log_reader.cc:487:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[40]; data/rocksdb-6.11.4/db/log_test.cc:38:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[50]; data/rocksdb-6.11.4/db/log_test.cc:105:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(scratch, contents_.data(), n); data/rocksdb-6.11.4/db/log_writer.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[kRecyclableHeaderSize]; data/rocksdb-6.11.4/db/lookup_key.h: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 space_[200]; // Avoid allocation for short keys data/rocksdb-6.11.4/db/manual_compaction_test.cc:28: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[100]; data/rocksdb-6.11.4/db/memtable.cc:492: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(p, key.data(), key_size); data/rocksdb-6.11.4/db/memtable.cc:499: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(p, value.data(), val_size); data/rocksdb-6.11.4/db/memtable.cc:991:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, value.data(), value.size()); data/rocksdb-6.11.4/db/memtable.cc:1060:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, prev_buffer, new_prev_size); data/rocksdb-6.11.4/db/merge_test.cc:138:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[sizeof(value)]; data/rocksdb-6.11.4/db/merge_test.cc:229: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 encoded[sizeof(uint64_t)]; data/rocksdb-6.11.4/db/merge_test.cc:366: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[sizeof(merge_value)]; data/rocksdb-6.11.4/db/plain_table_db_test.cc:227:12: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). return atoi(property.c_str()); data/rocksdb-6.11.4/db/plain_table_db_test.cc:236:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[100]; data/rocksdb-6.11.4/db/plain_table_db_test.cc:1265: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[100]; data/rocksdb-6.11.4/db/repair.cc:463:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char file_num_buf[kFormatFileNumberBufSize]; data/rocksdb-6.11.4/db/table_cache.cc:56: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[10]; data/rocksdb-6.11.4/db/transaction_log_impl.cc:212:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[200]; data/rocksdb-6.11.4/db/version_set.cc:810: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(mem, smallest_key.data(), smallest_size); data/rocksdb-6.11.4/db/version_set.cc:811: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(mem + smallest_size, largest_key.data(), largest_size); data/rocksdb-6.11.4/db/version_set.cc:3220: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 sztxt[16]; data/rocksdb-6.11.4/db/version_set.cc:4999:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[255]; data/rocksdb-6.11.4/db/version_set.h:419:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[1000]; data/rocksdb-6.11.4/db/version_set.h:422:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[3000]; data/rocksdb-6.11.4/db/version_set_test.cc:522: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(mem, smallest_slice.data(), smallest_slice.size()); data/rocksdb-6.11.4/db/version_set_test.cc:523: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(mem + smallest_slice.size(), largest_slice.data(), data/rocksdb-6.11.4/db/write_batch.cc:224: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(ptr, ts.data(), ts_sz); data/rocksdb-6.11.4/db_stress_tool/db_stress_common.cc:154: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[4]; data/rocksdb-6.11.4/db_stress_tool/db_stress_test_base.cc:345: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 value[100]; data/rocksdb-6.11.4/db_stress_tool/db_stress_test_base.cc:492: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 value[100]; data/rocksdb-6.11.4/db_stress_tool/no_batched_ops_stress.cc:286:15: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char value[100]; data/rocksdb-6.11.4/db_stress_tool/no_batched_ops_stress.cc:729: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 value[100]; data/rocksdb-6.11.4/db_stress_tool/no_batched_ops_stress.cc:761: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 value[kValueMaxLen]; data/rocksdb-6.11.4/env/env.cc:206: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 new_format[500]; data/rocksdb-6.11.4/env/env_basic_test.cc:213: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 scratch[100]; data/rocksdb-6.11.4/env/env_chroot.cc:28: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 resolvedName[PATH_MAX]; data/rocksdb-6.11.4/env/env_chroot.cc:254:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/rocksdb-6.11.4/env/env_chroot.cc:292: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 resolvedName[PATH_MAX]; data/rocksdb-6.11.4/env/env_hdfs.cc:320:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[500]; data/rocksdb-6.11.4/env/env_posix.cc:482: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 uuid2[200]; data/rocksdb-6.11.4/env/env_test.cc:277: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 buff[1024]; data/rocksdb-6.11.4/env/env_test.cc:749:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp_id[MAX_ID_SIZE]; data/rocksdb-6.11.4/env/env_test.cc:768: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(file.c_str(), O_CREAT | O_RDWR | O_TRUNC, 0644); data/rocksdb-6.11.4/env/env_test.cc:791: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 dir_buf[100]; data/rocksdb-6.11.4/env/env_test.cc:953: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). fd = open(fname_test_fallocate.c_str(), O_CREAT | O_RDWR | O_TRUNC, 0644); data/rocksdb-6.11.4/env/env_test.cc:1358: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 new_format[550]; data/rocksdb-6.11.4/env/env_test.cc:1404: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 bytes200[200]; data/rocksdb-6.11.4/env/env_test.cc:1407: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 bytes600[600]; data/rocksdb-6.11.4/env/env_test.cc:1410: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 bytes9000[9000]; data/rocksdb-6.11.4/env/env_test.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 new_format[2000]; data/rocksdb-6.11.4/env/env_test.cc:1455: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 bytes9000[9000]; data/rocksdb-6.11.4/env/env_test.cc:1744: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[10000]; data/rocksdb-6.11.4/env/env_test.cc:1837: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(pos, src.data(), src.size()); data/rocksdb-6.11.4/env/env_test.cc:1849: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_[10000]; data/rocksdb-6.11.4/env/fs_posix.cc:166: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). fd = open(fname.c_str(), flags, GetDBFileMode(allow_non_owner_access_)); data/rocksdb-6.11.4/env/fs_posix.cc:221: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). fd = open(fname.c_str(), flags, GetDBFileMode(allow_non_owner_access_)); data/rocksdb-6.11.4/env/fs_posix.cc:306: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). fd = open(fname.c_str(), flags, GetDBFileMode(allow_non_owner_access_)); data/rocksdb-6.11.4/env/fs_posix.cc:405: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). fd = open(old_fname.c_str(), flags, data/rocksdb-6.11.4/env/fs_posix.cc:475: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). fd = open(fname.c_str(), flags, GetDBFileMode(allow_non_owner_access_)); data/rocksdb-6.11.4/env/fs_posix.cc:499: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). fd = open(fname.c_str(), flags, 0644); data/rocksdb-6.11.4/env/fs_posix.cc:542: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). fd = open(name.c_str(), flags); data/rocksdb-6.11.4/env/fs_posix.cc:558:11: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen(fname.c_str(), data/rocksdb-6.11.4/env/fs_posix.cc:792: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). fd = open(fname.c_str(), flags, 0644); data/rocksdb-6.11.4/env/fs_posix.cc:841: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 the_path[256]; data/rocksdb-6.11.4/env/fs_posix.cc:857:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[100]; data/rocksdb-6.11.4/env/fs_posix.cc:889: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). fd = open(path.c_str(), flags); data/rocksdb-6.11.4/env/io_posix.cc:458: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(directory.c_str(), O_DIRECTORY | O_RDONLY); data/rocksdb-6.11.4/env/io_posix.cc:483: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[kBufferSize]; data/rocksdb-6.11.4/env/io_posix.cc:484: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 real_path[PATH_MAX + 1]; data/rocksdb-6.11.4/env/io_posix.cc:520:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen(fname.c_str(), "r"); data/rocksdb-6.11.4/env/io_posix.cc:1019: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(dst_, src, n); data/rocksdb-6.11.4/env/mock_env.cc:115:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(scratch, &(data_[offset_]), n); data/rocksdb-6.11.4/env/mock_env.cc:346:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[500]; data/rocksdb-6.11.4/examples/multi_processes_example.cc:79:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[sizeof(k)]; data/rocksdb-6.11.4/examples/multi_processes_example.cc:113: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(&ret, key.c_str(), sizeof(uint64_t)); data/rocksdb-6.11.4/examples/multi_processes_example.cc:195: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 val_buf[kMaxValueLength] = {0}; data/rocksdb-6.11.4/examples/multi_processes_example.cc:383:7: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (atoi(argv[1]) == 0) { data/rocksdb-6.11.4/file/file_util.cc:52: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[4096]; data/rocksdb-6.11.4/file/filename.cc:61:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[100]; data/rocksdb-6.11.4/file/filename.cc:161: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[100]; data/rocksdb-6.11.4/file/filename.cc:205: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[50]; data/rocksdb-6.11.4/file/filename.cc:217:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[256]; data/rocksdb-6.11.4/file/filename.cc:224:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[256]; data/rocksdb-6.11.4/file/filename.cc:232: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[100]; data/rocksdb-6.11.4/file/filename.h:120: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[260]; data/rocksdb-6.11.4/file/read_write_util.cc:28: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[kBufferSize + 1]; data/rocksdb-6.11.4/file/readahead_raf.cc:121: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(scratch, buffer_.BufferStart() + offset_in_buffer, *cached_len); data/rocksdb-6.11.4/file/sequence_file_reader.cc:182: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(scratch, buffer_.BufferStart() + offset_in_buffer, *cached_len); data/rocksdb-6.11.4/hdfs/env_hdfs.h:213:12: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). port = atoi(portStr.c_str()); data/rocksdb-6.11.4/include/rocksdb/io_status.h:162: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, msg.data(), len1); data/rocksdb-6.11.4/include/rocksdb/io_status.h:166: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(result + len1 + 2, msg2.data(), len2); data/rocksdb-6.11.4/java/rocksjni/comparatorjnicallback.cc:602:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, src.data(), src.size()); data/rocksdb-6.11.4/java/rocksjni/portal.h:1351:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ja, const_cast<char*>(buf), capacity); data/rocksdb-6.11.4/java/rocksjni/portal.h:2342:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(target, source.data(), length); data/rocksdb-6.11.4/java/rocksjni/rocksjni.cc:1010: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(value, cvalue.c_str(), length); data/rocksdb-6.11.4/java/rocksjni/slice.cc:42: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(buf, str, len); data/rocksdb-6.11.4/java/rocksjni/slice.cc:167: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(buf, ptrData, len - 1); data/rocksdb-6.11.4/logging/auto_roll_logger.cc:149: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[MAXBUFFERSIZE]; data/rocksdb-6.11.4/logging/env_logger.h:88:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[500]; data/rocksdb-6.11.4/logging/event_logger_test.cc:24: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_[1000]; data/rocksdb-6.11.4/logging/log_buffer.h:39: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 message[1]; // Beginning of log message data/rocksdb-6.11.4/logging/posix_logger.h:92:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[500]; data/rocksdb-6.11.4/memory/arena.h:85: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 inline_block_[kInlineSize] __attribute__((__aligned__(alignof(max_align_t)))); data/rocksdb-6.11.4/memory/concurrent_arena.h:92: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 padding[40] ROCKSDB_FIELD_UNUSED; data/rocksdb-6.11.4/memory/concurrent_arena.h:106: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 padding0[56] ROCKSDB_FIELD_UNUSED; data/rocksdb-6.11.4/memory/concurrent_arena.h:118: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 padding1[56] ROCKSDB_FIELD_UNUSED; data/rocksdb-6.11.4/memtable/hash_linklist_rep.cc:96: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 key[1]; data/rocksdb-6.11.4/memtable/inlineskiplist.h:297: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(static_cast<void*>(&next_[0]), &height, sizeof(int)); data/rocksdb-6.11.4/memtable/inlineskiplist.h:304: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(&rv, &next_[0], sizeof(int)); data/rocksdb-6.11.4/memtable/inlineskiplist_test.cc:30: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(&rv, key, sizeof(Key)); data/rocksdb-6.11.4/memtable/inlineskiplist_test.cc:68:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, &key, sizeof(Key)); data/rocksdb-6.11.4/memtable/inlineskiplist_test.cc:75:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, &key, sizeof(Key)); data/rocksdb-6.11.4/memtable/inlineskiplist_test.cc:138:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, &key, sizeof(Key)); data/rocksdb-6.11.4/memtable/inlineskiplist_test.cc:409:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, &new_key, sizeof(Key)); data/rocksdb-6.11.4/memtable/inlineskiplist_test.cc:419:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, &new_key, sizeof(Key)); data/rocksdb-6.11.4/memtable/memtablerep_bench.cc:249: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(p, bytes.data(), FLAGS_item_size); data/rocksdb-6.11.4/memtable/write_buffer_manager.cc:28: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 cache_key_[kCacheKeyPrefix + kMaxVarint64Length]; data/rocksdb-6.11.4/memtable/write_buffer_manager.cc:37: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(cache_key_, static_cast<const void*>(this), pointer_size); data/rocksdb-6.11.4/monitoring/histogram.cc:185: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[1650]; data/rocksdb-6.11.4/monitoring/persistent_stats_history.cc:60: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 timestamp[kNowSecondsStringLength + 1]; data/rocksdb-6.11.4/monitoring/persistent_stats_history.cc:129: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 timestamp[kNowSecondsStringLength + 1]; data/rocksdb-6.11.4/monitoring/statistics.cc:371:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[kTmpStrBufferSize]; data/rocksdb-6.11.4/monitoring/statistics.cc:378:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[kTmpStrBufferSize]; data/rocksdb-6.11.4/monitoring/statistics.h:87:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char data/rocksdb-6.11.4/monitoring/thread_status_impl.cc:63: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[kBufferLen]; data/rocksdb-6.11.4/options/cf_options.cc:802: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[10]; data/rocksdb-6.11.4/options/options_parser.cc:380: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[kBufferSize]; data/rocksdb-6.11.4/options/options_parser.cc:622:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[kBufferSize]; data/rocksdb-6.11.4/options/options_parser.cc:692:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[kBufferSize]; data/rocksdb-6.11.4/options/options_test.cc:2376: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[kLength]; data/rocksdb-6.11.4/port/port_dirent.h:23: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 d_name[_MAX_PATH]; /* filename */ data/rocksdb-6.11.4/port/stack_trace.cc:41:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char name[1024]; data/rocksdb-6.11.4/port/stack_trace.cc:43: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 link[1024]; data/rocksdb-6.11.4/port/stack_trace.cc:62: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 cmd[kLineMax]; data/rocksdb-6.11.4/port/stack_trace.cc:66: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 line[kLineMax]; data/rocksdb-6.11.4/port/stack_trace.cc:85: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 cmd[kLineMax]; data/rocksdb-6.11.4/port/stack_trace.cc:89: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 line[kLineMax]; data/rocksdb-6.11.4/port/stack_trace.cc:136: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(callstack, &frames[first_frames_to_skip], sizeof(void*) * *num_frames); data/rocksdb-6.11.4/port/win/env_win.cc:1149: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 devicename[7] = "\\\\.\\"; data/rocksdb-6.11.4/port/win/io_win.cc:403:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst_, src, n); data/rocksdb-6.11.4/port/win/win_logger.cc:104: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[500]; data/rocksdb-6.11.4/table/adaptive/adaptive_table_factory.cc:82:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[kBufferSize]; data/rocksdb-6.11.4/table/block_based/block_based_table_builder.cc:362: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 compressed_cache_key_prefix[BlockBasedTable::kMaxCacheKeyPrefixSize]; data/rocksdb-6.11.4/table/block_based/block_based_table_builder.cc:1086: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 trailer[kBlockTrailerSize]; data/rocksdb-6.11.4/table/block_based/block_based_table_builder.cc:1287: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(ubuf.get(), block_contents.data(), size); data/rocksdb-6.11.4/table/block_based/block_based_table_factory.cc:506: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[kBufferSize]; data/rocksdb-6.11.4/table/block_based/block_based_table_reader.cc:225: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(heap_buf.get(), buf.data(), buf.size()); data/rocksdb-6.11.4/table/block_based/block_based_table_reader.cc:596: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(cache_key, cache_key_prefix, cache_key_prefix_size); data/rocksdb-6.11.4/table/block_based/block_based_table_reader.cc:1436: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 cache_key[kMaxCacheKeyPrefixSize + kMaxVarint64Length]; data/rocksdb-6.11.4/table/block_based/block_based_table_reader.cc:1437: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 compressed_cache_key[kMaxCacheKeyPrefixSize + kMaxVarint64Length]; data/rocksdb-6.11.4/table/block_based/block_based_table_reader.cc:2437: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 stack_buf[kMultiGetReadStackBufSize]; data/rocksdb-6.11.4/table/block_based/block_based_table_reader.cc:2925:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cache_key_storage[kMaxCacheKeyPrefixSize + kMaxVarint64Length]; data/rocksdb-6.11.4/table/block_based/block_based_table_reader.h:515: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 cache_key_prefix[kMaxCacheKeyPrefixSize]; data/rocksdb-6.11.4/table/block_based/block_based_table_reader.h:517: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 persistent_cache_key_prefix[kMaxCacheKeyPrefixSize]; data/rocksdb-6.11.4/table/block_based/block_based_table_reader.h:519: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 compressed_cache_key_prefix[kMaxCacheKeyPrefixSize]; data/rocksdb-6.11.4/table/block_based/block_based_table_reader_impl.h:91: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 cache_key[kExtraCacheKeyPrefix + kMaxVarint64Length]; data/rocksdb-6.11.4/table/block_based/block_based_table_reader_impl.h:96:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cache_key, rep_->cache_key_prefix, rep_->cache_key_prefix_size); data/rocksdb-6.11.4/table/block_based/block_based_table_reader_impl.h:163: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 cache_key[kExtraCacheKeyPrefix + kMaxVarint64Length]; data/rocksdb-6.11.4/table/block_based/block_based_table_reader_impl.h:168:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cache_key, rep_->cache_key_prefix, rep_->cache_key_prefix_size); data/rocksdb-6.11.4/table/block_based/block_based_table_reader_test.cc:154:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char k[9] = {0}; data/rocksdb-6.11.4/table/block_based/block_based_table_reader_test.cc:158:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(k, "%08u", key); data/rocksdb-6.11.4/table/block_based/block_based_table_reader_test.cc:253:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char k[9] = {0}; data/rocksdb-6.11.4/table/block_based/block_based_table_reader_test.cc:257:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(k, "%08u", key); data/rocksdb-6.11.4/table/block_based/block_test.cc:39: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[50]; data/rocksdb-6.11.4/table/block_based/data_block_hash_index_test.cc:46: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[50]; data/rocksdb-6.11.4/table/block_fetcher.cc:169: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(heap_buf_.get(), used_buf_, block_size_with_trailer_); data/rocksdb-6.11.4/table/block_fetcher.cc:179: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(compressed_buf_.get(), used_buf_, block_size_with_trailer_); data/rocksdb-6.11.4/table/block_fetcher.h:109: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 stack_buf_[kDefaultStackBufferSize]; data/rocksdb-6.11.4/table/cuckoo/cuckoo_table_factory.cc:50: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[kBufferSize]; data/rocksdb-6.11.4/table/cuckoo/cuckoo_table_reader_test.cc:258: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(&user_keys[i][0], static_cast<void*>(&i), 8); data/rocksdb-6.11.4/table/cuckoo/cuckoo_table_reader_test.cc:305: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(&user_keys[i][0], static_cast<void*>(&i), 8); data/rocksdb-6.11.4/table/meta_blocks.cc:346:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(verification_buf->get(), block_contents.data.data(), len); data/rocksdb-6.11.4/table/mock_table.cc:108: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[4]; data/rocksdb-6.11.4/table/mock_table.cc: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 buf[4]; data/rocksdb-6.11.4/table/multiget_context.h:127: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 lookup_key_stack_buf[sizeof(LookupKey) * MAX_LOOKUP_KEYS_ON_STACK]; data/rocksdb-6.11.4/table/persistent_cache_helper.cc:19: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 cache_key[BlockBasedTable::kMaxCacheKeyPrefixSize + kMaxVarint64Length]; data/rocksdb-6.11.4/table/persistent_cache_helper.cc:37: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 cache_key[BlockBasedTable::kMaxCacheKeyPrefixSize + kMaxVarint64Length]; data/rocksdb-6.11.4/table/persistent_cache_helper.cc:56: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 cache_key[BlockBasedTable::kMaxCacheKeyPrefixSize + kMaxVarint64Length]; data/rocksdb-6.11.4/table/persistent_cache_helper.cc:88: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 cache_key[BlockBasedTable::kMaxCacheKeyPrefixSize + kMaxVarint64Length]; data/rocksdb-6.11.4/table/plain/plain_table_builder.cc:120: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 meta_bytes_buf[6]; data/rocksdb-6.11.4/table/plain/plain_table_factory.cc:86: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[kBufferSize]; data/rocksdb-6.11.4/table/plain/plain_table_key_coding.cc:98: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_size_buf[5]; // tmp buffer for key size as varint32 data/rocksdb-6.11.4/table/plain/plain_table_key_coding.cc:110:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char size_bytes[12]; data/rocksdb-6.11.4/table/sst_file_reader_test.cc:22: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[16]; data/rocksdb-6.11.4/table/table_properties.cc:99: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 index_block_size_str[80]; data/rocksdb-6.11.4/table/table_reader_bench.cc:40: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[100]; data/rocksdb-6.11.4/table/table_test.cc:3197: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(ptr, "memory_allocator_", 16); // mangle first 16 bytes data/rocksdb-6.11.4/table/table_test.cc:3670: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 name[100]; data/rocksdb-6.11.4/table/table_test.cc:3673:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). files += atoi(value.c_str()); data/rocksdb-6.11.4/test_util/fault_injection_test_fs.cc:507:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(scratch + offset, str.data(), len); data/rocksdb-6.11.4/test_util/testharness.cc:48:34: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int result = (env != nullptr ? atoi(env) : 301); data/rocksdb-6.11.4/test_util/testutil.h:259: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(pos, data.data(), data.size()); data/rocksdb-6.11.4/test_util/testutil.h:307:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char*)reader_contents_->data() + last_flush_, data/rocksdb-6.11.4/test_util/testutil.h:352:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(scratch, &contents_[static_cast<size_t>(offset)], n); data/rocksdb-6.11.4/test_util/testutil.h:540:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(scratch, data_.data() + offset_, n); data/rocksdb-6.11.4/test_util/transaction_test_util.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 name[64]; data/rocksdb-6.11.4/test_util/transaction_test_util.cc:94: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 prefix_buf[6]; data/rocksdb-6.11.4/test_util/transaction_test_util.cc:305: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 prefix_buf[6]; data/rocksdb-6.11.4/third-party/folly/folly/lang/Bits.h:25: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(&to, &src, sizeof(From)); data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:2362:7: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_ACP, 0, ansi, length, data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:2365:3: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_ACP, 0, ansi, length, data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:3181:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char error_text[kBufSize] = { '\0' }; data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:3265:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[5]; // Big enough for the largest valid code point. data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:5799:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[1024]; data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:5805: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 line[1024]; data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:7798:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[256]; data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:8219:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char executable_path[_MAX_PATH + 1]; // NOLINT data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:8700:22: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). const int cwd_fd = open(".", O_RDONLY); data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:9131:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cwd[GTEST_PATH_MAX_ + 1] = { '\0' }; data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:9134:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cwd[GTEST_PATH_MAX_ + 1] = { '\0' }; data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:9542:18: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). const int fd = open("/proc/self/as", O_RDONLY); data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:10329:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, regex, len); data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:10403:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp_dir_path[MAX_PATH + 1] = { '\0' }; // NOLINT data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:10404:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp_file_path[MAX_PATH + 1] = { '\0' }; // NOLINT data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:10441:29: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). const int captured_fd = mkstemp(name_template); data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:10787:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[5] = ""; data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest.h:3767:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return fopen(path, mode); data/rocksdb-6.11.4/tools/block_cache_analyzer/block_cache_trace_analyzer_test.cc:187: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 arg_buffer[kArgBufferSize]; data/rocksdb-6.11.4/tools/db_bench_tool.cc:897: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 name[100]; data/rocksdb-6.11.4/tools/db_bench_tool.cc:2106: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 rate[100]; data/rocksdb-6.11.4/tools/db_bench_tool.cc:2552:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[52]; data/rocksdb-6.11.4/tools/db_bench_tool.cc:2558: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* cpuinfo = fopen("/proc/cpuinfo", "r"); data/rocksdb-6.11.4/tools/db_bench_tool.cc:2560: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 line[1000]; data/rocksdb-6.11.4/tools/db_bench_tool.cc:2796:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pos, static_cast<void*>(&prefix), bytes_to_fill); data/rocksdb-6.11.4/tools/db_bench_tool.cc:2811:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pos, static_cast<void*>(&v), bytes_to_fill); data/rocksdb-6.11.4/tools/db_bench_tool.cc:3511:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[340]; data/rocksdb-6.11.4/tools/db_bench_tool.cc:4393:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[100]; data/rocksdb-6.11.4/tools/db_bench_tool.cc:4945:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[100]; data/rocksdb-6.11.4/tools/db_bench_tool.cc:5028:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[100]; data/rocksdb-6.11.4/tools/db_bench_tool.cc:5122:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[100]; data/rocksdb-6.11.4/tools/db_bench_tool.cc:5213:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[100]; data/rocksdb-6.11.4/tools/db_bench_tool.cc:5260:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[100]; data/rocksdb-6.11.4/tools/db_bench_tool.cc:5509: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 value_buffer[default_value_max]; data/rocksdb-6.11.4/tools/db_bench_tool.cc:5677:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[256]; data/rocksdb-6.11.4/tools/db_bench_tool.cc:5740: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 value_buffer[256]; data/rocksdb-6.11.4/tools/db_bench_tool.cc:5815:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[100]; data/rocksdb-6.11.4/tools/db_bench_tool.cc:6145:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[128]; data/rocksdb-6.11.4/tools/db_bench_tool.cc:6204:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[100]; data/rocksdb-6.11.4/tools/db_bench_tool.cc:6253:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[100]; data/rocksdb-6.11.4/tools/db_bench_tool.cc:6306:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[100]; data/rocksdb-6.11.4/tools/db_bench_tool.cc:6361:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[100]; data/rocksdb-6.11.4/tools/db_bench_tool.cc:6411:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[100]; data/rocksdb-6.11.4/tools/db_bench_tool.cc:6468:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[100]; data/rocksdb-6.11.4/tools/db_bench_tool.cc:6666:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[100]; data/rocksdb-6.11.4/tools/db_bench_tool.cc:6756:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[200]; data/rocksdb-6.11.4/tools/db_bench_tool.cc:6778: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 value_buffer[256]; data/rocksdb-6.11.4/tools/db_bench_tool.cc:6834:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[100]; data/rocksdb-6.11.4/tools/db_bench_tool.cc:6881:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pos, static_cast<void*>(×tamp_value), bytes_to_fill); data/rocksdb-6.11.4/tools/db_bench_tool_test.cc:92: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 arg_buffer_[kArgBufferSize]; data/rocksdb-6.11.4/tools/dump/db_dump_tool.cc:23: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 hostname[1024]; data/rocksdb-6.11.4/tools/dump/db_dump_tool.cc:26: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 json[4096]; data/rocksdb-6.11.4/tools/dump/db_dump_tool.cc:29:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char versionstr[8] = {0, 0, 0, 0, 0, 0, 0, 1}; data/rocksdb-6.11.4/tools/dump/db_dump_tool.cc:80: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 infosize[4]; data/rocksdb-6.11.4/tools/dump/db_dump_tool.cc:97: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 keysize[4]; data/rocksdb-6.11.4/tools/dump/db_dump_tool.cc:111: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 valsize[4]; data/rocksdb-6.11.4/tools/dump/db_dump_tool.cc:140: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 scratch8[8]; data/rocksdb-6.11.4/tools/dump/db_dump_tool.cc:143:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char versionstr[8] = {0, 0, 0, 0, 0, 0, 0, 1}; data/rocksdb-6.11.4/tools/ldb_cmd.cc:2055:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[100]; data/rocksdb-6.11.4/tools/ldb_cmd.cc:2077:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[100]; data/rocksdb-6.11.4/tools/ldb_cmd.cc:2081:17: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). num_files = atoi(property.c_str()); data/rocksdb-6.11.4/tools/ldb_cmd_test.cc:102:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[16]; data/rocksdb-6.11.4/tools/ldb_cmd_test.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 arg2[1024]; data/rocksdb-6.11.4/tools/ldb_cmd_test.cc:285:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[16]; data/rocksdb-6.11.4/tools/ldb_cmd_test.cc:293:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[16]; data/rocksdb-6.11.4/tools/ldb_cmd_test.cc:301:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[16]; data/rocksdb-6.11.4/tools/ldb_cmd_test.cc:309:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[16]; data/rocksdb-6.11.4/tools/ldb_cmd_test.cc:318: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 arg2[1024]; data/rocksdb-6.11.4/tools/ldb_cmd_test.cc:331: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_buf[16]; data/rocksdb-6.11.4/tools/ldb_cmd_test.cc:333: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 e_buf[16]; data/rocksdb-6.11.4/tools/ldb_cmd_test.cc:370:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[16]; data/rocksdb-6.11.4/tools/ldb_cmd_test.cc:378:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[16]; data/rocksdb-6.11.4/tools/ldb_cmd_test.cc:386:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[16]; data/rocksdb-6.11.4/tools/ldb_cmd_test.cc:394:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[16]; data/rocksdb-6.11.4/tools/ldb_cmd_test.cc:403: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 arg2[1024]; data/rocksdb-6.11.4/tools/ldb_cmd_test.cc:416: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_buf[16]; data/rocksdb-6.11.4/tools/ldb_cmd_test.cc:418: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 e_buf[16]; data/rocksdb-6.11.4/tools/ldb_cmd_test.cc:504: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 arg2[1024]; data/rocksdb-6.11.4/tools/ldb_cmd_test.cc:536: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 arg2[1024]; data/rocksdb-6.11.4/tools/ldb_cmd_test.cc:597: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 arg2[1024]; data/rocksdb-6.11.4/tools/ldb_cmd_test.cc:617: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 arg2[1024]; data/rocksdb-6.11.4/tools/ldb_cmd_test.cc:637: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 arg2[1024]; data/rocksdb-6.11.4/tools/ldb_cmd_test.cc:668: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 arg2[1024]; data/rocksdb-6.11.4/tools/ldb_cmd_test.cc:670: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 arg3[1024]; data/rocksdb-6.11.4/tools/reduce_levels_test.cc:74:12: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). return atoi(property.c_str()); data/rocksdb-6.11.4/tools/sst_dump_test.cc:29: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[100]; data/rocksdb-6.11.4/tools/sst_dump_test.cc:36: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[100]; data/rocksdb-6.11.4/tools/sst_dump_tool.cc:382: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 error_msg_buffer[80]; data/rocksdb-6.11.4/tools/trace_analyzer_test.cc:104: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 arg_buffer[kArgBufferSize]; data/rocksdb-6.11.4/tools/trace_analyzer_tool.h:203: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_[1024]; data/rocksdb-6.11.4/trace_replay/block_cache_tracer.cc:356: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). human_readable_trace_reader_.open(trace_file_path, std::ifstream::in); data/rocksdb-6.11.4/trace_replay/block_cache_tracer.h:213: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 trace_record_buffer_[1024 * 1024]; data/rocksdb-6.11.4/util/aligned_buffer.h:167:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(new_bufstart, bufstart_ + copy_offset, copy_len); data/rocksdb-6.11.4/util/aligned_buffer.h:191:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(bufstart_ + cursize_, src, to_copy); data/rocksdb-6.11.4/util/aligned_buffer.h:211:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dest, bufstart_ + offset, to_read); data/rocksdb-6.11.4/util/autovector.h:347:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. value_type)) char buf_[kSize * data/rocksdb-6.11.4/util/bloom_test.cc:42: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, s.c_str(), sizeof(i)); data/rocksdb-6.11.4/util/bloom_test.cc:122:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[sizeof(int)]; data/rocksdb-6.11.4/util/bloom_test.cc: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 buffer[sizeof(int)]; data/rocksdb-6.11.4/util/bloom_test.cc:189: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[sizeof(int)]; data/rocksdb-6.11.4/util/bloom_test.cc:333:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[sizeof(int)]; data/rocksdb-6.11.4/util/bloom_test.cc:346:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[sizeof(int)]; data/rocksdb-6.11.4/util/bloom_test.cc:364:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[sizeof(int)]; data/rocksdb-6.11.4/util/bloom_test.cc:461: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[sizeof(int)]; data/rocksdb-6.11.4/util/bloom_test.cc:526: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[sizeof(int)]; data/rocksdb-6.11.4/util/coding.h:171:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, &value, sizeof(value)); data/rocksdb-6.11.4/util/coding.h:180:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, &value, sizeof(value)); data/rocksdb-6.11.4/util/coding.h:191:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, &value, sizeof(value)); data/rocksdb-6.11.4/util/coding.h:210:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[sizeof(value)]; data/rocksdb-6.11.4/util/coding.h:221:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[sizeof(value)]; data/rocksdb-6.11.4/util/coding.h:232:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[sizeof(value)]; data/rocksdb-6.11.4/util/coding.h:239: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[5]; data/rocksdb-6.11.4/util/coding.h:245: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[10]; data/rocksdb-6.11.4/util/coding.h:253: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[15]; data/rocksdb-6.11.4/util/coding.h:272: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[kMaxVarint64Length]; data/rocksdb-6.11.4/util/coding.h:278: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[kMaxVarint64Length]; data/rocksdb-6.11.4/util/coding.h:285: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[20]; data/rocksdb-6.11.4/util/coding.h:292: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[15]; data/rocksdb-6.11.4/util/coding.h:300: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[20]; data/rocksdb-6.11.4/util/coding.h:479: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(nonAlignedMemory, reinterpret_cast<const char*>(&value), sizeof(T)); data/rocksdb-6.11.4/util/coding.h:496: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(nonAlignedMemory, reinterpret_cast<const char*>(memory), sizeof(T)); data/rocksdb-6.11.4/util/compression.h:821:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp.get(), output.get(), old_sz); data/rocksdb-6.11.4/util/compression.h:968:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp.get(), output.get(), old_sz); data/rocksdb-6.11.4/util/compression.h:1023: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(p, &length, sizeof(length)); data/rocksdb-6.11.4/util/compression.h:1157: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(p, &length, sizeof(length)); data/rocksdb-6.11.4/util/compression_context_cache.cc:32: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/rocksdb-6.11.4/util/crc32c_test.cc:22:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[BUFFER_SIZE]; data/rocksdb-6.11.4/util/crc32c_test.cc:70: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[32]; data/rocksdb-6.11.4/util/crc32c_test.cc:88: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 data[48] = { data/rocksdb-6.11.4/util/filelock_test.cc:65:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fd = open(file_.c_str(), O_RDWR | O_CREAT, 0644); data/rocksdb-6.11.4/util/hash_test.cc:131: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 input[4]; data/rocksdb-6.11.4/util/status.cc:67: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, msg.data(), len1); data/rocksdb-6.11.4/util/status.cc:71: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(result + len1 + 2, msg2.data(), len2); data/rocksdb-6.11.4/util/status.cc:81: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 tmp[30]; data/rocksdb-6.11.4/util/string_util.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 buf[30]; data/rocksdb-6.11.4/util/string_util.cc:94:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[10]; data/rocksdb-6.11.4/util/string_util.cc:109: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[19]; data/rocksdb-6.11.4/util/string_util.cc:137: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[20]; data/rocksdb-6.11.4/util/string_util.cc:143: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 time_buffer[80]; data/rocksdb-6.11.4/util/xxh3p.h:960: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(dst, &v64, sizeof(v64)); data/rocksdb-6.11.4/util/xxh3p.h:1375: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(dst, &hash.high64, sizeof(hash.high64)); data/rocksdb-6.11.4/util/xxh3p.h:1376: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((char*)dst + sizeof(hash.high64), &hash.low64, sizeof(hash.low64)); data/rocksdb-6.11.4/util/xxhash.cc:118:76: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. static void* XXH_memcpy(void* dest, const void* src, size_t size) { return memcpy(dest,src,size); } data/rocksdb-6.11.4/util/xxhash.cc:543: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(dstState, srcState, sizeof(*dstState)); data/rocksdb-6.11.4/util/xxhash.cc:555: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(statePtr, &state, sizeof(state) - sizeof(state.reserved)); data/rocksdb-6.11.4/util/xxhash.cc:657: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(dst, &hash, sizeof(*dst)); data/rocksdb-6.11.4/util/xxhash.cc:1030: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(dstState, srcState, sizeof(*dstState)); data/rocksdb-6.11.4/util/xxhash.cc:1042: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(statePtr, &state, sizeof(state) - sizeof(state.reserved64)); data/rocksdb-6.11.4/util/xxhash.cc:1140: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(dst, &hash, sizeof(*dst)); data/rocksdb-6.11.4/util/xxhash.h:260:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef struct { unsigned char digest[4]; } XXH32_canonical_t; data/rocksdb-6.11.4/util/xxhash.h:297:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef struct { unsigned char digest[8]; } XXH64_canonical_t; data/rocksdb-6.11.4/util/xxhash.h:480:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. XXH_ALIGN(64) unsigned char customSecret[XXH3p_SECRET_DEFAULT_SIZE]; /* used to store a custom secret generated from the seed. Makes state larger. Design might change */ data/rocksdb-6.11.4/util/xxhash.h:481:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. XXH_ALIGN(64) unsigned char buffer[XXH3p_INTERNALBUFFER_SIZE]; data/rocksdb-6.11.4/util/xxhash.h:574:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef struct { unsigned char digest[16]; } XXH128_canonical_t; data/rocksdb-6.11.4/utilities/backupable/backupable_db.cc:61:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char result[50]; data/rocksdb-6.11.4/utilities/backupable/backupable_db.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 human_size[16]; data/rocksdb-6.11.4/utilities/backupable/backupable_db.cc:994: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 human_size[16]; data/rocksdb-6.11.4/utilities/backupable/backupable_db.cc:1911: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 writelen_temp[19]; data/rocksdb-6.11.4/utilities/blob_db/blob_db_impl.cc:1673:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1000]; data/rocksdb-6.11.4/utilities/blob_db/blob_dump_tool.cc:249:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[100]; data/rocksdb-6.11.4/utilities/blob_db/blob_file.cc:88:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[1000]; data/rocksdb-6.11.4/utilities/cassandra/cassandra_format_test.cc:19: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[4] = {'d', 'a', 't', 'a'}; data/rocksdb-6.11.4/utilities/cassandra/cassandra_format_test.cc:70: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[4] = {'d', 'a', 't', 'a'}; data/rocksdb-6.11.4/utilities/cassandra/cassandra_format_test.cc:226: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 e_data[5] = {'e', 'd', 'a', 't', 'a'}; data/rocksdb-6.11.4/utilities/cassandra/cassandra_format_test.cc:235: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_data[4] = {'d', 'a', 't', 'a'}; data/rocksdb-6.11.4/utilities/env_librados.cc:874: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 uuid2[200]; data/rocksdb-6.11.4/utilities/env_librados_test.cc:177: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 scratch[100]; data/rocksdb-6.11.4/utilities/env_librados_test.cc:373: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 key[20] = {0}, value[20] = {0}; data/rocksdb-6.11.4/utilities/env_librados_test.cc:450: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 key[20] = {0}, value[20] = {0}; data/rocksdb-6.11.4/utilities/env_librados_test.cc:534: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 key[20] = {0}, value[20] = {0}; data/rocksdb-6.11.4/utilities/env_librados_test.cc:618: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 key[20] = {0}, value[20] = {0}; data/rocksdb-6.11.4/utilities/env_librados_test.cc:916: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 key[20] = {0}, value[20] = {0}; data/rocksdb-6.11.4/utilities/env_mirror_test.cc:118: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 scratch[100]; data/rocksdb-6.11.4/utilities/persistent_cache/block_cache_tier.cc:306: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(val->get(), blk_val.data(), blk_val.size()); data/rocksdb-6.11.4/utilities/persistent_cache/block_cache_tier_file.cc:490: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(tmp, buf->Data() + start_off, nbytes); data/rocksdb-6.11.4/utilities/persistent_cache/block_cache_tier_file_buffer.h:34:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf_.get() + pos_, buf, size); data/rocksdb-6.11.4/utilities/persistent_cache/persistent_cache_test.h:132: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 data[4 * 1024]; data/rocksdb-6.11.4/utilities/persistent_cache/persistent_cache_test.h:156: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 edata[4 * 1024]; data/rocksdb-6.11.4/utilities/persistent_cache/persistent_cache_tier.cc:20: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[kBufferSize]; data/rocksdb-6.11.4/utilities/persistent_cache/volatile_tier_impl.cc:91: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(result->get(), kv->value.c_str(), kv->value.size()); data/rocksdb-6.11.4/utilities/simulator_cache/sim_cache.cc:288: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 buff[350]; data/rocksdb-6.11.4/utilities/transactions/transaction_lock_mgr.cc:290:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[255]; data/rocksdb-6.11.4/utilities/transactions/transaction_util.cc:90:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[300]; data/rocksdb-6.11.4/utilities/transactions/write_prepared_txn_db.cc:726: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 name[64]; data/rocksdb-6.11.4/utilities/ttl/db_ttl_impl.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 ts_string[kTSLength]; data/rocksdb-6.11.4/utilities/ttl/db_ttl_impl.h:306: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 ts_string[ts_len]; data/rocksdb-6.11.4/utilities/ttl/db_ttl_impl.h:347: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 ts_string[ts_len]; data/rocksdb-6.11.4/cache/clock_cache.cc:242: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. static bool equal(const CacheKey& a, const CacheKey& b) { data/rocksdb-6.11.4/db/c_test.c:83:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). } else if (expected != NULL && v != NULL && n == strlen(expected) && data/rocksdb-6.11.4/db/c_test.c:121:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). val = rocksdb_get(db, options, key, strlen(key), &val_len, &err); data/rocksdb-6.11.4/db/c_test.c:136:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). val = rocksdb_get_cf(db, options, handle, key, strlen(key), &val_len, &err); data/rocksdb-6.11.4/db/c_test.c:148:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p = rocksdb_get_pinned(db, options, key, strlen(key), &err); data/rocksdb-6.11.4/db/c_test.c:162:55: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p = rocksdb_get_pinned_cf(db, options, handle, key, strlen(key), &err); data/rocksdb-6.11.4/db/c_test.c:379:58: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). val = rocksdb_transaction_get(txn, options, key, strlen(key), &val_len, &err); data/rocksdb-6.11.4/db/c_test.c:393: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). strlen(key), &val_len, &err); data/rocksdb-6.11.4/db/c_test.c:407:63: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). val = rocksdb_transactiondb_get(txn_db, options, key, strlen(key), &val_len, &err); data/rocksdb-6.11.4/db/c_test.c:421:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(key), &val_len, &err); data/rocksdb-6.11.4/db/c_test.c:983:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). rocksdb_put(db, woptions, keybuf, strlen(keybuf), valbuf, strlen(valbuf), data/rocksdb-6.11.4/db/c_test.c:983:65: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). rocksdb_put(db, woptions, keybuf, strlen(keybuf), valbuf, strlen(valbuf), data/rocksdb-6.11.4/db/c_test.c:1071:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). rocksdb_put(db, woptions, keybuf, strlen(keybuf), "val", 3, &err); data/rocksdb-6.11.4/db/corruption_test.cc:211:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). storage->assign(buf, strlen(buf)); data/rocksdb-6.11.4/db/fault_injection_test.cc:245:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). storage->assign(buf, strlen(buf)); data/rocksdb-6.11.4/db/forward_iterator_bench.cc:54:25: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). std::atomic<uint64_t> read{0}; data/rocksdb-6.11.4/db/forward_iterator_bench.cc:169:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ++::stats.read; data/rocksdb-6.11.4/db/forward_iterator_bench.cc:288:28: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). uint64_t r = ::stats.read.load(); data/rocksdb-6.11.4/db/malloc_stats.cc:29: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). size_t status_len = status ? strlen(status) : 0; data/rocksdb-6.11.4/db_stress_tool/db_stress_test_base.cc:304: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. if (!std::equal(snap_state.key_vec->begin(), snap_state.key_vec->end(), data/rocksdb-6.11.4/env/env_basic_test.cc:282:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (read < kWriteSize) { data/rocksdb-6.11.4/env/env_basic_test.cc:283:43: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ASSERT_OK(seq_file->Read(kWriteSize - read, &result, scratch)); data/rocksdb-6.11.4/env/env_chroot.cc:299:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). } else if (strlen(normalized_path) < chroot_dir_.size() || data/rocksdb-6.11.4/env/env_posix.cc:281:52: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. void SleepForMicroseconds(int micros) override { usleep(micros); } data/rocksdb-6.11.4/env/env_test.cc:814:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (tmp && strlen(tmp) + strlen(fmt) - 2 + 1 <= sizeof dir_buf) { data/rocksdb-6.11.4/env/env_test.cc:814: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). if (tmp && strlen(tmp) + strlen(fmt) - 2 + 1 <= sizeof dir_buf) { data/rocksdb-6.11.4/examples/c_simple_example.c:43:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). rocksdb_put(db, writeoptions, key, strlen(key), value, strlen(value) + 1, data/rocksdb-6.11.4/examples/c_simple_example.c:43:58: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). rocksdb_put(db, writeoptions, key, strlen(key), value, strlen(value) + 1, data/rocksdb-6.11.4/examples/c_simple_example.c:50:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). rocksdb_get(db, readoptions, key, strlen(key), &len, &err); data/rocksdb-6.11.4/file/filename.cc:294:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). rest.remove_prefix(strlen("MANIFEST-")); data/rocksdb-6.11.4/file/filename.cc:305:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). rest.remove_prefix(strlen("METADB-")); data/rocksdb-6.11.4/include/rocksdb/io_status.h:257: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). Slice(state, strlen(status.getState()) + 1), Slice()); data/rocksdb-6.11.4/include/rocksdb/slice.h:55:66: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Slice(const char* s) : data_(s) { size_ = (s == nullptr) ? 0 : strlen(s); } data/rocksdb-6.11.4/java/rocksjni/slice.cc:36:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const size_t len = strlen(str); data/rocksdb-6.11.4/options/options_helper.cc:279:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t no_op_length = strlen(no_op_name); data/rocksdb-6.11.4/options/options_helper.cc:1245:44: [1] (buffer) mismatch: 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. std::string* mismatch) const { data/rocksdb-6.11.4/options/options_helper.cc:1255:22: [1] (buffer) mismatch: 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. mismatch)) { data/rocksdb-6.11.4/options/options_helper.cc:1271:18: [1] (buffer) mismatch: 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. std::string* mismatch) { data/rocksdb-6.11.4/options/options_parser.cc:616:19: [1] (buffer) mismatch: 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. std::string mismatch; data/rocksdb-6.11.4/options/options_parser.cc:618:31: [1] (buffer) mismatch: 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. &mismatch) && data/rocksdb-6.11.4/options/options_parser.cc:654:54: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return Status::InvalidArgument(Slice(buffer, strlen(buffer))); data/rocksdb-6.11.4/options/options_parser.cc:669:19: [1] (buffer) mismatch: 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. std::string mismatch; data/rocksdb-6.11.4/options/options_parser.cc:675:52: [1] (buffer) mismatch: 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. file_addr, &mismatch); data/rocksdb-6.11.4/options/options_test.cc:3001:23: [1] (buffer) mismatch: 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. std::string result, mismatch; data/rocksdb-6.11.4/options/options_test.cc:3007:34: [1] (buffer) mismatch: 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. &mismatch)); data/rocksdb-6.11.4/options/options_test.cc:3189:61: [1] (buffer) mismatch: 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. const char* addr1, const char* addr2, std::string* mismatch) { data/rocksdb-6.11.4/options/options_test.cc:3207:15: [1] (buffer) mismatch: 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. std::string mismatch; data/rocksdb-6.11.4/options/options_test.cc:3210:46: [1] (buffer) mismatch: 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. reinterpret_cast<const char*>(&int2), &mismatch)); data/rocksdb-6.11.4/options/options_test.cc:3211:13: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. ASSERT_EQ(mismatch, ""); data/rocksdb-6.11.4/options/options_test.cc:3214:67: [1] (buffer) mismatch: 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. reinterpret_cast<char*>(&int2), &mismatch)); data/rocksdb-6.11.4/options/options_test.cc:3215:13: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. ASSERT_EQ(mismatch, "GT"); data/rocksdb-6.11.4/options/options_test.cc:3218:67: [1] (buffer) mismatch: 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. reinterpret_cast<char*>(&int2), &mismatch)); data/rocksdb-6.11.4/options/options_test.cc:3219:13: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. ASSERT_EQ(mismatch, "NO???"); data/rocksdb-6.11.4/options/options_test.cc:3285:23: [1] (buffer) mismatch: 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. std::string result, mismatch; data/rocksdb-6.11.4/options/options_test.cc:3298:65: [1] (buffer) mismatch: 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. reinterpret_cast<char*>(&e2), &mismatch)); data/rocksdb-6.11.4/options/options_test.cc:3299:13: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. ASSERT_EQ(mismatch, "Enum"); data/rocksdb-6.11.4/options/options_test.cc:3391:15: [1] (buffer) mismatch: 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. std::string mismatch; data/rocksdb-6.11.4/options/options_test.cc:3407:70: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. ASSERT_FALSE(basic_info.AreEqual(config_options, "b", e1bc, e2bc, &mismatch)); data/rocksdb-6.11.4/options/options_test.cc:3408:13: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. ASSERT_EQ(mismatch, "b.i"); data/rocksdb-6.11.4/options/options_test.cc:3409:3: [1] (buffer) mismatch: 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. mismatch.clear(); data/rocksdb-6.11.4/options/options_test.cc:3411:63: [1] (buffer) mismatch: 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. basic_info.AreEqual(config_options, "b.i", e1bc, e2bc, &mismatch)); data/rocksdb-6.11.4/options/options_test.cc:3412:13: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. ASSERT_EQ(mismatch, "b.i"); data/rocksdb-6.11.4/options/options_test.cc:3413:3: [1] (buffer) mismatch: 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. mismatch.clear(); data/rocksdb-6.11.4/options/options_test.cc:3414:70: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. ASSERT_FALSE(basic_info.AreEqual(config_options, "i", e1bc, e2bc, &mismatch)); data/rocksdb-6.11.4/options/options_test.cc:3415:13: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. ASSERT_EQ(mismatch, "b.i"); data/rocksdb-6.11.4/options/options_test.cc:3416:3: [1] (buffer) mismatch: 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. mismatch.clear(); data/rocksdb-6.11.4/options/options_test.cc:3421:63: [1] (buffer) mismatch: 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. basic_info.AreEqual(config_options, "b.i", e1bc, e2bc, &mismatch)); data/rocksdb-6.11.4/options/options_test.cc:3424:63: [1] (buffer) mismatch: 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. basic_info.AreEqual(config_options, "b.i", e1bc, e2bc, &mismatch)); data/rocksdb-6.11.4/options/options_test.cc:3427:63: [1] (buffer) mismatch: 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. basic_info.AreEqual(config_options, "b.i", e1bc, e2bc, &mismatch)); data/rocksdb-6.11.4/options/options_test.cc:3450:15: [1] (buffer) mismatch: 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. std::string mismatch; data/rocksdb-6.11.4/options/options_test.cc:3462:67: [1] (buffer) mismatch: 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. reinterpret_cast<char*>(&vec2), &mismatch)); data/rocksdb-6.11.4/options/options_test.cc:3463:13: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. ASSERT_EQ(mismatch, "v"); data/rocksdb-6.11.4/options/options_type.h:141:35: [1] (buffer) mismatch: 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. std::string* mismatch); data/rocksdb-6.11.4/options/options_type.h:176:64: [1] (buffer) mismatch: 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. const char* /*addr1*/, const char* /*addr2*/, std::string* mismatch)>; data/rocksdb-6.11.4/options/options_type.h:347:67: [1] (buffer) mismatch: 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. const char* addr2, std::string* mismatch) { data/rocksdb-6.11.4/options/options_type.h:349:41: [1] (buffer) mismatch: 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. addr2, mismatch); data/rocksdb-6.11.4/options/options_type.h:368:67: [1] (buffer) mismatch: 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. const char* addr2, std::string* mismatch) { data/rocksdb-6.11.4/options/options_type.h:370:41: [1] (buffer) mismatch: 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. addr2, mismatch); data/rocksdb-6.11.4/options/options_type.h:398:34: [1] (buffer) mismatch: 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. std::string* mismatch) { data/rocksdb-6.11.4/options/options_type.h:402:37: [1] (buffer) mismatch: 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. mismatch); data/rocksdb-6.11.4/options/options_type.h:481:49: [1] (buffer) mismatch: 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. const char* addr2, std::string* mismatch) const; data/rocksdb-6.11.4/options/options_type.h:519:45: [1] (buffer) mismatch: 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. const char* that_offset, std::string* mismatch); data/rocksdb-6.11.4/options/options_type.h:681:35: [1] (buffer) mismatch: 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. std::string* mismatch) { data/rocksdb-6.11.4/options/options_type.h:689:56: [1] (buffer) mismatch: 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. reinterpret_cast<const char*>(&vec2[i]), mismatch)) { data/rocksdb-6.11.4/port/stack_trace.cc:46:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (-1 == read) { data/rocksdb-6.11.4/port/stack_trace.cc:49:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). name[read] = 0; data/rocksdb-6.11.4/port/stack_trace.cc:68:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). line[strlen(line) - 1] = 0; // remove newline data/rocksdb-6.11.4/port/stack_trace.cc:91: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). line[strlen(line) - 1] = 0; // remove newline data/rocksdb-6.11.4/port/win/port_win.h:358:23: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define RX_FNLEN(a) ::wcslen(a) data/rocksdb-6.11.4/port/win/port_win.h:382:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define RX_FNLEN(a) strlen(a) data/rocksdb-6.11.4/table/block_based/block_based_table_factory.cc:153:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (wasted <= read / 8) { data/rocksdb-6.11.4/table/block_based/block_based_table_factory.cc:755:15: [1] (buffer) mismatch: 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. std::string mismatch; data/rocksdb-6.11.4/table/block_based/block_based_table_factory.cc:766:45: [1] (buffer) mismatch: 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. file_addr, &mismatch) && data/rocksdb-6.11.4/test_util/transaction_test_util.cc:58:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(strlen(name) < 64 - 1); data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:2360:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const int length = strlen(ansi); data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:3326:34: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). num_chars = static_cast<int>(wcslen(str)); data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:5118:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). segment = next_segment + strlen("]]>"); data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:5703:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). result.reserve(strlen(str) + 1); data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:7022:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const size_t prefix_len = strlen(prefix); data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:7433:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if (temp_dir[strlen(temp_dir) - 1] == '\\') data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:10063:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const size_t full_regex_len = strlen(regex) + 10; data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:10317:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const size_t len = strlen(regex); data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:11056:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). PrintCharsAsStringTo(s, strlen(s), os); data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc:11073:34: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). PrintCharsAsStringTo(s, std::wcslen(s), os); data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest.h:3756:10: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). return strncpy(dest, src, n); data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest.h:3778:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return static_cast<int>(read(fd, buf, count)); data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest.h:4672: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). if (s.compare(0, strlen(prefix), prefix) == 0) { data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest.h:4673:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). std::string::size_type end = s.find("::", strlen(prefix)); data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest.h:4676:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). s.erase(strlen("std"), end - strlen("std")); data/rocksdb-6.11.4/third-party/gtest-1.8.1/fused-src/gtest/gtest.h:4676: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). s.erase(strlen("std"), end - strlen("std")); data/rocksdb-6.11.4/tools/db_bench_tool.cc:4937:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read % 256 == 255) { data/rocksdb-6.11.4/tools/db_bench_tool.cc:4947:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read); data/rocksdb-6.11.4/tools/db_bench_tool.cc:5007:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ++read; data/rocksdb-6.11.4/tools/db_bench_tool.cc:5031:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). found, read, nonexist); data/rocksdb-6.11.4/tools/db_bench_tool.cc:5114:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read % 256 == 255) { data/rocksdb-6.11.4/tools/db_bench_tool.cc:5124:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). found, read); data/rocksdb-6.11.4/tools/db_bench_tool.cc:5215:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). found, read); data/rocksdb-6.11.4/tools/db_bench_tool.cc:5617:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read % 256 == 255) { data/rocksdb-6.11.4/tools/db_bench_tool.cc:5681:39: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). gets, puts, seek, found, read); data/rocksdb-6.11.4/tools/db_bench_tool.cc:5803:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read % 256 == 255) { data/rocksdb-6.11.4/tools/db_bench_tool.cc:5817:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). found, read); data/rocksdb-6.11.4/tools/db_bench_tool.cc:6799:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ++read; data/rocksdb-6.11.4/tools/db_bench_tool.cc:6836:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read); data/rocksdb-6.11.4/tools/dump/db_dump_tool.cc:79:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ROCKSDB_NAMESPACE::Slice infoslice(json, strlen(json)); data/rocksdb-6.11.4/tools/ldb_cmd.cc:738: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). *value = line.substr(pos + strlen(DELIM)); data/rocksdb-6.11.4/util/channel.h:49:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool read(T& elem) { data/rocksdb-6.11.4/util/status.cc:22: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). const size_t cch = std::strlen(state) + 1; // +1 for the null terminator data/rocksdb-6.11.4/util/status.cc:35: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). const size_t cch = std::strlen(state) + 1; // +1 for the null terminator data/rocksdb-6.11.4/util/status.cc:36:15: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). return std::strncpy(new char[cch], state, cch); data/rocksdb-6.11.4/utilities/backupable/backupable_db.cc:754:39: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (files_to_copy_or_create_.read(work_item)) { data/rocksdb-6.11.4/utilities/env_librados.cc:128:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int r = _io_ctx->read(_fid, buffer, n, _offset); data/rocksdb-6.11.4/utilities/env_librados.cc:206:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int r = _io_ctx->read(_fid, buffer, n, offset); data/rocksdb-6.11.4/utilities/env_librados.cc:234:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(id, _fid.c_str() + (_fid.size() - s), s); data/rocksdb-6.11.4/utilities/env_librados.cc:484:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(id, _fid.c_str() + (_fid.size() - s), s); data/rocksdb-6.11.4/utilities/env_librados_test.cc:268:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (read < kWriteSize) { data/rocksdb-6.11.4/utilities/env_librados_test.cc:269:43: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ASSERT_OK(seq_file->Read(kWriteSize - read, &result, scratch)); data/rocksdb-6.11.4/utilities/env_librados_test.cc:304:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (read < kWriteSize) { data/rocksdb-6.11.4/utilities/env_librados_test.cc:305:43: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ASSERT_OK(seq_file->Read(kWriteSize - read, &result, scratch)); data/rocksdb-6.11.4/utilities/env_mirror_test.cc:199:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (read < kWriteSize) { data/rocksdb-6.11.4/utilities/env_mirror_test.cc:200:43: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ASSERT_OK(seq_file->Read(kWriteSize - read, &result, scratch)); data/rocksdb-6.11.4/utilities/transactions/write_prepared_txn_db.cc:728:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(strlen(name) < 64 - 1); ANALYSIS SUMMARY: Hits = 1000 Lines analyzed = 452000 in approximately 10.25 seconds (44098 lines/second) Physical Source Lines of Code (SLOC) = 328895 Hits@level = [0] 1547 [1] 141 [2] 541 [3] 67 [4] 249 [5] 2 Hits@level+ = [0+] 2547 [1+] 1000 [2+] 859 [3+] 318 [4+] 251 [5+] 2 Hits/KSLOC@level+ = [0+] 7.74411 [1+] 3.04048 [2+] 2.61178 [3+] 0.966874 [4+] 0.763161 [5+] 0.00608097 Dot directories skipped = 3 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.