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/lizardfs-3.12.0+dfsg/src/admin/chunk_health_command.cc
Examining data/lizardfs-3.12.0+dfsg/src/admin/chunk_health_command.h
Examining data/lizardfs-3.12.0+dfsg/src/admin/escape_porcelain_string.h
Examining data/lizardfs-3.12.0+dfsg/src/admin/escape_porcelain_string_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/admin/info_command.cc
Examining data/lizardfs-3.12.0+dfsg/src/admin/info_command.h
Examining data/lizardfs-3.12.0+dfsg/src/admin/io_limits_status_command.cc
Examining data/lizardfs-3.12.0+dfsg/src/admin/io_limits_status_command.h
Examining data/lizardfs-3.12.0+dfsg/src/admin/list_chunkservers_command.cc
Examining data/lizardfs-3.12.0+dfsg/src/admin/list_chunkservers_command.h
Examining data/lizardfs-3.12.0+dfsg/src/admin/list_defective_files_command.cc
Examining data/lizardfs-3.12.0+dfsg/src/admin/list_defective_files_command.h
Examining data/lizardfs-3.12.0+dfsg/src/admin/list_disks_command.cc
Examining data/lizardfs-3.12.0+dfsg/src/admin/list_disks_command.h
Examining data/lizardfs-3.12.0+dfsg/src/admin/list_goals_command.cc
Examining data/lizardfs-3.12.0+dfsg/src/admin/list_goals_command.h
Examining data/lizardfs-3.12.0+dfsg/src/admin/list_metadataservers_command.cc
Examining data/lizardfs-3.12.0+dfsg/src/admin/list_metadataservers_command.h
Examining data/lizardfs-3.12.0+dfsg/src/admin/list_mounts_command.cc
Examining data/lizardfs-3.12.0+dfsg/src/admin/list_mounts_command.h
Examining data/lizardfs-3.12.0+dfsg/src/admin/list_tapeservers_command.cc
Examining data/lizardfs-3.12.0+dfsg/src/admin/list_tapeservers_command.h
Examining data/lizardfs-3.12.0+dfsg/src/admin/list_tasks_command.cc
Examining data/lizardfs-3.12.0+dfsg/src/admin/list_tasks_command.h
Examining data/lizardfs-3.12.0+dfsg/src/admin/lizardfs_admin_command.cc
Examining data/lizardfs-3.12.0+dfsg/src/admin/lizardfs_admin_command.h
Examining data/lizardfs-3.12.0+dfsg/src/admin/magic_recalculate_metadata_checksum_command.cc
Examining data/lizardfs-3.12.0+dfsg/src/admin/magic_recalculate_metadata_checksum_command.h
Examining data/lizardfs-3.12.0+dfsg/src/admin/main.cc
Examining data/lizardfs-3.12.0+dfsg/src/admin/manage_locks_command.cc
Examining data/lizardfs-3.12.0+dfsg/src/admin/manage_locks_command.h
Examining data/lizardfs-3.12.0+dfsg/src/admin/metadataserver_status_command.cc
Examining data/lizardfs-3.12.0+dfsg/src/admin/metadataserver_status_command.h
Examining data/lizardfs-3.12.0+dfsg/src/admin/options.cc
Examining data/lizardfs-3.12.0+dfsg/src/admin/options.h
Examining data/lizardfs-3.12.0+dfsg/src/admin/promote_shadow_command.cc
Examining data/lizardfs-3.12.0+dfsg/src/admin/promote_shadow_command.h
Examining data/lizardfs-3.12.0+dfsg/src/admin/ready_chunkservers_count_command.cc
Examining data/lizardfs-3.12.0+dfsg/src/admin/ready_chunkservers_count_command.h
Examining data/lizardfs-3.12.0+dfsg/src/admin/registered_admin_connection.cc
Examining data/lizardfs-3.12.0+dfsg/src/admin/registered_admin_connection.h
Examining data/lizardfs-3.12.0+dfsg/src/admin/reload_config_command.cc
Examining data/lizardfs-3.12.0+dfsg/src/admin/reload_config_command.h
Examining data/lizardfs-3.12.0+dfsg/src/admin/save_metadata_command.cc
Examining data/lizardfs-3.12.0+dfsg/src/admin/save_metadata_command.h
Examining data/lizardfs-3.12.0+dfsg/src/admin/stop_master_without_saving_metadata.cc
Examining data/lizardfs-3.12.0+dfsg/src/admin/stop_master_without_saving_metadata.h
Examining data/lizardfs-3.12.0+dfsg/src/admin/stop_task_command.cc
Examining data/lizardfs-3.12.0+dfsg/src/admin/stop_task_command.h
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/bgjobs.cc
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/bgjobs.h
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/chartsdata.cc
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/chartsdata.h
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/chunk.cc
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/chunk.h
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/chunk_file_creator.cc
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/chunk_file_creator.h
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/chunk_filename_parser.cc
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/chunk_filename_parser.h
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/chunk_filename_parser_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/chunk_format.h
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/chunk_replicator.cc
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/chunk_replicator.h
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/chunk_signature.cc
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/chunk_signature.h
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/chunk_signature_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/chunk_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/g_limiters.cc
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/g_limiters.h
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/hdd_readahead.cc
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/hdd_readahead.h
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/hdd_readahead_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/hddspacemgr.h
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/indexed_resource_pool.h
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/init.h
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/legacy_replicator.cc
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/legacy_replicator.h
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/masterconn.cc
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/masterconn.h
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/network_main_thread.cc
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/network_main_thread.h
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/network_stats.cc
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/network_stats.h
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/network_worker_thread.cc
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/network_worker_thread.h
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/open_chunk.h
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/output_buffer.cc
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/output_buffer.h
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/output_buffer_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/replication_bandwidth_limiter.cc
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/replication_bandwidth_limiter.h
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/slice_recovery_planner.h
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/slice_recovery_planner_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/iostat.h
Examining data/lizardfs-3.12.0+dfsg/src/chunkserver/hddspacemgr.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/access_control_list.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/access_control_list.h
Examining data/lizardfs-3.12.0+dfsg/src/common/access_control_list_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/acl_converter.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/acl_converter.h
Examining data/lizardfs-3.12.0+dfsg/src/common/acl_converter_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/acl_type.h
Examining data/lizardfs-3.12.0+dfsg/src/common/attributes.h
Examining data/lizardfs-3.12.0+dfsg/src/common/block_xor.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/block_xor.h
Examining data/lizardfs-3.12.0+dfsg/src/common/block_xor_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/case_sensitivity.h
Examining data/lizardfs-3.12.0+dfsg/src/common/cfg.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/cfg.h
Examining data/lizardfs-3.12.0+dfsg/src/common/charts.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/charts.h
Examining data/lizardfs-3.12.0+dfsg/src/common/chunk_connector.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/chunk_connector.h
Examining data/lizardfs-3.12.0+dfsg/src/common/chunk_copies_calculator.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/chunk_copies_calculator.h
Examining data/lizardfs-3.12.0+dfsg/src/common/chunk_copies_calculator_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/chunk_part_type.h
Examining data/lizardfs-3.12.0+dfsg/src/common/chunk_part_type_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/chunk_read_planner.h
Examining data/lizardfs-3.12.0+dfsg/src/common/chunk_read_planner_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/chunk_type_with_address.h
Examining data/lizardfs-3.12.0+dfsg/src/common/chunk_with_address_and_label.h
Examining data/lizardfs-3.12.0+dfsg/src/common/chunk_with_version.h
Examining data/lizardfs-3.12.0+dfsg/src/common/chunk_with_version_and_type.h
Examining data/lizardfs-3.12.0+dfsg/src/common/chunks_availability_state.h
Examining data/lizardfs-3.12.0+dfsg/src/common/chunks_availability_state_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/chunkserver_stats.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/chunkserver_stats.h
Examining data/lizardfs-3.12.0+dfsg/src/common/chunkserver_stats_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/compact_vector.h
Examining data/lizardfs-3.12.0+dfsg/src/common/compact_vector_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/connection_pool.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/connection_pool.h
Examining data/lizardfs-3.12.0+dfsg/src/common/coroutine.h
Examining data/lizardfs-3.12.0+dfsg/src/common/counting_sort.h
Examining data/lizardfs-3.12.0+dfsg/src/common/counting_sort_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/crc.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/crc.h
Examining data/lizardfs-3.12.0+dfsg/src/common/crc_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/cwrap.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/cwrap.h
Examining data/lizardfs-3.12.0+dfsg/src/common/datapack.h
Examining data/lizardfs-3.12.0+dfsg/src/common/defective_file_info.h
Examining data/lizardfs-3.12.0+dfsg/src/common/disk_info.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/disk_info.h
Examining data/lizardfs-3.12.0+dfsg/src/common/ec_read_plan.h
Examining data/lizardfs-3.12.0+dfsg/src/common/ec_read_plan_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/errno_defs.h
Examining data/lizardfs-3.12.0+dfsg/src/common/event_loop.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/event_loop.h
Examining data/lizardfs-3.12.0+dfsg/src/common/exception.h
Examining data/lizardfs-3.12.0+dfsg/src/common/exceptions.h
Examining data/lizardfs-3.12.0+dfsg/src/common/exit_status.h
Examining data/lizardfs-3.12.0+dfsg/src/common/flat_map.h
Examining data/lizardfs-3.12.0+dfsg/src/common/flat_map_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/flat_set.h
Examining data/lizardfs-3.12.0+dfsg/src/common/flat_set_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/galois_coeff.h
Examining data/lizardfs-3.12.0+dfsg/src/common/galois_field.h
Examining data/lizardfs-3.12.0+dfsg/src/common/galois_field_encode.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/galois_field_isal.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/generic_lru_cache.h
Examining data/lizardfs-3.12.0+dfsg/src/common/goal.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/goal.h
Examining data/lizardfs-3.12.0+dfsg/src/common/goal_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/hashfn.h
Examining data/lizardfs-3.12.0+dfsg/src/common/hashfn_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/human_readable_format.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/human_readable_format.h
Examining data/lizardfs-3.12.0+dfsg/src/common/human_readable_format_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/id_pool.h
Examining data/lizardfs-3.12.0+dfsg/src/common/id_pool_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/integer_sequence.h
Examining data/lizardfs-3.12.0+dfsg/src/common/integer_sequence_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/intrusive_list.h
Examining data/lizardfs-3.12.0+dfsg/src/common/intrusive_list_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/io_limit_group.h
Examining data/lizardfs-3.12.0+dfsg/src/common/io_limiting.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/io_limiting.h
Examining data/lizardfs-3.12.0+dfsg/src/common/io_limits_config_loader.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/io_limits_config_loader.h
Examining data/lizardfs-3.12.0+dfsg/src/common/io_limits_config_loader_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/io_limits_database.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/io_limits_database.h
Examining data/lizardfs-3.12.0+dfsg/src/common/io_limits_database_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/job_info.h
Examining data/lizardfs-3.12.0+dfsg/src/common/judy_map.h
Examining data/lizardfs-3.12.0+dfsg/src/common/judy_map_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/lambda_guard.h
Examining data/lizardfs-3.12.0+dfsg/src/common/lambda_guard_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/legacy_acl.h
Examining data/lizardfs-3.12.0+dfsg/src/common/linear_assignment_optimizer.h
Examining data/lizardfs-3.12.0+dfsg/src/common/linear_assignment_optimizer_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/lizardfs_error_codes.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/lizardfs_error_codes.h
Examining data/lizardfs-3.12.0+dfsg/src/common/lizardfs_statistics.h
Examining data/lizardfs-3.12.0+dfsg/src/common/lizardfs_version.h
Examining data/lizardfs-3.12.0+dfsg/src/common/lizardfs_version_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/lockfile.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/lockfile.h
Examining data/lizardfs-3.12.0+dfsg/src/common/loop_watchdog.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/loop_watchdog.h
Examining data/lizardfs-3.12.0+dfsg/src/common/lru_cache.h
Examining data/lizardfs-3.12.0+dfsg/src/common/lru_cache_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/main.h
Examining data/lizardfs-3.12.0+dfsg/src/common/main_options.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/massert.h
Examining data/lizardfs-3.12.0+dfsg/src/common/md5.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/md5.h
Examining data/lizardfs-3.12.0+dfsg/src/common/media_label.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/media_label.h
Examining data/lizardfs-3.12.0+dfsg/src/common/media_label_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/message_receive_buffer.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/message_receive_buffer.h
Examining data/lizardfs-3.12.0+dfsg/src/common/metadata.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/metadata.h
Examining data/lizardfs-3.12.0+dfsg/src/common/metadataserver_list_entry.h
Examining data/lizardfs-3.12.0+dfsg/src/common/mfserr.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/mfserr.h
Examining data/lizardfs-3.12.0+dfsg/src/common/moosefs_string.h
Examining data/lizardfs-3.12.0+dfsg/src/common/moosefs_string_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/moosefs_vector.h
Examining data/lizardfs-3.12.0+dfsg/src/common/moosefs_vector_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/multi_buffer_writer.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/multi_buffer_writer.h
Examining data/lizardfs-3.12.0+dfsg/src/common/network_address.h
Examining data/lizardfs-3.12.0+dfsg/src/common/network_address_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/output_packet.h
Examining data/lizardfs-3.12.0+dfsg/src/common/parser.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/parser.h
Examining data/lizardfs-3.12.0+dfsg/src/common/pcqueue.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/pcqueue.h
Examining data/lizardfs-3.12.0+dfsg/src/common/platform.h
Examining data/lizardfs-3.12.0+dfsg/src/common/portable_endian.h
Examining data/lizardfs-3.12.0+dfsg/src/common/random.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/random.h
Examining data/lizardfs-3.12.0+dfsg/src/common/read_operation_executor.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/read_operation_executor.h
Examining data/lizardfs-3.12.0+dfsg/src/common/read_plan.h
Examining data/lizardfs-3.12.0+dfsg/src/common/read_plan_executor.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/read_plan_executor.h
Examining data/lizardfs-3.12.0+dfsg/src/common/reed_solomon.h
Examining data/lizardfs-3.12.0+dfsg/src/common/reed_solomon_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/richacl.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/richacl.h
Examining data/lizardfs-3.12.0+dfsg/src/common/richacl_compat.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/richacl_converter.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/richacl_converter.h
Examining data/lizardfs-3.12.0+dfsg/src/common/richacl_posix_convert.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/richacl_string.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/richacl_string_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/ring_buffer.h
Examining data/lizardfs-3.12.0+dfsg/src/common/ring_buffer_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/rotate_files.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/rotate_files.h
Examining data/lizardfs-3.12.0+dfsg/src/common/serializable_range.h
Examining data/lizardfs-3.12.0+dfsg/src/common/serializable_range_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/serialization.h
Examining data/lizardfs-3.12.0+dfsg/src/common/serialization_macros.h
Examining data/lizardfs-3.12.0+dfsg/src/common/serialization_macros_generated.h
Examining data/lizardfs-3.12.0+dfsg/src/common/serialization_macros_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/serialization_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/serialized_goal.h
Examining data/lizardfs-3.12.0+dfsg/src/common/server_connection.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/server_connection.h
Examining data/lizardfs-3.12.0+dfsg/src/common/server_connection_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/setup.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/setup.h
Examining data/lizardfs-3.12.0+dfsg/src/common/shared_mutex.h
Examining data/lizardfs-3.12.0+dfsg/src/common/shared_mutex_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/slice_read_plan.h
Examining data/lizardfs-3.12.0+dfsg/src/common/slice_read_planner.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/slice_read_planner.h
Examining data/lizardfs-3.12.0+dfsg/src/common/slice_traits.h
Examining data/lizardfs-3.12.0+dfsg/src/common/small_vector.h
Examining data/lizardfs-3.12.0+dfsg/src/common/small_vector_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/sockets.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/sockets.h
Examining data/lizardfs-3.12.0+dfsg/src/common/special_inode_defs.h
Examining data/lizardfs-3.12.0+dfsg/src/common/syslog_defs.h
Examining data/lizardfs-3.12.0+dfsg/src/common/tape_copies.h
Examining data/lizardfs-3.12.0+dfsg/src/common/tape_copy_location_info.h
Examining data/lizardfs-3.12.0+dfsg/src/common/tape_copy_state.h
Examining data/lizardfs-3.12.0+dfsg/src/common/tape_key.h
Examining data/lizardfs-3.12.0+dfsg/src/common/tapeserver_list_entry.h
Examining data/lizardfs-3.12.0+dfsg/src/common/time_utils.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/time_utils.h
Examining data/lizardfs-3.12.0+dfsg/src/common/time_utils_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/token_bucket.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/token_bucket.h
Examining data/lizardfs-3.12.0+dfsg/src/common/token_bucket_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/unique_queue.h
Examining data/lizardfs-3.12.0+dfsg/src/common/vector_range.h
Examining data/lizardfs-3.12.0+dfsg/src/common/vector_range_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/write_executor.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/write_executor.h
Examining data/lizardfs-3.12.0+dfsg/src/common/xor_read_plan.h
Examining data/lizardfs-3.12.0+dfsg/src/common/xor_read_plan_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/common/slogger.h
Examining data/lizardfs-3.12.0+dfsg/src/common/slogger.cc
Examining data/lizardfs-3.12.0+dfsg/src/data/liblizardfs-client-example.c
Examining data/lizardfs-3.12.0+dfsg/src/devtools/Empty.cc
Examining data/lizardfs-3.12.0+dfsg/src/devtools/TracePrinter.h
Examining data/lizardfs-3.12.0+dfsg/src/devtools/configuration.h
Examining data/lizardfs-3.12.0+dfsg/src/devtools/mycrc32/mycrc32.cc
Examining data/lizardfs-3.12.0+dfsg/src/devtools/request_log.h
Examining data/lizardfs-3.12.0+dfsg/src/main/main.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/acl_storage.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/acl_storage.h
Examining data/lizardfs-3.12.0+dfsg/src/master/acl_storage_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/changelog.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/changelog.h
Examining data/lizardfs-3.12.0+dfsg/src/master/chartsdata.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/chartsdata.h
Examining data/lizardfs-3.12.0+dfsg/src/master/checksum.h
Examining data/lizardfs-3.12.0+dfsg/src/master/chunk_goal_counters.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/chunk_goal_counters.h
Examining data/lizardfs-3.12.0+dfsg/src/master/chunk_goal_counters_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/chunks.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/chunks.h
Examining data/lizardfs-3.12.0+dfsg/src/master/chunkserver_db.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/chunkserver_db.h
Examining data/lizardfs-3.12.0+dfsg/src/master/datacachemgr.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/datacachemgr.h
Examining data/lizardfs-3.12.0+dfsg/src/master/exports.h
Examining data/lizardfs-3.12.0+dfsg/src/master/filesystem.h
Examining data/lizardfs-3.12.0+dfsg/src/master/filesystem_checksum.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/filesystem_checksum.h
Examining data/lizardfs-3.12.0+dfsg/src/master/filesystem_checksum_background_updater.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/filesystem_checksum_background_updater.h
Examining data/lizardfs-3.12.0+dfsg/src/master/filesystem_checksum_updater.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/filesystem_checksum_updater.h
Examining data/lizardfs-3.12.0+dfsg/src/master/filesystem_dump.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/filesystem_freenode.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/filesystem_freenode.h
Examining data/lizardfs-3.12.0+dfsg/src/master/filesystem_metadata.h
Examining data/lizardfs-3.12.0+dfsg/src/master/filesystem_node.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/filesystem_node.h
Examining data/lizardfs-3.12.0+dfsg/src/master/filesystem_node_types.h
Examining data/lizardfs-3.12.0+dfsg/src/master/filesystem_operations.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/filesystem_operations.h
Examining data/lizardfs-3.12.0+dfsg/src/master/filesystem_periodic.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/filesystem_periodic.h
Examining data/lizardfs-3.12.0+dfsg/src/master/filesystem_quota.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/filesystem_quota.h
Examining data/lizardfs-3.12.0+dfsg/src/master/filesystem_snapshot.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/filesystem_snapshot.h
Examining data/lizardfs-3.12.0+dfsg/src/master/filesystem_store.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/filesystem_store.h
Examining data/lizardfs-3.12.0+dfsg/src/master/filesystem_store_acl.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/filesystem_store_acl.h
Examining data/lizardfs-3.12.0+dfsg/src/master/filesystem_xattr.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/filesystem_xattr.h
Examining data/lizardfs-3.12.0+dfsg/src/master/flocks_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/fs_context.h
Examining data/lizardfs-3.12.0+dfsg/src/master/get_servers_for_new_chunk.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/get_servers_for_new_chunk.h
Examining data/lizardfs-3.12.0+dfsg/src/master/get_servers_for_new_chunk_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/goal_cache.h
Parsing failed to find end of parameter list; semicolon terminated it in (c1.begin(), c1.end(), c2.begin(),
				[](const GoalCounter &g1, const GoalCounter &g2){
			return g1.goal == g2.goal;
		});
	}
};

typedef GenericLruCache<ChunkGoalCounters, Goal, 0x10000, CountersHa
Examining data/lizardfs-3.12.0+dfsg/src/master/goal_config_loader.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/goal_config_loader.h
Examining data/lizardfs-3.12.0+dfsg/src/master/goal_config_loader_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/hstorage_init.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/hstorage_init.h
Examining data/lizardfs-3.12.0+dfsg/src/master/hstring.h
Examining data/lizardfs-3.12.0+dfsg/src/master/hstring_bdbstorage.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/hstring_bdbstorage.h
Examining data/lizardfs-3.12.0+dfsg/src/master/hstring_memstorage.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/hstring_memstorage.h
Examining data/lizardfs-3.12.0+dfsg/src/master/hstring_storage.h
Examining data/lizardfs-3.12.0+dfsg/src/master/hstring_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/id_pool_detainer.h
Examining data/lizardfs-3.12.0+dfsg/src/master/id_pool_detainer_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/init.h
Examining data/lizardfs-3.12.0+dfsg/src/master/itree.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/itree.h
Examining data/lizardfs-3.12.0+dfsg/src/master/locks.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/locks.h
Examining data/lizardfs-3.12.0+dfsg/src/master/locks_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/masterconn.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/masterconn.h
Examining data/lizardfs-3.12.0+dfsg/src/master/matoclserv.h
Examining data/lizardfs-3.12.0+dfsg/src/master/matocsserv.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/matocsserv.h
Examining data/lizardfs-3.12.0+dfsg/src/master/matomlserv.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/matomlserv.h
Examining data/lizardfs-3.12.0+dfsg/src/master/matotsserv.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/matotsserv.h
Examining data/lizardfs-3.12.0+dfsg/src/master/metadata_dumper.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/metadata_dumper.h
Examining data/lizardfs-3.12.0+dfsg/src/master/personality.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/personality.h
Examining data/lizardfs-3.12.0+dfsg/src/master/quota_database.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/quota_database.h
Examining data/lizardfs-3.12.0+dfsg/src/master/quota_database_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/recursive_remove_task.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/recursive_remove_task.h
Examining data/lizardfs-3.12.0+dfsg/src/master/restore.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/restore.h
Examining data/lizardfs-3.12.0+dfsg/src/master/setgoal_task.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/setgoal_task.h
Examining data/lizardfs-3.12.0+dfsg/src/master/settrashtime_task.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/settrashtime_task.h
Examining data/lizardfs-3.12.0+dfsg/src/master/snapshot_task.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/snapshot_task.h
Examining data/lizardfs-3.12.0+dfsg/src/master/task_manager.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/task_manager.h
Examining data/lizardfs-3.12.0+dfsg/src/master/topology.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/topology.h
Examining data/lizardfs-3.12.0+dfsg/src/master/filesystem.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/matoclserv.cc
Examining data/lizardfs-3.12.0+dfsg/src/master/exports.cc
Examining data/lizardfs-3.12.0+dfsg/src/metadump/mfsmetadump.cc
Examining data/lizardfs-3.12.0+dfsg/src/metalogger/init.h
Examining data/lizardfs-3.12.0+dfsg/src/metarestore/main.cc
Examining data/lizardfs-3.12.0+dfsg/src/metarestore/merger.cc
Examining data/lizardfs-3.12.0+dfsg/src/metarestore/merger.h
Examining data/lizardfs-3.12.0+dfsg/src/mount/acl_cache.h
Examining data/lizardfs-3.12.0+dfsg/src/mount/chunk_locator.cc
Examining data/lizardfs-3.12.0+dfsg/src/mount/chunk_locator.h
Examining data/lizardfs-3.12.0+dfsg/src/mount/chunk_reader.cc
Examining data/lizardfs-3.12.0+dfsg/src/mount/chunk_reader.h
Examining data/lizardfs-3.12.0+dfsg/src/mount/chunk_writer.cc
Examining data/lizardfs-3.12.0+dfsg/src/mount/chunk_writer.h
Examining data/lizardfs-3.12.0+dfsg/src/mount/client/client.cc
Examining data/lizardfs-3.12.0+dfsg/src/mount/client/client.h
Examining data/lizardfs-3.12.0+dfsg/src/mount/client/client_error_code.cc
Examining data/lizardfs-3.12.0+dfsg/src/mount/client/client_error_code.h
Examining data/lizardfs-3.12.0+dfsg/src/mount/client/iovec_traits.h
Examining data/lizardfs-3.12.0+dfsg/src/mount/client/lizard_client_c_linkage.cc
Examining data/lizardfs-3.12.0+dfsg/src/mount/client/lizard_client_c_linkage.h
Examining data/lizardfs-3.12.0+dfsg/src/mount/client/lizardfs_c_api.cc
Examining data/lizardfs-3.12.0+dfsg/src/mount/client/lizardfs_c_api.h
Examining data/lizardfs-3.12.0+dfsg/src/mount/client_common.h
Examining data/lizardfs-3.12.0+dfsg/src/mount/direntry_cache.h
Examining data/lizardfs-3.12.0+dfsg/src/mount/direntry_cache_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/mount/exports.h
Examining data/lizardfs-3.12.0+dfsg/src/mount/fuse/lock_conversion.h
Examining data/lizardfs-3.12.0+dfsg/src/mount/fuse/main.cc
Examining data/lizardfs-3.12.0+dfsg/src/mount/fuse/mfs_fuse.cc
Examining data/lizardfs-3.12.0+dfsg/src/mount/fuse/mfs_fuse.h
Examining data/lizardfs-3.12.0+dfsg/src/mount/fuse/mfs_meta_fuse.cc
Examining data/lizardfs-3.12.0+dfsg/src/mount/fuse/mfs_meta_fuse.h
Examining data/lizardfs-3.12.0+dfsg/src/mount/fuse/mount_config.cc
Examining data/lizardfs-3.12.0+dfsg/src/mount/fuse/mount_config.h
Examining data/lizardfs-3.12.0+dfsg/src/mount/g_io_limiters.cc
Examining data/lizardfs-3.12.0+dfsg/src/mount/g_io_limiters.h
Examining data/lizardfs-3.12.0+dfsg/src/mount/global_chunkserver_stats.cc
Examining data/lizardfs-3.12.0+dfsg/src/mount/global_chunkserver_stats.h
Examining data/lizardfs-3.12.0+dfsg/src/mount/global_io_limiter.cc
Examining data/lizardfs-3.12.0+dfsg/src/mount/global_io_limiter.h
Examining data/lizardfs-3.12.0+dfsg/src/mount/global_io_limiter_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/mount/group_cache.h
Examining data/lizardfs-3.12.0+dfsg/src/mount/io_limit_group.cc
Examining data/lizardfs-3.12.0+dfsg/src/mount/io_limit_group.h
Examining data/lizardfs-3.12.0+dfsg/src/mount/io_limit_group_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/mount/iovec_traits_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/mount/lizard_client.cc
Examining data/lizardfs-3.12.0+dfsg/src/mount/lizard_client.h
Examining data/lizardfs-3.12.0+dfsg/src/mount/lizard_client_context.h
Examining data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.cc
Examining data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.h
Examining data/lizardfs-3.12.0+dfsg/src/mount/masterproxy.cc
Examining data/lizardfs-3.12.0+dfsg/src/mount/masterproxy.h
Examining data/lizardfs-3.12.0+dfsg/src/mount/oplog.cc
Examining data/lizardfs-3.12.0+dfsg/src/mount/oplog.h
Examining data/lizardfs-3.12.0+dfsg/src/mount/osx_acl_converter.cc
Examining data/lizardfs-3.12.0+dfsg/src/mount/osx_acl_converter.h
Examining data/lizardfs-3.12.0+dfsg/src/mount/polonaise/main.cc
Examining data/lizardfs-3.12.0+dfsg/src/mount/polonaise/options.cc
Examining data/lizardfs-3.12.0+dfsg/src/mount/polonaise/options.h
Examining data/lizardfs-3.12.0+dfsg/src/mount/polonaise/setup.cc
Examining data/lizardfs-3.12.0+dfsg/src/mount/polonaise/setup.h
Examining data/lizardfs-3.12.0+dfsg/src/mount/readahead_adviser.h
Examining data/lizardfs-3.12.0+dfsg/src/mount/readahead_adviser_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/mount/readdata.cc
Examining data/lizardfs-3.12.0+dfsg/src/mount/readdata.h
Examining data/lizardfs-3.12.0+dfsg/src/mount/readdata_cache.h
Examining data/lizardfs-3.12.0+dfsg/src/mount/special_getattr.cc
Examining data/lizardfs-3.12.0+dfsg/src/mount/special_inode.cc
Examining data/lizardfs-3.12.0+dfsg/src/mount/special_inode.h
Examining data/lizardfs-3.12.0+dfsg/src/mount/special_lookup.cc
Examining data/lizardfs-3.12.0+dfsg/src/mount/special_open.cc
Examining data/lizardfs-3.12.0+dfsg/src/mount/special_read.cc
Examining data/lizardfs-3.12.0+dfsg/src/mount/special_release.cc
Examining data/lizardfs-3.12.0+dfsg/src/mount/special_setattr.cc
Examining data/lizardfs-3.12.0+dfsg/src/mount/special_write.cc
Examining data/lizardfs-3.12.0+dfsg/src/mount/stat_defs.h
Examining data/lizardfs-3.12.0+dfsg/src/mount/stats.cc
Examining data/lizardfs-3.12.0+dfsg/src/mount/stats.h
Examining data/lizardfs-3.12.0+dfsg/src/mount/sugid_clear_mode_string.h
Examining data/lizardfs-3.12.0+dfsg/src/mount/symlinkcache.cc
Examining data/lizardfs-3.12.0+dfsg/src/mount/symlinkcache.h
Examining data/lizardfs-3.12.0+dfsg/src/mount/thread_safe_map.h
Examining data/lizardfs-3.12.0+dfsg/src/mount/tweaks.cc
Examining data/lizardfs-3.12.0+dfsg/src/mount/tweaks.h
Examining data/lizardfs-3.12.0+dfsg/src/mount/tweaks_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/mount/write_cache_block.cc
Examining data/lizardfs-3.12.0+dfsg/src/mount/write_cache_block.h
Examining data/lizardfs-3.12.0+dfsg/src/mount/writedata.cc
Examining data/lizardfs-3.12.0+dfsg/src/mount/writedata.h
Examining data/lizardfs-3.12.0+dfsg/src/nfs-ganesha/context_wrap.c
Examining data/lizardfs-3.12.0+dfsg/src/nfs-ganesha/context_wrap.h
Examining data/lizardfs-3.12.0+dfsg/src/nfs-ganesha/ds.c
Examining data/lizardfs-3.12.0+dfsg/src/nfs-ganesha/export.c
Examining data/lizardfs-3.12.0+dfsg/src/nfs-ganesha/fileinfo_cache.cc
Examining data/lizardfs-3.12.0+dfsg/src/nfs-ganesha/fileinfo_cache.h
Examining data/lizardfs-3.12.0+dfsg/src/nfs-ganesha/fileinfo_cache_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/nfs-ganesha/handle.c
Examining data/lizardfs-3.12.0+dfsg/src/nfs-ganesha/lzfs_acl.c
Examining data/lizardfs-3.12.0+dfsg/src/nfs-ganesha/lzfs_acl.cc
Examining data/lizardfs-3.12.0+dfsg/src/nfs-ganesha/lzfs_internal.c
Examining data/lizardfs-3.12.0+dfsg/src/nfs-ganesha/lzfs_internal.h
Examining data/lizardfs-3.12.0+dfsg/src/nfs-ganesha/main.c
Examining data/lizardfs-3.12.0+dfsg/src/nfs-ganesha/mds_export.c
Examining data/lizardfs-3.12.0+dfsg/src/nfs-ganesha/mds_handle.c
Examining data/lizardfs-3.12.0+dfsg/src/protocol/MFSCommunication.h
Examining data/lizardfs-3.12.0+dfsg/src/protocol/chunks_with_type.h
Examining data/lizardfs-3.12.0+dfsg/src/protocol/chunkserver_list_entry.h
Examining data/lizardfs-3.12.0+dfsg/src/protocol/cltocs.h
Examining data/lizardfs-3.12.0+dfsg/src/protocol/cltocs_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/protocol/cltoma.h
Examining data/lizardfs-3.12.0+dfsg/src/protocol/cltoma_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/protocol/cstocl.h
Examining data/lizardfs-3.12.0+dfsg/src/protocol/cstocl_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/protocol/cstocs.h
Examining data/lizardfs-3.12.0+dfsg/src/protocol/cstocs_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/protocol/cstoma.h
Examining data/lizardfs-3.12.0+dfsg/src/protocol/cstoma_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/protocol/directory_entry.h
Examining data/lizardfs-3.12.0+dfsg/src/protocol/input_packet.h
Examining data/lizardfs-3.12.0+dfsg/src/protocol/lock_info.h
Examining data/lizardfs-3.12.0+dfsg/src/protocol/matocl.h
Examining data/lizardfs-3.12.0+dfsg/src/protocol/matocl_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/protocol/matocs.h
Examining data/lizardfs-3.12.0+dfsg/src/protocol/matocs_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/protocol/matoml.h
Examining data/lizardfs-3.12.0+dfsg/src/protocol/matots.h
Examining data/lizardfs-3.12.0+dfsg/src/protocol/mltoma.h
Examining data/lizardfs-3.12.0+dfsg/src/protocol/named_inode_entry.h
Examining data/lizardfs-3.12.0+dfsg/src/protocol/packet.cc
Examining data/lizardfs-3.12.0+dfsg/src/protocol/packet.h
Examining data/lizardfs-3.12.0+dfsg/src/protocol/packet_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/protocol/quota.h
Examining data/lizardfs-3.12.0+dfsg/src/protocol/tstoma.h
Examining data/lizardfs-3.12.0+dfsg/src/tools/append_file.cc
Examining data/lizardfs-3.12.0+dfsg/src/tools/check_file.cc
Examining data/lizardfs-3.12.0+dfsg/src/tools/dir_info.cc
Examining data/lizardfs-3.12.0+dfsg/src/tools/file_info.cc
Examining data/lizardfs-3.12.0+dfsg/src/tools/file_repair.cc
Examining data/lizardfs-3.12.0+dfsg/src/tools/get_eattr.cc
Examining data/lizardfs-3.12.0+dfsg/src/tools/get_goal.cc
Examining data/lizardfs-3.12.0+dfsg/src/tools/get_trashtime.cc
Examining data/lizardfs-3.12.0+dfsg/src/tools/main.cc
Examining data/lizardfs-3.12.0+dfsg/src/tools/master_functions.cc
Examining data/lizardfs-3.12.0+dfsg/src/tools/quota_rep.cc
Examining data/lizardfs-3.12.0+dfsg/src/tools/quota_set.cc
Examining data/lizardfs-3.12.0+dfsg/src/tools/recursive_remove.cc
Examining data/lizardfs-3.12.0+dfsg/src/tools/set_eattr.cc
Examining data/lizardfs-3.12.0+dfsg/src/tools/set_goal.cc
Examining data/lizardfs-3.12.0+dfsg/src/tools/set_trashtime.cc
Examining data/lizardfs-3.12.0+dfsg/src/tools/snapshot.cc
Examining data/lizardfs-3.12.0+dfsg/src/tools/tools_commands.cc
Examining data/lizardfs-3.12.0+dfsg/src/tools/tools_commands.h
Examining data/lizardfs-3.12.0+dfsg/src/tools/tools_common_functions.cc
Examining data/lizardfs-3.12.0+dfsg/src/tools/tools_common_functions.h
Examining data/lizardfs-3.12.0+dfsg/src/unittests/TemporaryDirectory.h
Examining data/lizardfs-3.12.0+dfsg/src/unittests/chunk_type_constants.cc
Examining data/lizardfs-3.12.0+dfsg/src/unittests/chunk_type_constants.h
Examining data/lizardfs-3.12.0+dfsg/src/unittests/inout_pair.h
Examining data/lizardfs-3.12.0+dfsg/src/unittests/main.cc
Examining data/lizardfs-3.12.0+dfsg/src/unittests/mocks/chunk_connector_mock.cc
Examining data/lizardfs-3.12.0+dfsg/src/unittests/mocks/chunk_connector_mock.h
Examining data/lizardfs-3.12.0+dfsg/src/unittests/mocks/module_mock.cc
Examining data/lizardfs-3.12.0+dfsg/src/unittests/mocks/module_mock.h
Examining data/lizardfs-3.12.0+dfsg/src/unittests/mocks/module_mock_unittest.cc
Examining data/lizardfs-3.12.0+dfsg/src/unittests/packet.h
Examining data/lizardfs-3.12.0+dfsg/src/unittests/plan_tester.cc
Examining data/lizardfs-3.12.0+dfsg/src/unittests/plan_tester.h
Examining data/lizardfs-3.12.0+dfsg/src/unittests/serialization.h
Examining data/lizardfs-3.12.0+dfsg/tests/lizardfs-tests.cc
Examining data/lizardfs-3.12.0+dfsg/utils/asserts.h
Examining data/lizardfs-3.12.0+dfsg/utils/chunk_converter.cc
Examining data/lizardfs-3.12.0+dfsg/utils/chunk_operations_eio.c
Examining data/lizardfs-3.12.0+dfsg/utils/configuration.h
Examining data/lizardfs-3.12.0+dfsg/utils/crc_converter.cc
Examining data/lizardfs-3.12.0+dfsg/utils/data_generator.h
Examining data/lizardfs-3.12.0+dfsg/utils/file_generate.cc
Examining data/lizardfs-3.12.0+dfsg/utils/file_overwrite.cc
Examining data/lizardfs-3.12.0+dfsg/utils/file_validate.cc
Examining data/lizardfs-3.12.0+dfsg/utils/flockcmd.cc
Examining data/lizardfs-3.12.0+dfsg/utils/mfs_ping.cc
Examining data/lizardfs-3.12.0+dfsg/utils/mfs_pingserv.cc
Examining data/lizardfs-3.12.0+dfsg/utils/posixlockcmd.cc
Examining data/lizardfs-3.12.0+dfsg/utils/redirect_bind.c
Examining data/lizardfs-3.12.0+dfsg/utils/slow_chunk_scan.c
Examining data/lizardfs-3.12.0+dfsg/utils/wireshark/plugins/lizardfs/dict_chunktype-inl.h
Examining data/lizardfs-3.12.0+dfsg/utils/wireshark/plugins/lizardfs/dict_goal-inl.h
Examining data/lizardfs-3.12.0+dfsg/utils/wireshark/plugins/lizardfs/moduleinfo.h
Examining data/lizardfs-3.12.0+dfsg/utils/ping_pong.cc

FINAL RESULTS:

data/lizardfs-3.12.0+dfsg/src/mount/client/client.cc:251:21:  [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.
std::string Client::readlink(const Context &ctx, Inode inode) {
data/lizardfs-3.12.0+dfsg/src/mount/client/client.cc:253:21:  [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.
	std::string link = readlink(ctx, inode);
data/lizardfs-3.12.0+dfsg/src/mount/client/client.cc:260:21:  [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.
std::string Client::readlink(const Context &ctx, Inode inode, std::error_code &ec) {
data/lizardfs-3.12.0+dfsg/src/mount/client/client.h:124:14:  [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.
	std::string readlink(const Context &ctx, Inode inode);
data/lizardfs-3.12.0+dfsg/src/mount/client/client.h:125:14:  [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.
	std::string readlink(const Context &ctx, Inode inode, std::error_code &ec);
data/lizardfs-3.12.0+dfsg/src/mount/client/lizard_client_c_linkage.cc:291:24:  [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.
		link = LizardClient::readlink(ctx, ino);
data/lizardfs-3.12.0+dfsg/src/mount/client/lizardfs_c_api.cc:642:28:  [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.
	std::string link = client.readlink(context, inode, ec);
data/lizardfs-3.12.0+dfsg/src/mount/fuse/mfs_fuse.cc:320:19:  [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.
				LizardClient::readlink(get_context(req), ino).c_str());
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client.cc:1276:13:  [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.
std::string readlink(const Context &ctx, Inode ino) {
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client.h:315:13:  [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.
std::string readlink(const Context &ctx, Inode ino);
data/lizardfs-3.12.0+dfsg/src/mount/polonaise/main.cc:780:7:  [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.
	void readlink(std::string& _return, const Context& context, const Inode inode) {
data/lizardfs-3.12.0+dfsg/src/mount/polonaise/main.cc:782:27:  [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.
		_return = LizardClient::readlink(toLizardFsContext(context), toUint64(inode));
data/lizardfs-3.12.0+dfsg/utils/chunk_operations_eio.c:40:2:  [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.
	readlink(fdpath, buf, bufsize);
data/lizardfs-3.12.0+dfsg/src/admin/registered_admin_connection.cc:52:14:  [4] (misc) getpass:
  This function is obsolete and not portable. It was in SUSv2 but removed by
  POSIX.2. What it does exactly varies considerably between systems,
  particularly in where its prompt is displayed and where it gets its data
  (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations
  overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do
  exactly what you want. If you continue to use it, or write your own, be
  sure to zero the password as soon as possible to avoid leaving the
  cleartext password visible in the process' address space.
		password = getpass("Admin password: ");
data/lizardfs-3.12.0+dfsg/src/chunkserver/iostat.h:108:8:  [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.
			i = sscanf(line, "%u %u %s %lu %lu %lu %lu %lu %lu %lu %u %u %u %u",
data/lizardfs-3.12.0+dfsg/src/common/cwrap.cc:80:12:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	int err = access(path.c_str(), F_OK);
data/lizardfs-3.12.0+dfsg/src/common/slogger.cc:115:16:  [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 written = vsnprintf(buf, 1023, format, ap2);
data/lizardfs-3.12.0+dfsg/src/common/slogger.cc:147:12:  [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 len = vsnprintf(buffer, 1023, format, ap);
data/lizardfs-3.12.0+dfsg/src/common/slogger.cc:166:12:  [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 len = vsnprintf(buffer, 1023, format, ap);
data/lizardfs-3.12.0+dfsg/src/main/main.cc:517: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.
	bool notExisted((::access(name_.c_str(), F_OK) != 0) && (errno == ENOENT));
data/lizardfs-3.12.0+dfsg/src/main/main.cc:547:4:  [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,STR(APPNAME) " pid: %ld\n",(long)ownerpid);
data/lizardfs-3.12.0+dfsg/src/main/main.cc:656: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(stderr, STR(APPNAME) " is not running\n");
data/lizardfs-3.12.0+dfsg/src/master/filesystem.cc:269: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(defaultGoalConfigFile, F_OK) == 0) {
data/lizardfs-3.12.0+dfsg/src/master/filesystem_dump.cc:81:2:  [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("%c|i:%10" PRIu32 "|#:%" PRIu8 "|e:%1" PRIX16 "|m:%04" PRIo16 "|u:%10" PRIu32
data/lizardfs-3.12.0+dfsg/src/master/filesystem_dump.cc:97: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("%016" PRIX64, node_file->chunks[i]);
data/lizardfs-3.12.0+dfsg/src/master/filesystem_dump.cc:111:4:  [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("%" PRIu32, sessionid);
data/lizardfs-3.12.0+dfsg/src/master/filesystem_operations.cc:84:16:  [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.
	entryLength = vsnprintf(entry + tsLength, kMaxEntrySize, format, ap);
data/lizardfs-3.12.0+dfsg/src/master/filesystem_store.cc:736:8:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			l = snprintf((char *)artname, 40, "lost_node_%" PRIu32, p->id);
data/lizardfs-3.12.0+dfsg/src/master/filesystem_store.cc:738:8:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			l = snprintf((char *)artname, 40, "lost_node_%" PRIu32 ".%" PRIu32, p->id,
data/lizardfs-3.12.0+dfsg/src/master/goal_config_loader.cc:119:20:  [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.
	int parsed = std::sscanf(token.c_str(), pattern, &k, &m);
data/lizardfs-3.12.0+dfsg/src/master/matocsserv.cc:585:2:  [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(optr,l,"%" PRIu8 ".%" PRIu8 ".%" PRIu8 ".%" PRIu8,pt[0],pt[1],pt[2],pt[3]);
data/lizardfs-3.12.0+dfsg/src/master/matomlserv.cc:290:2:  [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(optr,l,"%" PRIu8 ".%" PRIu8 ".%" PRIu8 ".%" PRIu8,pt[0],pt[1],pt[2],pt[3]);
data/lizardfs-3.12.0+dfsg/src/master/metadata_dumper.cc:109: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.
	if (useMetarestore_ && dumpingSucceeded_ && (access(changelogFilename.c_str(), F_OK) == -1)) {
data/lizardfs-3.12.0+dfsg/src/master/metadata_dumper.cc:163:5:  [4] (shell) execv:
  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.
				execv(metarestorePath_.c_str(), metarestoreArgs);
data/lizardfs-3.12.0+dfsg/src/metadump/mfsmetadump.cc:207:2:  [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("%c|i:%10" PRIu32 "|#:%" PRIu8 "|e:%1" PRIX16 "|m:%04" PRIo16 "|u:%10" PRIu32 "|g:%10" PRIu32 "|a:%10" PRIu32 ",m:%10" PRIu32 ",c:%10" PRIu32 "|t:%10" PRIu32,c,nodeid,goal,(uint16_t)(mode>>12),(uint16_t)(mode&0xFFF),uid,gid,atimestamp,mtimestamp,ctimestamp,trashtime);
data/lizardfs-3.12.0+dfsg/src/metadump/mfsmetadump.cc:238:6:  [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("%016" PRIX64,chunkid);
data/lizardfs-3.12.0+dfsg/src/metadump/mfsmetadump.cc:255: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("%016" PRIX64,chunkid);
data/lizardfs-3.12.0+dfsg/src/metadump/mfsmetadump.cc:267:4:  [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("%" PRIu32,sessionid);
data/lizardfs-3.12.0+dfsg/src/metarestore/main.cc:314:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			if (access(metadata_candidate.c_str(), F_OK) != 0) {
data/lizardfs-3.12.0+dfsg/src/mount/client/lizardfs_c_api.cc:922:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			std::strcpy(buf_string, part.label.c_str());
data/lizardfs-3.12.0+dfsg/src/mount/client/lizardfs_c_api.cc:973:20:  [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).
		servers->label = strcpy(str_buf, entry.label.c_str());
data/lizardfs-3.12.0+dfsg/src/mount/fuse/main.cc:137:28:  [4] (misc) getpass:
  This function is obsolete and not portable. It was in SUSv2 but removed by
  POSIX.2. What it does exactly varies considerably between systems,
  particularly in where its prompt is displayed and where it gets its data
  (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations
  overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do
  exactly what you want. If you continue to use it, or write your own, be
  sure to zero the password as soon as possible to avoid leaving the
  cleartext password visible in the process' address space.
		gMountOptions.password = getpass("MFS Password:");
data/lizardfs-3.12.0+dfsg/src/mount/fuse/mfs_fuse.cc:221: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.
		LizardClient::access(get_context(req), ino, mask);
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client.cc:570:6:  [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 Context &ctx, Inode ino, int mask) {
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client.h:371:6:  [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 Context &ctx, Inode ino, int mask);
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.cc:441:2:  [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(srcstrip, 17, "%" PRIu32 ".%" PRIu32 ".%" PRIu32 ".%" PRIu32,
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.cc:455:2:  [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(masterstrip, 17, "%" PRIu32 ".%" PRIu32 ".%" PRIu32 ".%" PRIu32,
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.cc:773: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,"%" PRIu32,rootgid);
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.cc:787:6:  [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,"%" PRIu32,mapallgid);
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.cc:791:4:  [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, " ; root mapped to %" PRIu32 ":%" PRIu32, rootuid, rootgid);
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.cc:792:4:  [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, " ; users mapped to %" PRIu32 ":%" PRIu32, mapalluid, mapallgid);
data/lizardfs-3.12.0+dfsg/src/mount/oplog.cc:117:6:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	r = vsnprintf(buff + leng, LINELENG - leng, format, ap);
data/lizardfs-3.12.0+dfsg/src/mount/oplog.cc:145:6:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	r = vsnprintf(buff + leng, LINELENG - leng, format, ap);
data/lizardfs-3.12.0+dfsg/src/mount/oplog.h:28:57:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define __printflike(fmt,va1) __attribute__((__format__(printf, fmt, va1)))
data/lizardfs-3.12.0+dfsg/src/mount/polonaise/main.cc:588: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.
	void access(const Context& context, const Inode inode, const int32_t mask) {
data/lizardfs-3.12.0+dfsg/src/mount/polonaise/main.cc:594: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.
		LizardClient::access(
data/lizardfs-3.12.0+dfsg/src/tools/master_functions.cc:183:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(rpath + rpath_len, "/" SPECIAL_FILE_NAME_MASTERINFO);
data/lizardfs-3.12.0+dfsg/src/tools/quota_rep.cc:83:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf("%10" PRIu32, owner_id);
data/lizardfs-3.12.0+dfsg/src/tools/tools_commands.cc:78:15:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	int status = system(command.c_str());
data/lizardfs-3.12.0+dfsg/src/tools/tools_common_functions.cc:85:3:  [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, args);
data/lizardfs-3.12.0+dfsg/src/tools/tools_common_functions.cc:146: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("%10" PRIu32, (uint32_t)number);
data/lizardfs-3.12.0+dfsg/src/tools/tools_common_functions.cc:148: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("%20" PRIu64, number);
data/lizardfs-3.12.0+dfsg/src/tools/tools_common_functions.cc:335:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		(void)strcpy(bname, *endp == '/' ? "/" : ".");
data/lizardfs-3.12.0+dfsg/src/unittests/TemporaryDirectory.h:63:10:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		boost::system::error_code ec;
data/lizardfs-3.12.0+dfsg/tests/lizardfs-tests.cc:32:16:  [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(0, system("rm -f /tmp/test_err && touch /tmp/test_err && chmod 0777 /tmp/test_err"));
data/lizardfs-3.12.0+dfsg/tests/lizardfs-tests.cc:39: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(command.c_str());
data/lizardfs-3.12.0+dfsg/utils/chunk_operations_eio.c:55:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(always_eio_trigger, "%s_EIO", opname);
data/lizardfs-3.12.0+dfsg/utils/chunk_operations_eio.c:56:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(far_eio_trigger, "%s_far_EIO", opname);
data/lizardfs-3.12.0+dfsg/src/chunkserver/hddspacemgr.cc:3642:22:  [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.
	f->carry = (double)(random()&0x7FFFFFFF)/(double)(0x7FFFFFFF);
data/lizardfs-3.12.0+dfsg/src/devtools/configuration.h:67: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* optval = getenv(name.c_str());
data/lizardfs-3.12.0+dfsg/src/main/main.cc:821:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "o:c:p:dht:uvx?")) != -1) {
data/lizardfs-3.12.0+dfsg/src/master/chunks.cc:1399:41:  [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.
			chunkserver_version(0), distance(0), random(0) {
data/lizardfs-3.12.0+dfsg/src/master/chunks.cc:1405: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.
	uint32_t random;
data/lizardfs-3.12.0+dfsg/src/master/chunks.cc:1413: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.
			return random < other.random;
data/lizardfs-3.12.0+dfsg/src/master/chunks.cc:1413:26:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			return random < other.random;
data/lizardfs-3.12.0+dfsg/src/metarestore/main.cc:204:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "gfck:vm:o:d:abB:xih:z#?")) != -1) {
data/lizardfs-3.12.0+dfsg/src/tools/append_file.cc:123:9:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while (getopt(argc, argv, "") != -1) {
data/lizardfs-3.12.0+dfsg/src/tools/check_file.cc:127:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "nhH")) != -1) {
data/lizardfs-3.12.0+dfsg/src/tools/dir_info.cc:129:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "nhH")) != -1) {
data/lizardfs-3.12.0+dfsg/src/tools/file_info.cc:258:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "l")) != -1) {
data/lizardfs-3.12.0+dfsg/src/tools/file_repair.cc:118:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "nhHc")) != -1) {
data/lizardfs-3.12.0+dfsg/src/tools/get_eattr.cc:184:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "rnhH")) != -1) {
data/lizardfs-3.12.0+dfsg/src/tools/get_goal.cc:93:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "rnhH")) != -1) {
data/lizardfs-3.12.0+dfsg/src/tools/get_trashtime.cc:155:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "rnhH")) != -1) {
data/lizardfs-3.12.0+dfsg/src/tools/master_functions.cc:142:6:  [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(name, rpath) == NULL) {
data/lizardfs-3.12.0+dfsg/src/tools/quota_rep.cc:122:6:  [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.c_str(), rpath)) {
data/lizardfs-3.12.0+dfsg/src/tools/quota_rep.cc:231:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "nhHdu:g:a")) != -1) {
data/lizardfs-3.12.0+dfsg/src/tools/quota_set.cc:95:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "du:g:")) != -1) {
data/lizardfs-3.12.0+dfsg/src/tools/recursive_remove.cc:60:6:  [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(file_name, path_buf) == nullptr) {
data/lizardfs-3.12.0+dfsg/src/tools/recursive_remove.cc:128:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "l")) != -1) {
data/lizardfs-3.12.0+dfsg/src/tools/set_eattr.cc:139:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "rnhHf:")) != -1) {
data/lizardfs-3.12.0+dfsg/src/tools/set_goal.cc:97:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "rnhHl")) != -1) {
data/lizardfs-3.12.0+dfsg/src/tools/set_trashtime.cc:132:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "rnhHl")) != -1) {
data/lizardfs-3.12.0+dfsg/src/tools/snapshot.cc:154: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(dir, to) == NULL) {
data/lizardfs-3.12.0+dfsg/src/tools/snapshot.cc:168: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(dstname, to) == NULL) {
data/lizardfs-3.12.0+dfsg/src/tools/snapshot.cc:208:11:  [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(srcnames[i], src) == NULL) {
data/lizardfs-3.12.0+dfsg/src/tools/snapshot.cc:235:11:  [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(srcnames[i], src) == NULL) {
data/lizardfs-3.12.0+dfsg/src/tools/snapshot.cc:277:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "folis:")) != -1) {
data/lizardfs-3.12.0+dfsg/src/tools/tools_common_functions.cc:95: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.
	hrformat = getenv("MFSHRFORMAT");
data/lizardfs-3.12.0+dfsg/utils/ping_pong.cc:183:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt(argc, argv, "rwm")) != -1) {
data/lizardfs-3.12.0+dfsg/src/chunkserver/bgjobs.cc:647:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((void*)args->sourcesBuffer, (void*)sourcesBuffer, sourcesBufferSize);
data/lizardfs-3.12.0+dfsg/src/chunkserver/bgjobs.cc:664:2:  [2] (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,srcs,srccnt*18);
data/lizardfs-3.12.0+dfsg/src/chunkserver/chunk.cc:52:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[30];
data/lizardfs-3.12.0+dfsg/src/chunkserver/chunk.cc:67:2:  [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(buffer, "%016" PRIX64 "_%08" PRIX32 ".mfs", chunkid, version);
data/lizardfs-3.12.0+dfsg/src/chunkserver/chunk.cc:69: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 + 26, "liz", 3);
data/lizardfs-3.12.0+dfsg/src/chunkserver/chunk.cc:108:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[16];
data/lizardfs-3.12.0+dfsg/src/chunkserver/chunk.cc:112:3:  [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(buffer, "chunks%02X", unsigned(subfolderNumber));
data/lizardfs-3.12.0+dfsg/src/chunkserver/chunk.cc:114:3:  [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(buffer, "%02X", unsigned(subfolderNumber));
data/lizardfs-3.12.0+dfsg/src/chunkserver/chunk_signature.cc:88:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(*destination, kLizSignatureId, kSignatureIdSize);
data/lizardfs-3.12.0+dfsg/src/chunkserver/chunk_signature_unittest.cc:59:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int fd = open(chunkFileName.c_str(), O_RDONLY);
data/lizardfs-3.12.0+dfsg/src/chunkserver/chunk_signature_unittest.cc:97:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int fd = open(chunkFileName.c_str(), O_RDONLY);
data/lizardfs-3.12.0+dfsg/src/chunkserver/hddspacemgr.cc:361: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(buff,"(...)",5);
data/lizardfs-3.12.0+dfsg/src/chunkserver/hddspacemgr.cc:362: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(buff+5,f->path+(sl-250),250);
data/lizardfs-3.12.0+dfsg/src/chunkserver/hddspacemgr.cc:367:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(buff,f->path,sl);
data/lizardfs-3.12.0+dfsg/src/chunkserver/hddspacemgr.cc:1163: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(crc_data + i * sizeof(uint32_t), &emptyblockcrc, sizeof(uint32_t));
data/lizardfs-3.12.0+dfsg/src/chunkserver/hddspacemgr.cc:1224: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).
					c->fd = open(c->filename().c_str(), O_RDWR | O_TRUNC | O_CREAT, 0666);
data/lizardfs-3.12.0+dfsg/src/chunkserver/hddspacemgr.cc:1227:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
						c->fd = open(c->filename().c_str(), O_RDWR);
data/lizardfs-3.12.0+dfsg/src/chunkserver/hddspacemgr.cc:1229:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
						c->fd = open(c->filename().c_str(), O_RDONLY);
data/lizardfs-3.12.0+dfsg/src/chunkserver/hddspacemgr.cc:1473:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(crcBuff, &emptyblockcrc, sizeof(uint32_t));
data/lizardfs-3.12.0+dfsg/src/chunkserver/hddspacemgr.cc:1641: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(blockBuffer, crc_data + blocknum * sizeof(uint32_t), sizeof(uint32_t));
data/lizardfs-3.12.0+dfsg/src/chunkserver/hddspacemgr.cc:1733: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(crc_data + blockNum * sizeof(uint32_t), crcBuff, crcSize);
data/lizardfs-3.12.0+dfsg/src/chunkserver/hddspacemgr.cc:1800:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(crc_data + i * sizeof(uint32_t), &emptyblockcrc, sizeof(uint32_t));
data/lizardfs-3.12.0+dfsg/src/chunkserver/hddspacemgr.cc:1862:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(crc_data + i * sizeof(uint32_t), &emptyblockcrc, sizeof(uint32_t));
data/lizardfs-3.12.0+dfsg/src/chunkserver/hddspacemgr.cc:2176: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(mc_crc_data, moc_crc_data, mc->getCrcBlockSize());
data/lizardfs-3.12.0+dfsg/src/chunkserver/hddspacemgr.cc:2177: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(hdd_get_header_buffer() + mc->getCrcOffset(), moc_crc_data, mc->getCrcBlockSize());
data/lizardfs-3.12.0+dfsg/src/chunkserver/hddspacemgr.cc:2353: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(crc_data + block * sizeof(uint32_t), &emptyblockcrc, sizeof(uint32_t));
data/lizardfs-3.12.0+dfsg/src/chunkserver/hddspacemgr.cc:2411: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(crc_data + fullBlocks * sizeof(uint32_t), crcBuff, sizeof(uint32_t));
data/lizardfs-3.12.0+dfsg/src/chunkserver/hddspacemgr.cc:2413:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(crc_data + block * sizeof(uint32_t), &emptyblockcrc, sizeof(uint32_t));
data/lizardfs-3.12.0+dfsg/src/chunkserver/hddspacemgr.cc:2542: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(hdrbuffer + mc->getCrcOffset(), crc_data, mc->getCrcBlockSize());
data/lizardfs-3.12.0+dfsg/src/chunkserver/hddspacemgr.cc:2578: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(hdrbuffer + mc->getCrcOffset() + sizeof(uint32_t) * block, &emptyblockcrc, sizeof(uint32_t));
data/lizardfs-3.12.0+dfsg/src/chunkserver/hddspacemgr.cc:2697: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(crc_data, hdrbuffer + mc->getCrcOffset(), mc->getCrcBlockSize());
data/lizardfs-3.12.0+dfsg/src/chunkserver/hddspacemgr.cc:3526:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	lfd = open(lockfname.c_str(),O_RDWR|O_CREAT|O_TRUNC,0640);
data/lizardfs-3.12.0+dfsg/src/chunkserver/hddspacemgr.cc:3656: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).
	fd.reset(fopen(hddfname.c_str(),"r"));
data/lizardfs-3.12.0+dfsg/src/chunkserver/hddspacemgr.cc:3672:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buff[1000];
data/lizardfs-3.12.0+dfsg/src/chunkserver/iostat.h:87:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[kMaxLineLen], dev_name[kMaxNameLen];
data/lizardfs-3.12.0+dfsg/src/chunkserver/iostat.h:100:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(kDiskstats, "r")) == nullptr) {
data/lizardfs-3.12.0+dfsg/src/chunkserver/network_worker_thread.cc:188:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(outpacket->packet, packet.data(), packet.size());
data/lizardfs-3.12.0+dfsg/src/chunkserver/network_worker_thread.cc:1310: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(eptr->inputpacket.packet, eptr->hdrbuff, PacketHeader::kSize);
data/lizardfs-3.12.0+dfsg/src/chunkserver/output_buffer.cc:92:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((void*)&buffer_[bufferUnflushedDataOneAfterLastIndex_], mem, len);
data/lizardfs-3.12.0+dfsg/src/chunkserver/slice_recovery_planner.h:51:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				std::memcpy(dst, src, MFSBLOCKSIZE);
data/lizardfs-3.12.0+dfsg/src/common/cfg.cc:49:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char linebuff[1000];
data/lizardfs-3.12.0+dfsg/src/common/cfg.cc:54:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = fopen(cfgfname,"r");
data/lizardfs-3.12.0+dfsg/src/common/cfg.cc:101: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->value,linebuff+vps,vpe-vps+1);
data/lizardfs-3.12.0+dfsg/src/common/cfg.cc:109:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(tmp->name,linebuff+nps,npe-nps+1);
data/lizardfs-3.12.0+dfsg/src/common/cfg.cc:110:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(tmp->value,linebuff+vps,vpe-vps+1);
data/lizardfs-3.12.0+dfsg/src/common/charts.cc:483:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char namehdr[100];
data/lizardfs-3.12.0+dfsg/src/common/charts.cc:485:7:  [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(statsfilename,O_WRONLY | O_TRUNC | O_CREAT,0666);
data/lizardfs-3.12.0+dfsg/src/common/charts.cc:503: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(namehdr,statdefs[i].name,(s>100)?100:s);
data/lizardfs-3.12.0+dfsg/src/common/charts.cc:659:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char namehdr[101];
data/lizardfs-3.12.0+dfsg/src/common/charts.cc:662:7:  [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(statsfilename,O_RDONLY);
data/lizardfs-3.12.0+dfsg/src/common/charts.cc:684: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((void*)&j,hdr,4);        // get first 4 bytes of hdr as a 32-bit number in "natural" order
data/lizardfs-3.12.0+dfsg/src/common/charts.cc:1813: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,src,65535);
data/lizardfs-3.12.0+dfsg/src/common/charts.cc:1824: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,src,srcsize);
data/lizardfs-3.12.0+dfsg/src/common/charts.cc:1899:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[50];
data/lizardfs-3.12.0+dfsg/src/common/charts.cc:1904:3:  [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(buffer, "%" PRIu64 "", uint64_t(csv_time -(LENG-i-1) * timestamp_step));
data/lizardfs-3.12.0+dfsg/src/common/charts.cc:1908:4:  [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(buffer, "%" PRIu64 "", c1dispdata[z]);
data/lizardfs-3.12.0+dfsg/src/common/charts.cc:1913:4:  [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(buffer, "%" PRIu64 "", c2dispdata[z]);
data/lizardfs-3.12.0+dfsg/src/common/charts.cc:1918:4:  [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(buffer, "%" PRIu64 "", c3dispdata[z]);
data/lizardfs-3.12.0+dfsg/src/common/charts.cc:1976: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(buff,csv_data.c_str(),csv_data.length());
data/lizardfs-3.12.0+dfsg/src/common/charts.cc:1982: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(buff,png_1x1,sizeof(png_1x1));
data/lizardfs-3.12.0+dfsg/src/common/charts.cc:1984: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(buff,png_header,sizeof(png_header));
data/lizardfs-3.12.0+dfsg/src/common/charts.cc:1987: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(buff+sizeof(png_header),compbuff,compsize);
data/lizardfs-3.12.0+dfsg/src/common/charts.cc:1988: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(buff+sizeof(png_header)+compsize,png_tailer,sizeof(png_tailer));
data/lizardfs-3.12.0+dfsg/src/common/chunk_read_planner.h:54:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				std::memcpy(dst, src + (part * part_block_count + block) * MFSBLOCKSIZE,
data/lizardfs-3.12.0+dfsg/src/common/human_readable_format.cc:77:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char timeBuffer[32];
data/lizardfs-3.12.0+dfsg/src/common/lizardfs_error_codes.cc:24: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.
	static const char * const error_strings[LIZARDFS_ERROR_MAX + 1] = {
data/lizardfs-3.12.0+dfsg/src/common/lockfile.cc:44: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).
	fd_.reset(::open(name_.c_str(), O_CREAT | O_RDWR | (existed ? 0 : O_EXCL), 0644));
data/lizardfs-3.12.0+dfsg/src/common/md5.cc:199: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((char*)(ctx->buffer+indx),(const char*)buff,partleng);
data/lizardfs-3.12.0+dfsg/src/common/md5.cc:210:2:  [2] (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*)(ctx->buffer+indx),(const char*)(buff+i),leng-i);
data/lizardfs-3.12.0+dfsg/src/common/metadata.cc:68:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char chkbuff[20];
data/lizardfs-3.12.0+dfsg/src/common/metadata.cc:69:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char eofmark[16];
data/lizardfs-3.12.0+dfsg/src/common/metadata.cc:71:7:  [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_RDONLY);
data/lizardfs-3.12.0+dfsg/src/common/metadata.cc:94: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(eofmark,"[MFS EOF MARKER]",16);
data/lizardfs-3.12.0+dfsg/src/common/metadata.cc:97: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(eofmark,"[MFS EOF MARKER]",16);
data/lizardfs-3.12.0+dfsg/src/common/metadata.cc:124:7:  [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(), O_RDONLY);
data/lizardfs-3.12.0+dfsg/src/common/metadata.cc:149:20:  [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).
	FileDescriptor fd(open(fname.c_str(), O_RDONLY));
data/lizardfs-3.12.0+dfsg/src/common/moosefs_string.h:53: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(*destination, c_str(), length());
data/lizardfs-3.12.0+dfsg/src/common/serialization.h:267:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(*destination, value.data(), value.length());
data/lizardfs-3.12.0+dfsg/src/common/slogger.cc:112:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/lizardfs-3.12.0+dfsg/src/common/slogger.cc:144:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[1024];
data/lizardfs-3.12.0+dfsg/src/common/slogger.cc:163:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[1024];
data/lizardfs-3.12.0+dfsg/src/common/sockets.cc:164:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(afa.af_name, "dataready");
data/lizardfs-3.12.0+dfsg/src/common/sockets.cc:205:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(afa.af_name, "httpready");
data/lizardfs-3.12.0+dfsg/src/common/sockets.cc:219:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(afa.af_name, "dataready");
data/lizardfs-3.12.0+dfsg/src/common/xor_read_plan.h:44:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				std::memcpy(dst, src, MFSBLOCKSIZE);
data/lizardfs-3.12.0+dfsg/src/common/xor_read_plan.h:113:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				std::memcpy(buffer + missing_offset, buffer + op.second.buffer_offset, size);
data/lizardfs-3.12.0+dfsg/src/data/liblizardfs-client-example.c:18:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(priv, info, sizeof(*info));
data/lizardfs-3.12.0+dfsg/src/data/liblizardfs-client-example.c:33:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024] = {0};
data/lizardfs-3.12.0+dfsg/src/data/liblizardfs-client-example.c:105:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char acl_buf[256] = {};
data/lizardfs-3.12.0+dfsg/src/devtools/request_log.h:105:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		logfile.open(logFileName, std::ios_base::out | std::ios_base::binary);
data/lizardfs-3.12.0+dfsg/src/main/main.cc:334:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char pwdgrpbuff[16384];
data/lizardfs-3.12.0+dfsg/src/main/main.cc:518: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_.reset(open(name_.c_str(), O_WRONLY | O_CREAT, 0666));
data/lizardfs-3.12.0+dfsg/src/main/main.cc:723: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).
	sassert(open("/dev/null", O_RDWR, 0)==STDIN_FILENO);
data/lizardfs-3.12.0+dfsg/src/main/main.cc:743: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).
	sassert(open("/dev/null", O_RDWR, 0)==STDERR_FILENO);
data/lizardfs-3.12.0+dfsg/src/main/main.cc:747:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char pathbuff[1024];
data/lizardfs-3.12.0+dfsg/src/master/changelog.cc:62: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).
		fd = fopen(gChangelogFilename.c_str(), "a");
data/lizardfs-3.12.0+dfsg/src/master/chartsdata.cc:213: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("/proc/self/statm",O_RDONLY);
data/lizardfs-3.12.0+dfsg/src/master/chartsdata.cc:214:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char statbuff[1000];
data/lizardfs-3.12.0+dfsg/src/master/exports.cc:125: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(buff,e->path,e->pleng);
data/lizardfs-3.12.0+dfsg/src/master/exports.cc:574:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char pwgrbuff[16384];
data/lizardfs-3.12.0+dfsg/src/master/exports.cc:912:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy((uint8_t*)(arec->path),path,pleng);
data/lizardfs-3.12.0+dfsg/src/master/exports.cc:937: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((uint8_t*)(arec->path),path,pleng);
data/lizardfs-3.12.0+dfsg/src/master/exports.cc:948:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char linebuff[10000];
data/lizardfs-3.12.0+dfsg/src/master/exports.cc:952:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = fopen(ExportsFileName,"r");
data/lizardfs-3.12.0+dfsg/src/master/filesystem.cc:161:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = fopen(fname,"w");
data/lizardfs-3.12.0+dfsg/src/master/filesystem_node.cc:629: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(path + size, name.c_str(), name.length());
data/lizardfs-3.12.0+dfsg/src/master/filesystem_node.cc:631: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(path, name.c_str() + (name.length() - size), size);
data/lizardfs-3.12.0+dfsg/src/master/filesystem_node.cc:644:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(path + size, name.c_str(), name.length());
data/lizardfs-3.12.0+dfsg/src/master/filesystem_node.cc:646:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(path, name.c_str() + (name.length() - size), size);
data/lizardfs-3.12.0+dfsg/src/master/filesystem_node.cc:710:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(dbuff, "(...)", 5);
data/lizardfs-3.12.0+dfsg/src/master/filesystem_node.cc:805: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(dbuff, attr.data(), attr.size());
data/lizardfs-3.12.0+dfsg/src/master/filesystem_node.cc:819:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			::memcpy(dbuff, attr.data(), attr.size());
data/lizardfs-3.12.0+dfsg/src/master/filesystem_node.cc:835: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(dbuff, attr.data(), attr.size());
data/lizardfs-3.12.0+dfsg/src/master/filesystem_node.cc:840: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.
					::memcpy(dbuff, attr.data(), attr.size());
data/lizardfs-3.12.0+dfsg/src/master/filesystem_node.cc:847: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(dbuff, attr.data(), attr.size());
data/lizardfs-3.12.0+dfsg/src/master/filesystem_node.cc:864: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(dbuff, name.c_str(), name.length());
data/lizardfs-3.12.0+dfsg/src/master/filesystem_node.cc:869:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			::memcpy(dbuff, attr.data(), attr.size());
data/lizardfs-3.12.0+dfsg/src/master/filesystem_operations.cc:75: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.
	static char entry[kMaxLogLineSize];
data/lizardfs-3.12.0+dfsg/src/master/filesystem_operations.cc:2523:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(xabuff, kAclXattrs, sizeof(kAclXattrs));
data/lizardfs-3.12.0+dfsg/src/master/filesystem_operations.cc:2627: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.
			static char acl_type[3] = {'a', 'd', 'r'};
data/lizardfs-3.12.0+dfsg/src/master/filesystem_operations.cc:2776: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(buff, "(not directory)", 15);
data/lizardfs-3.12.0+dfsg/src/master/filesystem_operations.cc:2793:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(buff, "(not found)", 11);
data/lizardfs-3.12.0+dfsg/src/master/filesystem_quota.cc:214: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.
	static const char rigor_name[3] = {'S', 'H', 'U'};
data/lizardfs-3.12.0+dfsg/src/master/filesystem_quota.cc:215: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.
	static const char resource_name[2] = {'I', 'S'};
data/lizardfs-3.12.0+dfsg/src/master/filesystem_quota.cc:216: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.
	static const char owner_name[3] = {'U', 'G', 'I'};
data/lizardfs-3.12.0+dfsg/src/master/filesystem_store.cc:260:2:  [2] (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, name.c_str(), name.length());
data/lizardfs-3.12.0+dfsg/src/master/filesystem_store.cc:918:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(hdr, label, 8);
data/lizardfs-3.12.0+dfsg/src/master/filesystem_store.cc:991: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(hdr, "[MFS EOF MARKER]", 16);
data/lizardfs-3.12.0+dfsg/src/master/filesystem_store.cc:1270:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	cstream_t fd(fopen(fname.c_str(), "w"));
data/lizardfs-3.12.0+dfsg/src/master/filesystem_store.cc:1439:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	cstream_t fd(fopen(fname.c_str(), "r"));
data/lizardfs-3.12.0+dfsg/src/master/filesystem_store.cc:1568:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		cstream_t fd(fopen(kMetadataTmpFilename, "w"));
data/lizardfs-3.12.0+dfsg/src/master/filesystem_xattr.cc:156: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(xa->attrvalue, attrvalue, avleng);
data/lizardfs-3.12.0+dfsg/src/master/filesystem_xattr.cc:179:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(xa->attrname, attrname, anleng);
data/lizardfs-3.12.0+dfsg/src/master/filesystem_xattr.cc:184: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(xa->attrvalue, attrvalue, avleng);
data/lizardfs-3.12.0+dfsg/src/master/filesystem_xattr.cc:269:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(xabuff + l, xa->attrname, xa->anleng);
data/lizardfs-3.12.0+dfsg/src/master/hstring_bdbstorage.cc:36: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).
	err = dbp_->open(dbp_, NULL, path.c_str(), NULL, DB_HEAP, DB_CREATE | DB_TRUNCATE, 0);
data/lizardfs-3.12.0+dfsg/src/master/hstring_memstorage.cc:53:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(copied, str.c_str(), size);
data/lizardfs-3.12.0+dfsg/src/master/masterconn.cc:175:7:  [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(kChangelogMlFilename, O_RDWR);
data/lizardfs-3.12.0+dfsg/src/master/masterconn.cc:185:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(buff+32768,buff,32);
data/lizardfs-3.12.0+dfsg/src/master/masterconn.cc:266:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(outpacket->packet, data.data(), data.size());
data/lizardfs-3.12.0+dfsg/src/master/masterconn.cc:615: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).
		eptr->metafd = open(metadataTmpFilename.c_str(), O_WRONLY | O_TRUNC | O_CREAT, 0666);
data/lizardfs-3.12.0+dfsg/src/master/masterconn.cc:617: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).
		eptr->metafd = open(sessionsTmpFilename.c_str(), O_WRONLY | O_TRUNC | O_CREAT, 0666);
data/lizardfs-3.12.0+dfsg/src/master/masterconn.cc:620: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).
		eptr->metafd = open(changelogTmpFilename.c_str(), O_WRONLY | O_TRUNC | O_CREAT, 0666);
data/lizardfs-3.12.0+dfsg/src/master/matoclserv.cc:605:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = fopen(kSessionsTmpFilename, "w");
data/lizardfs-3.12.0+dfsg/src/master/matoclserv.cc:610:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(fsesrecord,MFSSIGNATURE "S \001\006\004",8);
data/lizardfs-3.12.0+dfsg/src/master/matoclserv.cc:680:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = fopen(kSessionsFilename, "r");
data/lizardfs-3.12.0+dfsg/src/master/matoclserv.cc:925:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(outpacket->packet, buffer.data(), buffer.size());
data/lizardfs-3.12.0+dfsg/src/master/matoclserv.cc:1302: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,eaptr->sesdata->info,ileng);
data/lizardfs-3.12.0+dfsg/src/master/matoclserv.cc:1431: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(ptr,report.c_str(),report.size());
data/lizardfs-3.12.0+dfsg/src/master/matoclserv.cc:1674:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(wptr,eptr->passwordrnd,32);
data/lizardfs-3.12.0+dfsg/src/master/matoclserv.cc:1740: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(eptr->sesdata->info,info,ileng);
data/lizardfs-3.12.0+dfsg/src/master/matoclserv.cc:1824: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(eptr->sesdata->info,info,ileng);
data/lizardfs-3.12.0+dfsg/src/master/matoclserv.cc:2094: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(ptr, attr.data(), attr.size());
data/lizardfs-3.12.0+dfsg/src/master/matoclserv.cc:2124: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(ptr, attr.data(), attr.size());
data/lizardfs-3.12.0+dfsg/src/master/matoclserv.cc:2172: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(ptr, attr.data(), attr.size());
data/lizardfs-3.12.0+dfsg/src/master/matoclserv.cc:2321:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(ptr, path.c_str(), path.length());
data/lizardfs-3.12.0+dfsg/src/master/matoclserv.cc:2386: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(ptr, attr.data(), attr.size());
data/lizardfs-3.12.0+dfsg/src/master/matoclserv.cc:2641: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(ptr, attr.data(), attr.size());
data/lizardfs-3.12.0+dfsg/src/master/matoclserv.cc:2689: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(ptr, attr.data(), attr.size());
data/lizardfs-3.12.0+dfsg/src/master/matoclserv.cc:2805: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(ptr, attr.data(), attr.size());
data/lizardfs-3.12.0+dfsg/src/master/matoclserv.cc:3470: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,attrvalue,avleng);
data/lizardfs-3.12.0+dfsg/src/master/matoclserv.cc:3716: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(ptr, attr.data(), attr.size());
data/lizardfs-3.12.0+dfsg/src/master/matoclserv.cc:3742:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(ptr, path.c_str(), path.length());
data/lizardfs-3.12.0+dfsg/src/master/matoclserv.cc:4361:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char hostname[257];
data/lizardfs-3.12.0+dfsg/src/master/matomlserv.cc:215:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(oce->data,logstr,logstrsize);
data/lizardfs-3.12.0+dfsg/src/master/matomlserv.cc:321:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(outpacket->packet, data.data(), data.size());
data/lizardfs-3.12.0+dfsg/src/master/matomlserv.cc:355:6:  [2] (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,oce->data,oce->length);
data/lizardfs-3.12.0+dfsg/src/master/matomlserv.cc:481: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).
		eptr->metafd = open(kMetadataFilename, O_RDONLY);
data/lizardfs-3.12.0+dfsg/src/master/matomlserv.cc:482:20:  [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).
		eptr->chain1fd = open(kChangelogFilename, O_RDONLY);
data/lizardfs-3.12.0+dfsg/src/master/matomlserv.cc:483:20:  [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).
		eptr->chain2fd = open((std::string(kChangelogFilename) + ".1").c_str(), O_RDONLY);
data/lizardfs-3.12.0+dfsg/src/master/matomlserv.cc:485: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).
		eptr->metafd = open(kSessionsFilename, O_RDONLY);
data/lizardfs-3.12.0+dfsg/src/master/matomlserv.cc:610:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(data,logstr,logstrsize);
data/lizardfs-3.12.0+dfsg/src/master/metadata_dumper.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 buffer[1024];
data/lizardfs-3.12.0+dfsg/src/master/topology.cc:365:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char linebuff[10000];
data/lizardfs-3.12.0+dfsg/src/master/topology.cc:370:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = fopen(TopologyFileName,"r");
data/lizardfs-3.12.0+dfsg/src/metadump/mfsmetadump.cc:485:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = fopen(fname,"r");
data/lizardfs-3.12.0+dfsg/src/metarestore/main.cc:236:36:  [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).
				storedPreviousBackMetaCopies = atoi(optarg);
data/lizardfs-3.12.0+dfsg/src/metarestore/merger.cc:120:27:  [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).
	if ((heap[heapsize].fd = fopen(filename,"r"))!=NULL) {
data/lizardfs-3.12.0+dfsg/src/mount/chunk_writer.cc:375: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(parity_block, data_blocks[offset], size);
data/lizardfs-3.12.0+dfsg/src/mount/chunk_writer.cc:609: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(block.data(), buffer.data() + offset, MFSBLOCKSIZE);
data/lizardfs-3.12.0+dfsg/src/mount/client/client.cc:57:17:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	int out_fd = ::mkstemp(pattern);
data/lizardfs-3.12.0+dfsg/src/mount/client/client.cc:408:27:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
Client::FileInfo *Client::open(const Context &ctx, Inode inode, int flags) {
data/lizardfs-3.12.0+dfsg/src/mount/client/client.cc:410: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).
	auto fileinfo = open(ctx, inode, flags, ec);
data/lizardfs-3.12.0+dfsg/src/mount/client/client.cc:418:27:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
Client::FileInfo *Client::open(const Context &ctx, Inode inode, int flags, std::error_code &ec) {
data/lizardfs-3.12.0+dfsg/src/mount/client/client.h:102: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).
	FileInfo *open(const Context &ctx, Inode inode, int flags);
data/lizardfs-3.12.0+dfsg/src/mount/client/client.h:103: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).
	FileInfo *open(const Context &ctx, Inode inode, int flags, std::error_code &ec);
data/lizardfs-3.12.0+dfsg/src/mount/client/iovec_traits.h:53: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.
			std::memcpy(iov->iov_base, buf, to_copy);
data/lizardfs-3.12.0+dfsg/src/mount/client/iovec_traits.h:85: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(buf_base, iov_base, len);
data/lizardfs-3.12.0+dfsg/src/mount/client/lizard_client_c_linkage.cc:114:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		LizardClient::open(ctx, ino, fi);
data/lizardfs-3.12.0+dfsg/src/mount/client/lizardfs_c_api.cc:351:44:  [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).
	liz_fileinfo *fi = (liz_fileinfo *)client.open(context, inode, flags, ec);
data/lizardfs-3.12.0+dfsg/src/mount/client/lizardfs_c_api.cc:735: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.
	std::memcpy(buf, ret.data(), std::min(size, ret.size()));
data/lizardfs-3.12.0+dfsg/src/mount/client/lizardfs_c_api.cc:752: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.
	std::memcpy(buf, ret.data(), std::min(size, ret.size()));
data/lizardfs-3.12.0+dfsg/src/mount/fuse/main.cc:359: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).
		if ((i = open("/dev/null", O_RDWR, 0)) != -1) {
data/lizardfs-3.12.0+dfsg/src/mount/fuse/main.cc:449:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fsnamearg[256];
data/lizardfs-3.12.0+dfsg/src/mount/fuse/mfs_fuse.cc:358:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[READDIR_BUFFSIZE];
data/lizardfs-3.12.0+dfsg/src/mount/fuse/mfs_fuse.cc:424:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		LizardClient::open(get_context(req), ino, fuse_file_info_wrapper(fi));
data/lizardfs-3.12.0+dfsg/src/mount/fuse/mfs_meta_fuse.cc:404: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(buff,SPECIAL_FILE_NAME_META_TRASH,l);
data/lizardfs-3.12.0+dfsg/src/mount/fuse/mfs_meta_fuse.cc:411: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(buff,SPECIAL_FILE_NAME_META_RESERVED,l);
data/lizardfs-3.12.0+dfsg/src/mount/fuse/mfs_meta_fuse.cc:431: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(buff,SPECIAL_FILE_NAME_META_UNDEL,l);
data/lizardfs-3.12.0+dfsg/src/mount/fuse/mfs_meta_fuse.cc:506:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf((char*)buff,"%08" PRIX32 "|",inode);
data/lizardfs-3.12.0+dfsg/src/mount/fuse/mfs_meta_fuse.cc:508: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(buff+9,name,255-9);
data/lizardfs-3.12.0+dfsg/src/mount/fuse/mfs_meta_fuse.cc:511: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(buff+9,name,nleng);
data/lizardfs-3.12.0+dfsg/src/mount/fuse/mfs_meta_fuse.cc:587:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[READDIR_BUFFSIZE];
data/lizardfs-3.12.0+dfsg/src/mount/fuse/mfs_meta_fuse.cc:686: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(pathinfo->p,path,pathinfo->size-1);
data/lizardfs-3.12.0+dfsg/src/mount/fuse/mfs_meta_fuse.cc:789:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((pathinfo->p)+off,buf,size);
data/lizardfs-3.12.0+dfsg/src/mount/fuse/mount_config.cc:228:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char lbuff[1000],*p;
data/lizardfs-3.12.0+dfsg/src/mount/fuse/mount_config.cc:230:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = fopen(filename,"r");
data/lizardfs-3.12.0+dfsg/src/mount/io_limit_group.cc:89:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char filename[32];
data/lizardfs-3.12.0+dfsg/src/mount/io_limit_group.cc:90:2:  [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(filename, "/proc/%u/cgroup", (unsigned)pid);
data/lizardfs-3.12.0+dfsg/src/mount/io_limit_group.cc:94:7:  [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).
		ifs.open(filename);
data/lizardfs-3.12.0+dfsg/src/mount/iovec_traits_unittest.cc:26:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char out[512] = {0};
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client.cc:438:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void makemodestr(char modestr[11],uint16_t mode) {
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client.cc:440:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(modestr,"?rwxrwxrwx");
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client.cc:485:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char modestr[11];
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client.cc:612:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char attrstr[256];
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client.cc:699:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char attrstr[256];
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client.cc:746:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char modestr[11];
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client.cc:747:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char attrstr[256];
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client.cc:943:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char modestr[11];
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client.cc:944:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char attrstr[256];
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client.cc:1098:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char modestr[11];
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client.cc:1099:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char attrstr[256];
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client.cc:1214:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char attrstr[256];
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client.cc:1393:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char attrstr[256];
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client.cc:1686:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char modestr[11];
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client.cc:1687:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char attrstr[256];
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client.cc:1799:6:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void open(const Context &ctx, Inode ino, FileInfo *fi) {
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client.h:333:6:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void open(const Context &ctx, Inode ino, FileInfo* fi);
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.cc:104: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 masterstrip[17];
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.cc:107: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 srcstrip[17];
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.cc:531: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(wptr,FUSE_REGISTER_BLOB_ACL,64);
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.cc:613:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(wptr,FUSE_REGISTER_BLOB_ACL,64);
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.cc:620:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(wptr,gInitParams.mountpoint.c_str(),ileng);
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.cc:624: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(wptr,gInitParams.subfolder.c_str(),pleng);
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.cc:627: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(wptr+pleng,digest,16);
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.cc:760:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char pwdgrpbuff[16384];
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.cc:898:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(wptr,FUSE_REGISTER_BLOB_ACL,64);
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.cc:965:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(wptr,FUSE_REGISTER_BLOB_ACL,64);
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.cc:1410: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(attr.data(), rptr, attr.size());
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.cc:1451: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(attr.data(), rptr, attr.size());
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.cc:1601:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(wptr,name,nleng);
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.cc:1604:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(wptr,path,t32);
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.cc:1619: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(attr.data(), rptr, attr.size());
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.cc:1719:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(wptr,name,nleng);
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.cc:1747:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(wptr,name,nleng);
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.cc:1776:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(wptr,name_src,nleng_src);
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.cc:1780:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(wptr,name_dst,nleng_dst);
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.cc:1797: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(attr.data(), rptr, attr.size());
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.cc:1817:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(wptr,name_dst,nleng_dst);
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.cc:1832: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(attr.data(), rptr, attr.size());
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.cc:1959: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(attr.data(), rptr, attr.size());
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.cc:2339: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(attr.data(), rptr, attr.size());
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.cc:2392:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(wptr,path,t32);
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.cc:2469:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(wptr,name,nleng);
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.cc:2554:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(wptr,name,nleng);
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.cc:2557:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(wptr,value,vleng);
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.cc:2590:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(wptr,name,nleng);
data/lizardfs-3.12.0+dfsg/src/mount/oplog.cc:65: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(opbuff+bpos,buff,OPBUFFSIZE-bpos);
data/lizardfs-3.12.0+dfsg/src/mount/oplog.cc:70:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(opbuff+bpos,buff,leng);
data/lizardfs-3.12.0+dfsg/src/mount/oplog.cc:105:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buff[LINELENG];
data/lizardfs-3.12.0+dfsg/src/mount/oplog.cc:134:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buff[LINELENG];
data/lizardfs-3.12.0+dfsg/src/mount/polonaise/main.cc:627:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	void open(OpenReply& _return, const Context& context, const Inode inode, const int32_t flags) {
data/lizardfs-3.12.0+dfsg/src/mount/polonaise/main.cc:631:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		LizardClient::open(toLizardFsContext(context), toUint64(inode), fi);
data/lizardfs-3.12.0+dfsg/src/mount/polonaise/main.cc:1008:6:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (open("/dev/null", O_RDONLY) < 0) {
data/lizardfs-3.12.0+dfsg/src/mount/polonaise/main.cc:1012:6:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (open("/dev/null", O_WRONLY) < 0) {
data/lizardfs-3.12.0+dfsg/src/mount/readdata_cache.h:204:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				std::memcpy(output, (void *)start, length);
data/lizardfs-3.12.0+dfsg/src/mount/special_inode.h:75:68:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	                                LizardClient::Inode parent, const char *name, char attrstr[256]);
data/lizardfs-3.12.0+dfsg/src/mount/special_inode.h:75:80:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	                                LizardClient::Inode parent, const char *name, char attrstr[256]);
data/lizardfs-3.12.0+dfsg/src/mount/special_inode.h:81:46:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	                                int to_set, char modestr[11], char attrstr[256]);
data/lizardfs-3.12.0+dfsg/src/mount/special_inode.h:81:64:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	                                int to_set, char modestr[11], char attrstr[256]);
data/lizardfs-3.12.0+dfsg/src/mount/special_lookup.cc:27:66:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 EntryParam lookup(const Context &ctx, Inode parent, const char *name,
data/lizardfs-3.12.0+dfsg/src/mount/special_lookup.cc:28:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	                           char attrstr[256]) {
data/lizardfs-3.12.0+dfsg/src/mount/special_lookup.cc:48:66:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 EntryParam lookup(const Context &ctx, Inode parent, const char *name,
data/lizardfs-3.12.0+dfsg/src/mount/special_lookup.cc:49:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	                      char attrstr[256]) {
data/lizardfs-3.12.0+dfsg/src/mount/special_lookup.cc:69:66:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 EntryParam lookup(const Context &ctx, Inode parent, const char *name,
data/lizardfs-3.12.0+dfsg/src/mount/special_lookup.cc:70:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	                      char attrstr[256]) {
data/lizardfs-3.12.0+dfsg/src/mount/special_lookup.cc:90:66:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 EntryParam lookup(const Context &ctx, Inode parent, const char *name,
data/lizardfs-3.12.0+dfsg/src/mount/special_lookup.cc:91:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	                          char attrstr[256]) {
data/lizardfs-3.12.0+dfsg/src/mount/special_lookup.cc:111:66:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 EntryParam lookup(const Context &ctx, Inode parent, const char *name,
data/lizardfs-3.12.0+dfsg/src/mount/special_lookup.cc:112:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	                       char attrstr[256]) {
data/lizardfs-3.12.0+dfsg/src/mount/special_lookup.cc:132:66:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 EntryParam lookup(const Context &ctx, Inode parent, const char *name,
data/lizardfs-3.12.0+dfsg/src/mount/special_lookup.cc:133:30:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	                            char attrstr[256]) {
data/lizardfs-3.12.0+dfsg/src/mount/special_lookup.cc:172:78:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
EntryParam special_lookup(Inode ino, const Context &ctx, Inode parent, const char *name,
data/lizardfs-3.12.0+dfsg/src/mount/special_lookup.cc:173: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.
	                  char attrstr[256]) {
data/lizardfs-3.12.0+dfsg/src/mount/special_open.cc:30:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
static void open(const Context &ctx, FileInfo *fi) {
data/lizardfs-3.12.0+dfsg/src/mount/special_open.cc:45:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
static void open(const Context &ctx, FileInfo *fi) {
data/lizardfs-3.12.0+dfsg/src/mount/special_open.cc:67:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
static void open(const Context &ctx, FileInfo *fi) {
data/lizardfs-3.12.0+dfsg/src/mount/special_open.cc:83:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
static void open(const Context &ctx, FileInfo *fi) {
data/lizardfs-3.12.0+dfsg/src/mount/special_open.cc:99:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
static void open(const Context &ctx, FileInfo *fi) {
data/lizardfs-3.12.0+dfsg/src/mount/special_open.cc:111: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).
	 &InodeStats::open,             //0x0U
data/lizardfs-3.12.0+dfsg/src/mount/special_open.cc:112: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).
	 &InodeOplog::open,             //0x1U
data/lizardfs-3.12.0+dfsg/src/mount/special_open.cc:113:20:  [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).
	 &InodeOphistory::open,         //0x2U
data/lizardfs-3.12.0+dfsg/src/mount/special_open.cc:114:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	 &InodeTweaks::open,            //0x3U
data/lizardfs-3.12.0+dfsg/src/mount/special_open.cc:126:21:  [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).
	 &InodeMasterInfo::open         //0xFU
data/lizardfs-3.12.0+dfsg/src/mount/special_setattr.cc:27:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	                    const char modestr[11], const char attrstr[256], const char *node_name) {
data/lizardfs-3.12.0+dfsg/src/mount/special_setattr.cc:27:52:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	                    const char modestr[11], const char attrstr[256], const char *node_name) {
data/lizardfs-3.12.0+dfsg/src/mount/special_setattr.cc:45:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	                 char modestr[11], char /*attrstr*/[256]) {
data/lizardfs-3.12.0+dfsg/src/mount/special_setattr.cc:63:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	                 char modestr[11], char attrstr[256]) {
data/lizardfs-3.12.0+dfsg/src/mount/special_setattr.cc:63:37:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	                 char modestr[11], char attrstr[256]) {
data/lizardfs-3.12.0+dfsg/src/mount/special_setattr.cc:75:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	                 char modestr[11], char attrstr[256]) {
data/lizardfs-3.12.0+dfsg/src/mount/special_setattr.cc:75:37:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	                 char modestr[11], char attrstr[256]) {
data/lizardfs-3.12.0+dfsg/src/mount/special_setattr.cc:87:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	                 char modestr[11], char attrstr[256]) {
data/lizardfs-3.12.0+dfsg/src/mount/special_setattr.cc:87:37:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	                 char modestr[11], char attrstr[256]) {
data/lizardfs-3.12.0+dfsg/src/mount/special_setattr.cc:99:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	                 char modestr[11], char attrstr[256]) {
data/lizardfs-3.12.0+dfsg/src/mount/special_setattr.cc:99:37:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	                 char modestr[11], char attrstr[256]) {
data/lizardfs-3.12.0+dfsg/src/mount/special_setattr.cc:111:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	                 char modestr[11], char attrstr[256]) {
data/lizardfs-3.12.0+dfsg/src/mount/special_setattr.cc:111:37:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	                 char modestr[11], char attrstr[256]) {
data/lizardfs-3.12.0+dfsg/src/mount/special_setattr.cc:142: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.
	                  char modestr[11], char attrstr[256]) {
data/lizardfs-3.12.0+dfsg/src/mount/special_setattr.cc:142:38:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	                  char modestr[11], char attrstr[256]) {
data/lizardfs-3.12.0+dfsg/src/mount/stats.cc:75: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(bstr,sn->fullname,sn->fnleng);
data/lizardfs-3.12.0+dfsg/src/mount/stats.cc:77: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(bstr+sn->fnleng+1,a->name,a->nleng);
data/lizardfs-3.12.0+dfsg/src/mount/write_cache_block.cc:70: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(blockData + from, buffer, to - from);
data/lizardfs-3.12.0+dfsg/src/mount/write_cache_block.cc:76:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(blockData + from, buffer, to - from);
data/lizardfs-3.12.0+dfsg/src/nfs-ganesha/handle.c:338:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char result[LIZARDFS_MAX_READLINK_LENGTH];
data/lizardfs-3.12.0+dfsg/src/nfs-ganesha/handle.c:476:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(fh_desc->addr, &inode, sizeof(liz_inode_t));
data/lizardfs-3.12.0+dfsg/src/nfs-ganesha/lzfs_internal.c:77: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(garray + 1, cred->caller_garray, sizeof(gid_t) * cred->caller_glen);
data/lizardfs-3.12.0+dfsg/src/nfs-ganesha/lzfs_internal.c:87: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(garray + 1, cred->caller_garray, sizeof(gid_t) * count);
data/lizardfs-3.12.0+dfsg/src/nfs-ganesha/mds_export.c:60:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy((uint8_t *)base + i * size, (uint8_t *)base + j * size, size);
data/lizardfs-3.12.0+dfsg/src/nfs-ganesha/mds_export.c:78: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(temp, (uint8_t *)base + i * size, size);
data/lizardfs-3.12.0+dfsg/src/nfs-ganesha/mds_export.c:79: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((uint8_t *)base + i * size, (uint8_t *)base + j * size, size);
data/lizardfs-3.12.0+dfsg/src/nfs-ganesha/mds_export.c:80:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((uint8_t *)base + j * size, temp, size);
data/lizardfs-3.12.0+dfsg/src/tools/append_file.cc:133:6:  [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).
	i = open(appendfname, O_RDWR | O_CREAT, 0666);
data/lizardfs-3.12.0+dfsg/src/tools/main.cc:31: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 path_buf[PATH_MAX];
data/lizardfs-3.12.0+dfsg/src/tools/master_functions.cc:55:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(wptr, FUSE_REGISTER_BLOB_ACL, 64);
data/lizardfs-3.12.0+dfsg/src/tools/master_functions.cc:118:7:  [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).
	sd = open(name, O_RDONLY);
data/lizardfs-3.12.0+dfsg/src/tools/master_functions.cc:136:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char rpath[PATH_MAX + 1];
data/lizardfs-3.12.0+dfsg/src/tools/quota_rep.cc:68: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.
	static const char *owner_type_name[4] = {"User ", "Group", "Directory", "Unknown"};
data/lizardfs-3.12.0+dfsg/src/tools/quota_rep.cc:120:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char rpath[PATH_MAX + 1];
data/lizardfs-3.12.0+dfsg/src/tools/recursive_remove.cc:46:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path_buf[PATH_MAX];
data/lizardfs-3.12.0+dfsg/src/tools/snapshot.cc:123:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char to[PATH_MAX + 1], base[PATH_MAX + 1], dir[PATH_MAX + 1];
data/lizardfs-3.12.0+dfsg/src/tools/snapshot.cc:124:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char src[PATH_MAX + 1];
data/lizardfs-3.12.0+dfsg/src/tools/snapshot.cc:185:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(dir, to, PATH_MAX + 1);
data/lizardfs-3.12.0+dfsg/src/tools/snapshot.cc:251: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(dir, to, PATH_MAX + 1);
data/lizardfs-3.12.0+dfsg/src/tools/tools_common_functions.cc:41:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *eattrtab[EATTR_BITS] = {EATTR_STRINGS};
data/lizardfs-3.12.0+dfsg/src/tools/tools_common_functions.cc:42:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *eattrdesc[EATTR_BITS] = {EATTR_DESCRIPTIONS};
data/lizardfs-3.12.0+dfsg/src/tools/tools_common_functions.h:39:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char *eattrtab[EATTR_BITS];
data/lizardfs-3.12.0+dfsg/src/tools/tools_common_functions.h:40:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char *eattrdesc[EATTR_BITS];
data/lizardfs-3.12.0+dfsg/utils/chunk_operations_eio.c:35:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fdpath[COMMAND_BUFSIZE] = {0};
data/lizardfs-3.12.0+dfsg/utils/chunk_operations_eio.c:38:2:  [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(fdpath, "/proc/self/fd/%d", fd);
data/lizardfs-3.12.0+dfsg/utils/chunk_operations_eio.c:45:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char filename[FILENAME_BUFSIZE] = {0};
data/lizardfs-3.12.0+dfsg/utils/chunk_operations_eio.c:46:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char always_eio_trigger[COMMAND_BUFSIZE] = {0};
data/lizardfs-3.12.0+dfsg/utils/chunk_operations_eio.c:47:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char far_eio_trigger[COMMAND_BUFSIZE] = {0};
data/lizardfs-3.12.0+dfsg/utils/data_generator.h:48: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(name.c_str(), O_WRONLY | O_CREAT | O_TRUNC, (mode_t)0644);
data/lizardfs-3.12.0+dfsg/utils/data_generator.h:57: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(name.c_str(), O_WRONLY, (mode_t)0644);
data/lizardfs-3.12.0+dfsg/utils/data_generator.h:137: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(name.c_str(), O_RDONLY);
data/lizardfs-3.12.0+dfsg/utils/data_generator.h:170: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.data(), alignedBuffer.data() + (offset - alignedOffset), size);
data/lizardfs-3.12.0+dfsg/utils/flockcmd.cc:108:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, O_RDWR);
data/lizardfs-3.12.0+dfsg/utils/mfs_ping.cc:37: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).
	uint32_t size = atoi(argv[3]);
data/lizardfs-3.12.0+dfsg/utils/mfs_ping.cc:38:19:  [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).
	uint32_t count = atoi(argv[4]);
data/lizardfs-3.12.0+dfsg/utils/mfs_ping.cc:39: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).
	uint32_t sleep_us = atoi(argv[5]);
data/lizardfs-3.12.0+dfsg/utils/ping_pong.cc:212: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).
	num_locks = atoi(argv[1]);
data/lizardfs-3.12.0+dfsg/utils/ping_pong.cc:214:7:  [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, O_CREAT|O_RDWR, 0600);
data/lizardfs-3.12.0+dfsg/utils/posixlockcmd.cc:113:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, O_RDWR);
data/lizardfs-3.12.0+dfsg/src/chunkserver/bgjobs.cc:176:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		eassert(read(jp->rpipe,&qstatus,1)==1); // make pipe empty
data/lizardfs-3.12.0+dfsg/src/chunkserver/hddspacemgr.cc:342:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		sl = strlen(f->path);
data/lizardfs-3.12.0+dfsg/src/chunkserver/hddspacemgr.cc:358:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			sl = strlen(f->path);
data/lizardfs-3.12.0+dfsg/src/chunkserver/hddspacemgr.cc:391:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		sl = strlen(f->path);
data/lizardfs-3.12.0+dfsg/src/chunkserver/hddspacemgr.cc:1239:6:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
					usleep((kOpenRetry_ms * 1000) << i);
data/lizardfs-3.12.0+dfsg/src/chunkserver/hddspacemgr.cc:2193:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		retsize = read(oc->fd,blockbuffer,blockSize);
data/lizardfs-3.12.0+dfsg/src/chunkserver/hddspacemgr.cc:2548:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			retsize = read(oc->fd,blockbuffer,blockSize);
data/lizardfs-3.12.0+dfsg/src/chunkserver/hddspacemgr.cc:2596:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				retsize = read(oc->fd,blockbuffer,blockSize);
data/lizardfs-3.12.0+dfsg/src/chunkserver/hddspacemgr.cc:2626:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				retsize = read(oc->fd,blockbuffer,blockSize);
data/lizardfs-3.12.0+dfsg/src/chunkserver/hddspacemgr.cc:2656:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			retsize = read(oc->fd, blockbuffer, toBeRead);
data/lizardfs-3.12.0+dfsg/src/chunkserver/hddspacemgr.cc:2838:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(time.remaining_us());
data/lizardfs-3.12.0+dfsg/src/chunkserver/hddspacemgr.cc:2907:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
				usleep(time_to_sleep_us - end_us);
data/lizardfs-3.12.0+dfsg/src/chunkserver/hddspacemgr.cc:3186:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
				usleep(1000);
data/lizardfs-3.12.0+dfsg/src/chunkserver/hddspacemgr.cc:3338:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(10000); // not very elegant solution.
data/lizardfs-3.12.0+dfsg/src/chunkserver/hddspacemgr.cc:3492:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	l = strlen(hddcfgline);
data/lizardfs-3.12.0+dfsg/src/chunkserver/legacy_replicator.cc:95:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		i=read(rs->sock,rs->startptr,rs->bytesleft);
data/lizardfs-3.12.0+dfsg/src/chunkserver/masterconn.cc:631:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ssize_t ret = read(eptr->sock, eptr->inputPacket.pointerToBeReadInto(), bytesToRead);
data/lizardfs-3.12.0+dfsg/src/chunkserver/network_worker_thread.cc:412:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (v == cltocs::read::kECChunks) {
data/lizardfs-3.12.0+dfsg/src/chunkserver/network_worker_thread.cc:413:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				cltocs::read::deserialize(data, length,
data/lizardfs-3.12.0+dfsg/src/chunkserver/network_worker_thread.cc:421:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				cltocs::read::deserialize(data, length,
data/lizardfs-3.12.0+dfsg/src/chunkserver/network_worker_thread.cc:1161:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		i = read(eptr->fwdsock, eptr->fwdinputpacket.startptr,
data/lizardfs-3.12.0+dfsg/src/chunkserver/network_worker_thread.cc:1198:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			i = read(eptr->fwdsock, eptr->fwdinputpacket.startptr,
data/lizardfs-3.12.0+dfsg/src/chunkserver/network_worker_thread.cc:1272:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		i = read(eptr->sock, eptr->inputpacket.startptr, eptr->inputpacket.bytesleft);
data/lizardfs-3.12.0+dfsg/src/chunkserver/network_worker_thread.cc:1322:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		i = read(eptr->sock, eptr->inputpacket.startptr, eptr->inputpacket.bytesleft);
data/lizardfs-3.12.0+dfsg/src/chunkserver/network_worker_thread.cc:1390:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		i = read(eptr->sock, eptr->inputpacket.startptr,
data/lizardfs-3.12.0+dfsg/src/chunkserver/network_worker_thread.cc:1433:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			i = read(eptr->sock, eptr->inputpacket.startptr,
data/lizardfs-3.12.0+dfsg/src/chunkserver/network_worker_thread.cc:1547:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
				usleep(100000);
data/lizardfs-3.12.0+dfsg/src/chunkserver/network_worker_thread.cc:1557:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				eassert(read(pdesc[0].fd, &notifyByte, 1) == 1);
data/lizardfs-3.12.0+dfsg/src/chunkserver/output_buffer_unittest.cc:60:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ASSERT_EQ(read(auxPipeFileDescriptors[0], buf, WRITE_SIZE), WRITE_SIZE) << "errno: " << errno;
data/lizardfs-3.12.0+dfsg/src/common/charts.cc:501:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		s = strlen(statdefs[i].name);
data/lizardfs-3.12.0+dfsg/src/common/charts.cc:530:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd,(void*)hdr,sizeof(uint32_t)*21)!=(ssize_t)(sizeof(uint32_t)*21)) {
data/lizardfs-3.12.0+dfsg/src/common/charts.cc:550:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
						if (read(fd,(void*)tab,sizeof(uint64_t)*LENG)!=(ssize_t)(sizeof(uint64_t)*LENG)) {
data/lizardfs-3.12.0+dfsg/src/common/charts.cc:557:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
						if (read(fd,(void*)(tab+(LENG-1-p)),sizeof(uint64_t)*(p+1))!=(ssize_t)(sizeof(uint64_t)*(p+1))) {
data/lizardfs-3.12.0+dfsg/src/common/charts.cc:563:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
						if (read(fd,(void*)tab,(LENG-1-p)*sizeof(uint64_t))!=(ssize_t)((LENG-1-p)*sizeof(uint64_t))) {
data/lizardfs-3.12.0+dfsg/src/common/charts.cc:568:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					if (read(fd,(void*)(tab+(LENG-1-p)),sizeof(uint64_t)*(p+1))!=(ssize_t)(sizeof(uint64_t)*(p+1))) {
data/lizardfs-3.12.0+dfsg/src/common/charts.cc:572:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
						if (read(fd,(void*)(tab+(LENG-fleng)),(fleng-1-p)*sizeof(uint64_t))!=(ssize_t)((fleng-1-p)*sizeof(uint64_t))) {
data/lizardfs-3.12.0+dfsg/src/common/charts.cc:589:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd,(void*)hdr,sizeof(uint32_t)*15)!=(ssize_t)(sizeof(uint32_t)*15)) {
data/lizardfs-3.12.0+dfsg/src/common/charts.cc:616:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
						if (read(fd,(void*)tab,sizeof(uint64_t)*LENG)!=(ssize_t)(sizeof(uint64_t)*LENG)) {
data/lizardfs-3.12.0+dfsg/src/common/charts.cc:623:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
						if (read(fd,(void*)(tab+(LENG-1-p)),sizeof(uint64_t)*(p+1))!=(ssize_t)(sizeof(uint64_t)*(p+1))) {
data/lizardfs-3.12.0+dfsg/src/common/charts.cc:629:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
						if (read(fd,(void*)tab,(LENG-1-p)*sizeof(uint64_t))!=(ssize_t)((LENG-1-p)*sizeof(uint64_t))) {
data/lizardfs-3.12.0+dfsg/src/common/charts.cc:634:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					if (read(fd,(void*)(tab+(LENG-1-p)),sizeof(uint64_t)*(p+1))!=(ssize_t)(sizeof(uint64_t)*(p+1))) {
data/lizardfs-3.12.0+dfsg/src/common/charts.cc:638:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
						if (read(fd,(void*)(tab+(LENG-fleng)),(fleng-1-p)*sizeof(uint64_t))!=(ssize_t)((fleng-1-p)*sizeof(uint64_t))) {
data/lizardfs-3.12.0+dfsg/src/common/charts.cc:675:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd,(void*)hdr,16)!=16) {
data/lizardfs-3.12.0+dfsg/src/common/charts.cc:708:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(fd,namehdr,100)!=100) {
data/lizardfs-3.12.0+dfsg/src/common/charts.cc:726:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					if (read(fd,(void*)data,8*fleng)!=(ssize_t)(8*fleng)) {
data/lizardfs-3.12.0+dfsg/src/common/charts.cc:737:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					if (read(fd,(void*)data,8*LENG)!=(ssize_t)(8*LENG)) {
data/lizardfs-3.12.0+dfsg/src/common/compact_vector.h:1315:38:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	return x.size() == y.size() && std::equal(x.begin(), x.end(), y.begin());
data/lizardfs-3.12.0+dfsg/src/common/compact_vector_unittest.cc:28:38:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	return a.size() == b.size() && std::equal(a.begin(), a.end(), b.begin());
data/lizardfs-3.12.0+dfsg/src/common/event_loop.cc:236:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
				usleep(100000);
data/lizardfs-3.12.0+dfsg/src/common/flat_map.h:437:38:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	return a.size() == b.size() && std::equal(a.begin(), a.end(), b.begin());
data/lizardfs-3.12.0+dfsg/src/common/flat_set.h:541:38:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	return a.size() == b.size() && std::equal(a.begin(), a.end(), b.begin());
data/lizardfs-3.12.0+dfsg/src/common/intrusive_list_unittest.cc:39:38:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	return a.size() == b.size() && std::equal(a.begin(), a.end(), b.begin());
data/lizardfs-3.12.0+dfsg/src/common/judy_map.h:695:38:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	return a.size() == b.size() && std::equal(a.begin(), a.end(), b.begin());
data/lizardfs-3.12.0+dfsg/src/common/metadata.cc:76:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int bytes = read(fd,chkbuff,20);
data/lizardfs-3.12.0+dfsg/src/common/metadata.cc:106:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd,chkbuff,16)!=16) {
data/lizardfs-3.12.0+dfsg/src/common/metadata.cc:128:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	s = read(fd,buff,50);
data/lizardfs-3.12.0+dfsg/src/common/read_operation_executor.cc:63:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		cltocs::read::serialize(message, chunkId_, chunkVersion_, chunkType_,
data/lizardfs-3.12.0+dfsg/src/common/read_operation_executor.cc:66:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		cltocs::read::serialize(message, chunkId_, chunkVersion_, (legacy::ChunkPartType)chunkType_,
data/lizardfs-3.12.0+dfsg/src/common/richacl.cc:366:95:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
bool RichACL::inheritInode(const RichACL &dir_acl, uint16_t &mode_out, RichACL &acl, uint16_t umask,
data/lizardfs-3.12.0+dfsg/src/common/richacl.cc:372:16:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		mode_out &= ~umask;
data/lizardfs-3.12.0+dfsg/src/common/richacl.h:413:36:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	                         uint16_t umask, bool is_dir);
data/lizardfs-3.12.0+dfsg/src/common/serialization_macros_unittest.cc:99:13:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		uint16_t, umask,
data/lizardfs-3.12.0+dfsg/src/common/serialization_macros_unittest.cc:113:39:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	LIZARDFS_DEFINE_INOUT_PAIR(uint16_t, umask, 0351, 0000);
data/lizardfs-3.12.0+dfsg/src/common/serialization_macros_unittest.cc:133:29:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	LIZARDFS_VERIFY_INOUT_PAIR(umask);
data/lizardfs-3.12.0+dfsg/src/common/small_vector_unittest.cc:28:38:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	return a.size() == b.size() && std::equal(a.begin(), a.end(), b.begin());
data/lizardfs-3.12.0+dfsg/src/devtools/request_log.h:256:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
				usleep(std::max(int64_t(0),
data/lizardfs-3.12.0+dfsg/src/main/main.cc:118:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(signalpipe[0],&sigid,1)==1) {
data/lizardfs-3.12.0+dfsg/src/main/main.cc:643:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(1000000 / checksPerSecond);
data/lizardfs-3.12.0+dfsg/src/main/main.cc:688:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while ((r=read(piped[0],pipebuff,1000))) {
data/lizardfs-3.12.0+dfsg/src/main/main.cc:950:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(cfg_getuint32("FILE_UMASK",027)&077);
data/lizardfs-3.12.0+dfsg/src/master/chartsdata.cc:217:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			l = read(fd,statbuff,1000);
data/lizardfs-3.12.0+dfsg/src/master/exports.cc:824:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				md5_update(&ctx,(uint8_t*)(p+9),strlen(p+9));
data/lizardfs-3.12.0+dfsg/src/master/exports.cc:973:6:  [1] (buffer) strlen:
  Does not handle 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=strlen(linebuff);
data/lizardfs-3.12.0+dfsg/src/master/filesystem.h:128:115:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
uint8_t fs_mknod(const FsContext &context,uint32_t parent,const HString &name,uint8_t type,uint16_t mode,uint16_t umask,uint32_t rdev,uint32_t *inode,Attributes& attr);
data/lizardfs-3.12.0+dfsg/src/master/filesystem.h:129:102:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
uint8_t fs_mkdir(const FsContext &context,uint32_t parent,const HString &name,uint16_t mode,uint16_t umask,uint8_t copysgid,uint32_t *inode,Attributes& attr);
data/lizardfs-3.12.0+dfsg/src/master/filesystem_node.cc:532:42:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
			uint8_t type, uint16_t mode, uint16_t umask, uint32_t uid, uint32_t gid,
data/lizardfs-3.12.0+dfsg/src/master/filesystem_node.cc:566:53:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		if (RichACL::inheritInode(*parent_acl, mode, acl, umask, type == FSNode::kDirectory)) {
data/lizardfs-3.12.0+dfsg/src/master/filesystem_node.cc:573:19:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		node->mode &= ~(umask & 0777);  // umask must be applied manually
data/lizardfs-3.12.0+dfsg/src/master/filesystem_node.h:149:42:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
			uint8_t type, uint16_t mode, uint16_t umask, uint32_t uid, uint32_t gid,
data/lizardfs-3.12.0+dfsg/src/master/filesystem_operations.cc:57: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).
	const uint32_t count = strlen(keys);
data/lizardfs-3.12.0+dfsg/src/master/filesystem_operations.cc:921:41:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		uint8_t type, uint16_t mode, uint16_t umask, uint32_t rdev, uint32_t *inode,
data/lizardfs-3.12.0+dfsg/src/master/filesystem_operations.cc:955:83:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	p = fsnodes_create_node(ts, static_cast<FSNodeDirectory*>(wd), name, type, mode, umask, context.uid(), context.gid(), 0,
data/lizardfs-3.12.0+dfsg/src/master/filesystem_operations.cc:972:15:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
				 uint16_t umask, uint8_t copysgid, uint32_t *inode, Attributes &attr) {
data/lizardfs-3.12.0+dfsg/src/master/filesystem_operations.cc:1001:26:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	                        umask, context.uid(), context.gid(), copysgid, AclInheritance::kInheritAcl);
data/lizardfs-3.12.0+dfsg/src/master/filesystem_quota.cc:31: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).
	const uint32_t count = strlen(keys);
data/lizardfs-3.12.0+dfsg/src/master/filesystem_store.cc:544:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	type = fgetc(fd);
data/lizardfs-3.12.0+dfsg/src/master/goal_cache.h:37:41:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		return c1.size() == c2.size() && std::equal(c1.begin(), c1.end(), c2.begin(),
data/lizardfs-3.12.0+dfsg/src/master/masterconn.cc:188:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (read(fd,buff,32768)!=32768) {
data/lizardfs-3.12.0+dfsg/src/master/masterconn.cc:197:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (read(fd,buff,size)!=(ssize_t)size) {
data/lizardfs-3.12.0+dfsg/src/master/masterconn.cc:906:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		i=read(eptr->sock,eptr->inputpacket.startptr,eptr->inputpacket.bytesleft);
data/lizardfs-3.12.0+dfsg/src/master/matoclserv.cc:622:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				ileng = strlen(asesdata->info);
data/lizardfs-3.12.0+dfsg/src/master/matoclserv.cc:1283:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				size += strlen(eaptr->sesdata->info);
data/lizardfs-3.12.0+dfsg/src/master/matoclserv.cc:1300:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				ileng = strlen(eaptr->sesdata->info);
data/lizardfs-3.12.0+dfsg/src/master/matoclserv.cc:2397:17:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	uint16_t mode, umask;
data/lizardfs-3.12.0+dfsg/src/master/matoclserv.cc:2405:41:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
				messageId, inode, name, type, mode, umask, uid, gid, rdev);
data/lizardfs-3.12.0+dfsg/src/master/matoclserv.cc:2419:17:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
				type, mode, umask, rdev, &newinode, attr);
data/lizardfs-3.12.0+dfsg/src/master/matoclserv.cc:2442:17:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	uint16_t mode, umask;
data/lizardfs-3.12.0+dfsg/src/master/matoclserv.cc:2456:24:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
				inode, name, mode, umask, uid, gid, copysgid);
data/lizardfs-3.12.0+dfsg/src/master/matoclserv.cc:2468:69:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		status = fs_mkdir(context, inode, HString(std::move(name)), mode, umask,
data/lizardfs-3.12.0+dfsg/src/master/matoclserv.cc:5114:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		i=read(eptr->sock,eptr->inputpacket.startptr,eptr->inputpacket.bytesleft);
data/lizardfs-3.12.0+dfsg/src/master/matocsserv.cc:1598:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ssize_t ret = read(eptr->sock, eptr->inputPacket.pointerToBeReadInto(), bytesToRead);
data/lizardfs-3.12.0+dfsg/src/master/matomlserv.cc:725:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		i=read(eptr->sock,eptr->inputpacket.startptr,eptr->inputpacket.bytesleft);
data/lizardfs-3.12.0+dfsg/src/master/matotsserv.cc:239:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ssize_t ret = read(eptr->sock, eptr->inputPacket.pointerToBeReadInto(), bytesToRead);
data/lizardfs-3.12.0+dfsg/src/master/metadata_dumper.cc:196:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int ret = read(dumpingProcessFd_, buffer, sizeof(buffer) - 1);
data/lizardfs-3.12.0+dfsg/src/master/restore.cc:608:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return fs_apply_setxattr(ts,inode,strlen((char*)name),name,valueleng,value,mode);
data/lizardfs-3.12.0+dfsg/src/metadump/mfsmetadump.cc:133:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	type = fgetc(fd);
data/lizardfs-3.12.0+dfsg/src/mount/chunk_writer.cc:235:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				if (read(dataChainFd_, dataFdBuffer, dataFdBufferSize) < 0) {
data/lizardfs-3.12.0+dfsg/src/mount/client/client.cc:462:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
Client::ReadResult Client::read(const Context &ctx, FileInfo *fileinfo,
data/lizardfs-3.12.0+dfsg/src/mount/client/client.cc:465:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	auto ret = read(ctx, fileinfo, offset, size, ec);
data/lizardfs-3.12.0+dfsg/src/mount/client/client.cc:472:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
Client::ReadResult Client::read(const Context &ctx, FileInfo *fileinfo,
data/lizardfs-3.12.0+dfsg/src/mount/client/client.h:162:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ReadResult read(const Context &ctx, FileInfo *fileinfo, off_t offset, std::size_t size);
data/lizardfs-3.12.0+dfsg/src/mount/client/client.h:163:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ReadResult read(const Context &ctx, FileInfo *fileinfo, off_t offset, std::size_t size,
data/lizardfs-3.12.0+dfsg/src/mount/client/lizard_client_c_linkage.cc:185:45:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		        LIZARDFS_STATUS_OK, LizardClient::read(ctx, ino, size, off, fi));
data/lizardfs-3.12.0+dfsg/src/mount/client/lizardfs_c_api.cc:153:80:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
liz_context_t *liz_create_user_context(uid_t uid, gid_t gid, pid_t pid, mode_t umask) {
data/lizardfs-3.12.0+dfsg/src/mount/client/lizardfs_c_api.cc:155:61:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		Client::Context *ret = new Client::Context(uid, gid, pid, umask);
data/lizardfs-3.12.0+dfsg/src/mount/client/lizardfs_c_api.cc:203: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).
		md5_update(&md5_ctx,(uint8_t *)(params->password), strlen(params->password));
data/lizardfs-3.12.0+dfsg/src/mount/client/lizardfs_c_api.cc:361:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	auto ret = client.read(context, (Client::FileInfo *)fileinfo, offset, size, ec);
data/lizardfs-3.12.0+dfsg/src/mount/client/lizardfs_c_api.cc:374:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	auto ret = client.read(context, (Client::FileInfo *)fileinfo, offset, size, ec);
data/lizardfs-3.12.0+dfsg/src/mount/client/lizardfs_c_api.h:289:80:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
liz_context_t *liz_create_user_context(uid_t uid, gid_t gid, pid_t pid, mode_t umask);
data/lizardfs-3.12.0+dfsg/src/mount/fuse/main.cc:143:5:  [1] (buffer) strlen:
  Does not handle 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(gMountOptions.password));
data/lizardfs-3.12.0+dfsg/src/mount/fuse/main.cc:145:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		memset(gMountOptions.password,0,strlen(gMountOptions.password));
data/lizardfs-3.12.0+dfsg/src/mount/fuse/main.cc:152:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		memset(gMountOptions.md5pass,0,strlen(gMountOptions.md5pass));
data/lizardfs-3.12.0+dfsg/src/mount/fuse/main.cc:194:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			err = read(piped[0],&s,1);
data/lizardfs-3.12.0+dfsg/src/mount/fuse/main.cc:316:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(100000); // time for print other error messages by FUSE
data/lizardfs-3.12.0+dfsg/src/mount/fuse/mfs_fuse.cc:37:28:  [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.
#error FUSE_ROOT_ID is not equal to SPECIAL_INODE_ROOT
data/lizardfs-3.12.0+dfsg/src/mount/fuse/mfs_fuse.cc:122:27:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	mode_t umask = fuse_ctx->umask;
data/lizardfs-3.12.0+dfsg/src/mount/fuse/mfs_fuse.cc:126:80:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	auto ret = LizardClient::Context(fuse_ctx->uid, fuse_ctx->gid, fuse_ctx->pid, umask);
data/lizardfs-3.12.0+dfsg/src/mount/fuse/mfs_fuse.cc:449:42:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ReadCache::Result ret = LizardClient::read(
data/lizardfs-3.12.0+dfsg/src/mount/fuse/mfs_meta_fuse.cc:375: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).
		return 4*6+1+2+strlen(SPECIAL_FILE_NAME_META_TRASH)+strlen(SPECIAL_FILE_NAME_META_RESERVED);
data/lizardfs-3.12.0+dfsg/src/mount/fuse/mfs_meta_fuse.cc:375: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).
		return 4*6+1+2+strlen(SPECIAL_FILE_NAME_META_TRASH)+strlen(SPECIAL_FILE_NAME_META_RESERVED);
data/lizardfs-3.12.0+dfsg/src/mount/fuse/mfs_meta_fuse.cc:377: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).
		return 3*6+1+2+strlen(SPECIAL_FILE_NAME_META_UNDEL);
data/lizardfs-3.12.0+dfsg/src/mount/fuse/mfs_meta_fuse.cc:402:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		l = strlen(SPECIAL_FILE_NAME_META_TRASH);
data/lizardfs-3.12.0+dfsg/src/mount/fuse/mfs_meta_fuse.cc:409:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		l = strlen(SPECIAL_FILE_NAME_META_RESERVED);
data/lizardfs-3.12.0+dfsg/src/mount/fuse/mfs_meta_fuse.cc:429:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		l = strlen(SPECIAL_FILE_NAME_META_UNDEL);
data/lizardfs-3.12.0+dfsg/src/mount/fuse/mfs_meta_fuse.cc:684: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).
		pathinfo->size = strlen((char*)path)+1;
data/lizardfs-3.12.0+dfsg/src/mount/global_io_limiter_unittest.cc:399:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
				usleep(10000);
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client.cc:620: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).
	nleng = strlen(name);
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client.cc:960: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).
	nleng = strlen(name);
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client.cc:1005:66:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		fs_mknod(parent,nleng,(const uint8_t*)name,type,mode&07777,ctx.umask,ctx.uid,ctx.gid,rdev,inode,attr));
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client.cc:1055: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).
	nleng = strlen(name);
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client.cc:1124: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).
	nleng = strlen(name);
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client.cc:1136:55:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		fs_mkdir(parent,nleng,(const uint8_t*)name,mode,ctx.umask,ctx.uid,ctx.gid,mkdir_copy_sgid,inode,attr));
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client.cc:1183: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).
	nleng = strlen(name);
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client.cc:1236: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).
	nleng = strlen(name);
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client.cc:1344: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).
	nleng = strlen(name);
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client.cc:1354:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	newnleng = strlen(newname);
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client.cc:1422:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	newnleng = strlen(newname);
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client.cc:1714: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).
	nleng = strlen(name);
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client.cc:1743:71:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		fs_mknod(parent,nleng,(const uint8_t*)name,TYPE_FILE,mode&07777,ctx.umask,ctx.uid,ctx.gid,0,inode,attr));
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client.cc:1901:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
ReadCache::Result read(const Context &ctx,
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client.cc:2585: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).
	nleng = strlen(name);
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client.cc:2680: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).
	nleng = strlen(name);
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client.cc:2830: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).
	nleng = strlen(name);
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client.h:338:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
ReadCache::Result read(const Context &ctx, Inode ino, size_t size, off_t off, FileInfo* fi);
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client_context.h:37:54:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	Context(IdType uid, IdType gid, pid_t pid, MaskType umask)
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client_context.h:38:36:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
			: uid(uid), gid(gid), pid(pid), umask(umask), gids(1, gid) {
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client_context.h:38:42:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
			: uid(uid), gid(gid), pid(pid), umask(umask), gids(1, gid) {
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client_context.h:41:71:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	Context(IdType uid, const GroupsContainer &gids, pid_t pid, MaskType umask)
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client_context.h:42:35:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		  : uid(uid), gid(0), pid(pid), umask(umask), gids(gids) {
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client_context.h:42:41:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		  : uid(uid), gid(0), pid(pid), umask(umask), gids(gids) {
data/lizardfs-3.12.0+dfsg/src/mount/lizard_client_context.h:48:11:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	MaskType umask;
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.cc:1135:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(reconnectSleep_ms * 1000);
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.cc:1594:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	t32 = strlen((const char *)path)+1;
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.cc:1626:27:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		uint16_t mode, uint16_t umask, uint32_t uid, uint32_t gid, uint32_t rdev,
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.cc:1631:16:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
			type, mode, umask, uid, gid, rdev);
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.cc:1667:27:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		uint16_t mode, uint16_t umask, uint32_t uid, uint32_t gid,
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.cc:1672:10:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
			mode, umask, uid, gid, copysgid);
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.cc:2385:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	t32 = strlen((const char *)path)+1;
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.h:53:109:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
uint8_t fs_mknod(uint32_t parent, uint8_t nleng, const uint8_t *name, uint8_t type, uint16_t mode, uint16_t umask, uint32_t uid, uint32_t gid, uint32_t rdev, uint32_t &inode, Attributes& attr);
data/lizardfs-3.12.0+dfsg/src/mount/mastercomm.h:54:95:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
uint8_t fs_mkdir(uint32_t parent, uint8_t nleng, const uint8_t *name, uint16_t mode, uint16_t umask, uint32_t uid, uint32_t gid, uint8_t copysgid, uint32_t &inode, Attributes& attr);
data/lizardfs-3.12.0+dfsg/src/mount/polonaise/main.cc:207:18:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
				toUint32(ctx.umask));
data/lizardfs-3.12.0+dfsg/src/mount/polonaise/main.cc:643:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	void read(std::string& _return, const Context& context, const Inode inode,
data/lizardfs-3.12.0+dfsg/src/mount/polonaise/main.cc:659:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			auto result = LizardClient::read(
data/lizardfs-3.12.0+dfsg/src/mount/polonaise/main.cc:992:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(0);
data/lizardfs-3.12.0+dfsg/src/mount/readdata.cc:154:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(USECTICK);
data/lizardfs-3.12.0+dfsg/src/mount/readdata.cc:337:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
				usleep(sleep_timeout.remaining_us());
data/lizardfs-3.12.0+dfsg/src/mount/special_read.cc:44:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
static std::vector<uint8_t> read(const Context &ctx, size_t size, off_t off,
data/lizardfs-3.12.0+dfsg/src/mount/special_read.cc:79:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
static std::vector<uint8_t> read(const Context &ctx,
data/lizardfs-3.12.0+dfsg/src/mount/special_read.cc:122:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
static std::vector<uint8_t> read(const Context &ctx,
data/lizardfs-3.12.0+dfsg/src/mount/special_read.cc:136:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
static std::vector<uint8_t> read(const Context &ctx,
data/lizardfs-3.12.0+dfsg/src/mount/special_read.cc:150:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
static std::vector<uint8_t> read(const Context &ctx,
data/lizardfs-3.12.0+dfsg/src/mount/special_read.cc:185:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	 &InodeStats::read,             //0x0U
data/lizardfs-3.12.0+dfsg/src/mount/special_read.cc:186:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	 &InodeOplog::read,             //0x1U
data/lizardfs-3.12.0+dfsg/src/mount/special_read.cc:187:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	 &InodeOphistory::read,         //0x2U
data/lizardfs-3.12.0+dfsg/src/mount/special_read.cc:188:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	 &InodeTweaks::read,            //0x3U
data/lizardfs-3.12.0+dfsg/src/mount/special_read.cc:200:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	 &InodeMasterInfo::read         //0xFU
data/lizardfs-3.12.0+dfsg/src/mount/stats.cc:70:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	a->nleng = strlen(name);
data/lizardfs-3.12.0+dfsg/src/mount/writedata.cc:329:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(timeout.remaining_us());
data/lizardfs-3.12.0+dfsg/src/mount/writedata.cc:945:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(retrySleepTime_us);
data/lizardfs-3.12.0+dfsg/src/nfs-ganesha/export.c:105: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).
	real_path += strlen(op_ctx->ctx_export->fullpath);
data/lizardfs-3.12.0+dfsg/src/nfs-ganesha/main.c:72:53:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    CONF_ITEM_MODE("umask", 0, fsal_staticfsinfo_t, umask),
data/lizardfs-3.12.0+dfsg/src/protocol/cltocs.h:42:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
namespace read {
data/lizardfs-3.12.0+dfsg/src/protocol/cltocs_unittest.cc:37:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ASSERT_NO_THROW(cltocs::read::serialize(buffer,
data/lizardfs-3.12.0+dfsg/src/protocol/cltocs_unittest.cc:42:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ASSERT_NO_THROW(cltocs::read::deserialize(buffer.data(), buffer.size(),
data/lizardfs-3.12.0+dfsg/src/protocol/cltoma.h:54:13:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		uint16_t, umask,
data/lizardfs-3.12.0+dfsg/src/protocol/cltoma.h:64:13:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		uint16_t, umask,
data/lizardfs-3.12.0+dfsg/src/tools/master_functions.cc:123:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(sd, buffer, kMasterInfoSize) != kMasterInfoSize) {
data/lizardfs-3.12.0+dfsg/src/tools/master_functions.cc:178:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t rpath_len = strlen(rpath);
data/lizardfs-3.12.0+dfsg/src/tools/snapshot.cc:64: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).
	nleng = strlen(dstbase);
data/lizardfs-3.12.0+dfsg/src/tools/snapshot.cc:162:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(dstname) > 0 && dstname[strlen(dstname) - 1] == '/' && !S_ISDIR(sst.st_mode)) {
data/lizardfs-3.12.0+dfsg/src/tools/snapshot.cc:162:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(dstname) > 0 && dstname[strlen(dstname) - 1] == '/' && !S_ISDIR(sst.st_mode)) {
data/lizardfs-3.12.0+dfsg/src/tools/snapshot.cc:231: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).
					l = strlen(srcnames[i]);
data/lizardfs-3.12.0+dfsg/src/tools/tools_common_functions.cc:282:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
		(void)strcpy(bname, ".");
data/lizardfs-3.12.0+dfsg/src/tools/tools_common_functions.cc:287: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).
	endp = path + strlen(path) - 1;
data/lizardfs-3.12.0+dfsg/src/tools/tools_common_functions.cc:294:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
		(void)strcpy(bname, "/");
data/lizardfs-3.12.0+dfsg/src/tools/tools_common_functions.cc:308:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void)strncpy(bname, startp, endp - startp + 1);
data/lizardfs-3.12.0+dfsg/src/tools/tools_common_functions.cc:318:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
		(void)strcpy(bname, ".");
data/lizardfs-3.12.0+dfsg/src/tools/tools_common_functions.cc:323: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).
	endp = path + strlen(path) - 1;
data/lizardfs-3.12.0+dfsg/src/tools/tools_common_functions.cc:346:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void)strncpy(bname, path, endp - path + 1);
data/lizardfs-3.12.0+dfsg/src/tools/tools_common_functions.cc:364: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).
	endp = path + strlen(path) - 1;
data/lizardfs-3.12.0+dfsg/utils/chunk_converter.cc:144:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (!inputFile.read(buffer.data(), kHeaderSize)) {
data/lizardfs-3.12.0+dfsg/utils/chunk_converter.cc:181:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (!inputFile.read(buffer.data(), kCrcSize)) {
data/lizardfs-3.12.0+dfsg/utils/chunk_converter.cc:202:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while (inputFile.read(buffer.data(), kBlockSize)) {
data/lizardfs-3.12.0+dfsg/utils/crc_converter.cc:128:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	stream.read(blockBuffer.data(), kBlockSize);
data/lizardfs-3.12.0+dfsg/utils/data_generator.h:72:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if(read(fd, &expectedSize, sizeof(expectedSize)) != sizeof(expectedSize)) {
data/lizardfs-3.12.0+dfsg/utils/data_generator.h:96:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			utils_passert(read(fd, actualBuffer.data(), bytesToRead) == (ssize_t)bytesToRead);
data/lizardfs-3.12.0+dfsg/utils/data_generator.h:144:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(1000 * repeat_after_ms);
data/lizardfs-3.12.0+dfsg/utils/flockcmd.cc:94:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(argv[2]) != 1) {
data/lizardfs-3.12.0+dfsg/utils/mfs_ping.cc:64:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(sleep_us);
data/lizardfs-3.12.0+dfsg/utils/posixlockcmd.cc:99:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(argv[2]) != 1) {

ANALYSIS SUMMARY:

Hits = 673
Lines analyzed = 129076 in approximately 3.30 seconds (39090 lines/second)
Physical Source Lines of Code (SLOC) = 95007
Hits@level = [0] 574 [1] 220 [2] 353 [3]  32 [4]  55 [5]  13
Hits@level+ = [0+] 1247 [1+] 673 [2+] 453 [3+] 100 [4+]  68 [5+]  13
Hits/KSLOC@level+ = [0+] 13.1253 [1+] 7.08369 [2+] 4.76807 [3+] 1.05255 [4+] 0.715737 [5+] 0.136832
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.